2 # From configure.ac Revision: 1.158 .
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
878 GRAS_ARCH_32_BITS_TRUE
879 GRAS_ARCH_32_BITS_FALSE
881 pth_skaddr_makecontext
882 pth_sksize_makecontext
897 MAINTAINER_MODE_FALSE
919 ac_precious_vars='build_alias
934 # Initialize some variables set by options.
936 ac_init_version=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name=s,x,x,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1022 -datadir | --datadir | --datadi | --datad)
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1034 -disable-* | --disable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=no ;;
1269 # Obsolete; use --with-x.
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1317 # Be sure to have absolute directory names.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val=\$$ac_var
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1434 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-dependency-tracking speeds up one-time build
1517 --enable-dependency-tracking do not reject slow dependency extractors
1518 --disable-libtool-lock avoid locking (might break parallel builds)
1519 --enable-simix Use the new SimIX module (default=no)
1520 --enable-maintainer-mode enable make rules and dependencies not useful
1521 (and sometimes confusing) to the casual installer
1522 --enable-compile-warnings
1523 use compiler warnings (default=no, unless in
1525 --disable-compile-optimizations
1526 use compiler optimizations (default=yes, unless if
1527 CFLAGS is explicitly set)
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1535 --with-tags[=TAGS] include additional configurations [automatic]
1536 --with-pthread Use pthread instead of ucontext.
1537 --with-pthreads Use pthread instead of ucontext.
1538 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1539 --with-gtnets Path to GTNetS installation (default to empty, ie
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
1553 CXXCPP C++ preprocessor
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1558 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" || continue
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1586 .) # We are building in place.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1619 simgrid configure 3.3-cvs
1620 generated by GNU Autoconf 2.61
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1633 It was created by simgrid $as_me 3.3-cvs, which was
1634 generated by GNU Autoconf 2.61. Invocation command line was
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 echo "PATH: $as_dir"
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_must_keep_next=false
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723 -* ) ac_must_keep_next=true ;;
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1750 # The following way of writing the cache mishandles newlines in values,
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1761 _ | IFS | as_nl) ;; #(
1762 *) $as_unset $ac_var ;;
1767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768 *${as_nl}ac_space=\ *)
1770 "s/'\''/'\''\\\\'\'''\''/g;
1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1787 for ac_var in $ac_subst_vars
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1797 if test -n "$ac_subst_files"; then
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1804 for ac_var in $ac_subst_files
1806 eval ac_val=\$$ac_var
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810 echo "$ac_var='\''$ac_val'\''"
1815 if test -s confdefs.h; then
1825 test "$ac_signal" != 0 &&
1826 echo "$as_me: caught signal $ac_signal"
1827 echo "$as_me: exit $exit_status"
1829 rm -f core *.core core.conftest.* &&
1830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833 for ac_signal in 1 2 13 15; do
1834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1841 # Predefined preprocessor variables.
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1875 set x "$ac_default_prefix/share/config.site" \
1876 "$ac_default_prefix/etc/config.site"
1881 if test -r "$ac_site_file"; then
1882 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1901 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1906 # Check that the precious variables saved in the cache have kept the same
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1928 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1929 echo "$as_me: former value: $ac_old_val" >&2;}
1930 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1931 echo "$as_me: current value: $ac_new_val" >&2;}
1932 ac_cache_corrupted=:
1935 # Pass precious variables to config.status.
1936 if test "$ac_new_set" = set; then
1938 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 *) ac_arg=$ac_var=$ac_new_val ;;
1941 case " $ac_configure_args " in
1942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1943 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947 if $ac_cache_corrupted; then
1948 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1950 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1952 { (exit 1); exit 1; }; }
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987 ac_config_headers="$ac_config_headers src/gras_config.h"
1989 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1993 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1994 if test -f "$ac_dir/install-sh"; then
1996 ac_install_sh="$ac_aux_dir/install-sh -c"
1998 elif test -f "$ac_dir/install.sh"; then
2000 ac_install_sh="$ac_aux_dir/install.sh -c"
2002 elif test -f "$ac_dir/shtool"; then
2004 ac_install_sh="$ac_aux_dir/shtool install -c"
2008 if test -z "$ac_aux_dir"; then
2009 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2010 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2011 { (exit 1); exit 1; }; }
2014 # These three variables are undocumented and unsupported,
2015 # and are intended to be withdrawn in a future Autoconf release.
2016 # They can cause serious problems if a builder's source tree is in a directory
2017 # whose full name contains unusual characters.
2018 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2019 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2020 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2023 # Make sure we can run config.sub.
2024 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2025 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2026 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2027 { (exit 1); exit 1; }; }
2029 { echo "$as_me:$LINENO: checking build system type" >&5
2030 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2031 if test "${ac_cv_build+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 ac_build_alias=$build_alias
2035 test "x$ac_build_alias" = x &&
2036 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2037 test "x$ac_build_alias" = x &&
2038 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2042 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2043 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2047 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048 echo "${ECHO_T}$ac_cv_build" >&6; }
2049 case $ac_cv_build in
2051 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2052 echo "$as_me: error: invalid value of canonical build" >&2;}
2053 { (exit 1); exit 1; }; };;
2056 ac_save_IFS=$IFS; IFS='-'
2062 # Remember, the first character of IFS is used to create $*,
2063 # except with old shells:
2066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2069 { echo "$as_me:$LINENO: checking host system type" >&5
2070 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_host+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test "x$host_alias" = x; then
2075 ac_cv_host=$ac_cv_build
2077 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2078 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2079 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2080 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2085 echo "${ECHO_T}$ac_cv_host" >&6; }
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2089 echo "$as_me: error: invalid value of canonical host" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS=$IFS; IFS='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking target system type" >&5
2107 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_target+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test "x$target_alias" = x; then
2112 ac_cv_target=$ac_cv_host
2114 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2122 echo "${ECHO_T}$ac_cv_target" >&6; }
2123 case $ac_cv_target in
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2126 echo "$as_me: error: invalid value of canonical target" >&2;}
2127 { (exit 1); exit 1; }; };;
2129 target=$ac_cv_target
2130 ac_save_IFS=$IFS; IFS='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2143 # The aliases save the names the user supplied, while $host etc.
2144 # will get canonicalized.
2145 test -n "$target_alias" &&
2146 test "$program_prefix$program_suffix$program_transform_name" = \
2148 program_prefix=${target_alias}-
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 am__api_version="1.9"
2157 # Find a good install program. We prefer a C program (faster),
2158 # so one script is as good as another. But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2171 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 # Account for people who put trailing slashes in PATH elements.
2183 ./ | .// | /cC/* | \
2184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2185 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2188 # OSF1 and SCO ODT 3.0 have their own names for install.
2189 # Don't use installbsd from OSF since it installs stuff as root
2191 for ac_prog in ginstall scoinst install; do
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2194 if test $ac_prog = install &&
2195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196 # AIX install. It has an incompatible calling convention.
2198 elif test $ac_prog = install &&
2199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200 # program-specific install script used by HP pwplus--don't use.
2203 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2216 if test "${ac_cv_path_install+set}" = set; then
2217 INSTALL=$ac_cv_path_install
2219 # As a last resort, use the slow shell script. Don't cache a
2220 # value for INSTALL within a source directory, because that will
2221 # break other packages using the cache if that directory is
2222 # removed, or if the value is a relative name.
2223 INSTALL=$ac_install_sh
2226 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2227 echo "${ECHO_T}$INSTALL" >&6; }
2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230 # It thinks the first close brace ends the variable substitution.
2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2237 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2238 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2241 echo timestamp > conftest.file
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments. Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2248 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2249 if test "$*" = "X"; then
2251 set X `ls -t $srcdir/configure conftest.file`
2254 if test "$*" != "X $srcdir/configure conftest.file" \
2255 && test "$*" != "X conftest.file $srcdir/configure"; then
2257 # If neither matched, then we have a broken ls. This can happen
2258 # if, for instance, CONFIG_SHELL is bash and it inherits a
2259 # broken ls alias from the environment. This has actually
2260 # happened. Such a system could not be considered "sane".
2261 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2262 alias in your environment" >&5
2263 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" >&2;}
2265 { (exit 1); exit 1; }; }
2268 test "$2" = conftest.file
2274 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2275 Check your system clock" >&5
2276 echo "$as_me: error: newly created file is older than distributed files!
2277 Check your system clock" >&2;}
2278 { (exit 1); exit 1; }; }
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2282 test "$program_prefix" != NONE &&
2283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284 # Use a double $ so make ignores it.
2285 test "$program_suffix" != NONE &&
2286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287 # Double any \ or $. echo might interpret backslashes.
2288 # By default was `s,x,x', remove it if useless.
2289 cat <<\_ACEOF >conftest.sed
2290 s/[\\$]/&&/g;s/;s,x,x,$//
2292 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2295 # expand $ac_aux_dir to an absolute path
2296 am_aux_dir=`cd $ac_aux_dir && pwd`
2298 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2299 # Use eval to expand $SHELL
2300 if eval "$MISSING --run true"; then
2301 am_missing_run="$MISSING --run "
2304 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2305 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2308 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2309 # We used to keeping the `.' as first argument, in order to
2310 # allow $(mkdir_p) to be used without argument. As in
2311 # $(mkdir_p) $(somedir)
2312 # where $(somedir) is conditionally defined. However this is wrong
2314 # 1. if the package is installed by a user who cannot write `.'
2315 # make install will fail,
2316 # 2. the above comment should most certainly read
2317 # $(mkdir_p) $(DESTDIR)$(somedir)
2318 # so it does not work when $(somedir) is undefined and
2319 # $(DESTDIR) is not.
2320 # To support the latter case, we have to write
2321 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2322 # so the `.' trick is pointless.
2323 mkdir_p='mkdir -p --'
2325 # On NextStep and OpenStep, the `mkdir' command does not
2326 # recognize any option. It will interpret all options as
2327 # directories to create, and then abort because `.' already
2329 for d in ./-p ./--version;
2331 test -d $d && rmdir $d
2333 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2334 if test -f "$ac_aux_dir/mkinstalldirs"; then
2335 mkdir_p='$(mkinstalldirs)'
2337 mkdir_p='$(install_sh) -d'
2341 for ac_prog in gawk mawk nawk awk
2343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_AWK+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$AWK"; then
2351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_AWK="$ac_prog"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$AWK"; then
2372 { echo "$as_me:$LINENO: result: $AWK" >&5
2373 echo "${ECHO_T}$AWK" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2380 test -n "$AWK" && break
2383 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2384 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2385 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.make <<\_ACEOF
2392 @echo '@@@%%%=$(MAKE)=@@@%%%'
2394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2397 eval ac_cv_prog_make_${ac_make}_set=yes;;
2399 eval ac_cv_prog_make_${ac_make}_set=no;;
2403 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404 { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 SET_MAKE="MAKE=${MAKE-make}"
2413 rm -rf .tst 2>/dev/null
2414 mkdir .tst 2>/dev/null
2415 if test -d .tst; then
2420 rmdir .tst 2>/dev/null
2422 # test to see if srcdir already configured
2423 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2424 test -f $srcdir/config.status; then
2425 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2426 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2427 { (exit 1); exit 1; }; }
2430 # test whether we have cygpath
2431 if test -z "$CYGPATH_W"; then
2432 if (cygpath --version) >/dev/null 2>/dev/null; then
2433 CYGPATH_W='cygpath -w'
2440 # Define the identity of the package.
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE "$PACKAGE"
2450 cat >>confdefs.h <<_ACEOF
2451 #define VERSION "$VERSION"
2454 # Some tools Automake needs.
2456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2470 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2472 # Installed binaries are usually stripped using `strip' when the user
2473 # run `make install-strip'. However `strip' might not be the right
2474 # tool to use in cross-compilation environments, therefore Automake
2475 # will honor the `STRIP' environment variable to overrule this program.
2476 if test "$cross_compiling" != no; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_STRIP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$STRIP"; then
2486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 STRIP=$ac_cv_prog_STRIP
2506 if test -n "$STRIP"; then
2507 { echo "$as_me:$LINENO: result: $STRIP" >&5
2508 echo "${ECHO_T}$STRIP" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2516 if test -z "$ac_cv_prog_STRIP"; then
2518 # Extract the first word of "strip", so it can be a program name with args.
2519 set dummy strip; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$ac_ct_STRIP"; then
2526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_ac_ct_STRIP="strip"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546 if test -n "$ac_ct_STRIP"; then
2547 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2548 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2554 if test "x$ac_ct_STRIP" = x; then
2557 case $cross_compiling:$ac_tool_warned in
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet. If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet. If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2570 STRIP="$ac_cv_prog_STRIP"
2574 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2576 # We need awk for the "check" target. The system "awk" is bad on
2578 # Always define AMTAR for backward compatibility.
2580 AMTAR=${AMTAR-"${am_missing_run}tar"}
2582 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589 ACLOCAL="$ACLOCAL -I acmacro"
2596 # Check whether --enable-shared was given.
2597 if test "${enable_shared+set}" = set; then
2598 enableval=$enable_shared; p=${PACKAGE-default}
2600 yes) enable_shared=yes ;;
2601 no) enable_shared=no ;;
2604 # Look at the argument we got. We use all the common list separators.
2605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2606 for pkg in $enableval; do
2608 if test "X$pkg" = "X$p"; then
2620 # Check whether --enable-static was given.
2621 if test "${enable_static+set}" = set; then
2622 enableval=$enable_static; p=${PACKAGE-default}
2624 yes) enable_static=yes ;;
2625 no) enable_static=no ;;
2628 # Look at the argument we got. We use all the common list separators.
2629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2630 for pkg in $enableval; do
2632 if test "X$pkg" = "X$p"; then
2644 # Check whether --enable-fast-install was given.
2645 if test "${enable_fast_install+set}" = set; then
2646 enableval=$enable_fast_install; p=${PACKAGE-default}
2648 yes) enable_fast_install=yes ;;
2649 no) enable_fast_install=no ;;
2651 enable_fast_install=no
2652 # Look at the argument we got. We use all the common list separators.
2653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2654 for pkg in $enableval; do
2656 if test "X$pkg" = "X$p"; then
2657 enable_fast_install=yes
2664 enable_fast_install=yes
2668 DEPDIR="${am__leading_dot}deps"
2670 ac_config_commands="$ac_config_commands depfiles"
2673 am_make=${MAKE-make}
2674 cat > confinc << 'END'
2679 # If we don't find an include directive, just comment out the code.
2680 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2685 # First try GNU make style include.
2686 echo "include confinc" > confmf
2687 # We grep out `Entering directory' and `Leaving directory'
2688 # messages which can occur if `w' ends up in MAKEFLAGS.
2689 # In particular we don't look at `^make:' because GNU make might
2690 # be invoked under some other name (usually "gmake"), in which
2691 # case it prints its new name instead of `make'.
2692 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697 # Now try BSD make style include.
2698 if test "$am__include" = "#"; then
2699 echo '.include "confinc"' > confmf
2700 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701 am__include=.include
2708 { echo "$as_me:$LINENO: result: $_am_result" >&5
2709 echo "${ECHO_T}$_am_result" >&6; }
2710 rm -f confinc confmf
2712 # Check whether --enable-dependency-tracking was given.
2713 if test "${enable_dependency_tracking+set}" = set; then
2714 enableval=$enable_dependency_tracking;
2717 if test "x$enable_dependency_tracking" != xno; then
2718 am_depcomp="$ac_aux_dir/depcomp"
2723 if test "x$enable_dependency_tracking" != xno; then
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$CC"; then
2768 { echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6; }
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809 echo "${ECHO_T}$ac_ct_CC" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2815 if test "x$ac_ct_CC" = x; then
2818 case $cross_compiling:$ac_tool_warned in
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: 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." >&2;}
2826 ac_tool_warned=yes ;;
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 if test -n "$CC"; then
2922 { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 { echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6; }
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3016 test -n "$ac_ct_CC" && break
3019 if test "x$ac_ct_CC" = x; then
3022 case $cross_compiling:$ac_tool_warned in
3024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&5
3027 echo "$as_me: 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." >&2;}
3030 ac_tool_warned=yes ;;
3039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3045 # Provide some information about the compiler.
3046 echo "$as_me:$LINENO: checking for C compiler version" >&5
3047 ac_compiler=`set X $ac_compile; echo $2`
3048 { (ac_try="$ac_compiler --version >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler --version >&5") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (ac_try="$ac_compiler -v >&5"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compiler -v >&5") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compiler -V >&5") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3099 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 # List of possible output files, starting from the most likely.
3104 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3105 # only as a last resort. b.out is created by i960 compilers.
3106 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3108 # The IRIX 6 linker writes into existing files which may not be
3109 # executable, retaining their permissions. Remove them first so a
3110 # subsequent execution test works.
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { (ac_try="$ac_link_default"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_link_default") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; then
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3136 for ac_file in $ac_files ''
3138 test -f "$ac_file" || continue
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3143 # We found the default executable, but exeext='' is most
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 if test -z "$ac_file"; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3180 ac_exeext=$ac_cv_exeext
3182 # Check that the compiler produces executables we can run. If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3185 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189 if { ac_try='./$ac_file'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 if test "$cross_compiling" = maybe; then
3204 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3214 { echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6; }
3217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3223 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3224 echo "${ECHO_T}$cross_compiling" >&6; }
3226 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3228 if { (ac_try="$ac_link"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_link") 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3259 rm -f conftest$ac_cv_exeext
3260 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3261 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3266 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3268 if test "${ac_cv_objext+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.o conftest.obj
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319 echo "${ECHO_T}$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3322 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3376 GCC=`test $ac_compiler_gnu = yes && echo yes`
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3514 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3525 if test "$GCC" = yes; then
3531 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3532 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3533 if test "${ac_cv_prog_cc_c89+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 ac_cv_prog_cc_c89=no
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3546 #include <sys/types.h>
3547 #include <sys/stat.h>
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3562 s = g (p, va_arg (v,int));
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 CC="$ac_save_CC $ac_arg"
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_prog_cc_c89=$ac_arg
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 rm -f conftest.$ac_ext
3632 case "x$ac_cv_prog_cc_c89" in
3634 { echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6; } ;;
3637 { echo "$as_me:$LINENO: result: unsupported" >&5
3638 echo "${ECHO_T}unsupported" >&6; } ;;
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 depcc="$CC" am_compiler_list=
3654 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3655 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3656 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named `D' -- because `-MD' means `put the output
3666 # Copy depcomp to subdir because otherwise we won't find it if we're
3667 # using a relative directory.
3668 cp "$am_depcomp" conftest.dir
3670 # We will build objects and dependencies in a subdirectory because
3671 # it helps to detect inapplicable dependency modes. For instance
3672 # both Tru64's cc and ICC support -MD to output dependencies as a
3673 # side effect of compilation, but ICC will put the dependencies in
3674 # the current directory while Tru64 will put them in the object
3678 am_cv_CC_dependencies_compiler_type=none
3679 if test "$am_compiler_list" = ""; then
3680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682 for depmode in $am_compiler_list; do
3683 # Setup a source with many dependencies, because some compilers
3684 # like to wrap large dependency lists on column 80 (with \), and
3685 # we should not choose a depcomp mode which is confused by this.
3687 # We need to recreate these files for each test, as the compiler may
3688 # overwrite some of them when testing with obscure command lines.
3689 # This happens at least with the AIX C compiler.
3691 for i in 1 2 3 4 5 6; do
3692 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3693 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3694 # Solaris 8's {/usr,}/bin/sh.
3695 touch sub/conftst$i.h
3697 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701 # after this tag, mechanisms are not by side-effect, so they'll
3702 # only be used when explicitly requested
3703 if test "x$enable_dependency_tracking" = xyes; then
3711 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3712 # mode. It turns out that the SunPro C++ compiler does not properly
3713 # handle `-M -o', and we need to detect this.
3714 if depmode=$depmode \
3715 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3718 >/dev/null 2>conftest.err &&
3719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722 # icc doesn't choke on unknown options, it will just issue warnings
3723 # or remarks (even with -Werror). So we grep stderr for any message
3724 # that says an option was ignored or not supported.
3725 # When given -MP, icc 7.0 and 7.1 complain thusly:
3726 # icc: Command line warning: ignoring option '-M'; no argument required
3727 # The diagnosis changed in icc 8.0:
3728 # icc: Command line remark: option '-MP' not supported
3729 if (grep 'ignoring option' conftest.err ||
3730 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731 am_cv_CC_dependencies_compiler_type=$depmode
3740 am_cv_CC_dependencies_compiler_type=none
3744 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3745 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3746 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3751 test "x$enable_dependency_tracking" != xno \
3752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754 am__fastdepCC_FALSE='#'
3756 am__fastdepCC_TRUE='#'
3757 am__fastdepCC_FALSE=
3761 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3762 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3763 if test "${lt_cv_path_SED+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 # Loop through the user's path and test for sed and gsed.
3767 # Then use that list of sed's as ones to test for truncation.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for lt_ac_prog in sed gsed; do
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3776 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3783 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3784 # along with /bin/sed that truncates output.
3785 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3786 test ! -f $lt_ac_sed && continue
3787 cat /dev/null > conftest.in
3789 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3790 # Check for GNU sed and select it if it is found.
3791 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3792 lt_cv_path_SED=$lt_ac_sed
3796 cat conftest.in conftest.in >conftest.tmp
3797 mv conftest.tmp conftest.in
3798 cp conftest.in conftest.nl
3800 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3801 cmp -s conftest.out conftest.nl || break
3802 # 10000 chars as input seems more than enough
3803 test $lt_ac_count -gt 10 && break
3804 lt_ac_count=`expr $lt_ac_count + 1`
3805 if test $lt_ac_count -gt $lt_ac_max; then
3806 lt_ac_max=$lt_ac_count
3807 lt_cv_path_SED=$lt_ac_sed
3815 { echo "$as_me:$LINENO: result: $SED" >&5
3816 echo "${ECHO_T}$SED" >&6; }
3818 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3819 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3820 if test "${ac_cv_path_GREP+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 # Extract the first word of "grep ggrep" to use in msg output
3824 if test -z "$GREP"; then
3825 set dummy grep ggrep; ac_prog_name=$2
3826 if test "${ac_cv_path_GREP+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 ac_path_GREP_found=false
3830 # Loop through the user's path and test for each of PROGNAME-LIST
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 test -z "$as_dir" && as_dir=.
3836 for ac_prog in grep ggrep; do
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3839 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3840 # Check for GNU ac_path_GREP and select it if it is found.
3841 # Check for GNU $ac_path_GREP
3842 case `"$ac_path_GREP" --version 2>&1` in
3844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3847 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 cat "conftest.in" "conftest.in" >"conftest.tmp"
3851 mv "conftest.tmp" "conftest.in"
3852 cp "conftest.in" "conftest.nl"
3853 echo 'GREP' >> "conftest.nl"
3854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3856 ac_count=`expr $ac_count + 1`
3857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3858 # Best one so far, save it but keep looking for a better one
3859 ac_cv_path_GREP="$ac_path_GREP"
3860 ac_path_GREP_max=$ac_count
3862 # 10*(2^10) chars as input seems more than enough
3863 test $ac_count -gt 10 && break
3865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 $ac_path_GREP_found && break 3
3879 GREP="$ac_cv_path_GREP"
3880 if test -z "$GREP"; then
3881 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3882 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3883 { (exit 1); exit 1; }; }
3887 ac_cv_path_GREP=$GREP
3892 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3893 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3894 GREP="$ac_cv_path_GREP"
3897 { echo "$as_me:$LINENO: checking for egrep" >&5
3898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3899 if test "${ac_cv_path_EGREP+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3903 then ac_cv_path_EGREP="$GREP -E"
3905 # Extract the first word of "egrep" to use in msg output
3906 if test -z "$EGREP"; then
3907 set dummy egrep; ac_prog_name=$2
3908 if test "${ac_cv_path_EGREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 ac_path_EGREP_found=false
3912 # Loop through the user's path and test for each of PROGNAME-LIST
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in egrep; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3921 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3922 # Check for GNU ac_path_EGREP and select it if it is found.
3923 # Check for GNU $ac_path_EGREP
3924 case `"$ac_path_EGREP" --version 2>&1` in
3926 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3929 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932 cat "conftest.in" "conftest.in" >"conftest.tmp"
3933 mv "conftest.tmp" "conftest.in"
3934 cp "conftest.in" "conftest.nl"
3935 echo 'EGREP' >> "conftest.nl"
3936 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3938 ac_count=`expr $ac_count + 1`
3939 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3940 # Best one so far, save it but keep looking for a better one
3941 ac_cv_path_EGREP="$ac_path_EGREP"
3942 ac_path_EGREP_max=$ac_count
3944 # 10*(2^10) chars as input seems more than enough
3945 test $ac_count -gt 10 && break
3947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 $ac_path_EGREP_found && break 3
3961 EGREP="$ac_cv_path_EGREP"
3962 if test -z "$EGREP"; then
3963 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965 { (exit 1); exit 1; }; }
3969 ac_cv_path_EGREP=$EGREP
3975 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3976 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3977 EGREP="$ac_cv_path_EGREP"
3981 # Check whether --with-gnu-ld was given.
3982 if test "${with_gnu_ld+set}" = set; then
3983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3989 if test "$GCC" = yes; then
3990 # Check if gcc -print-prog-name=ld gives a path.
3991 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3995 # gcc leaves a trailing carriage return which upsets mingw
3996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4001 # Accept absolute paths.
4003 re_direlt='/[^/][^/]*/\.\./'
4004 # Canonicalize the pathname of ld
4005 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4007 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4009 test -z "$LD" && LD="$ac_prog"
4012 # If it fails, then pretend we aren't using GCC.
4016 # If it is relative, then search for the first ld in PATH.
4020 elif test "$with_gnu_ld" = yes; then
4021 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4024 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4027 if test "${lt_cv_path_LD+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -z "$LD"; then
4031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4032 for ac_dir in $PATH; do
4034 test -z "$ac_dir" && ac_dir=.
4035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4036 lt_cv_path_LD="$ac_dir/$ac_prog"
4037 # Check to see if the program is GNU ld. I'd rather use --version,
4038 # but apparently some variants of GNU ld only accept -v.
4039 # Break only if it was the GNU/non-GNU ld that we prefer.
4040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4041 *GNU* | *'with BFD'*)
4042 test "$with_gnu_ld" != no && break
4045 test "$with_gnu_ld" != yes && break
4052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4057 if test -n "$LD"; then
4058 { echo "$as_me:$LINENO: result: $LD" >&5
4059 echo "${ECHO_T}$LD" >&6; }
4061 { echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6; }
4064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4066 { (exit 1); exit 1; }; }
4067 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4073 case `$LD -v 2>&1 </dev/null` in
4074 *GNU* | *'with BFD'*)
4075 lt_cv_prog_gnu_ld=yes
4078 lt_cv_prog_gnu_ld=no
4082 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4084 with_gnu_ld=$lt_cv_prog_gnu_ld
4087 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4088 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4089 if test "${lt_cv_ld_reload_flag+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 lt_cv_ld_reload_flag='-r'
4094 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4095 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4096 reload_flag=$lt_cv_ld_reload_flag
4097 case $reload_flag in
4099 *) reload_flag=" $reload_flag" ;;
4101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4104 if test "$GCC" = yes; then
4105 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4112 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4113 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4114 if test "${lt_cv_path_NM+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$NM"; then
4118 # Let the user override the test.
4121 lt_nm_to_check="${ac_tool_prefix}nm"
4122 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4123 lt_nm_to_check="$lt_nm_to_check nm"
4125 for lt_tmp_nm in $lt_nm_to_check; do
4126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4127 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4129 test -z "$ac_dir" && ac_dir=.
4130 tmp_nm="$ac_dir/$lt_tmp_nm"
4131 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4132 # Check to see if the nm accepts a BSD-compat flag.
4133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4134 # nm: unknown option "B" ignored
4135 # Tru64's nm complains that /dev/null is an invalid object file
4136 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4137 */dev/null* | *'Invalid file or object type'*)
4138 lt_cv_path_NM="$tmp_nm -B"
4142 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4144 lt_cv_path_NM="$tmp_nm -p"
4148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4149 continue # so that we can try to find one that supports BSD flags
4158 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4161 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4162 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4165 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4166 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4168 if test "$LN_S" = "ln -s"; then
4169 { echo "$as_me:$LINENO: result: yes" >&5
4170 echo "${ECHO_T}yes" >&6; }
4172 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4173 echo "${ECHO_T}no, using $LN_S" >&6; }
4176 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4177 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4178 if test "${lt_cv_deplibs_check_method+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 lt_cv_file_magic_cmd='$MAGIC_CMD'
4182 lt_cv_file_magic_test_file=
4183 lt_cv_deplibs_check_method='unknown'
4184 # Need to set the preceding variable on all platforms that support
4185 # interlibrary dependencies.
4186 # 'none' -- dependencies not supported.
4187 # `unknown' -- same as none, but documents that we really don't know.
4188 # 'pass_all' -- all dependencies passed with no checks.
4189 # 'test_compile' -- check by making test program.
4190 # 'file_magic [[regex]]' -- check by looking for files in library path
4191 # which responds to the $file_magic_cmd with a given extended regex.
4192 # If you have `file' or equivalent on your system and you're not sure
4193 # whether `pass_all' will *always* work, you probably want this one.
4197 lt_cv_deplibs_check_method=pass_all
4201 lt_cv_deplibs_check_method=pass_all
4205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4206 lt_cv_file_magic_cmd='/usr/bin/file -L'
4207 lt_cv_file_magic_test_file=/shlib/libc.so
4211 # func_win32_libid is a shell function defined in ltmain.sh
4212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4213 lt_cv_file_magic_cmd='func_win32_libid'
4217 # Base MSYS/MinGW do not provide the 'file' command needed by
4218 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4219 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4220 lt_cv_file_magic_cmd='$OBJDUMP -f'
4223 darwin* | rhapsody*)
4224 lt_cv_deplibs_check_method=pass_all
4227 freebsd* | dragonfly*)
4228 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4231 # Not sure whether the presence of OpenBSD here was a mistake.
4232 # Let's accept both of them until this is cleared up.
4233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4234 lt_cv_file_magic_cmd=/usr/bin/file
4235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4239 lt_cv_deplibs_check_method=pass_all
4244 lt_cv_deplibs_check_method=pass_all
4247 hpux10.20* | hpux11*)
4248 lt_cv_file_magic_cmd=/usr/bin/file
4251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4252 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4255 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]'
4256 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4260 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4266 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4270 irix5* | irix6* | nonstopux*)
4272 *-32|*"-32 ") libmagic=32-bit;;
4273 *-n32|*"-n32 ") libmagic=N32;;
4274 *-64|*"-64 ") libmagic=64-bit;;
4275 *) libmagic=never-match;;
4277 lt_cv_deplibs_check_method=pass_all
4280 # This must be Linux ELF.
4281 linux* | k*bsd*-gnu)
4282 lt_cv_deplibs_check_method=pass_all
4285 netbsd* | netbsdelf*-gnu)
4286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4295 lt_cv_file_magic_cmd=/usr/bin/file
4296 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4300 lt_cv_deplibs_check_method=unknown
4304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4311 osf3* | osf4* | osf5*)
4312 lt_cv_deplibs_check_method=pass_all
4316 lt_cv_deplibs_check_method=pass_all
4320 case $host_vendor in
4322 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]'
4323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4326 lt_cv_deplibs_check_method=pass_all
4329 lt_cv_file_magic_cmd='/bin/file'
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4333 lt_cv_file_magic_cmd='/bin/file'
4334 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4335 lt_cv_file_magic_test_file=/lib/libc.so
4338 lt_cv_deplibs_check_method=pass_all
4341 lt_cv_deplibs_check_method=pass_all
4346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4347 lt_cv_deplibs_check_method=pass_all
4352 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4353 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4354 file_magic_cmd=$lt_cv_file_magic_cmd
4355 deplibs_check_method=$lt_cv_deplibs_check_method
4356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4361 # If no C compiler was specified, use CC.
4364 # If no C compiler flags were specified, use CFLAGS.
4365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4367 # Allow CC to be a program name with arguments.
4371 # Check whether --enable-libtool-lock was given.
4372 if test "${enable_libtool_lock+set}" = set; then
4373 enableval=$enable_libtool_lock;
4376 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4378 # Some flags need to be propagated to the compiler or linker for good
4382 # Find out which ABI we are using.
4383 echo 'int i;' > conftest.$ac_ext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; then
4389 case `/usr/bin/file conftest.$ac_objext` in
4401 # Find out which ABI we are using.
4402 echo '#line 4402 "configure"' > conftest.$ac_ext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; then
4408 if test "$lt_cv_prog_gnu_ld" = yes; then
4409 case `/usr/bin/file conftest.$ac_objext` in
4411 LD="${LD-ld} -melf32bsmip"
4414 LD="${LD-ld} -melf32bmipn32"
4417 LD="${LD-ld} -melf64bmip"
4421 case `/usr/bin/file conftest.$ac_objext` in
4437 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4438 # Find out which ABI we are using.
4439 echo 'int i;' > conftest.$ac_ext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; then
4445 case `/usr/bin/file conftest.o` in
4449 LD="${LD-ld} -m elf_i386"
4451 ppc64-*linux*|powerpc64-*linux*)
4452 LD="${LD-ld} -m elf32ppclinux"
4455 LD="${LD-ld} -m elf_s390"
4458 LD="${LD-ld} -m elf32_sparc"
4465 LD="${LD-ld} -m elf_x86_64"
4467 ppc*-*linux*|powerpc*-*linux*)
4468 LD="${LD-ld} -m elf64ppc"
4471 LD="${LD-ld} -m elf64_s390"
4474 LD="${LD-ld} -m elf64_sparc"
4484 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4485 SAVE_CFLAGS="$CFLAGS"
4486 CFLAGS="$CFLAGS -belf"
4487 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4488 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4489 if test "${lt_cv_cc_needs_belf+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (ac_try="$ac_link"
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_link") 2>conftest.er1
4522 grep -v '^ *+' conftest.er1 >conftest.err
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } && {
4527 test -z "$ac_c_werror_flag" ||
4528 test ! -s conftest.err
4529 } && test -s conftest$ac_exeext &&
4530 $as_test_x conftest$ac_exeext; then
4531 lt_cv_cc_needs_belf=yes
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 lt_cv_cc_needs_belf=no
4539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4540 conftest$ac_exeext conftest.$ac_ext
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4549 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4550 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4552 CFLAGS="$SAVE_CFLAGS"
4556 # Find out which ABI we are using.
4557 echo 'int i;' > conftest.$ac_ext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; then
4563 case `/usr/bin/file conftest.o` in
4565 case $lt_cv_prog_gnu_ld in
4566 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4567 *) LD="${LD-ld} -64" ;;
4575 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4576 if test -n "$ac_tool_prefix"; then
4577 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$DLLTOOL"; then
4585 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 DLLTOOL=$ac_cv_prog_DLLTOOL
4605 if test -n "$DLLTOOL"; then
4606 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4607 echo "${ECHO_T}$DLLTOOL" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4615 if test -z "$ac_cv_prog_DLLTOOL"; then
4616 ac_ct_DLLTOOL=$DLLTOOL
4617 # Extract the first word of "dlltool", so it can be a program name with args.
4618 set dummy dlltool; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$ac_ct_DLLTOOL"; then
4625 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4645 if test -n "$ac_ct_DLLTOOL"; then
4646 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4647 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4653 if test "x$ac_ct_DLLTOOL" = x; then
4656 case $cross_compiling:$ac_tool_warned in
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet. If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: 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." >&2;}
4664 ac_tool_warned=yes ;;
4666 DLLTOOL=$ac_ct_DLLTOOL
4669 DLLTOOL="$ac_cv_prog_DLLTOOL"
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}as; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_AS+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$AS"; then
4681 ac_cv_prog_AS="$AS" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_AS="${ac_tool_prefix}as"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test -n "$AS"; then
4702 { echo "$as_me:$LINENO: result: $AS" >&5
4703 echo "${ECHO_T}$AS" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4711 if test -z "$ac_cv_prog_AS"; then
4713 # Extract the first word of "as", so it can be a program name with args.
4714 set dummy as; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$ac_ct_AS"; then
4721 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_AS="as"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4741 if test -n "$ac_ct_AS"; then
4742 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4743 echo "${ECHO_T}$ac_ct_AS" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4749 if test "x$ac_ct_AS" = x; then
4752 case $cross_compiling:$ac_tool_warned in
4754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4755 whose name does not start with the host triplet. If you think this
4756 configuration is useful to you, please write to autoconf@gnu.org." >&5
4757 echo "$as_me: 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." >&2;}
4760 ac_tool_warned=yes ;;
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 if test -n "$OBJDUMP"; then
4777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4799 echo "${ECHO_T}$OBJDUMP" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808 ac_ct_OBJDUMP=$OBJDUMP
4809 # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$ac_ct_OBJDUMP"; then
4817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837 if test -n "$ac_ct_OBJDUMP"; then
4838 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4839 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4845 if test "x$ac_ct_OBJDUMP" = x; then
4848 case $cross_compiling:$ac_tool_warned in
4850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet. If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&5
4853 echo "$as_me: 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." >&2;}
4856 ac_tool_warned=yes ;;
4858 OBJDUMP=$ac_ct_OBJDUMP
4861 OBJDUMP="$ac_cv_prog_OBJDUMP"
4868 need_locks="$enable_libtool_lock"
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4878 # On Suns, sometimes $CPP names a directory.
4879 if test -n "$CPP" && test -d "$CPP"; then
4882 if test -z "$CPP"; then
4883 if test "${ac_cv_prog_CPP+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 # Double quotes because CPP needs to be expanded
4887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 # include <limits.h>
4907 # include <assert.h>
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null && {
4924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null && {
4961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4964 # Broken: success on invalid input.
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 # Passes both tests.
4975 rm -f conftest.err conftest.$ac_ext
4978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4979 rm -f conftest.err conftest.$ac_ext
4980 if $ac_preproc_ok; then
4992 { echo "$as_me:$LINENO: result: $CPP" >&5
4993 echo "${ECHO_T}$CPP" >&6; }
4995 for ac_c_preproc_warn_flag in '' yes
4997 # Use a header file that comes with gcc, so configuring glibc
4998 # with a fresh cross-compiler works.
4999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000 # <limits.h> exists even on freestanding compilers.
5001 # On the NeXT, cc -E runs the code through the compiler's parser,
5002 # not just through cpp. "Syntax error" is here to catch this case.
5003 cat >conftest.$ac_ext <<_ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 # include <limits.h>
5012 # include <assert.h>
5016 if { (ac_try="$ac_cpp conftest.$ac_ext"
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null && {
5029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 # Broken: fails on valid input.
5041 rm -f conftest.err conftest.$ac_ext
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 #include <ac_nonexistent.h>
5053 if { (ac_try="$ac_cpp conftest.$ac_ext"
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } >/dev/null && {
5066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5069 # Broken: success on invalid input.
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 # Passes both tests.
5080 rm -f conftest.err conftest.$ac_ext
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then
5088 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." >&2;}
5092 { (exit 1); exit 1; }; }
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5104 if test "${ac_cv_header_stdc+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5143 ac_cv_header_stdc=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_cv_header_stdc=no
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 if test $ac_cv_header_stdc = yes; then
5154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "memchr" >/dev/null 2>&1; then
5168 ac_cv_header_stdc=no
5174 if test $ac_cv_header_stdc = yes; then
5175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186 $EGREP "free" >/dev/null 2>&1; then
5189 ac_cv_header_stdc=no
5195 if test $ac_cv_header_stdc = yes; then
5196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5197 if test "$cross_compiling" = yes; then
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5212 # define ISLOWER(c) \
5213 (('a' <= (c) && (c) <= 'i') \
5214 || ('j' <= (c) && (c) <= 'r') \
5215 || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5224 for (i = 0; i < 256; i++)
5225 if (XOR (islower (i), ISLOWER (i))
5226 || toupper (i) != TOUPPER (i))
5231 rm -f conftest$ac_exeext
5232 if { (ac_try="$ac_link"
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_link") 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5242 { (case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_try") 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5253 echo "$as_me: program exited with status $ac_status" >&5
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5258 ac_cv_header_stdc=no
5260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5268 if test $ac_cv_header_stdc = yes; then
5270 cat >>confdefs.h <<\_ACEOF
5271 #define STDC_HEADERS 1
5276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5287 inttypes.h stdint.h unistd.h
5289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5303 #include <$ac_header>
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compile") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
5322 eval "$as_ac_Header=yes"
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 eval "$as_ac_Header=no"
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 ac_res=`eval echo '${'$as_ac_Header'}'`
5333 { echo "$as_me:$LINENO: result: $ac_res" >&5
5334 echo "${ECHO_T}$ac_res" >&6; }
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5346 for ac_header in dlfcn.h
5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 ac_res=`eval echo '${'$as_ac_Header'}'`
5356 { echo "$as_me:$LINENO: result: $ac_res" >&5
5357 echo "${ECHO_T}$ac_res" >&6; }
5359 # Is the header compilable?
5360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 #include <$ac_header>
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_header_compiler=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_header_compiler=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5398 echo "${ECHO_T}$ac_header_compiler" >&6; }
5400 # Is the header present?
5401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <$ac_header>
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null && {
5424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5427 ac_header_preproc=yes
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_header_preproc=no
5435 rm -f conftest.err conftest.$ac_ext
5436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6; }
5439 # So? What about this header?
5440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5446 ac_header_preproc=yes
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5462 ## -------------------------------------------------- ##
5463 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5464 ## -------------------------------------------------- ##
5466 ) | sed "s/^/$as_me: WARNING: /" >&2
5469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 eval "$as_ac_Header=\$ac_header_preproc"
5476 ac_res=`eval echo '${'$as_ac_Header'}'`
5477 { echo "$as_me:$LINENO: result: $ac_res" >&5
5478 echo "${ECHO_T}$ac_res" >&6; }
5481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 ac_cpp='$CXXCPP $CPPFLAGS'
5492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5495 if test -z "$CXX"; then
5496 if test -n "$CCC"; then
5499 if test -n "$ac_tool_prefix"; then
5500 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_CXX+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 if test -n "$CXX"; then
5510 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 if test -n "$CXX"; then
5531 { echo "$as_me:$LINENO: result: $CXX" >&5
5532 echo "${ECHO_T}$CXX" >&6; }
5534 { echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6; }
5539 test -n "$CXX" && break
5542 if test -z "$CXX"; then
5544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 if test -n "$ac_ct_CXX"; then
5554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_CXX="$ac_prog"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5574 if test -n "$ac_ct_CXX"; then
5575 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5576 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5578 { echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6; }
5583 test -n "$ac_ct_CXX" && break
5586 if test "x$ac_ct_CXX" = x; then
5589 case $cross_compiling:$ac_tool_warned in
5591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5592 whose name does not start with the host triplet. If you think this
5593 configuration is useful to you, please write to autoconf@gnu.org." >&5
5594 echo "$as_me: 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." >&2;}
5597 ac_tool_warned=yes ;;
5605 # Provide some information about the compiler.
5606 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5607 ac_compiler=`set X $ac_compile; echo $2`
5608 { (ac_try="$ac_compiler --version >&5"
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compiler --version >&5") 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }
5618 { (ac_try="$ac_compiler -v >&5"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compiler -v >&5") 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }
5628 { (ac_try="$ac_compiler -V >&5"
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compiler -V >&5") 2>&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }
5639 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5640 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5641 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_cxx_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5691 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5692 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5693 GXX=`test $ac_compiler_gnu = yes && echo yes`
5694 ac_test_CXXFLAGS=${CXXFLAGS+set}
5695 ac_save_CXXFLAGS=$CXXFLAGS
5696 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5697 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_cxx_g+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5702 ac_cxx_werror_flag=yes
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_cxx_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_cv_prog_cxx_g=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_cxx_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 ac_cv_prog_cxx_g=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5831 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5832 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5833 if test "$ac_test_CXXFLAGS" = set; then
5834 CXXFLAGS=$ac_save_CXXFLAGS
5835 elif test $ac_cv_prog_cxx_g = yes; then
5836 if test "$GXX" = yes; then
5842 if test "$GXX" = yes; then
5849 ac_cpp='$CXXCPP $CPPFLAGS'
5850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5854 depcc="$CXX" am_compiler_list=
5856 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5857 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5858 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5862 # We make a subdir and do the tests there. Otherwise we can end up
5863 # making bogus files that we don't know about and never remove. For
5864 # instance it was reported that on HP-UX the gcc test will end up
5865 # making a dummy file named `D' -- because `-MD' means `put the output
5868 # Copy depcomp to subdir because otherwise we won't find it if we're
5869 # using a relative directory.
5870 cp "$am_depcomp" conftest.dir
5872 # We will build objects and dependencies in a subdirectory because
5873 # it helps to detect inapplicable dependency modes. For instance
5874 # both Tru64's cc and ICC support -MD to output dependencies as a
5875 # side effect of compilation, but ICC will put the dependencies in
5876 # the current directory while Tru64 will put them in the object
5880 am_cv_CXX_dependencies_compiler_type=none
5881 if test "$am_compiler_list" = ""; then
5882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5884 for depmode in $am_compiler_list; do
5885 # Setup a source with many dependencies, because some compilers
5886 # like to wrap large dependency lists on column 80 (with \), and
5887 # we should not choose a depcomp mode which is confused by this.
5889 # We need to recreate these files for each test, as the compiler may
5890 # overwrite some of them when testing with obscure command lines.
5891 # This happens at least with the AIX C compiler.
5893 for i in 1 2 3 4 5 6; do
5894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5896 # Solaris 8's {/usr,}/bin/sh.
5897 touch sub/conftst$i.h
5899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5903 # after this tag, mechanisms are not by side-effect, so they'll
5904 # only be used when explicitly requested
5905 if test "x$enable_dependency_tracking" = xyes; then
5913 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5914 # mode. It turns out that the SunPro C++ compiler does not properly
5915 # handle `-M -o', and we need to detect this.
5916 if depmode=$depmode \
5917 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5919 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5920 >/dev/null 2>conftest.err &&
5921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5922 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5924 # icc doesn't choke on unknown options, it will just issue warnings
5925 # or remarks (even with -Werror). So we grep stderr for any message
5926 # that says an option was ignored or not supported.
5927 # When given -MP, icc 7.0 and 7.1 complain thusly:
5928 # icc: Command line warning: ignoring option '-M'; no argument required
5929 # The diagnosis changed in icc 8.0:
5930 # icc: Command line remark: option '-MP' not supported
5931 if (grep 'ignoring option' conftest.err ||
5932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5933 am_cv_CXX_dependencies_compiler_type=$depmode
5942 am_cv_CXX_dependencies_compiler_type=none
5946 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5947 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5948 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5953 test "x$enable_dependency_tracking" != xno \
5954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5955 am__fastdepCXX_TRUE=
5956 am__fastdepCXX_FALSE='#'
5958 am__fastdepCXX_TRUE='#'
5959 am__fastdepCXX_FALSE=
5965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5966 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5967 (test "X$CXX" != "Xg++"))) ; then
5969 ac_cpp='$CXXCPP $CPPFLAGS'
5970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5973 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5974 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5975 if test -z "$CXXCPP"; then
5976 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 # Double quotes because CXXCPP needs to be expanded
5980 for CXXCPP in "$CXX -E" "/lib/cpp"
5983 for ac_cxx_preproc_warn_flag in '' yes
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 # include <limits.h>
6000 # include <assert.h>
6004 if { (ac_try="$ac_cpp conftest.$ac_ext"
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null && {
6017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6018 test ! -s conftest.err
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 # Broken: fails on valid input.
6029 rm -f conftest.err conftest.$ac_ext
6031 # OK, works on sane cases. Now check whether nonexistent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <ac_nonexistent.h>
6041 if { (ac_try="$ac_cpp conftest.$ac_ext"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null && {
6054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6057 # Broken: success on invalid input.
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 # Passes both tests.
6068 rm -f conftest.err conftest.$ac_ext
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; then
6078 ac_cv_prog_CXXCPP=$CXXCPP
6081 CXXCPP=$ac_cv_prog_CXXCPP
6083 ac_cv_prog_CXXCPP=$CXXCPP
6085 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6086 echo "${ECHO_T}$CXXCPP" >&6; }
6088 for ac_cxx_preproc_warn_flag in '' yes
6090 # Use a header file that comes with gcc, so configuring glibc
6091 # with a fresh cross-compiler works.
6092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093 # <limits.h> exists even on freestanding compilers.
6094 # On the NeXT, cc -E runs the code through the compiler's parser,
6095 # not just through cpp. "Syntax error" is here to catch this case.
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6103 # include <limits.h>
6105 # include <assert.h>
6109 if { (ac_try="$ac_cpp conftest.$ac_ext"
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6117 grep -v '^ *+' conftest.er1 >conftest.err
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } >/dev/null && {
6122 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6123 test ! -s conftest.err
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 # Broken: fails on valid input.
6134 rm -f conftest.err conftest.$ac_ext
6136 # OK, works on sane cases. Now check whether nonexistent headers
6137 # can be detected and how.
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <ac_nonexistent.h>
6146 if { (ac_try="$ac_cpp conftest.$ac_ext"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null && {
6159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6160 test ! -s conftest.err
6162 # Broken: success on invalid input.
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 # Passes both tests.
6173 rm -f conftest.err conftest.$ac_ext
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6181 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185 { (exit 1); exit 1; }; }
6189 ac_cpp='$CXXCPP $CPPFLAGS'
6190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6200 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6202 # find the maximum length of command line arguments
6203 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6204 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6205 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 # On DJGPP, this test can blow up pretty badly due to problems in libc
6214 # (any single argument exceeding 2000 bytes causes a buffer overrun
6215 # during glob expansion). Even if it were fixed, the result of this
6216 # check would be larger than it should be.
6217 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6221 # Under GNU Hurd, this test is not required because there is
6222 # no limit to the length of command line arguments.
6223 # Libtool will interpret -1 as no limit whatsoever
6224 lt_cv_sys_max_cmd_len=-1;
6228 # On Win9x/ME, this test blows up -- it succeeds, but takes
6229 # about 5 minutes as the teststring grows exponentially.
6230 # Worse, since 9x/ME are not pre-emptively multitasking,
6231 # you end up with a "frozen" computer, even though with patience
6232 # the test eventually succeeds (with a max line length of 256k).
6233 # Instead, let's just punt: use the minimum linelength reported by
6234 # all of the supported platforms: 8192 (on NT/2K/XP).
6235 lt_cv_sys_max_cmd_len=8192;
6239 # On AmigaOS with pdksh, this test takes hours, literally.
6240 # So we just punt and use a minimum line length of 8192.
6241 lt_cv_sys_max_cmd_len=8192;
6244 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6245 # This has been around since 386BSD, at least. Likely further.
6246 if test -x /sbin/sysctl; then
6247 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6248 elif test -x /usr/sbin/sysctl; then
6249 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6251 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6253 # And add a safety zone
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6259 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6260 lt_cv_sys_max_cmd_len=196608
6264 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6265 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6266 # nice to cause kernel panics so lets avoid the loop below.
6267 # First set a reasonable default.
6268 lt_cv_sys_max_cmd_len=16384
6270 if test -x /sbin/sysconfig; then
6271 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6272 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6277 lt_cv_sys_max_cmd_len=102400
6279 sysv5* | sco5v6* | sysv4.2uw2*)
6280 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6281 if test -n "$kargmax"; then
6282 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6284 lt_cv_sys_max_cmd_len=32768
6288 # If test is not a shell built-in, we'll probably end up computing a
6289 # maximum length that is only half of the actual maximum length, but
6291 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6292 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6293 = "XX$teststring") >/dev/null 2>&1 &&
6294 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6295 lt_cv_sys_max_cmd_len=$new_result &&
6296 test $i != 17 # 1/2 MB should be enough
6299 teststring=$teststring$teststring
6302 # Add a significant safety factor because C++ compilers can tack on massive
6303 # amounts of additional arguments before passing them to the linker.
6304 # It appears as though 1/2 is a usable value.
6305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6315 { echo "$as_me:$LINENO: result: none" >&5
6316 echo "${ECHO_T}none" >&6; }
6322 # Check for command to grab the raw symbol name followed by C symbol from nm.
6323 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6324 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6325 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 # These are sane defaults that work on at least a few old systems.
6330 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6332 # Character class describing NM global symbol codes.
6333 symcode='[BCDEGRST]'
6335 # Regexp to match symbols that can be accessed directly from C.
6336 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6338 # Transform an extracted symbol line into a proper C declaration
6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6341 # Transform an extracted symbol line into symbol name and symbol address
6342 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'"
6344 # Define system-specific variables.
6349 cygwin* | mingw* | pw32*)
6350 symcode='[ABCDGISTW]'
6352 hpux*) # Its linker distinguishes data from code symbols
6353 if test "$host_cpu" = ia64; then
6354 symcode='[ABCDEGRST]'
6356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6357 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'"
6359 linux* | k*bsd*-gnu)
6360 if test "$host_cpu" = ia64; then
6361 symcode='[ABCDGIRSTW]'
6362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6363 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'"
6367 symcode='[BCDEGRST]'
6370 symcode='[BCDEGQRST]'
6381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6389 # Handle CRLF in mingw tool chain
6393 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6397 # If we're using GNU nm, then use its standard symbol codes.
6398 case `$NM -V 2>&1` in
6399 *GNU* | *'with BFD'*)
6400 symcode='[ABCDGIRSTW]' ;;
6403 # Try without a prefix undercore, then with it.
6404 for ac_symprfx in "" "_"; do
6406 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6407 symxfrm="\\1 $ac_symprfx\\2 \\2"
6409 # Write the raw and C identifiers.
6410 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6412 # Check to see that the pipe works correctly.
6416 cat > conftest.$ac_ext <<EOF
6421 void nm_test_func(){}
6425 int main(){nm_test_var='a';nm_test_func();return(0);}
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; then
6433 # Now try to grab the symbols.
6435 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6436 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && test -s "$nlist"; then
6440 # Try sorting and uniquifying the output.
6441 if sort "$nlist" | uniq > "$nlist"T; then
6442 mv -f "$nlist"T "$nlist"
6447 # Make sure that we snagged all the symbols we need.
6448 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6449 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6450 cat <<EOF > conftest.$ac_ext
6456 # Now generate the symbol file.
6457 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6459 cat <<EOF >> conftest.$ac_ext
6460 #if defined (__STDC__) && __STDC__
6461 # define lt_ptr_t void *
6463 # define lt_ptr_t char *
6467 /* The mapping between symbol names and symbols. */
6472 lt_preloaded_symbols[] =
6475 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6476 cat <<\EOF >> conftest.$ac_ext
6484 # Now try linking the two files.
6485 mv conftest.$ac_objext conftstm.$ac_objext
6486 lt_save_LIBS="$LIBS"
6487 lt_save_CFLAGS="$CFLAGS"
6488 LIBS="conftstm.$ac_objext"
6489 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6497 LIBS="$lt_save_LIBS"
6498 CFLAGS="$lt_save_CFLAGS"
6500 echo "cannot find nm_test_func in $nlist" >&5
6503 echo "cannot find nm_test_var in $nlist" >&5
6506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509 echo "$progname: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 rm -f conftest* conftst*
6514 # Do not use the global_symbol_pipe unless it works.
6515 if test "$pipe_works" = yes; then
6518 lt_cv_sys_global_symbol_pipe=
6524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6525 lt_cv_sys_global_symbol_to_cdecl=
6527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6528 { echo "$as_me:$LINENO: result: failed" >&5
6529 echo "${ECHO_T}failed" >&6; }
6531 { echo "$as_me:$LINENO: result: ok" >&5
6532 echo "${ECHO_T}ok" >&6; }
6535 { echo "$as_me:$LINENO: checking for objdir" >&5
6536 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6537 if test "${lt_cv_objdir+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 rm -f .libs 2>/dev/null
6541 mkdir .libs 2>/dev/null
6542 if test -d .libs; then
6545 # MS-DOS does not allow filenames that begin with a dot.
6548 rmdir .libs 2>/dev/null
6550 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6551 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6552 objdir=$lt_cv_objdir
6560 # AIX sometimes has problems with the GCC collect2 program. For some
6561 # reason, if we set the COLLECT_NAMES environment variable, the problems
6562 # vanish in a puff of smoke.
6563 if test "X${COLLECT_NAMES+set}" != Xset; then
6565 export COLLECT_NAMES
6570 # Sed substitution that helps us do robust quoting. It backslashifies
6571 # metacharacters that are still active within double-quoted strings.
6572 Xsed='sed -e 1s/^X//'
6573 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6575 # Same as above, but do not quote variable references.
6576 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6578 # Sed substitution to delay expansion of an escaped shell variable in a
6579 # double_quote_subst'ed string.
6580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6582 # Sed substitution to avoid accidental globbing in evaled expressions
6583 no_glob_subst='s/\*/\\\*/g'
6589 default_ofile=libtool
6590 can_build_shared=yes
6592 # All known linkers require a `.a' archive for static linking (except MSVC,
6593 # which needs '.lib').
6595 ltmain="$ac_aux_dir/ltmain.sh"
6596 ofile="$default_ofile"
6597 with_gnu_ld="$lt_cv_prog_gnu_ld"
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}ar; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_AR+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 if test -n "$AR"; then
6608 ac_cv_prog_AR="$AR" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_AR="${ac_tool_prefix}ar"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 if test -n "$AR"; then
6629 { echo "$as_me:$LINENO: result: $AR" >&5
6630 echo "${ECHO_T}$AR" >&6; }
6632 { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6638 if test -z "$ac_cv_prog_AR"; then
6640 # Extract the first word of "ar", so it can be a program name with args.
6641 set dummy ar; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 if test -n "$ac_ct_AR"; then
6648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_AR="ar"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6668 if test -n "$ac_ct_AR"; then
6669 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6670 echo "${ECHO_T}$ac_ct_AR" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6676 if test "x$ac_ct_AR" = x; then
6679 case $cross_compiling:$ac_tool_warned in
6681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6682 whose name does not start with the host triplet. If you think this
6683 configuration is useful to you, please write to autoconf@gnu.org." >&5
6684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6685 whose name does not start with the host triplet. If you think this
6686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6687 ac_tool_warned=yes ;;
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_RANLIB+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 if test -n "$RANLIB"; then
6704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 RANLIB=$ac_cv_prog_RANLIB
6724 if test -n "$RANLIB"; then
6725 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6726 echo "${ECHO_T}$RANLIB" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6734 if test -z "$ac_cv_prog_RANLIB"; then
6735 ac_ct_RANLIB=$RANLIB
6736 # Extract the first word of "ranlib", so it can be a program name with args.
6737 set dummy ranlib; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 if test -n "$ac_ct_RANLIB"; then
6744 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_ac_ct_RANLIB="ranlib"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6764 if test -n "$ac_ct_RANLIB"; then
6765 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6766 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6772 if test "x$ac_ct_RANLIB" = x; then
6775 case $cross_compiling:$ac_tool_warned in
6777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6778 whose name does not start with the host triplet. If you think this
6779 configuration is useful to you, please write to autoconf@gnu.org." >&5
6780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6781 whose name does not start with the host triplet. If you think this
6782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6783 ac_tool_warned=yes ;;
6785 RANLIB=$ac_ct_RANLIB
6788 RANLIB="$ac_cv_prog_RANLIB"
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}strip; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_STRIP+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 if test -n "$STRIP"; then
6800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 STRIP=$ac_cv_prog_STRIP
6820 if test -n "$STRIP"; then
6821 { echo "$as_me:$LINENO: result: $STRIP" >&5
6822 echo "${ECHO_T}$STRIP" >&6; }
6824 { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6830 if test -z "$ac_cv_prog_STRIP"; then
6832 # Extract the first word of "strip", so it can be a program name with args.
6833 set dummy strip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 if test -n "$ac_ct_STRIP"; then
6840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_ac_ct_STRIP="strip"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6860 if test -n "$ac_ct_STRIP"; then
6861 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6862 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6868 if test "x$ac_ct_STRIP" = x; then
6871 case $cross_compiling:$ac_tool_warned in
6873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6874 whose name does not start with the host triplet. If you think this
6875 configuration is useful to you, please write to autoconf@gnu.org." >&5
6876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6877 whose name does not start with the host triplet. If you think this
6878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6879 ac_tool_warned=yes ;;
6884 STRIP="$ac_cv_prog_STRIP"
6889 old_CFLAGS="$CFLAGS"
6891 # Set sane defaults for various variables
6892 test -z "$AR" && AR=ar
6893 test -z "$AR_FLAGS" && AR_FLAGS=cru
6894 test -z "$AS" && AS=as
6895 test -z "$CC" && CC=cc
6896 test -z "$LTCC" && LTCC=$CC
6897 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6898 test -z "$DLLTOOL" && DLLTOOL=dlltool
6899 test -z "$LD" && LD=ld
6900 test -z "$LN_S" && LN_S="ln -s"
6901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6902 test -z "$NM" && NM=nm
6903 test -z "$SED" && SED=sed
6904 test -z "$OBJDUMP" && OBJDUMP=objdump
6905 test -z "$RANLIB" && RANLIB=:
6906 test -z "$STRIP" && STRIP=:
6907 test -z "$ac_objext" && ac_objext=o
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6914 if test -n "$RANLIB"; then
6917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926 for cc_temp in $compiler""; do
6928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6937 # Only perform the check for file, if the check method requires it
6938 case $deplibs_check_method in
6940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6941 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6951 lt_save_MAGIC_CMD="$MAGIC_CMD"
6952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6954 for ac_dir in $ac_dummy; do
6956 test -z "$ac_dir" && ac_dir=.
6957 if test -f $ac_dir/${ac_tool_prefix}file; then
6958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6959 if test -n "$file_magic_test_file"; then
6960 case $deplibs_check_method in
6962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6965 $EGREP "$file_magic_regex" > /dev/null; then
6970 *** Warning: the command libtool uses to detect shared libraries,
6971 *** $file_magic_cmd, produces output that libtool cannot recognize.
6972 *** The result is that libtool may fail to recognize shared libraries
6973 *** as such. This will affect the creation of libtool libraries that
6974 *** depend on shared libraries, but programs linked with such libtool
6975 *** libraries will work regardless of this problem. Nevertheless, you
6976 *** may want to report the problem to your system manager and/or to
6977 *** bug-libtool@gnu.org
6987 MAGIC_CMD="$lt_save_MAGIC_CMD"
6992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6993 if test -n "$MAGIC_CMD"; then
6994 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6995 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7001 if test -z "$lt_cv_path_MAGIC_CMD"; then
7002 if test -n "$ac_tool_prefix"; then
7003 { echo "$as_me:$LINENO: checking for file" >&5
7004 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013 lt_save_MAGIC_CMD="$MAGIC_CMD"
7014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7016 for ac_dir in $ac_dummy; do
7018 test -z "$ac_dir" && ac_dir=.
7019 if test -f $ac_dir/file; then
7020 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7021 if test -n "$file_magic_test_file"; then
7022 case $deplibs_check_method in
7024 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7027 $EGREP "$file_magic_regex" > /dev/null; then
7032 *** Warning: the command libtool uses to detect shared libraries,
7033 *** $file_magic_cmd, produces output that libtool cannot recognize.
7034 *** The result is that libtool may fail to recognize shared libraries
7035 *** as such. This will affect the creation of libtool libraries that
7036 *** depend on shared libraries, but programs linked with such libtool
7037 *** libraries will work regardless of this problem. Nevertheless, you
7038 *** may want to report the problem to your system manager and/or to
7039 *** bug-libtool@gnu.org
7049 MAGIC_CMD="$lt_save_MAGIC_CMD"
7054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7055 if test -n "$MAGIC_CMD"; then
7056 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7057 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7073 enable_win32_dll=yes
7075 # Check whether --enable-libtool-lock was given.
7076 if test "${enable_libtool_lock+set}" = set; then
7077 enableval=$enable_libtool_lock;
7080 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7083 # Check whether --with-pic was given.
7084 if test "${with_pic+set}" = set; then
7085 withval=$with_pic; pic_mode="$withval"
7090 test -z "$pic_mode" && pic_mode=default
7092 # Use C for the default configuration in the libtool script
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102 # Source file extension for C test sources.
7105 # Object file extension for compiled C test sources.
7109 # Code to be used in simple compile tests
7110 lt_simple_compile_test_code="int some_variable = 0;\n"
7112 # Code to be used in simple link tests
7113 lt_simple_link_test_code='int main(){return(0);}\n'
7116 # If no C compiler was specified, use CC.
7119 # If no C compiler flags were specified, use CFLAGS.
7120 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7122 # Allow CC to be a program name with arguments.
7126 # save warnings/boilerplate of simple test code
7127 ac_outfile=conftest.$ac_objext
7128 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7130 _lt_compiler_boilerplate=`cat conftest.err`
7133 ac_outfile=conftest.$ac_objext
7134 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7136 _lt_linker_boilerplate=`cat conftest.err`
7141 lt_prog_compiler_no_builtin_flag=
7143 if test "$GCC" = yes; then
7144 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7147 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7148 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7149 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 lt_cv_prog_compiler_rtti_exceptions=no
7153 ac_outfile=conftest.$ac_objext
7154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7155 lt_compiler_flag="-fno-rtti -fno-exceptions"
7156 # Insert the option either (1) after the last *FLAGS variable, or
7157 # (2) before a word containing "conftest.", or (3) at the end.
7158 # Note that $ac_compile itself does not contain backslashes and begins
7159 # with a dollar sign (not a hyphen), so the echo should work correctly.
7160 # The option is referenced via a variable to avoid confusing sed.
7161 lt_compile=`echo "$ac_compile" | $SED \
7162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164 -e 's:$: $lt_compiler_flag:'`
7165 (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7166 (eval "$lt_compile" 2>conftest.err)
7168 cat conftest.err >&5
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 if (exit $ac_status) && test -s "$ac_outfile"; then
7171 # The compiler can only warn and ignore the option if not recognized
7172 # So say no if there are warnings other than the usual output.
7173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7176 lt_cv_prog_compiler_rtti_exceptions=yes
7182 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7183 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7185 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7186 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7193 lt_prog_compiler_wl=
7194 lt_prog_compiler_pic=
7195 lt_prog_compiler_static=
7197 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7200 if test "$GCC" = yes; then
7201 lt_prog_compiler_wl='-Wl,'
7202 lt_prog_compiler_static='-static'
7206 # All AIX code is PIC.
7207 if test "$host_cpu" = ia64; then
7208 # AIX 5 now supports IA64 processor
7209 lt_prog_compiler_static='-Bstatic'
7214 # FIXME: we need at least 68020 code to build shared libraries, but
7215 # adding the `-m68020' flag to GCC prevents building anything better,
7217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7220 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7221 # PIC is the default for these OSes.
7224 mingw* | pw32* | os2*)
7225 # This hack is so that the source file can tell whether it is being
7226 # built for inclusion in a dll (and should export symbols for example).
7227 lt_prog_compiler_pic='-DDLL_EXPORT'
7230 darwin* | rhapsody*)
7231 # PIC is the default on this platform
7232 # Common symbols not allowed in MH_DYLIB files
7233 lt_prog_compiler_pic='-fno-common'
7237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7238 # Instead, we relocate shared libraries at runtime.
7242 # Just because we use GCC doesn't mean we suddenly get shared libraries
7243 # on systems that don't support them.
7244 lt_prog_compiler_can_build_shared=no
7249 if test -d /usr/nec; then
7250 lt_prog_compiler_pic=-Kconform_pic
7255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7262 lt_prog_compiler_pic='-fPIC'
7268 lt_prog_compiler_pic='-fPIC'
7272 # PORTME Check for flag to pass linker flags through the system compiler.
7275 lt_prog_compiler_wl='-Wl,'
7276 if test "$host_cpu" = ia64; then
7277 # AIX 5 now supports IA64 processor
7278 lt_prog_compiler_static='-Bstatic'
7280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7284 # PIC is the default on this platform
7285 # Common symbols not allowed in MH_DYLIB files
7286 case $cc_basename in
7288 lt_prog_compiler_pic='-qnocommon'
7289 lt_prog_compiler_wl='-Wl,'
7294 mingw* | pw32* | os2*)
7295 # This hack is so that the source file can tell whether it is being
7296 # built for inclusion in a dll (and should export symbols for example).
7297 lt_prog_compiler_pic='-DDLL_EXPORT'
7300 hpux9* | hpux10* | hpux11*)
7301 lt_prog_compiler_wl='-Wl,'
7302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7309 lt_prog_compiler_pic='+Z'
7312 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7313 lt_prog_compiler_static='${wl}-a ${wl}archive'
7316 irix5* | irix6* | nonstopux*)
7317 lt_prog_compiler_wl='-Wl,'
7318 # PIC (with -KPIC) is the default.
7319 lt_prog_compiler_static='-non_shared'
7323 lt_prog_compiler_pic='-KPIC'
7324 lt_prog_compiler_static='-Bstatic'
7327 linux* | k*bsd*-gnu)
7328 case $cc_basename in
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_pic='-KPIC'
7332 lt_prog_compiler_static='-static'
7334 pgcc* | pgf77* | pgf90* | pgf95*)
7335 # Portland Group compilers (*not* the Pentium gcc compiler,
7336 # which looks to be a dead project)
7337 lt_prog_compiler_wl='-Wl,'
7338 lt_prog_compiler_pic='-fpic'
7339 lt_prog_compiler_static='-Bstatic'
7342 lt_prog_compiler_wl='-Wl,'
7343 # All Alpha code is PIC.
7344 lt_prog_compiler_static='-non_shared'
7349 osf3* | osf4* | osf5*)
7350 lt_prog_compiler_wl='-Wl,'
7351 # All OSF/1 code is PIC.
7352 lt_prog_compiler_static='-non_shared'
7356 lt_prog_compiler_pic='-KPIC'
7357 lt_prog_compiler_static='-Bstatic'
7358 case $cc_basename in
7360 lt_prog_compiler_wl='-Qoption ld ';;
7362 lt_prog_compiler_wl='-Wl,';;
7367 lt_prog_compiler_wl='-Qoption ld '
7368 lt_prog_compiler_pic='-PIC'
7369 lt_prog_compiler_static='-Bstatic'
7372 sysv4 | sysv4.2uw2* | sysv4.3*)
7373 lt_prog_compiler_wl='-Wl,'
7374 lt_prog_compiler_pic='-KPIC'
7375 lt_prog_compiler_static='-Bstatic'
7379 if test -d /usr/nec ;then
7380 lt_prog_compiler_pic='-Kconform_pic'
7381 lt_prog_compiler_static='-Bstatic'
7385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7386 lt_prog_compiler_wl='-Wl,'
7387 lt_prog_compiler_pic='-KPIC'
7388 lt_prog_compiler_static='-Bstatic'
7392 lt_prog_compiler_wl='-Wl,'
7393 lt_prog_compiler_can_build_shared=no
7397 lt_prog_compiler_pic='-pic'
7398 lt_prog_compiler_static='-Bstatic'
7402 lt_prog_compiler_can_build_shared=no
7407 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7408 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7411 # Check to make sure the PIC flag actually works.
7413 if test -n "$lt_prog_compiler_pic"; then
7415 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7416 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7417 if test "${lt_prog_compiler_pic_works+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 lt_prog_compiler_pic_works=no
7421 ac_outfile=conftest.$ac_objext
7422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7423 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7424 # Insert the option either (1) after the last *FLAGS variable, or
7425 # (2) before a word containing "conftest.", or (3) at the end.
7426 # Note that $ac_compile itself does not contain backslashes and begins
7427 # with a dollar sign (not a hyphen), so the echo should work correctly.
7428 # The option is referenced via a variable to avoid confusing sed.
7429 lt_compile=`echo "$ac_compile" | $SED \
7430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7432 -e 's:$: $lt_compiler_flag:'`
7433 (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
7434 (eval "$lt_compile" 2>conftest.err)
7436 cat conftest.err >&5
7437 echo "$as_me:7437: \$? = $ac_status" >&5
7438 if (exit $ac_status) && test -s "$ac_outfile"; then
7439 # The compiler can only warn and ignore the option if not recognized
7440 # So say no if there are warnings other than the usual output.
7441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7444 lt_prog_compiler_pic_works=yes
7450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7451 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7453 if test x"$lt_prog_compiler_pic_works" = xyes; then
7454 case $lt_prog_compiler_pic in
7456 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459 lt_prog_compiler_pic=
7460 lt_prog_compiler_can_build_shared=no
7465 # For platforms which do not support PIC, -DPIC is meaningless:
7467 lt_prog_compiler_pic=
7470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7475 # Check to make sure the static flag actually works.
7477 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7478 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7479 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7480 if test "${lt_prog_compiler_static_works+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 lt_prog_compiler_static_works=no
7484 save_LDFLAGS="$LDFLAGS"
7485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7486 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7488 # The linker can only warn and ignore the option if not recognized
7489 # So say no if there are warnings
7490 if test -s conftest.err; then
7491 # Append any errors to the config.log.
7492 cat conftest.err 1>&5
7493 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7495 if diff conftest.exp conftest.er2 >/dev/null; then
7496 lt_prog_compiler_static_works=yes
7499 lt_prog_compiler_static_works=yes
7503 LDFLAGS="$save_LDFLAGS"
7506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7507 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7509 if test x"$lt_prog_compiler_static_works" = xyes; then
7512 lt_prog_compiler_static=
7516 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7517 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7518 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 lt_cv_prog_compiler_c_o=no
7522 $rm -r conftest 2>/dev/null
7526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7528 lt_compiler_flag="-o out/conftest2.$ac_objext"
7529 # Insert the option either (1) after the last *FLAGS variable, or
7530 # (2) before a word containing "conftest.", or (3) at the end.
7531 # Note that $ac_compile itself does not contain backslashes and begins
7532 # with a dollar sign (not a hyphen), so the echo should work correctly.
7533 lt_compile=`echo "$ac_compile" | $SED \
7534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7536 -e 's:$: $lt_compiler_flag:'`
7537 (eval echo "\"\$as_me:7537: $lt_compile\"" >&5)
7538 (eval "$lt_compile" 2>out/conftest.err)
7540 cat out/conftest.err >&5
7541 echo "$as_me:7541: \$? = $ac_status" >&5
7542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7544 # The compiler can only warn and ignore the option if not recognized
7545 # So say no if there are warnings
7546 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7549 lt_cv_prog_compiler_c_o=yes
7554 # SGI C++ compiler will create directory out/ii_files/ for
7555 # template instantiation
7556 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7557 $rm out/* && rmdir out
7563 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7564 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7567 hard_links="nottested"
7568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7569 # do not overwrite the value of need_locks provided by the user
7570 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7571 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7576 ln conftest.a conftest.b 2>&5 || hard_links=no
7577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7578 { echo "$as_me:$LINENO: result: $hard_links" >&5
7579 echo "${ECHO_T}$hard_links" >&6; }
7580 if test "$hard_links" = no; then
7581 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7582 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7589 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7593 allow_undefined_flag=
7594 enable_shared_with_static_runtimes=no
7596 archive_expsym_cmds=
7597 old_archive_From_new_cmds=
7598 old_archive_from_expsyms_cmds=
7599 export_dynamic_flag_spec=
7600 whole_archive_flag_spec=
7601 thread_safe_flag_spec=
7602 hardcode_libdir_flag_spec=
7603 hardcode_libdir_flag_spec_ld=
7604 hardcode_libdir_separator=
7607 hardcode_shlibpath_var=unsupported
7608 link_all_deplibs=unknown
7609 hardcode_automatic=no
7612 always_export_symbols=no
7613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7614 # include_expsyms should be a list of space-separated symbols to be *always*
7615 # included in the symbol list
7617 # exclude_expsyms can be an extended regexp of symbols to exclude
7618 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7619 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7620 # as well as any symbol that contains `d'.
7621 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7622 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7623 # platforms (ab)use it in PIC code, but their linkers get confused if
7624 # the symbol is explicitly referenced. Since portable code cannot
7625 # rely on this symbol name, it's probably fine to never include it in
7626 # preloaded symbol tables.
7627 extract_expsyms_cmds=
7628 # Just being paranoid about ensuring that cc_basename is set.
7629 for cc_temp in $compiler""; do
7631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7640 cygwin* | mingw* | pw32*)
7641 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7642 # When not using gcc, we currently assume that we are using
7643 # Microsoft Visual C++.
7644 if test "$GCC" != yes; then
7649 # we just hope/assume this is gcc and not c89 (= MSVC++)
7658 if test "$with_gnu_ld" = yes; then
7659 # If archive_cmds runs LD, not CC, wlarc should be empty
7662 # Set some defaults for GNU ld with shared library support. These
7663 # are reset later if shared libraries are not supported. Putting them
7664 # here allows them to be overridden if necessary.
7665 runpath_var=LD_RUN_PATH
7666 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7667 export_dynamic_flag_spec='${wl}--export-dynamic'
7668 # ancient GNU ld didn't support --whole-archive et. al.
7669 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7670 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7672 whole_archive_flag_spec=
7674 supports_anon_versioning=no
7675 case `$LD -v 2>/dev/null` in
7676 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7679 *\ 2.11.*) ;; # other 2.11 versions
7680 *) supports_anon_versioning=yes ;;
7683 # See if GNU ld supports shared libraries.
7685 aix3* | aix4* | aix5*)
7686 # On AIX/PPC, the GNU linker is very broken
7687 if test "$host_cpu" != ia64; then
7691 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7692 *** to be unable to reliably create shared libraries on AIX.
7693 *** Therefore, libtool is disabling shared libraries support. If you
7694 *** really care for shared libraries, you may want to modify your PATH
7695 *** so that a non-GNU linker is found, and then restart.
7702 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)'
7703 hardcode_libdir_flag_spec='-L$libdir'
7704 hardcode_minus_L=yes
7706 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7707 # that the semantics of dynamic libraries on AmigaOS, at least up
7708 # to version 4, is to share data among multiple programs linked
7709 # with the same dynamic library. Since this doesn't match the
7710 # behavior of shared libraries on other platforms, we can't use
7716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7717 allow_undefined_flag=unsupported
7718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7719 # support --undefined. This deserves some investigation. FIXME
7720 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7726 cygwin* | mingw* | pw32*)
7727 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7728 # as there is no search path for DLLs.
7729 hardcode_libdir_flag_spec='-L$libdir'
7730 allow_undefined_flag=unsupported
7731 always_export_symbols=no
7732 enable_shared_with_static_runtimes=yes
7733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7735 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7737 # If the export-symbols file already is a .def file (1st line
7738 # is EXPORTS), use it as is; otherwise, prepend...
7739 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7740 cp $export_symbols $output_objdir/$soname.def;
7742 echo EXPORTS > $output_objdir/$soname.def;
7743 cat $export_symbols >> $output_objdir/$soname.def;
7745 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7753 hardcode_shlibpath_var=no
7754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7755 export_dynamic_flag_spec='${wl}-E'
7756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7757 # Instead, shared libraries are loaded at an image base (0x10000000 by
7758 # default) and relocated if they conflict, which is a slow very memory
7759 # consuming and fragmenting process. To avoid this, we pick a random,
7760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7763 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'
7766 linux* | k*bsd*-gnu)
7767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769 case $cc_basename,$host_cpu in
7770 pgcc*) # Portland Group C compiler
7771 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'
7772 tmp_addflag=' $pic_flag'
7774 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7775 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'
7776 tmp_addflag=' $pic_flag -Mnomain' ;;
7777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7778 tmp_addflag=' -i_dynamic' ;;
7779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7780 tmp_addflag=' -i_dynamic -nofor_main' ;;
7781 ifc* | ifort*) # Intel Fortran compiler
7782 tmp_addflag=' -nofor_main' ;;
7784 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7786 if test $supports_anon_versioning = yes; then
7787 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7789 $echo "local: *; };" >> $output_objdir/$libname.ver~
7790 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7798 netbsd* | netbsdelf*-gnu)
7799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7800 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7809 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7813 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7814 *** create shared libraries on Solaris systems. Therefore, libtool
7815 *** is disabling shared libraries support. We urge you to upgrade GNU
7816 *** binutils to release 2.9.1 or newer. Another option is to modify
7817 *** your PATH or compiler configuration so that the native linker is
7818 *** used, and then restart.
7821 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7830 case `$LD -v 2>&1` in
7831 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7835 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7836 *** reliably create shared libraries on SCO systems. Therefore, libtool
7837 *** is disabling shared libraries support. We urge you to upgrade GNU
7838 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7839 *** your PATH or compiler configuration so that the native linker is
7840 *** used, and then restart.
7845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7846 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7857 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7860 hardcode_shlibpath_var=no
7864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873 if test "$ld_shlibs" = no; then
7875 hardcode_libdir_flag_spec=
7876 export_dynamic_flag_spec=
7877 whole_archive_flag_spec=
7880 # PORTME fill in a description of your system's linker (not GNU ld)
7883 allow_undefined_flag=unsupported
7884 always_export_symbols=yes
7885 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'
7886 # Note: this linker hardcodes the directories in LIBPATH if there
7887 # are no directories specified by -L.
7888 hardcode_minus_L=yes
7889 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7890 # Neither direct hardcoding nor static linking is supported with a
7892 hardcode_direct=unsupported
7897 if test "$host_cpu" = ia64; then
7898 # On IA64, the linker does run time linking by default, so we don't
7899 # have to do anything special.
7900 aix_use_runtimelinking=no
7901 exp_sym_flag='-Bexport'
7904 # If we're using GNU nm, then we don't want the "-C" option.
7905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7906 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7907 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'
7909 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'
7911 aix_use_runtimelinking=no
7913 # Test if we are trying to use run time linking or normal
7914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7915 # need to do runtime linking.
7916 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7917 for ld_flag in $LDFLAGS; do
7918 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7919 aix_use_runtimelinking=yes
7926 exp_sym_flag='-bexport'
7927 no_entry_flag='-bnoentry'
7930 # When large executables or shared objects are built, AIX ld can
7931 # have problems creating the table of contents. If linking a library
7932 # or program results in "error TOC overflow" add -mminimal-toc to
7933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7938 hardcode_libdir_separator=':'
7939 link_all_deplibs=yes
7941 if test "$GCC" = yes; then
7942 case $host_os in aix4.[012]|aix4.[012].*)
7943 # We only want to do this on AIX 4.2 and lower, the check
7944 # below for broken collect2 doesn't work under 4.3+
7945 collect2name=`${CC} -print-prog-name=collect2`
7946 if test -f "$collect2name" && \
7947 strings "$collect2name" | grep resolve_lib_name >/dev/null
7949 # We have reworked collect2
7952 # We have old collect2
7953 hardcode_direct=unsupported
7954 # It fails to find uninstalled libraries when the uninstalled
7955 # path is not listed in the libpath. Setting hardcode_minus_L
7956 # to unsupported forces relinking
7957 hardcode_minus_L=yes
7958 hardcode_libdir_flag_spec='-L$libdir'
7959 hardcode_libdir_separator=
7963 shared_flag='-shared'
7964 if test "$aix_use_runtimelinking" = yes; then
7965 shared_flag="$shared_flag "'${wl}-G'
7969 if test "$host_cpu" = ia64; then
7970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971 # chokes on -Wl,-G. The following line is correct:
7974 if test "$aix_use_runtimelinking" = yes; then
7975 shared_flag='${wl}-G'
7977 shared_flag='${wl}-bM:SRE'
7982 # It seems that -bexpall does not export symbols beginning with
7983 # underscore (_), so it is better to generate a list of symbols to export.
7984 always_export_symbols=yes
7985 if test "$aix_use_runtimelinking" = yes; then
7986 # Warning - without using the other runtime loading flags (-brtl),
7987 # -berok will link without error, but may produce a broken library.
7988 allow_undefined_flag='-berok'
7989 # Determine the default libpath from the value encoded in an empty executable.
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_link") 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest$ac_exeext &&
8022 $as_test_x conftest$ac_exeext; then
8024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8026 # Check for a 64-bit object if we didn't find anything.
8027 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; }
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8037 conftest$ac_exeext conftest.$ac_ext
8038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8040 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8041 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"
8043 if test "$host_cpu" = ia64; then
8044 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8045 allow_undefined_flag="-z nodefs"
8046 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"
8048 # Determine the default libpath from the value encoded in an empty executable.
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8085 # Check for a 64-bit object if we didn't find anything.
8086 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; }
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096 conftest$ac_exeext conftest.$ac_ext
8097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8100 # Warning - without using the other run time loading flags,
8101 # -berok will link without error, but may produce a broken library.
8102 no_undefined_flag=' ${wl}-bernotok'
8103 allow_undefined_flag=' ${wl}-berok'
8104 # Exported symbols can be pulled into shared objects from archives
8105 whole_archive_flag_spec='$convenience'
8106 archive_cmds_need_lc=yes
8107 # This is similar to how AIX traditionally builds its shared libraries.
8108 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'
8114 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)'
8115 hardcode_libdir_flag_spec='-L$libdir'
8116 hardcode_minus_L=yes
8117 # see comment about different semantics on the GNU ld section
8122 export_dynamic_flag_spec=-rdynamic
8125 cygwin* | mingw* | pw32*)
8126 # When not using gcc, we currently assume that we are using
8127 # Microsoft Visual C++.
8128 # hardcode_libdir_flag_spec is actually meaningless, as there is
8129 # no search path for DLLs.
8130 hardcode_libdir_flag_spec=' '
8131 allow_undefined_flag=unsupported
8132 # Tell ltmain to make .lib files, not .a files.
8134 # Tell ltmain to make .dll files, not .so files.
8136 # FIXME: Setting linknames here is a bad hack.
8137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8138 # The linker will automatically build a .lib file if we build a DLL.
8139 old_archive_From_new_cmds='true'
8140 # FIXME: Should let the user specify the lib program.
8141 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8142 fix_srcfile_path='`cygpath -w "$srcfile"`'
8143 enable_shared_with_static_runtimes=yes
8146 darwin* | rhapsody*)
8148 rhapsody* | darwin1.[012])
8149 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8153 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155 case ${MACOSX_DEPLOYMENT_TARGET} in
8157 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8160 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8166 archive_cmds_need_lc=no
8168 hardcode_automatic=yes
8169 hardcode_shlibpath_var=unsupported
8170 whole_archive_flag_spec=''
8171 link_all_deplibs=yes
8172 if test "$GCC" = yes ; then
8173 output_verbose_link_cmd='echo'
8174 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8175 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8176 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8177 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}'
8178 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}'
8180 case $cc_basename in
8182 output_verbose_link_cmd='echo'
8183 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8184 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8186 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}'
8187 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}'
8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_shlibpath_var=no
8206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8207 # support. Future versions do this automatically, but an explicit c++rt0.o
8208 # does not break anything, and helps significantly (at the cost of a little
8211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8212 hardcode_libdir_flag_spec='-R$libdir'
8214 hardcode_shlibpath_var=no
8217 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8221 hardcode_minus_L=yes
8222 hardcode_shlibpath_var=no
8225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8226 freebsd* | dragonfly*)
8227 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8228 hardcode_libdir_flag_spec='-R$libdir'
8230 hardcode_shlibpath_var=no
8234 if test "$GCC" = yes; then
8235 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'
8237 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'
8239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8240 hardcode_libdir_separator=:
8243 # hardcode_minus_L: Not really in the search PATH,
8244 # but as the default location of the library.
8245 hardcode_minus_L=yes
8246 export_dynamic_flag_spec='${wl}-E'
8250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8255 if test "$with_gnu_ld" = no; then
8256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8257 hardcode_libdir_separator=:
8260 export_dynamic_flag_spec='${wl}-E'
8262 # hardcode_minus_L: Not really in the search PATH,
8263 # but as the default location of the library.
8264 hardcode_minus_L=yes
8269 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8272 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8294 if test "$with_gnu_ld" = no; then
8295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8296 hardcode_libdir_separator=:
8300 hardcode_libdir_flag_spec_ld='+b $libdir'
8302 hardcode_shlibpath_var=no
8306 export_dynamic_flag_spec='${wl}-E'
8308 # hardcode_minus_L: Not really in the search PATH,
8309 # but as the default location of the library.
8310 hardcode_minus_L=yes
8316 irix5* | irix6* | nonstopux*)
8317 if test "$GCC" = yes; then
8318 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'
8320 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'
8321 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 hardcode_libdir_separator=:
8325 link_all_deplibs=yes
8328 netbsd* | netbsdelf*-gnu)
8329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8334 hardcode_libdir_flag_spec='-R$libdir'
8336 hardcode_shlibpath_var=no
8340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343 hardcode_libdir_separator=:
8344 hardcode_shlibpath_var=no
8349 hardcode_shlibpath_var=no
8350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354 export_dynamic_flag_spec='${wl}-E'
8357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-R$libdir'
8362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_minus_L=yes
8372 allow_undefined_flag=unsupported
8373 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'
8374 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8378 if test "$GCC" = yes; then
8379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8382 allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 hardcode_libdir_separator=:
8389 osf4* | osf5*) # as osf3* with the addition of -msym flag
8390 if test "$GCC" = yes; then
8391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8392 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'
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 allow_undefined_flag=' -expect_unresolved \*'
8396 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'
8397 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8398 $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'
8400 # Both c and cxx compiler support -rpath directly
8401 hardcode_libdir_flag_spec='-rpath $libdir'
8403 hardcode_libdir_separator=:
8407 no_undefined_flag=' -z text'
8408 if test "$GCC" = yes; then
8410 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8412 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8419 hardcode_libdir_flag_spec='-R$libdir'
8420 hardcode_shlibpath_var=no
8422 solaris2.[0-5] | solaris2.[0-5].*) ;;
8424 # The compiler driver will combine linker options so we
8425 # cannot just pass the convience library names through
8426 # without $wl, iff we do not link with $LD.
8427 # Luckily, gcc supports the same syntax we need for Sun Studio.
8428 # Supported since Solaris 2.6 (maybe 2.5.1?)
8431 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8433 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' ;;
8436 link_all_deplibs=yes
8440 if test "x$host_vendor" = xsequent; then
8441 # Use $CC to link under sequent, because it throws in some extra .o
8442 # files that make .init and .fini sections work.
8443 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_minus_L=yes
8450 hardcode_shlibpath_var=no
8454 case $host_vendor in
8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_direct=yes # is this really true???
8460 ## LD is ld it makes a PLAMLIB
8461 ## CC just makes a GrossModule.
8462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8463 reload_cmds='$CC -r -o $output$reload_objs'
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8471 runpath_var='LD_RUN_PATH'
8472 hardcode_shlibpath_var=no
8476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_shlibpath_var=no
8478 export_dynamic_flag_spec='-Bexport'
8482 if test -d /usr/nec; then
8483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484 hardcode_shlibpath_var=no
8485 runpath_var=LD_RUN_PATH
8486 hardcode_runpath_var=yes
8491 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8492 no_undefined_flag='${wl}-z,text'
8493 archive_cmds_need_lc=no
8494 hardcode_shlibpath_var=no
8495 runpath_var='LD_RUN_PATH'
8497 if test "$GCC" = yes; then
8498 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8501 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 sysv5* | sco3.2v5* | sco5v6*)
8507 # Note: We can NOT use -z defs as we might desire, because we do not
8508 # link with -lc, and that would cause any symbols used from libc to
8509 # always be unresolved, which means just about no library would
8510 # ever link correctly. If we're not using GNU ld we use -z text
8511 # though, which does catch some bad symbols but isn't as heavy-handed
8513 no_undefined_flag='${wl}-z,text'
8514 allow_undefined_flag='${wl}-z,nodefs'
8515 archive_cmds_need_lc=no
8516 hardcode_shlibpath_var=no
8517 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8518 hardcode_libdir_separator=':'
8519 link_all_deplibs=yes
8520 export_dynamic_flag_spec='${wl}-Bexport'
8521 runpath_var='LD_RUN_PATH'
8523 if test "$GCC" = yes; then
8524 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534 hardcode_libdir_flag_spec='-L$libdir'
8535 hardcode_shlibpath_var=no
8544 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8545 echo "${ECHO_T}$ld_shlibs" >&6; }
8546 test "$ld_shlibs" = no && can_build_shared=no
8549 # Do we need to explicitly link libc?
8551 case "x$archive_cmds_need_lc" in
8553 # Assume -lc should be added
8554 archive_cmds_need_lc=yes
8556 if test "$enable_shared" = yes && test "$GCC" = yes; then
8557 case $archive_cmds in
8559 # FIXME: we may have to deal with multi-command sequences.
8562 # Test whether the compiler implicitly links with -lc since on some
8563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8564 # to ld, don't add -lc before -lgcc.
8565 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571 (eval $ac_compile) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } 2>conftest.err; then
8577 libobjs=conftest.$ac_objext
8579 wl=$lt_prog_compiler_wl
8580 pic_flag=$lt_prog_compiler_pic
8586 lt_save_allow_undefined_flag=$allow_undefined_flag
8587 allow_undefined_flag=
8588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8589 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }
8594 archive_cmds_need_lc=no
8596 archive_cmds_need_lc=yes
8598 allow_undefined_flag=$lt_save_allow_undefined_flag
8600 cat conftest.err 1>&5
8603 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8604 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8614 libname_spec='lib$name'
8622 shlibpath_overrides_runpath=unknown
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 if test "$GCC" = yes; then
8627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629 # if the path contains ";" then we assume it to be the separator
8630 # otherwise default to the standard path separator (i.e. ":") - it is
8631 # assumed that no part of a normal pathname contains ";" but that should
8632 # okay in the real world where ";" in dirpaths is itself problematic.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8640 need_lib_prefix=unknown
8641 hardcode_into_libs=no
8643 # when you set need_version to no, make sure it does not cause -set_version
8644 # flags to be left without arguments
8645 need_version=unknown
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651 shlibpath_var=LIBPATH
8653 # AIX 3 has no versioning support, so we append a major version to the name.
8654 soname_spec='${libname}${release}${shared_ext}$major'
8661 hardcode_into_libs=yes
8662 if test "$host_cpu" = ia64; then
8663 # AIX 5 supports IA64
8664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665 shlibpath_var=LD_LIBRARY_PATH
8667 # With GCC up to 2.95.x, collect2 would create an import file
8668 # for dependence libraries. The import file would start with
8669 # the line `#! .'. This would cause the generated library to
8670 # depend on `.', always an invalid library. This was fixed in
8671 # development snapshots of GCC prior to 3.0.
8673 aix4 | aix4.[01] | aix4.[01].*)
8674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684 # soname into executable. Probably we can add versioning support to
8685 # collect2, so additional links can be useful in future.
8686 if test "$aix_use_runtimelinking" = yes; then
8687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688 # instead of lib<name>.a to let people know that these are not
8689 # typical AIX shared libraries.
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 # We preserve .a as extension for shared libraries through AIX4.2
8693 # and later when we are not doing run time linking.
8694 library_names_spec='${libname}${release}.a $libname.a'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LIBPATH
8702 library_names_spec='$libname.ixlibrary $libname.a'
8703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704 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'
8708 library_names_spec='${libname}${shared_ext}'
8709 dynamic_linker="$host_os ld.so"
8710 shlibpath_var=LIBRARY_PATH
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722 # the default ld.so.conf also contains /usr/contrib/lib and
8723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724 # libtool to hard-code these into programs
8727 cygwin* | mingw* | pw32*)
8728 version_type=windows
8733 case $GCC,$host_os in
8734 yes,cygwin* | yes,mingw* | yes,pw32*)
8735 library_names_spec='$libname.dll.a'
8736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737 postinstall_cmds='base_file=`basename \${file}`~
8738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739 dldir=$destdir/`dirname \$dlpath`~
8740 test -d \$dldir || mkdir -p \$dldir~
8741 $install_prog $dir/$dlname \$dldir/$dlname~
8742 chmod a+x \$dldir/$dlname'
8743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744 dlpath=$dir/\$dldll~
8746 shlibpath_overrides_runpath=yes
8750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8755 # MinGW DLLs use traditional 'lib' prefix
8756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759 # It is most probably a Windows format PATH printed by
8760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761 # path with ; separators, and with drive letters. We can handle the
8762 # drive letters (cygwin fileutils understands them), so leave them,
8763 # especially as we might pass files found there to a mingw objdump,
8764 # which wouldn't understand a cygwinified path. Ahh.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 # pw32 DLLs use 'pw' prefix rather than 'lib'
8772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8781 dynamic_linker='Win32 ld.exe'
8782 # FIXME: first we should search . and the directory the executable is in
8786 darwin* | rhapsody*)
8787 dynamic_linker="$host_os dyld"
8791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792 soname_spec='${libname}${release}${major}$shared_ext'
8793 shlibpath_overrides_runpath=yes
8794 shlibpath_var=DYLD_LIBRARY_PATH
8795 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797 if test "$GCC" = yes; then
8798 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"`
8800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8818 freebsd* | dragonfly*)
8819 # DragonFly does not have aout. When/if they implement a new
8820 # versioning mechanism, adjust this.
8821 if test -x /usr/bin/objformat; then
8822 objformat=`/usr/bin/objformat`
8825 freebsd[123]*) objformat=aout ;;
8829 version_type=freebsd-$objformat
8830 case $version_type in
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8841 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes
8846 freebsd3.[01]* | freebsdelf3.[01]*)
8847 shlibpath_overrides_runpath=yes
8848 hardcode_into_libs=yes
8850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8852 shlibpath_overrides_runpath=no
8853 hardcode_into_libs=yes
8855 freebsd*) # from 4.6 on
8856 shlibpath_overrides_runpath=yes
8857 hardcode_into_libs=yes
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 hardcode_into_libs=yes
8872 hpux9* | hpux10* | hpux11*)
8873 # Give a soname corresponding to the major version so that dld.sl refuses to
8874 # link against other versions.
8881 hardcode_into_libs=yes
8882 dynamic_linker="$host_os dld.so"
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 if test "X$HPUX_IA64_MODE" = X32; then
8888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8896 hardcode_into_libs=yes
8897 dynamic_linker="$host_os dld.sl"
8898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8907 dynamic_linker="$host_os dld.sl"
8908 shlibpath_var=SHLIB_PATH
8909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911 soname_spec='${libname}${release}${shared_ext}$major'
8914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8915 postinstall_cmds='chmod 555 $lib'
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 hardcode_into_libs=yes
8930 irix5* | irix6* | nonstopux*)
8932 nonstopux*) version_type=nonstopux ;;
8934 if test "$lt_cv_prog_gnu_ld" = yes; then
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8945 irix5* | nonstopux*)
8949 case $LD in # libtool.m4 will add one of these switches to LD
8950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8951 libsuff= shlibsuff= libmagic=32-bit;;
8952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8953 libsuff=32 shlibsuff=N32 libmagic=N32;;
8954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8956 *) libsuff= shlibsuff= libmagic=never-match;;
8960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8961 shlibpath_overrides_runpath=no
8962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8964 hardcode_into_libs=yes
8967 # No shared lib support for Linux oldld, aout, or coff.
8968 linux*oldld* | linux*aout* | linux*coff*)
8972 # This must be Linux ELF.
8973 linux* | k*bsd*-gnu)
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 # This implies no fast_install, which is unacceptable.
8983 # Some rework will be needed to allow for fast_install
8984 # before this can be enabled.
8985 hardcode_into_libs=yes
8987 # Append ld.so.conf contents to the search path
8988 if test -f /etc/ld.so.conf; then
8989 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' ' '`
8990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8993 # We used to test for /lib/ld.so.1 and disable shared libraries on
8994 # powerpc, because MkLinux only supported shared libraries with the
8995 # GNU dynamic linker. Since this was broken with cross compilers,
8996 # most powerpc-linux boxes support dynamic linking these days and
8997 # people can always --disable-shared, the test was removed, and we
8998 # assume the GNU/Linux dynamic linker is in use.
8999 dynamic_linker='GNU/Linux ld.so'
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=no
9010 hardcode_into_libs=yes
9011 dynamic_linker='NetBSD ld.elf_so'
9018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9021 dynamic_linker='NetBSD (a.out) ld.so'
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 dynamic_linker='NetBSD ld.elf_so'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9051 sys_lib_dlsearch_path_spec="/usr/lib"
9053 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9055 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9056 *) need_version=no ;;
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9063 openbsd2.[89] | openbsd2.[89].*)
9064 shlibpath_overrides_runpath=no
9067 shlibpath_overrides_runpath=yes
9071 shlibpath_overrides_runpath=yes
9076 libname_spec='$name'
9079 library_names_spec='$libname${shared_ext} $libname.a'
9080 dynamic_linker='OS/2 ld.exe'
9081 shlibpath_var=LIBPATH
9084 osf3* | osf4* | osf5*)
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 hardcode_into_libs=yes
9104 # ldd complains unless libraries are executable
9105 postinstall_cmds='chmod +x $lib'
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9114 if test "$with_gnu_ld" = yes; then
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 case $host_vendor in
9127 shlibpath_overrides_runpath=no
9129 export_dynamic_flag_spec='${wl}-Blargedynsym'
9130 runpath_var=LD_RUN_PATH
9138 shlibpath_overrides_runpath=no
9139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9145 if test -d /usr/nec ;then
9147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9148 soname_spec='$libname${shared_ext}.$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9154 version_type=freebsd-elf
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 hardcode_into_libs=yes
9161 if test "$with_gnu_ld" = yes; then
9162 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9163 shlibpath_overrides_runpath=no
9165 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9166 shlibpath_overrides_runpath=yes
9169 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9173 sys_lib_dlsearch_path_spec='/usr/lib'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9187 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9188 echo "${ECHO_T}$dynamic_linker" >&6; }
9189 test "$dynamic_linker" = no && can_build_shared=no
9191 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9192 if test "$GCC" = yes; then
9193 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9196 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9199 if test -n "$hardcode_libdir_flag_spec" || \
9200 test -n "$runpath_var" || \
9201 test "X$hardcode_automatic" = "Xyes" ; then
9203 # We can hardcode non-existant directories.
9204 if test "$hardcode_direct" != no &&
9205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9206 # have to relink, otherwise we might link with an installed library
9207 # when we should be linking with a yet-to-be-installed one
9208 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9209 test "$hardcode_minus_L" != no; then
9210 # Linking always hardcodes the temporary library directory.
9211 hardcode_action=relink
9213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9214 hardcode_action=immediate
9217 # We cannot hardcode anything, or else we can only hardcode existing
9219 hardcode_action=unsupported
9221 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9222 echo "${ECHO_T}$hardcode_action" >&6; }
9224 if test "$hardcode_action" = relink; then
9225 # Fast installation is not supported
9226 enable_fast_install=no
9227 elif test "$shlibpath_overrides_runpath" = yes ||
9228 test "$enable_shared" = no; then
9229 # Fast installation is not necessary
9230 enable_fast_install=needless
9235 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9240 { echo "$as_me:$LINENO: result: yes" >&5
9241 echo "${ECHO_T}yes" >&6; }
9243 # FIXME - insert some real tests, host_os isn't really good enough
9246 if test -n "$STRIP" ; then
9247 striplib="$STRIP -x"
9248 { echo "$as_me:$LINENO: result: yes" >&5
9249 echo "${ECHO_T}yes" >&6; }
9251 { echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6; }
9256 { echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6; }
9262 if test "x$enable_dlopen" != xyes; then
9263 enable_dlopen=unknown
9264 enable_dlopen_self=unknown
9265 enable_dlopen_self_static=unknown
9272 lt_cv_dlopen="load_add_on"
9274 lt_cv_dlopen_self=yes
9278 lt_cv_dlopen="LoadLibrary"
9283 lt_cv_dlopen="dlopen"
9288 # if libdl is installed we need to link against it
9289 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 ac_check_lib_save_LIBS=$LIBS
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 /* Override any GCC internal prototype to avoid an error.
9304 Use char because int might match the return type of a GCC
9305 builtin and then its argument prototype would still apply. */
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_link") 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest$ac_exeext &&
9335 $as_test_x conftest$ac_exeext; then
9336 ac_cv_lib_dl_dlopen=yes
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 ac_cv_lib_dl_dlopen=no
9344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9350 if test $ac_cv_lib_dl_dlopen = yes; then
9351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9356 lt_cv_dlopen_self=yes
9363 { echo "$as_me:$LINENO: checking for shl_load" >&5
9364 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9365 if test "${ac_cv_func_shl_load+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9376 #define shl_load innocuous_shl_load
9378 /* System header to define __stub macros and hopefully few prototypes,
9379 which can conflict with char shl_load (); below.
9380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9381 <limits.h> exists even on freestanding compilers. */
9384 # include <limits.h>
9386 # include <assert.h>
9391 /* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9398 /* The GNU C library defines this for functions which it implements
9399 to always fail with ENOSYS. Some functions are actually named
9400 something starting with __ and the normal name is an alias. */
9401 #if defined __stub_shl_load || defined __stub___shl_load
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_link") 2>conftest.er1
9422 grep -v '^ *+' conftest.er1 >conftest.err
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest$ac_exeext &&
9430 $as_test_x conftest$ac_exeext; then
9431 ac_cv_func_shl_load=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_func_shl_load=no
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9442 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9443 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9444 if test $ac_cv_func_shl_load = yes; then
9445 lt_cv_dlopen="shl_load"
9447 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9448 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9449 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_check_lib_save_LIBS=$LIBS
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (ac_try="$ac_link"
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_link") 2>conftest.er1
9485 grep -v '^ *+' conftest.er1 >conftest.err
9487 cat conftest.err >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } && {
9490 test -z "$ac_c_werror_flag" ||
9491 test ! -s conftest.err
9492 } && test -s conftest$ac_exeext &&
9493 $as_test_x conftest$ac_exeext; then
9494 ac_cv_lib_dld_shl_load=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_cv_lib_dld_shl_load=no
9502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9503 conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_lib_save_LIBS
9506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9507 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9508 if test $ac_cv_lib_dld_shl_load = yes; then
9509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9511 { echo "$as_me:$LINENO: checking for dlopen" >&5
9512 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9513 if test "${ac_cv_func_dlopen+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9524 #define dlopen innocuous_dlopen
9526 /* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char dlopen (); below.
9528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529 <limits.h> exists even on freestanding compilers. */
9532 # include <limits.h>
9534 # include <assert.h>
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9546 /* The GNU C library defines this for functions which it implements
9547 to always fail with ENOSYS. Some functions are actually named
9548 something starting with __ and the normal name is an alias. */
9549 #if defined __stub_dlopen || defined __stub___dlopen
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest$ac_exeext &&
9578 $as_test_x conftest$ac_exeext; then
9579 ac_cv_func_dlopen=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_func_dlopen=no
9587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9588 conftest$ac_exeext conftest.$ac_ext
9590 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9591 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9592 if test $ac_cv_func_dlopen = yes; then
9593 lt_cv_dlopen="dlopen"
9595 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9596 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9597 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 ac_check_lib_save_LIBS=$LIBS
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_lib_dl_dlopen=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_cv_lib_dl_dlopen=no
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 conftest$ac_exeext conftest.$ac_ext
9652 LIBS=$ac_check_lib_save_LIBS
9654 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9656 if test $ac_cv_lib_dl_dlopen = yes; then
9657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9659 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9660 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9661 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 ac_check_lib_save_LIBS=$LIBS
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
9706 ac_cv_lib_svld_dlopen=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_lib_svld_dlopen=no
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9720 if test $ac_cv_lib_svld_dlopen = yes; then
9721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9723 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 ac_check_lib_save_LIBS=$LIBS
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && {
9766 test -z "$ac_c_werror_flag" ||
9767 test ! -s conftest.err
9768 } && test -s conftest$ac_exeext &&
9769 $as_test_x conftest$ac_exeext; then
9770 ac_cv_lib_dld_dld_link=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_cv_lib_dld_dld_link=no
9778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9779 conftest$ac_exeext conftest.$ac_ext
9780 LIBS=$ac_check_lib_save_LIBS
9782 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9783 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9784 if test $ac_cv_lib_dld_dld_link = yes; then
9785 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9806 if test "x$lt_cv_dlopen" != xno; then
9812 case $lt_cv_dlopen in
9814 save_CPPFLAGS="$CPPFLAGS"
9815 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9817 save_LDFLAGS="$LDFLAGS"
9818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9821 LIBS="$lt_cv_dlopen_libs $LIBS"
9823 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9824 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9825 if test "${lt_cv_dlopen_self+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 if test "$cross_compiling" = yes; then :
9829 lt_cv_dlopen_self=cross
9831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9832 lt_status=$lt_dlunknown
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9844 # define LT_DLGLOBAL RTLD_GLOBAL
9847 # define LT_DLGLOBAL DL_GLOBAL
9849 # define LT_DLGLOBAL 0
9853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9854 find out it does not work in some platform. */
9855 #ifndef LT_DLLAZY_OR_NOW
9857 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9860 # define LT_DLLAZY_OR_NOW DL_LAZY
9863 # define LT_DLLAZY_OR_NOW RTLD_NOW
9866 # define LT_DLLAZY_OR_NOW DL_NOW
9868 # define LT_DLLAZY_OR_NOW 0
9876 extern "C" void exit (int);
9879 void fnord() { int i=42;}
9882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9883 int status = $lt_dlunknown;
9887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9888 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9889 /* dlclose (self); */
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898 (eval $ac_link) 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9902 (./conftest; exit; ) >&5 2>/dev/null
9905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9907 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9910 # compilation failed
9911 lt_cv_dlopen_self=no
9918 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9921 if test "x$lt_cv_dlopen_self" = xyes; then
9922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9923 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9925 if test "${lt_cv_dlopen_self_static+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 if test "$cross_compiling" = yes; then :
9929 lt_cv_dlopen_self_static=cross
9931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9932 lt_status=$lt_dlunknown
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9934 "configure"
9935 #include "confdefs.h"
9944 # define LT_DLGLOBAL RTLD_GLOBAL
9947 # define LT_DLGLOBAL DL_GLOBAL
9949 # define LT_DLGLOBAL 0
9953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9954 find out it does not work in some platform. */
9955 #ifndef LT_DLLAZY_OR_NOW
9957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9960 # define LT_DLLAZY_OR_NOW DL_LAZY
9963 # define LT_DLLAZY_OR_NOW RTLD_NOW
9966 # define LT_DLLAZY_OR_NOW DL_NOW
9968 # define LT_DLLAZY_OR_NOW 0
9976 extern "C" void exit (int);
9979 void fnord() { int i=42;}
9982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9983 int status = $lt_dlunknown;
9987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9989 /* dlclose (self); */
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10002 (./conftest; exit; ) >&5 2>/dev/null
10004 case x$lt_status in
10005 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10006 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10007 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10010 # compilation failed
10011 lt_cv_dlopen_self_static=no
10018 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10019 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10022 CPPFLAGS="$save_CPPFLAGS"
10023 LDFLAGS="$save_LDFLAGS"
10028 case $lt_cv_dlopen_self in
10029 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10030 *) enable_dlopen_self=unknown ;;
10033 case $lt_cv_dlopen_self_static in
10034 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10035 *) enable_dlopen_self_static=unknown ;;
10040 # Report which library types will actually be built
10041 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10042 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10043 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10044 echo "${ECHO_T}$can_build_shared" >&6; }
10046 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10047 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10048 test "$can_build_shared" = "no" && enable_shared=no
10050 # On AIX, shared libraries and static libraries use the same namespace, and
10051 # are all built from PIC.
10054 test "$enable_shared" = yes && enable_static=no
10055 if test -n "$RANLIB"; then
10056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10057 postinstall_cmds='$RANLIB $lib'
10062 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10063 test "$enable_shared" = yes && enable_static=no
10067 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10068 echo "${ECHO_T}$enable_shared" >&6; }
10070 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10071 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10072 # Make sure either enable_shared or enable_static is yes.
10073 test "$enable_shared" = yes || enable_static=yes
10074 { echo "$as_me:$LINENO: result: $enable_static" >&5
10075 echo "${ECHO_T}$enable_static" >&6; }
10077 # The else clause should only fire when bootstrapping the
10078 # libtool distribution, otherwise you forgot to ship ltmain.sh
10079 # with your package, and you will get complaints that there are
10080 # no rules to generate ltmain.sh.
10081 if test -f "$ltmain"; then
10082 # See if we are running on zsh, and set the options which allow our commands through
10083 # without removal of \ escapes.
10084 if test -n "${ZSH_VERSION+set}" ; then
10085 setopt NO_GLOB_SUBST
10087 # Now quote all the things that may contain metacharacters while being
10088 # careful not to overquote the AC_SUBSTed values. We take copies of the
10089 # variables and quote the copies for generation of the libtool script.
10090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10094 deplibs_check_method reload_flag reload_cmds need_locks \
10095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10096 lt_cv_sys_global_symbol_to_c_name_address \
10097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10098 old_postinstall_cmds old_postuninstall_cmds \
10102 lt_prog_compiler_wl \
10103 lt_prog_compiler_pic \
10104 lt_prog_compiler_static \
10105 lt_prog_compiler_no_builtin_flag \
10106 export_dynamic_flag_spec \
10107 thread_safe_flag_spec \
10108 whole_archive_flag_spec \
10109 enable_shared_with_static_runtimes \
10111 old_archive_from_new_cmds \
10116 compiler_lib_search_path \
10118 archive_expsym_cmds \
10120 postuninstall_cmds \
10121 old_archive_from_expsyms_cmds \
10122 allow_undefined_flag \
10123 no_undefined_flag \
10124 export_symbols_cmds \
10125 hardcode_libdir_flag_spec \
10126 hardcode_libdir_flag_spec_ld \
10127 hardcode_libdir_separator \
10128 hardcode_automatic \
10130 module_expsym_cmds \
10131 lt_cv_prog_compiler_c_o \
10133 include_expsyms; do
10136 old_archive_cmds | \
10137 old_archive_from_new_cmds | \
10139 archive_expsym_cmds | \
10141 module_expsym_cmds | \
10142 old_archive_from_expsyms_cmds | \
10143 export_symbols_cmds | \
10144 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10145 postinstall_cmds | postuninstall_cmds | \
10146 old_postinstall_cmds | old_postuninstall_cmds | \
10147 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10148 # Double-quote double-evaled strings.
10149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10158 *'\$0 --fallback-echo"')
10159 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10163 cfgfile="${ofile}T"
10164 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10166 { echo "$as_me:$LINENO: creating $ofile" >&5
10167 echo "$as_me: creating $ofile" >&6;}
10169 cat <<__EOF__ >> "$cfgfile"
10172 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10176 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10177 # Free Software Foundation, Inc.
10179 # This file is part of GNU Libtool:
10180 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10182 # This program is free software; you can redistribute it and/or modify
10183 # it under the terms of the GNU General Public License as published by
10184 # the Free Software Foundation; either version 2 of the License, or
10185 # (at your option) any later version.
10187 # This program is distributed in the hope that it will be useful, but
10188 # WITHOUT ANY WARRANTY; without even the implied warranty of
10189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10190 # General Public License for more details.
10192 # You should have received a copy of the GNU General Public License
10193 # along with this program; if not, write to the Free Software
10194 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10196 # As a special exception to the GNU General Public License, if you
10197 # distribute this file as part of a program that contains a
10198 # configuration script generated by Autoconf, you may include it under
10199 # the same distribution terms that you use for the rest of that program.
10201 # A sed program that does not truncate output.
10204 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10205 Xsed="$SED -e 1s/^X//"
10207 # The HP-UX ksh and POSIX shell print the target directory to stdout
10208 # if CDPATH is set.
10209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10211 # The names of the tagged configurations supported by this script.
10214 # ### BEGIN LIBTOOL CONFIG
10216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10218 # Shell to use when invoking shell scripts.
10221 # Whether or not to build shared libraries.
10222 build_libtool_libs=$enable_shared
10224 # Whether or not to build static libraries.
10225 build_old_libs=$enable_static
10227 # Whether or not to add -lc for building shared libraries.
10228 build_libtool_need_lc=$archive_cmds_need_lc
10230 # Whether or not to disallow shared libs when runtime libs are static
10231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10233 # Whether or not to optimize for fast installation.
10234 fast_install=$enable_fast_install
10237 host_alias=$host_alias
10241 # The build system.
10242 build_alias=$build_alias
10246 # An echo program that does not interpret backslashes.
10251 AR_FLAGS=$lt_AR_FLAGS
10256 # LTCC compiler flags.
10257 LTCFLAGS=$lt_LTCFLAGS
10259 # A language-specific compiler.
10262 # Is the compiler the GNU C compiler?
10268 # The linker used to build libraries.
10271 # Whether we need hard or soft links.
10274 # A BSD-compatible nm program.
10277 # A symbol stripping program
10280 # Used to examine libraries when file_magic_cmd begins "file"
10281 MAGIC_CMD=$MAGIC_CMD
10283 # Used on cygwin: DLL creation program.
10286 # Used on cygwin: object dumper.
10289 # Used on cygwin: assembler.
10292 # The name of the directory that contains temporary libtool files.
10295 # How to create reloadable object files.
10296 reload_flag=$lt_reload_flag
10297 reload_cmds=$lt_reload_cmds
10299 # How to pass a linker flag through the compiler.
10300 wl=$lt_lt_prog_compiler_wl
10302 # Object file suffix (normally "o").
10303 objext="$ac_objext"
10305 # Old archive suffix (normally "a").
10308 # Shared library suffix (normally ".so").
10309 shrext_cmds='$shrext_cmds'
10311 # Executable file suffix (normally "").
10314 # Additional compiler flags for building library objects.
10315 pic_flag=$lt_lt_prog_compiler_pic
10318 # What is the maximum length of a command?
10319 max_cmd_len=$lt_cv_sys_max_cmd_len
10321 # Does compiler simultaneously support -c and -o options?
10322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10324 # Must we lock files when doing compilation?
10325 need_locks=$lt_need_locks
10327 # Do we need the lib prefix for modules?
10328 need_lib_prefix=$need_lib_prefix
10330 # Do we need a version for libraries?
10331 need_version=$need_version
10333 # Whether dlopen is supported.
10334 dlopen_support=$enable_dlopen
10336 # Whether dlopen of programs is supported.
10337 dlopen_self=$enable_dlopen_self
10339 # Whether dlopen of statically linked programs is supported.
10340 dlopen_self_static=$enable_dlopen_self_static
10342 # Compiler flag to prevent dynamic linking.
10343 link_static_flag=$lt_lt_prog_compiler_static
10345 # Compiler flag to turn off builtin functions.
10346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10348 # Compiler flag to allow reflexive dlopens.
10349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10351 # Compiler flag to generate shared objects directly from archives.
10352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10354 # Compiler flag to generate thread-safe objects.
10355 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10357 # Library versioning type.
10358 version_type=$version_type
10360 # Format of library name prefix.
10361 libname_spec=$lt_libname_spec
10363 # List of archive names. First name is the real one, the rest are links.
10364 # The last name is the one that the linker finds with -lNAME.
10365 library_names_spec=$lt_library_names_spec
10367 # The coded name of the library, if different from the real name.
10368 soname_spec=$lt_soname_spec
10370 # Commands used to build and install an old-style archive.
10372 old_archive_cmds=$lt_old_archive_cmds
10373 old_postinstall_cmds=$lt_old_postinstall_cmds
10374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10376 # Create an old-style archive from a shared archive.
10377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10379 # Create a temporary old-style archive to link instead of a shared archive.
10380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10382 # Commands used to build and install a shared archive.
10383 archive_cmds=$lt_archive_cmds
10384 archive_expsym_cmds=$lt_archive_expsym_cmds
10385 postinstall_cmds=$lt_postinstall_cmds
10386 postuninstall_cmds=$lt_postuninstall_cmds
10388 # Commands used to build a loadable module (assumed same as above if empty)
10389 module_cmds=$lt_module_cmds
10390 module_expsym_cmds=$lt_module_expsym_cmds
10392 # Commands to strip libraries.
10393 old_striplib=$lt_old_striplib
10394 striplib=$lt_striplib
10396 # Dependencies to place before the objects being linked to create a
10398 predep_objects=$lt_predep_objects
10400 # Dependencies to place after the objects being linked to create a
10402 postdep_objects=$lt_postdep_objects
10404 # Dependencies to place before the objects being linked to create a
10406 predeps=$lt_predeps
10408 # Dependencies to place after the objects being linked to create a
10410 postdeps=$lt_postdeps
10412 # The library search path used internally by the compiler when linking
10413 # a shared library.
10414 compiler_lib_search_path=$lt_compiler_lib_search_path
10416 # Method to check whether dependent libraries are shared objects.
10417 deplibs_check_method=$lt_deplibs_check_method
10419 # Command to use when deplibs_check_method == file_magic.
10420 file_magic_cmd=$lt_file_magic_cmd
10422 # Flag that allows shared libraries with undefined symbols to be built.
10423 allow_undefined_flag=$lt_allow_undefined_flag
10425 # Flag that forces no undefined symbols.
10426 no_undefined_flag=$lt_no_undefined_flag
10428 # Commands used to finish a libtool library installation in a directory.
10429 finish_cmds=$lt_finish_cmds
10431 # Same as above, but a single script fragment to be evaled but not shown.
10432 finish_eval=$lt_finish_eval
10434 # Take the output of nm and produce a listing of raw symbols and C names.
10435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10437 # Transform the output of nm in a proper C declaration
10438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10440 # Transform the output of nm in a C name address pair
10441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10443 # This is the shared library runtime path variable.
10444 runpath_var=$runpath_var
10446 # This is the shared library path variable.
10447 shlibpath_var=$shlibpath_var
10449 # Is shlibpath searched before the hard-coded library search path?
10450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10452 # How to hardcode a shared library path into an executable.
10453 hardcode_action=$hardcode_action
10455 # Whether we should hardcode library paths into libraries.
10456 hardcode_into_libs=$hardcode_into_libs
10458 # Flag to hardcode \$libdir into a binary during linking.
10459 # This must work even if \$libdir does not exist.
10460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10462 # If ld is used when linking, flag to hardcode \$libdir into
10463 # a binary during linking. This must work even if \$libdir does
10465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10467 # Whether we need a single -rpath flag with a separated argument.
10468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10471 # resulting binary.
10472 hardcode_direct=$hardcode_direct
10474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10475 # resulting binary.
10476 hardcode_minus_L=$hardcode_minus_L
10478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10479 # the resulting binary.
10480 hardcode_shlibpath_var=$hardcode_shlibpath_var
10482 # Set to yes if building a shared library automatically hardcodes DIR into the library
10483 # and all subsequent libraries and executables linked against it.
10484 hardcode_automatic=$hardcode_automatic
10486 # Variables whose values should be saved in libtool wrapper scripts and
10487 # restored at relink time.
10488 variables_saved_for_relink="$variables_saved_for_relink"
10490 # Whether libtool must link a program against all its dependency libraries.
10491 link_all_deplibs=$link_all_deplibs
10493 # Compile-time system search path for libraries
10494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10496 # Run-time system search path for libraries
10497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10499 # Fix the shell variable \$srcfile for the compiler.
10500 fix_srcfile_path="$fix_srcfile_path"
10502 # Set to yes if exported symbols are required.
10503 always_export_symbols=$always_export_symbols
10505 # The commands to list exported symbols.
10506 export_symbols_cmds=$lt_export_symbols_cmds
10508 # The commands to extract the exported symbol list from a shared archive.
10509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10511 # Symbols that should not be listed in the preloaded symbols.
10512 exclude_expsyms=$lt_exclude_expsyms
10514 # Symbols that must always be exported.
10515 include_expsyms=$lt_include_expsyms
10517 # ### END LIBTOOL CONFIG
10524 cat <<\EOF >> "$cfgfile"
10526 # AIX sometimes has problems with the GCC collect2 program. For some
10527 # reason, if we set the COLLECT_NAMES environment variable, the problems
10528 # vanish in a puff of smoke.
10529 if test "X${COLLECT_NAMES+set}" != Xset; then
10531 export COLLECT_NAMES
10537 # We use sed instead of cat because bash on DJGPP gets confused if
10538 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10539 # text mode, it properly converts lines to CR/LF. This bash problem
10540 # is reportedly fixed, but why not run on old versions too?
10541 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10543 mv -f "$cfgfile" "$ofile" || \
10544 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10548 # If there is no Makefile yet, we rely on a make rule to execute
10549 # `config.status --recheck' to rerun these tests and create the
10550 # libtool script then.
10551 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10552 if test -f "$ltmain_in"; then
10553 test -f Makefile && make "$ltmain"
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567 # Check whether --with-tags was given.
10568 if test "${with_tags+set}" = set; then
10569 withval=$with_tags; tagnames="$withval"
10573 if test -f "$ltmain" && test -n "$tagnames"; then
10574 if test ! -f "${ofile}"; then
10575 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10576 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10579 if test -z "$LTCC"; then
10580 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10581 if test -z "$LTCC"; then
10582 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10583 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10586 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10589 if test -z "$LTCFLAGS"; then
10590 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10593 # Extract list of available tagged configurations in $ofile.
10594 # Note that this assumes the entire list is on one line.
10595 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10598 for tagname in $tagnames; do
10600 # Check whether tagname contains only valid characters
10601 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10603 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10604 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10605 { (exit 1); exit 1; }; }
10609 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10611 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10612 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10613 { (exit 1); exit 1; }; }
10616 # Update the list of available tags.
10617 if test -n "$tagname"; then
10618 echo appending configuration tag \"$tagname\" to $ofile
10622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10624 (test "X$CXX" != "Xg++"))) ; then
10626 ac_cpp='$CXXCPP $CPPFLAGS'
10627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10634 archive_cmds_need_lc_CXX=no
10635 allow_undefined_flag_CXX=
10636 always_export_symbols_CXX=no
10637 archive_expsym_cmds_CXX=
10638 export_dynamic_flag_spec_CXX=
10639 hardcode_direct_CXX=no
10640 hardcode_libdir_flag_spec_CXX=
10641 hardcode_libdir_flag_spec_ld_CXX=
10642 hardcode_libdir_separator_CXX=
10643 hardcode_minus_L_CXX=no
10644 hardcode_shlibpath_var_CXX=unsupported
10645 hardcode_automatic_CXX=no
10647 module_expsym_cmds_CXX=
10648 link_all_deplibs_CXX=unknown
10649 old_archive_cmds_CXX=$old_archive_cmds
10650 no_undefined_flag_CXX=
10651 whole_archive_flag_spec_CXX=
10652 enable_shared_with_static_runtimes_CXX=no
10654 # Dependencies to place before and after the object being linked:
10655 predep_objects_CXX=
10656 postdep_objects_CXX=
10659 compiler_lib_search_path_CXX=
10661 # Source file extension for C++ test sources.
10664 # Object file extension for compiled C++ test sources.
10668 # Code to be used in simple compile tests
10669 lt_simple_compile_test_code="int some_variable = 0;\n"
10671 # Code to be used in simple link tests
10672 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10676 # If no C compiler was specified, use CC.
10679 # If no C compiler flags were specified, use CFLAGS.
10680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10682 # Allow CC to be a program name with arguments.
10686 # save warnings/boilerplate of simple test code
10687 ac_outfile=conftest.$ac_objext
10688 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10690 _lt_compiler_boilerplate=`cat conftest.err`
10693 ac_outfile=conftest.$ac_objext
10694 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10696 _lt_linker_boilerplate=`cat conftest.err`
10700 # Allow CC to be a program name with arguments.
10705 lt_save_with_gnu_ld=$with_gnu_ld
10706 lt_save_path_LD=$lt_cv_path_LD
10707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10708 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10710 $as_unset lt_cv_prog_gnu_ld
10712 if test -n "${lt_cv_path_LDCXX+set}"; then
10713 lt_cv_path_LD=$lt_cv_path_LDCXX
10715 $as_unset lt_cv_path_LD
10717 test -z "${LDCXX+set}" || LD=$LDCXX
10721 for cc_temp in $compiler""; do
10723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10732 # We don't want -fno-exception wen compiling C++ code, so set the
10733 # no_builtin_flag separately
10734 if test "$GXX" = yes; then
10735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10737 lt_prog_compiler_no_builtin_flag_CXX=
10740 if test "$GXX" = yes; then
10741 # Set up default GNU C++ configuration
10744 # Check whether --with-gnu-ld was given.
10745 if test "${with_gnu_ld+set}" = set; then
10746 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10752 if test "$GCC" = yes; then
10753 # Check if gcc -print-prog-name=ld gives a path.
10754 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10755 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10758 # gcc leaves a trailing carriage return which upsets mingw
10759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10764 # Accept absolute paths.
10766 re_direlt='/[^/][^/]*/\.\./'
10767 # Canonicalize the pathname of ld
10768 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10769 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10770 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10772 test -z "$LD" && LD="$ac_prog"
10775 # If it fails, then pretend we aren't using GCC.
10779 # If it is relative, then search for the first ld in PATH.
10780 with_gnu_ld=unknown
10783 elif test "$with_gnu_ld" = yes; then
10784 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10787 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10790 if test "${lt_cv_path_LD+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 if test -z "$LD"; then
10794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10795 for ac_dir in $PATH; do
10797 test -z "$ac_dir" && ac_dir=.
10798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10799 lt_cv_path_LD="$ac_dir/$ac_prog"
10800 # Check to see if the program is GNU ld. I'd rather use --version,
10801 # but apparently some variants of GNU ld only accept -v.
10802 # Break only if it was the GNU/non-GNU ld that we prefer.
10803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10804 *GNU* | *'with BFD'*)
10805 test "$with_gnu_ld" != no && break
10808 test "$with_gnu_ld" != yes && break
10815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10819 LD="$lt_cv_path_LD"
10820 if test -n "$LD"; then
10821 { echo "$as_me:$LINENO: result: $LD" >&5
10822 echo "${ECHO_T}$LD" >&6; }
10824 { echo "$as_me:$LINENO: result: no" >&5
10825 echo "${ECHO_T}no" >&6; }
10827 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10828 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10829 { (exit 1); exit 1; }; }
10830 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10831 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10832 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10836 case `$LD -v 2>&1 </dev/null` in
10837 *GNU* | *'with BFD'*)
10838 lt_cv_prog_gnu_ld=yes
10841 lt_cv_prog_gnu_ld=no
10845 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10846 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10847 with_gnu_ld=$lt_cv_prog_gnu_ld
10851 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10852 # archiving commands below assume that GNU ld is being used.
10853 if test "$with_gnu_ld" = yes; then
10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10855 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'
10857 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10860 # If archive_cmds runs LD, not CC, wlarc should be empty
10861 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10862 # investigate it a little bit more. (MM)
10865 # ancient GNU ld didn't support --whole-archive et. al.
10866 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10867 grep 'no-whole-archive' > /dev/null; then
10868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10870 whole_archive_flag_spec_CXX=
10876 # A generic and very simple default shared library creation
10877 # command for GNU C++ for the case where it uses the native
10878 # linker, instead of GNU ld. If possible, this setting should
10879 # overridden to take advantage of the native linker features on
10880 # the platform it is being used on.
10881 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10895 # PORTME: fill in a description of your system's C++ link characteristics
10896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10901 # FIXME: insert proper C++ library support
10905 if test "$host_cpu" = ia64; then
10906 # On IA64, the linker does run time linking by default, so we don't
10907 # have to do anything special.
10908 aix_use_runtimelinking=no
10909 exp_sym_flag='-Bexport'
10912 aix_use_runtimelinking=no
10914 # Test if we are trying to use run time linking or normal
10915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10916 # need to do runtime linking.
10917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10918 for ld_flag in $LDFLAGS; do
10921 aix_use_runtimelinking=yes
10929 exp_sym_flag='-bexport'
10930 no_entry_flag='-bnoentry'
10933 # When large executables or shared objects are built, AIX ld can
10934 # have problems creating the table of contents. If linking a library
10935 # or program results in "error TOC overflow" add -mminimal-toc to
10936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10939 archive_cmds_CXX=''
10940 hardcode_direct_CXX=yes
10941 hardcode_libdir_separator_CXX=':'
10942 link_all_deplibs_CXX=yes
10944 if test "$GXX" = yes; then
10945 case $host_os in aix4.[012]|aix4.[012].*)
10946 # We only want to do this on AIX 4.2 and lower, the check
10947 # below for broken collect2 doesn't work under 4.3+
10948 collect2name=`${CC} -print-prog-name=collect2`
10949 if test -f "$collect2name" && \
10950 strings "$collect2name" | grep resolve_lib_name >/dev/null
10952 # We have reworked collect2
10953 hardcode_direct_CXX=yes
10955 # We have old collect2
10956 hardcode_direct_CXX=unsupported
10957 # It fails to find uninstalled libraries when the uninstalled
10958 # path is not listed in the libpath. Setting hardcode_minus_L
10959 # to unsupported forces relinking
10960 hardcode_minus_L_CXX=yes
10961 hardcode_libdir_flag_spec_CXX='-L$libdir'
10962 hardcode_libdir_separator_CXX=
10966 shared_flag='-shared'
10967 if test "$aix_use_runtimelinking" = yes; then
10968 shared_flag="$shared_flag "'${wl}-G'
10972 if test "$host_cpu" = ia64; then
10973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10974 # chokes on -Wl,-G. The following line is correct:
10977 if test "$aix_use_runtimelinking" = yes; then
10978 shared_flag='${wl}-G'
10980 shared_flag='${wl}-bM:SRE'
10985 # It seems that -bexpall does not export symbols beginning with
10986 # underscore (_), so it is better to generate a list of symbols to export.
10987 always_export_symbols_CXX=yes
10988 if test "$aix_use_runtimelinking" = yes; then
10989 # Warning - without using the other runtime loading flags (-brtl),
10990 # -berok will link without error, but may produce a broken library.
10991 allow_undefined_flag_CXX='-berok'
10992 # Determine the default libpath from the value encoded in an empty executable.
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_cxx_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext &&
11025 $as_test_x conftest$ac_exeext; then
11027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11029 # Check for a 64-bit object if we didn't find anything.
11030 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; }
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11040 conftest$ac_exeext conftest.$ac_ext
11041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11045 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"
11047 if test "$host_cpu" = ia64; then
11048 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11049 allow_undefined_flag_CXX="-z nodefs"
11050 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"
11052 # Determine the default libpath from the value encoded in an empty executable.
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_cxx_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext &&
11085 $as_test_x conftest$ac_exeext; then
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11089 # Check for a 64-bit object if we didn't find anything.
11090 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; }
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11104 # Warning - without using the other run time loading flags,
11105 # -berok will link without error, but may produce a broken library.
11106 no_undefined_flag_CXX=' ${wl}-bernotok'
11107 allow_undefined_flag_CXX=' ${wl}-berok'
11108 # Exported symbols can be pulled into shared objects from archives
11109 whole_archive_flag_spec_CXX='$convenience'
11110 archive_cmds_need_lc_CXX=yes
11111 # This is similar to how AIX traditionally builds its shared libraries.
11112 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'
11118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11119 allow_undefined_flag_CXX=unsupported
11120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11121 # support --undefined. This deserves some investigation. FIXME
11122 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11129 case $cc_basename in
11131 # FIXME: insert proper C++ library support
11137 cygwin* | mingw* | pw32*)
11138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11139 # as there is no search path for DLLs.
11140 hardcode_libdir_flag_spec_CXX='-L$libdir'
11141 allow_undefined_flag_CXX=unsupported
11142 always_export_symbols_CXX=no
11143 enable_shared_with_static_runtimes_CXX=yes
11145 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11146 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'
11147 # If the export-symbols file already is a .def file (1st line
11148 # is EXPORTS), use it as is; otherwise, prepend...
11149 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11150 cp $export_symbols $output_objdir/$soname.def;
11152 echo EXPORTS > $output_objdir/$soname.def;
11153 cat $export_symbols >> $output_objdir/$soname.def;
11155 $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'
11160 darwin* | rhapsody*)
11162 rhapsody* | darwin1.[012])
11163 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11167 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11169 case ${MACOSX_DEPLOYMENT_TARGET} in
11171 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11174 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11180 archive_cmds_need_lc_CXX=no
11181 hardcode_direct_CXX=no
11182 hardcode_automatic_CXX=yes
11183 hardcode_shlibpath_var_CXX=unsupported
11184 whole_archive_flag_spec_CXX=''
11185 link_all_deplibs_CXX=yes
11187 if test "$GXX" = yes ; then
11188 lt_int_apple_cc_single_mod=no
11189 output_verbose_link_cmd='echo'
11190 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11191 lt_int_apple_cc_single_mod=yes
11193 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11194 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11196 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'
11198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11201 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}'
11203 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}'
11205 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}'
11207 case $cc_basename in
11209 output_verbose_link_cmd='echo'
11210 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'
11211 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11213 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}'
11214 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}'
11224 case $cc_basename in
11226 # FIXME: insert proper C++ library support
11230 # Green Hills C++ Compiler
11231 # FIXME: insert proper C++ library support
11235 # FIXME: insert proper C++ library support
11241 # C++ shared libraries reported to be fairly broken before switch to ELF
11245 archive_cmds_need_lc_CXX=no
11247 freebsd* | dragonfly*)
11248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11256 hardcode_libdir_separator_CXX=:
11257 export_dynamic_flag_spec_CXX='${wl}-E'
11258 hardcode_direct_CXX=yes
11259 hardcode_minus_L_CXX=yes # Not in the search PATH,
11260 # but as the default
11261 # location of the library.
11263 case $cc_basename in
11265 # FIXME: insert proper C++ library support
11269 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'
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11278 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'
11281 if test "$GXX" = yes; then
11282 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'
11284 # FIXME: insert proper C++ library support
11291 if test $with_gnu_ld = no; then
11292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11293 hardcode_libdir_separator_CXX=:
11297 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11300 export_dynamic_flag_spec_CXX='${wl}-E'
11306 hardcode_direct_CXX=no
11307 hardcode_shlibpath_var_CXX=no
11310 hardcode_direct_CXX=yes
11311 hardcode_minus_L_CXX=yes # Not in the search PATH,
11312 # but as the default
11313 # location of the library.
11317 case $cc_basename in
11319 # FIXME: insert proper C++ library support
11325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11334 # Commands to make compiler produce verbose output that lists
11335 # what "hidden" libraries, object files and flags are used when
11336 # linking a shared library.
11338 # There doesn't appear to be a way to prevent this compiler from
11339 # explicitly linking system object files so we need to strip them
11340 # from the output so that they don't get included in the library
11342 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'
11345 if test "$GXX" = yes; then
11346 if test $with_gnu_ld = no; then
11349 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11352 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11355 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'
11360 # FIXME: insert proper C++ library support
11367 hardcode_direct_CXX=no
11368 hardcode_shlibpath_var_CXX=no
11369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11370 export_dynamic_flag_spec_CXX='${wl}-E'
11371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11372 # Instead, shared libraries are loaded at an image base (0x10000000 by
11373 # default) and relocated if they conflict, which is a slow very memory
11374 # consuming and fragmenting process. To avoid this, we pick a random,
11375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11377 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'
11378 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'
11381 case $cc_basename in
11384 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'
11386 # Archives containing C++ object files must be created using
11387 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11388 # necessary to make sure instantiated templates are included
11390 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11393 if test "$GXX" = yes; then
11394 if test "$with_gnu_ld" = no; then
11395 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'
11397 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'
11400 link_all_deplibs_CXX=yes
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11404 hardcode_libdir_separator_CXX=:
11406 linux* | k*bsd*-gnu)
11407 case $cc_basename in
11409 # Kuck and Associates, Inc. (KAI) C++ Compiler
11411 # KCC will only create a shared library if the output file
11412 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11413 # to its proper name (with version) after linking.
11414 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'
11415 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'
11416 # Commands to make compiler produce verbose output that lists
11417 # what "hidden" libraries, object files and flags are used when
11418 # linking a shared library.
11420 # There doesn't appear to be a way to prevent this compiler from
11421 # explicitly linking system object files so we need to strip them
11422 # from the output so that they don't get included in the library
11424 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'
11426 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11427 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11429 # Archives containing C++ object files must be created using
11430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11436 # version 8.0 and above of icpc choke on multiply defined symbols
11437 # if we add $predep_objects and $postdep_objects, however 7.1 and
11438 # earlier do not add the objects themselves.
11439 case `$CC -V 2>&1` in
11441 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442 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'
11444 *) # Version 8.0 or newer
11447 ia64*) tmp_idyn=' -i_dynamic';;
11449 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450 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'
11453 archive_cmds_need_lc_CXX=no
11454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11459 # Portland Group C++ compiler
11460 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11461 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'
11463 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11465 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'
11469 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11470 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'
11472 runpath_var=LD_RUN_PATH
11473 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11474 hardcode_libdir_separator_CXX=:
11476 # Commands to make compiler produce verbose output that lists
11477 # what "hidden" libraries, object files and flags are used when
11478 # linking a shared library.
11480 # There doesn't appear to be a way to prevent this compiler from
11481 # explicitly linking system object files so we need to strip them
11482 # from the output so that they don't get included in the library
11484 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'
11489 # FIXME: insert proper C++ library support
11493 # FIXME: insert proper C++ library support
11497 case $cc_basename in
11499 # FIXME: insert proper C++ library support
11503 # FIXME: insert proper C++ library support
11508 netbsd* | netbsdelf*-gnu)
11509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11510 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11512 hardcode_libdir_flag_spec_CXX='-R$libdir'
11513 hardcode_direct_CXX=yes
11514 hardcode_shlibpath_var_CXX=no
11516 # Workaround some broken pre-1.5 toolchains
11517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11520 # C++ shared libraries are fairly broken
11524 hardcode_direct_CXX=yes
11525 hardcode_shlibpath_var_CXX=no
11526 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11529 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11530 export_dynamic_flag_spec_CXX='${wl}-E'
11531 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11533 output_verbose_link_cmd='echo'
11536 case $cc_basename in
11538 # Kuck and Associates, Inc. (KAI) C++ Compiler
11540 # KCC will only create a shared library if the output file
11541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11542 # to its proper name (with version) after linking.
11543 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'
11545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11546 hardcode_libdir_separator_CXX=:
11548 # Archives containing C++ object files must be created using
11549 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11550 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11554 # Rational C++ 2.4.1
11555 # FIXME: insert proper C++ library support
11559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560 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'
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563 hardcode_libdir_separator_CXX=:
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11569 # There doesn't appear to be a way to prevent this compiler from
11570 # explicitly linking system object files so we need to strip them
11571 # from the output so that they don't get included in the library
11573 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'
11576 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11578 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'
11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11581 hardcode_libdir_separator_CXX=:
11583 # Commands to make compiler produce verbose output that lists
11584 # what "hidden" libraries, object files and flags are used when
11585 # linking a shared library.
11586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11589 # FIXME: insert proper C++ library support
11596 case $cc_basename in
11598 # Kuck and Associates, Inc. (KAI) C++ Compiler
11600 # KCC will only create a shared library if the output file
11601 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11602 # to its proper name (with version) after linking.
11603 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'
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606 hardcode_libdir_separator_CXX=:
11608 # Archives containing C++ object files must be created using
11609 # the KAI C++ compiler.
11610 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11613 # Rational C++ 2.4.1
11614 # FIXME: insert proper C++ library support
11618 allow_undefined_flag_CXX=' -expect_unresolved \*'
11619 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'
11620 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11621 echo "-hidden">> $lib.exp~
11622 $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~
11625 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626 hardcode_libdir_separator_CXX=:
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11632 # There doesn't appear to be a way to prevent this compiler from
11633 # explicitly linking system object files so we need to strip them
11634 # from the output so that they don't get included in the library
11636 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'
11639 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11652 # FIXME: insert proper C++ library support
11659 # FIXME: insert proper C++ library support
11663 case $cc_basename in
11666 # FIXME: insert proper C++ library support
11671 # FIXME: insert proper C++ library support
11675 # FIXME: insert proper C++ library support
11681 case $cc_basename in
11683 # Sun C++ 4.2, 5.x and Centerline C++
11684 archive_cmds_need_lc_CXX=yes
11685 no_undefined_flag_CXX=' -zdefs'
11686 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11688 $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'
11690 hardcode_libdir_flag_spec_CXX='-R$libdir'
11691 hardcode_shlibpath_var_CXX=no
11693 solaris2.[0-5] | solaris2.[0-5].*) ;;
11695 # The C++ compiler is used as linker so we must use $wl
11696 # flag to pass the commands to the underlying system
11697 # linker. We must also pass each convience library through
11698 # to the system linker between allextract/defaultextract.
11699 # The C++ compiler will combine linker options so we
11700 # cannot just pass the convience library names through
11702 # Supported since Solaris 2.6 (maybe 2.5.1?)
11703 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'
11706 link_all_deplibs_CXX=yes
11708 output_verbose_link_cmd='echo'
11710 # Archives containing C++ object files must be created using
11711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11712 # necessary to make sure instantiated templates are included
11714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11717 # Green Hills C++ Compiler
11718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11720 # The C++ compiler must be used to create the archive.
11721 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11724 # GNU C++ compiler with Solaris linker
11725 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11726 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11727 if $CC --version | grep -v '^2\.7' > /dev/null; then
11728 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11729 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11730 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11732 # Commands to make compiler produce verbose output that lists
11733 # what "hidden" libraries, object files and flags are used when
11734 # linking a shared library.
11735 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11737 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11739 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11740 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11741 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11743 # Commands to make compiler produce verbose output that lists
11744 # what "hidden" libraries, object files and flags are used when
11745 # linking a shared library.
11746 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11749 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11754 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11755 no_undefined_flag_CXX='${wl}-z,text'
11756 archive_cmds_need_lc_CXX=no
11757 hardcode_shlibpath_var_CXX=no
11758 runpath_var='LD_RUN_PATH'
11760 case $cc_basename in
11762 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11766 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 sysv5* | sco3.2v5* | sco5v6*)
11772 # Note: We can NOT use -z defs as we might desire, because we do not
11773 # link with -lc, and that would cause any symbols used from libc to
11774 # always be unresolved, which means just about no library would
11775 # ever link correctly. If we're not using GNU ld we use -z text
11776 # though, which does catch some bad symbols but isn't as heavy-handed
11778 # For security reasons, it is highly recommended that you always
11779 # use absolute paths for naming shared libraries, and exclude the
11780 # DT_RUNPATH tag from executables and libraries. But doing so
11781 # requires that you compile everything twice, which is a pain.
11782 # So that behaviour is only enabled if SCOABSPATH is set to a
11783 # non-empty value in the environment. Most likely only useful for
11784 # creating official distributions of packages.
11785 # This is a hack until libtool officially supports absolute path
11786 # names for shared libraries.
11787 no_undefined_flag_CXX='${wl}-z,text'
11788 allow_undefined_flag_CXX='${wl}-z,nodefs'
11789 archive_cmds_need_lc_CXX=no
11790 hardcode_shlibpath_var_CXX=no
11791 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11792 hardcode_libdir_separator_CXX=':'
11793 link_all_deplibs_CXX=yes
11794 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11795 runpath_var='LD_RUN_PATH'
11797 case $cc_basename in
11799 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11803 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11809 case $cc_basename in
11811 # NonStop-UX NCC 3.20
11812 # FIXME: insert proper C++ library support
11816 # FIXME: insert proper C++ library support
11822 # FIXME: insert proper C++ library support
11826 # FIXME: insert proper C++ library support
11830 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11831 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11832 test "$ld_shlibs_CXX" = no && can_build_shared=no
11838 cat > conftest.$ac_ext <<EOF
11842 Foo (void) { a = 0; }
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
11853 # Parse the compiler output and extract the necessary
11854 # objects, libraries and library flags.
11856 # Sentinel used to keep track of whether or not we are before
11857 # the conftest object file.
11858 pre_test_object_deps_done=no
11860 # The `*' in the case matches for architectures that use `case' in
11861 # $output_verbose_cmd can trigger glob expansion during the loop
11862 # eval without this substitution.
11863 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11865 for p in `eval $output_verbose_link_cmd`; do
11869 # Some compilers place space between "-{L,R}" and the path.
11870 # Remove the space.
11871 if test $p = "-L" \
11872 || test $p = "-R"; then
11879 if test "$pre_test_object_deps_done" = no; then
11882 # Internal compiler library paths should come after those
11883 # provided the user. The postdeps already come after the
11884 # user supplied libs so there is no need to process them.
11885 if test -z "$compiler_lib_search_path_CXX"; then
11886 compiler_lib_search_path_CXX="${prev}${p}"
11888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11891 # The "-l" case would never come before the object being
11892 # linked, so don't bother handling this case.
11895 if test -z "$postdeps_CXX"; then
11896 postdeps_CXX="${prev}${p}"
11898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11904 # This assumes that the test object file only shows up
11905 # once in the compiler output.
11906 if test "$p" = "conftest.$objext"; then
11907 pre_test_object_deps_done=yes
11911 if test "$pre_test_object_deps_done" = no; then
11912 if test -z "$predep_objects_CXX"; then
11913 predep_objects_CXX="$p"
11915 predep_objects_CXX="$predep_objects_CXX $p"
11918 if test -z "$postdep_objects_CXX"; then
11919 postdep_objects_CXX="$p"
11921 postdep_objects_CXX="$postdep_objects_CXX $p"
11926 *) ;; # Ignore the rest.
11934 echo "libtool.m4: error: problem compiling CXX test program"
11937 $rm -f confest.$objext
11939 # PORTME: override above test on systems where it is broken
11942 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11943 # hack all around it, let's just trust "g++" to DTRT.
11944 predep_objects_CXX=
11945 postdep_objects_CXX=
11950 case $cc_basename in
11952 # Adding this requires a known-good setup of shared libraries for
11953 # Sun compiler versions before 5.6, else PIC objects from an old
11954 # archive will be linked into the output, leading to subtle bugs.
11955 postdeps_CXX='-lCstd -lCrun'
11962 case " $postdeps_CXX " in
11963 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11966 lt_prog_compiler_wl_CXX=
11967 lt_prog_compiler_pic_CXX=
11968 lt_prog_compiler_static_CXX=
11970 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11971 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11973 # C++ specific cases for pic, static, wl, etc.
11974 if test "$GXX" = yes; then
11975 lt_prog_compiler_wl_CXX='-Wl,'
11976 lt_prog_compiler_static_CXX='-static'
11980 # All AIX code is PIC.
11981 if test "$host_cpu" = ia64; then
11982 # AIX 5 now supports IA64 processor
11983 lt_prog_compiler_static_CXX='-Bstatic'
11987 # FIXME: we need at least 68020 code to build shared libraries, but
11988 # adding the `-m68020' flag to GCC prevents building anything better,
11990 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11992 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11993 # PIC is the default for these OSes.
11995 mingw* | os2* | pw32*)
11996 # This hack is so that the source file can tell whether it is being
11997 # built for inclusion in a dll (and should export symbols for example).
11998 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12000 darwin* | rhapsody*)
12001 # PIC is the default on this platform
12002 # Common symbols not allowed in MH_DYLIB files
12003 lt_prog_compiler_pic_CXX='-fno-common'
12006 # DJGPP does not support shared libraries at all
12007 lt_prog_compiler_pic_CXX=
12010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12011 # Instead, we relocate shared libraries at runtime.
12014 if test -d /usr/nec; then
12015 lt_prog_compiler_pic_CXX=-Kconform_pic
12019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12020 # not for PA HP-UX.
12025 lt_prog_compiler_pic_CXX='-fPIC'
12030 lt_prog_compiler_pic_CXX='-fPIC'
12036 # All AIX code is PIC.
12037 if test "$host_cpu" = ia64; then
12038 # AIX 5 now supports IA64 processor
12039 lt_prog_compiler_static_CXX='-Bstatic'
12041 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12045 case $cc_basename in
12047 # Green Hills C++ Compiler
12048 # _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"
12053 # PIC is the default on this platform
12054 # Common symbols not allowed in MH_DYLIB files
12055 case $cc_basename in
12057 lt_prog_compiler_pic_CXX='-qnocommon'
12058 lt_prog_compiler_wl_CXX='-Wl,'
12063 case $cc_basename in
12065 lt_prog_compiler_pic_CXX='-KPIC'
12068 # Green Hills C++ Compiler
12069 lt_prog_compiler_pic_CXX='-pic'
12075 freebsd* | dragonfly*)
12076 # FreeBSD uses GNU C++
12078 hpux9* | hpux10* | hpux11*)
12079 case $cc_basename in
12081 lt_prog_compiler_wl_CXX='-Wl,'
12082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12083 if test "$host_cpu" != ia64; then
12084 lt_prog_compiler_pic_CXX='+Z'
12088 lt_prog_compiler_wl_CXX='-Wl,'
12089 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12095 lt_prog_compiler_pic_CXX='+Z'
12104 # This is c89, which is MS Visual C++ (no shared libs)
12105 # Anyone wants to do a port?
12107 irix5* | irix6* | nonstopux*)
12108 case $cc_basename in
12110 lt_prog_compiler_wl_CXX='-Wl,'
12111 lt_prog_compiler_static_CXX='-non_shared'
12112 # CC pic flag -KPIC is the default.
12118 linux* | k*bsd*-gnu)
12119 case $cc_basename in
12122 lt_prog_compiler_wl_CXX='--backend -Wl,'
12123 lt_prog_compiler_pic_CXX='-fPIC'
12127 lt_prog_compiler_wl_CXX='-Wl,'
12128 lt_prog_compiler_pic_CXX='-KPIC'
12129 lt_prog_compiler_static_CXX='-static'
12132 # Portland Group C++ compiler.
12133 lt_prog_compiler_wl_CXX='-Wl,'
12134 lt_prog_compiler_pic_CXX='-fpic'
12135 lt_prog_compiler_static_CXX='-Bstatic'
12139 # Make sure the PIC flag is empty. It appears that all Alpha
12140 # Linux and Compaq Tru64 Unix objects are PIC.
12141 lt_prog_compiler_pic_CXX=
12142 lt_prog_compiler_static_CXX='-non_shared'
12153 case $cc_basename in
12155 lt_prog_compiler_pic_CXX='-W c,exportall'
12161 netbsd* | netbsdelf*-gnu)
12163 osf3* | osf4* | osf5*)
12164 case $cc_basename in
12166 lt_prog_compiler_wl_CXX='--backend -Wl,'
12169 # Rational C++ 2.4.1
12170 lt_prog_compiler_pic_CXX='-pic'
12173 # Digital/Compaq C++
12174 lt_prog_compiler_wl_CXX='-Wl,'
12175 # Make sure the PIC flag is empty. It appears that all Alpha
12176 # Linux and Compaq Tru64 Unix objects are PIC.
12177 lt_prog_compiler_pic_CXX=
12178 lt_prog_compiler_static_CXX='-non_shared'
12187 case $cc_basename in
12189 # Sun C++ 4.2, 5.x and Centerline C++
12190 lt_prog_compiler_pic_CXX='-KPIC'
12191 lt_prog_compiler_static_CXX='-Bstatic'
12192 lt_prog_compiler_wl_CXX='-Qoption ld '
12195 # Green Hills C++ Compiler
12196 lt_prog_compiler_pic_CXX='-PIC'
12203 case $cc_basename in
12206 lt_prog_compiler_pic_CXX='-pic'
12207 lt_prog_compiler_static_CXX='-Bstatic'
12211 lt_prog_compiler_pic_CXX='-pic'
12218 case $cc_basename in
12220 # NonStop-UX NCC 3.20
12221 lt_prog_compiler_pic_CXX='-KPIC'
12227 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12228 case $cc_basename in
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 lt_prog_compiler_pic_CXX='-KPIC'
12232 lt_prog_compiler_static_CXX='-Bstatic'
12239 lt_prog_compiler_can_build_shared_CXX=no
12244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12245 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12248 # Check to make sure the PIC flag actually works.
12250 if test -n "$lt_prog_compiler_pic_CXX"; then
12252 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12253 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12254 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 lt_prog_compiler_pic_works_CXX=no
12258 ac_outfile=conftest.$ac_objext
12259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12260 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12261 # Insert the option either (1) after the last *FLAGS variable, or
12262 # (2) before a word containing "conftest.", or (3) at the end.
12263 # Note that $ac_compile itself does not contain backslashes and begins
12264 # with a dollar sign (not a hyphen), so the echo should work correctly.
12265 # The option is referenced via a variable to avoid confusing sed.
12266 lt_compile=`echo "$ac_compile" | $SED \
12267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12269 -e 's:$: $lt_compiler_flag:'`
12270 (eval echo "\"\$as_me:12270: $lt_compile\"" >&5)
12271 (eval "$lt_compile" 2>conftest.err)
12273 cat conftest.err >&5
12274 echo "$as_me:12274: \$? = $ac_status" >&5
12275 if (exit $ac_status) && test -s "$ac_outfile"; then
12276 # The compiler can only warn and ignore the option if not recognized
12277 # So say no if there are warnings other than the usual output.
12278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12281 lt_prog_compiler_pic_works_CXX=yes
12287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12288 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12290 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12291 case $lt_prog_compiler_pic_CXX in
12293 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12296 lt_prog_compiler_pic_CXX=
12297 lt_prog_compiler_can_build_shared_CXX=no
12302 # For platforms which do not support PIC, -DPIC is meaningless:
12304 lt_prog_compiler_pic_CXX=
12307 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12312 # Check to make sure the static flag actually works.
12314 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12315 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12316 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12317 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 lt_prog_compiler_static_works_CXX=no
12321 save_LDFLAGS="$LDFLAGS"
12322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12323 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12325 # The linker can only warn and ignore the option if not recognized
12326 # So say no if there are warnings
12327 if test -s conftest.err; then
12328 # Append any errors to the config.log.
12329 cat conftest.err 1>&5
12330 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12332 if diff conftest.exp conftest.er2 >/dev/null; then
12333 lt_prog_compiler_static_works_CXX=yes
12336 lt_prog_compiler_static_works_CXX=yes
12340 LDFLAGS="$save_LDFLAGS"
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12346 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12349 lt_prog_compiler_static_CXX=
12353 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12355 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 lt_cv_prog_compiler_c_o_CXX=no
12359 $rm -r conftest 2>/dev/null
12363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12365 lt_compiler_flag="-o out/conftest2.$ac_objext"
12366 # Insert the option either (1) after the last *FLAGS variable, or
12367 # (2) before a word containing "conftest.", or (3) at the end.
12368 # Note that $ac_compile itself does not contain backslashes and begins
12369 # with a dollar sign (not a hyphen), so the echo should work correctly.
12370 lt_compile=`echo "$ac_compile" | $SED \
12371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12373 -e 's:$: $lt_compiler_flag:'`
12374 (eval echo "\"\$as_me:12374: $lt_compile\"" >&5)
12375 (eval "$lt_compile" 2>out/conftest.err)
12377 cat out/conftest.err >&5
12378 echo "$as_me:12378: \$? = $ac_status" >&5
12379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12381 # The compiler can only warn and ignore the option if not recognized
12382 # So say no if there are warnings
12383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12386 lt_cv_prog_compiler_c_o_CXX=yes
12391 # SGI C++ compiler will create directory out/ii_files/ for
12392 # template instantiation
12393 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12394 $rm out/* && rmdir out
12400 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12401 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12404 hard_links="nottested"
12405 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12406 # do not overwrite the value of need_locks provided by the user
12407 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12413 ln conftest.a conftest.b 2>&5 || hard_links=no
12414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12415 { echo "$as_me:$LINENO: result: $hard_links" >&5
12416 echo "${ECHO_T}$hard_links" >&6; }
12417 if test "$hard_links" = no; then
12418 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12426 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12427 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12432 # If we're using GNU nm, then we don't want the "-C" option.
12433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12434 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12435 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'
12437 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'
12441 export_symbols_cmds_CXX="$ltdll_cmds"
12444 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'
12446 linux* | k*bsd*-gnu)
12447 link_all_deplibs_CXX=no
12450 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12454 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12455 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12456 test "$ld_shlibs_CXX" = no && can_build_shared=no
12459 # Do we need to explicitly link libc?
12461 case "x$archive_cmds_need_lc_CXX" in
12463 # Assume -lc should be added
12464 archive_cmds_need_lc_CXX=yes
12466 if test "$enable_shared" = yes && test "$GCC" = yes; then
12467 case $archive_cmds_CXX in
12469 # FIXME: we may have to deal with multi-command sequences.
12472 # Test whether the compiler implicitly links with -lc since on some
12473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12474 # to ld, don't add -lc before -lgcc.
12475 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12476 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } 2>conftest.err; then
12487 libobjs=conftest.$ac_objext
12489 wl=$lt_prog_compiler_wl_CXX
12490 pic_flag=$lt_prog_compiler_pic_CXX
12496 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12497 allow_undefined_flag_CXX=
12498 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12499 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }
12504 archive_cmds_need_lc_CXX=no
12506 archive_cmds_need_lc_CXX=yes
12508 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12510 cat conftest.err 1>&5
12513 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12514 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12521 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12522 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12523 library_names_spec=
12524 libname_spec='lib$name'
12528 postuninstall_cmds=
12532 shlibpath_overrides_runpath=unknown
12534 dynamic_linker="$host_os ld.so"
12535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12536 if test "$GCC" = yes; then
12537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12538 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12539 # if the path contains ";" then we assume it to be the separator
12540 # otherwise default to the standard path separator (i.e. ":") - it is
12541 # assumed that no part of a normal pathname contains ";" but that should
12542 # okay in the real world where ";" in dirpaths is itself problematic.
12543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12550 need_lib_prefix=unknown
12551 hardcode_into_libs=no
12553 # when you set need_version to no, make sure it does not cause -set_version
12554 # flags to be left without arguments
12555 need_version=unknown
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12561 shlibpath_var=LIBPATH
12563 # AIX 3 has no versioning support, so we append a major version to the name.
12564 soname_spec='${libname}${release}${shared_ext}$major'
12571 hardcode_into_libs=yes
12572 if test "$host_cpu" = ia64; then
12573 # AIX 5 supports IA64
12574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12575 shlibpath_var=LD_LIBRARY_PATH
12577 # With GCC up to 2.95.x, collect2 would create an import file
12578 # for dependence libraries. The import file would start with
12579 # the line `#! .'. This would cause the generated library to
12580 # depend on `.', always an invalid library. This was fixed in
12581 # development snapshots of GCC prior to 3.0.
12583 aix4 | aix4.[01] | aix4.[01].*)
12584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12586 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12589 can_build_shared=no
12593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12594 # soname into executable. Probably we can add versioning support to
12595 # collect2, so additional links can be useful in future.
12596 if test "$aix_use_runtimelinking" = yes; then
12597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12598 # instead of lib<name>.a to let people know that these are not
12599 # typical AIX shared libraries.
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602 # We preserve .a as extension for shared libraries through AIX4.2
12603 # and later when we are not doing run time linking.
12604 library_names_spec='${libname}${release}.a $libname.a'
12605 soname_spec='${libname}${release}${shared_ext}$major'
12607 shlibpath_var=LIBPATH
12612 library_names_spec='$libname.ixlibrary $libname.a'
12613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12614 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'
12618 library_names_spec='${libname}${shared_ext}'
12619 dynamic_linker="$host_os ld.so"
12620 shlibpath_var=LIBRARY_PATH
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12629 shlibpath_var=LD_LIBRARY_PATH
12630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12632 # the default ld.so.conf also contains /usr/contrib/lib and
12633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12634 # libtool to hard-code these into programs
12637 cygwin* | mingw* | pw32*)
12638 version_type=windows
12643 case $GCC,$host_os in
12644 yes,cygwin* | yes,mingw* | yes,pw32*)
12645 library_names_spec='$libname.dll.a'
12646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12647 postinstall_cmds='base_file=`basename \${file}`~
12648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12649 dldir=$destdir/`dirname \$dlpath`~
12650 test -d \$dldir || mkdir -p \$dldir~
12651 $install_prog $dir/$dlname \$dldir/$dlname~
12652 chmod a+x \$dldir/$dlname'
12653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12654 dlpath=$dir/\$dldll~
12656 shlibpath_overrides_runpath=yes
12660 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12665 # MinGW DLLs use traditional 'lib' prefix
12666 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12668 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12669 # It is most probably a Windows format PATH printed by
12670 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12671 # path with ; separators, and with drive letters. We can handle the
12672 # drive letters (cygwin fileutils understands them), so leave them,
12673 # especially as we might pass files found there to a mingw objdump,
12674 # which wouldn't understand a cygwinified path. Ahh.
12675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12681 # pw32 DLLs use 'pw' prefix rather than 'lib'
12682 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12688 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12691 dynamic_linker='Win32 ld.exe'
12692 # FIXME: first we should search . and the directory the executable is in
12696 darwin* | rhapsody*)
12697 dynamic_linker="$host_os dyld"
12698 version_type=darwin
12701 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12702 soname_spec='${libname}${release}${major}$shared_ext'
12703 shlibpath_overrides_runpath=yes
12704 shlibpath_var=DYLD_LIBRARY_PATH
12705 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12706 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12707 if test "$GCC" = yes; then
12708 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"`
12710 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 shlibpath_var=LD_LIBRARY_PATH
12728 freebsd* | dragonfly*)
12729 # DragonFly does not have aout. When/if they implement a new
12730 # versioning mechanism, adjust this.
12731 if test -x /usr/bin/objformat; then
12732 objformat=`/usr/bin/objformat`
12735 freebsd[123]*) objformat=aout ;;
12736 *) objformat=elf ;;
12739 version_type=freebsd-$objformat
12740 case $version_type in
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12751 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=yes
12756 freebsd3.[01]* | freebsdelf3.[01]*)
12757 shlibpath_overrides_runpath=yes
12758 hardcode_into_libs=yes
12760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12762 shlibpath_overrides_runpath=no
12763 hardcode_into_libs=yes
12765 freebsd*) # from 4.6 on
12766 shlibpath_overrides_runpath=yes
12767 hardcode_into_libs=yes
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 hardcode_into_libs=yes
12782 hpux9* | hpux10* | hpux11*)
12783 # Give a soname corresponding to the major version so that dld.sl refuses to
12784 # link against other versions.
12791 hardcode_into_libs=yes
12792 dynamic_linker="$host_os dld.so"
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12797 if test "X$HPUX_IA64_MODE" = X32; then
12798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12806 hardcode_into_libs=yes
12807 dynamic_linker="$host_os dld.sl"
12808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12817 dynamic_linker="$host_os dld.sl"
12818 shlibpath_var=SHLIB_PATH
12819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821 soname_spec='${libname}${release}${shared_ext}$major'
12824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12825 postinstall_cmds='chmod 555 $lib'
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 shlibpath_overrides_runpath=no
12837 hardcode_into_libs=yes
12840 irix5* | irix6* | nonstopux*)
12842 nonstopux*) version_type=nonstopux ;;
12844 if test "$lt_cv_prog_gnu_ld" = yes; then
12852 soname_spec='${libname}${release}${shared_ext}$major'
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12855 irix5* | nonstopux*)
12856 libsuff= shlibsuff=
12859 case $LD in # libtool.m4 will add one of these switches to LD
12860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12861 libsuff= shlibsuff= libmagic=32-bit;;
12862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12863 libsuff=32 shlibsuff=N32 libmagic=N32;;
12864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12866 *) libsuff= shlibsuff= libmagic=never-match;;
12870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12871 shlibpath_overrides_runpath=no
12872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12874 hardcode_into_libs=yes
12877 # No shared lib support for Linux oldld, aout, or coff.
12878 linux*oldld* | linux*aout* | linux*coff*)
12882 # This must be Linux ELF.
12883 linux* | k*bsd*-gnu)
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12890 shlibpath_var=LD_LIBRARY_PATH
12891 shlibpath_overrides_runpath=no
12892 # This implies no fast_install, which is unacceptable.
12893 # Some rework will be needed to allow for fast_install
12894 # before this can be enabled.
12895 hardcode_into_libs=yes
12897 # Append ld.so.conf contents to the search path
12898 if test -f /etc/ld.so.conf; then
12899 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' ' '`
12900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12903 # We used to test for /lib/ld.so.1 and disable shared libraries on
12904 # powerpc, because MkLinux only supported shared libraries with the
12905 # GNU dynamic linker. Since this was broken with cross compilers,
12906 # most powerpc-linux boxes support dynamic linking these days and
12907 # people can always --disable-shared, the test was removed, and we
12908 # assume the GNU/Linux dynamic linker is in use.
12909 dynamic_linker='GNU/Linux ld.so'
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12917 soname_spec='${libname}${release}${shared_ext}$major'
12918 shlibpath_var=LD_LIBRARY_PATH
12919 shlibpath_overrides_runpath=no
12920 hardcode_into_libs=yes
12921 dynamic_linker='NetBSD ld.elf_so'
12928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12931 dynamic_linker='NetBSD (a.out) ld.so'
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 dynamic_linker='NetBSD ld.elf_so'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes
12939 hardcode_into_libs=yes
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 shlibpath_var=LD_LIBRARY_PATH
12946 shlibpath_overrides_runpath=yes
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 soname_spec='${libname}${release}${shared_ext}$major'
12955 shlibpath_var=LD_LIBRARY_PATH
12956 shlibpath_overrides_runpath=yes
12961 sys_lib_dlsearch_path_spec="/usr/lib"
12963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12966 *) need_version=no ;;
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12973 openbsd2.[89] | openbsd2.[89].*)
12974 shlibpath_overrides_runpath=no
12977 shlibpath_overrides_runpath=yes
12981 shlibpath_overrides_runpath=yes
12986 libname_spec='$name'
12989 library_names_spec='$libname${shared_ext} $libname.a'
12990 dynamic_linker='OS/2 ld.exe'
12991 shlibpath_var=LIBPATH
12994 osf3* | osf4* | osf5*)
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=yes
13013 hardcode_into_libs=yes
13014 # ldd complains unless libraries are executable
13015 postinstall_cmds='chmod +x $lib'
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=yes
13024 if test "$with_gnu_ld" = yes; then
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 case $host_vendor in
13037 shlibpath_overrides_runpath=no
13039 export_dynamic_flag_spec='${wl}-Blargedynsym'
13040 runpath_var=LD_RUN_PATH
13048 shlibpath_overrides_runpath=no
13049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13055 if test -d /usr/nec ;then
13057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13058 soname_spec='$libname${shared_ext}.$major'
13059 shlibpath_var=LD_LIBRARY_PATH
13063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13064 version_type=freebsd-elf
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 hardcode_into_libs=yes
13071 if test "$with_gnu_ld" = yes; then
13072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13073 shlibpath_overrides_runpath=no
13075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13076 shlibpath_overrides_runpath=yes
13079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13083 sys_lib_dlsearch_path_spec='/usr/lib'
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089 soname_spec='${libname}${release}${shared_ext}$major'
13090 shlibpath_var=LD_LIBRARY_PATH
13097 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13098 echo "${ECHO_T}$dynamic_linker" >&6; }
13099 test "$dynamic_linker" = no && can_build_shared=no
13101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13102 if test "$GCC" = yes; then
13103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13108 hardcode_action_CXX=
13109 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13110 test -n "$runpath_var_CXX" || \
13111 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13113 # We can hardcode non-existant directories.
13114 if test "$hardcode_direct_CXX" != no &&
13115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13116 # have to relink, otherwise we might link with an installed library
13117 # when we should be linking with a yet-to-be-installed one
13118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13119 test "$hardcode_minus_L_CXX" != no; then
13120 # Linking always hardcodes the temporary library directory.
13121 hardcode_action_CXX=relink
13123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13124 hardcode_action_CXX=immediate
13127 # We cannot hardcode anything, or else we can only hardcode existing
13129 hardcode_action_CXX=unsupported
13131 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13132 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13134 if test "$hardcode_action_CXX" = relink; then
13135 # Fast installation is not supported
13136 enable_fast_install=no
13137 elif test "$shlibpath_overrides_runpath" = yes ||
13138 test "$enable_shared" = no; then
13139 # Fast installation is not necessary
13140 enable_fast_install=needless
13144 # The else clause should only fire when bootstrapping the
13145 # libtool distribution, otherwise you forgot to ship ltmain.sh
13146 # with your package, and you will get complaints that there are
13147 # no rules to generate ltmain.sh.
13148 if test -f "$ltmain"; then
13149 # See if we are running on zsh, and set the options which allow our commands through
13150 # without removal of \ escapes.
13151 if test -n "${ZSH_VERSION+set}" ; then
13152 setopt NO_GLOB_SUBST
13154 # Now quote all the things that may contain metacharacters while being
13155 # careful not to overquote the AC_SUBSTed values. We take copies of the
13156 # variables and quote the copies for generation of the libtool script.
13157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13161 deplibs_check_method reload_flag reload_cmds need_locks \
13162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13163 lt_cv_sys_global_symbol_to_c_name_address \
13164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13165 old_postinstall_cmds old_postuninstall_cmds \
13169 lt_prog_compiler_wl_CXX \
13170 lt_prog_compiler_pic_CXX \
13171 lt_prog_compiler_static_CXX \
13172 lt_prog_compiler_no_builtin_flag_CXX \
13173 export_dynamic_flag_spec_CXX \
13174 thread_safe_flag_spec_CXX \
13175 whole_archive_flag_spec_CXX \
13176 enable_shared_with_static_runtimes_CXX \
13177 old_archive_cmds_CXX \
13178 old_archive_from_new_cmds_CXX \
13179 predep_objects_CXX \
13180 postdep_objects_CXX \
13183 compiler_lib_search_path_CXX \
13185 archive_expsym_cmds_CXX \
13186 postinstall_cmds_CXX \
13187 postuninstall_cmds_CXX \
13188 old_archive_from_expsyms_cmds_CXX \
13189 allow_undefined_flag_CXX \
13190 no_undefined_flag_CXX \
13191 export_symbols_cmds_CXX \
13192 hardcode_libdir_flag_spec_CXX \
13193 hardcode_libdir_flag_spec_ld_CXX \
13194 hardcode_libdir_separator_CXX \
13195 hardcode_automatic_CXX \
13197 module_expsym_cmds_CXX \
13198 lt_cv_prog_compiler_c_o_CXX \
13199 exclude_expsyms_CXX \
13200 include_expsyms_CXX; do
13203 old_archive_cmds_CXX | \
13204 old_archive_from_new_cmds_CXX | \
13205 archive_cmds_CXX | \
13206 archive_expsym_cmds_CXX | \
13207 module_cmds_CXX | \
13208 module_expsym_cmds_CXX | \
13209 old_archive_from_expsyms_cmds_CXX | \
13210 export_symbols_cmds_CXX | \
13211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13212 postinstall_cmds | postuninstall_cmds | \
13213 old_postinstall_cmds | old_postuninstall_cmds | \
13214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13215 # Double-quote double-evaled strings.
13216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13225 *'\$0 --fallback-echo"')
13226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13232 cat <<__EOF__ >> "$cfgfile"
13233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13237 # Shell to use when invoking shell scripts.
13240 # Whether or not to build shared libraries.
13241 build_libtool_libs=$enable_shared
13243 # Whether or not to build static libraries.
13244 build_old_libs=$enable_static
13246 # Whether or not to add -lc for building shared libraries.
13247 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13249 # Whether or not to disallow shared libs when runtime libs are static
13250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13252 # Whether or not to optimize for fast installation.
13253 fast_install=$enable_fast_install
13256 host_alias=$host_alias
13260 # The build system.
13261 build_alias=$build_alias
13265 # An echo program that does not interpret backslashes.
13270 AR_FLAGS=$lt_AR_FLAGS
13275 # LTCC compiler flags.
13276 LTCFLAGS=$lt_LTCFLAGS
13278 # A language-specific compiler.
13279 CC=$lt_compiler_CXX
13281 # Is the compiler the GNU C compiler?
13287 # The linker used to build libraries.
13290 # Whether we need hard or soft links.
13293 # A BSD-compatible nm program.
13296 # A symbol stripping program
13299 # Used to examine libraries when file_magic_cmd begins "file"
13300 MAGIC_CMD=$MAGIC_CMD
13302 # Used on cygwin: DLL creation program.
13305 # Used on cygwin: object dumper.
13308 # Used on cygwin: assembler.
13311 # The name of the directory that contains temporary libtool files.
13314 # How to create reloadable object files.
13315 reload_flag=$lt_reload_flag
13316 reload_cmds=$lt_reload_cmds
13318 # How to pass a linker flag through the compiler.
13319 wl=$lt_lt_prog_compiler_wl_CXX
13321 # Object file suffix (normally "o").
13322 objext="$ac_objext"
13324 # Old archive suffix (normally "a").
13327 # Shared library suffix (normally ".so").
13328 shrext_cmds='$shrext_cmds'
13330 # Executable file suffix (normally "").
13333 # Additional compiler flags for building library objects.
13334 pic_flag=$lt_lt_prog_compiler_pic_CXX
13337 # What is the maximum length of a command?
13338 max_cmd_len=$lt_cv_sys_max_cmd_len
13340 # Does compiler simultaneously support -c and -o options?
13341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13343 # Must we lock files when doing compilation?
13344 need_locks=$lt_need_locks
13346 # Do we need the lib prefix for modules?
13347 need_lib_prefix=$need_lib_prefix
13349 # Do we need a version for libraries?
13350 need_version=$need_version
13352 # Whether dlopen is supported.
13353 dlopen_support=$enable_dlopen
13355 # Whether dlopen of programs is supported.
13356 dlopen_self=$enable_dlopen_self
13358 # Whether dlopen of statically linked programs is supported.
13359 dlopen_self_static=$enable_dlopen_self_static
13361 # Compiler flag to prevent dynamic linking.
13362 link_static_flag=$lt_lt_prog_compiler_static_CXX
13364 # Compiler flag to turn off builtin functions.
13365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13367 # Compiler flag to allow reflexive dlopens.
13368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13370 # Compiler flag to generate shared objects directly from archives.
13371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13373 # Compiler flag to generate thread-safe objects.
13374 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13376 # Library versioning type.
13377 version_type=$version_type
13379 # Format of library name prefix.
13380 libname_spec=$lt_libname_spec
13382 # List of archive names. First name is the real one, the rest are links.
13383 # The last name is the one that the linker finds with -lNAME.
13384 library_names_spec=$lt_library_names_spec
13386 # The coded name of the library, if different from the real name.
13387 soname_spec=$lt_soname_spec
13389 # Commands used to build and install an old-style archive.
13391 old_archive_cmds=$lt_old_archive_cmds_CXX
13392 old_postinstall_cmds=$lt_old_postinstall_cmds
13393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13395 # Create an old-style archive from a shared archive.
13396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13398 # Create a temporary old-style archive to link instead of a shared archive.
13399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13401 # Commands used to build and install a shared archive.
13402 archive_cmds=$lt_archive_cmds_CXX
13403 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13404 postinstall_cmds=$lt_postinstall_cmds
13405 postuninstall_cmds=$lt_postuninstall_cmds
13407 # Commands used to build a loadable module (assumed same as above if empty)
13408 module_cmds=$lt_module_cmds_CXX
13409 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13411 # Commands to strip libraries.
13412 old_striplib=$lt_old_striplib
13413 striplib=$lt_striplib
13415 # Dependencies to place before the objects being linked to create a
13417 predep_objects=$lt_predep_objects_CXX
13419 # Dependencies to place after the objects being linked to create a
13421 postdep_objects=$lt_postdep_objects_CXX
13423 # Dependencies to place before the objects being linked to create a
13425 predeps=$lt_predeps_CXX
13427 # Dependencies to place after the objects being linked to create a
13429 postdeps=$lt_postdeps_CXX
13431 # The library search path used internally by the compiler when linking
13432 # a shared library.
13433 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13435 # Method to check whether dependent libraries are shared objects.
13436 deplibs_check_method=$lt_deplibs_check_method
13438 # Command to use when deplibs_check_method == file_magic.
13439 file_magic_cmd=$lt_file_magic_cmd
13441 # Flag that allows shared libraries with undefined symbols to be built.
13442 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13444 # Flag that forces no undefined symbols.
13445 no_undefined_flag=$lt_no_undefined_flag_CXX
13447 # Commands used to finish a libtool library installation in a directory.
13448 finish_cmds=$lt_finish_cmds
13450 # Same as above, but a single script fragment to be evaled but not shown.
13451 finish_eval=$lt_finish_eval
13453 # Take the output of nm and produce a listing of raw symbols and C names.
13454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13456 # Transform the output of nm in a proper C declaration
13457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13459 # Transform the output of nm in a C name address pair
13460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13462 # This is the shared library runtime path variable.
13463 runpath_var=$runpath_var
13465 # This is the shared library path variable.
13466 shlibpath_var=$shlibpath_var
13468 # Is shlibpath searched before the hard-coded library search path?
13469 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13471 # How to hardcode a shared library path into an executable.
13472 hardcode_action=$hardcode_action_CXX
13474 # Whether we should hardcode library paths into libraries.
13475 hardcode_into_libs=$hardcode_into_libs
13477 # Flag to hardcode \$libdir into a binary during linking.
13478 # This must work even if \$libdir does not exist.
13479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13481 # If ld is used when linking, flag to hardcode \$libdir into
13482 # a binary during linking. This must work even if \$libdir does
13484 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13486 # Whether we need a single -rpath flag with a separated argument.
13487 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13489 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13490 # resulting binary.
13491 hardcode_direct=$hardcode_direct_CXX
13493 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13494 # resulting binary.
13495 hardcode_minus_L=$hardcode_minus_L_CXX
13497 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13498 # the resulting binary.
13499 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13501 # Set to yes if building a shared library automatically hardcodes DIR into the library
13502 # and all subsequent libraries and executables linked against it.
13503 hardcode_automatic=$hardcode_automatic_CXX
13505 # Variables whose values should be saved in libtool wrapper scripts and
13506 # restored at relink time.
13507 variables_saved_for_relink="$variables_saved_for_relink"
13509 # Whether libtool must link a program against all its dependency libraries.
13510 link_all_deplibs=$link_all_deplibs_CXX
13512 # Compile-time system search path for libraries
13513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13515 # Run-time system search path for libraries
13516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13518 # Fix the shell variable \$srcfile for the compiler.
13519 fix_srcfile_path="$fix_srcfile_path_CXX"
13521 # Set to yes if exported symbols are required.
13522 always_export_symbols=$always_export_symbols_CXX
13524 # The commands to list exported symbols.
13525 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13527 # The commands to extract the exported symbol list from a shared archive.
13528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13530 # Symbols that should not be listed in the preloaded symbols.
13531 exclude_expsyms=$lt_exclude_expsyms_CXX
13533 # Symbols that must always be exported.
13534 include_expsyms=$lt_include_expsyms_CXX
13536 # ### END LIBTOOL TAG CONFIG: $tagname
13542 # If there is no Makefile yet, we rely on a make rule to execute
13543 # `config.status --recheck' to rerun these tests and create the
13544 # libtool script then.
13545 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13546 if test -f "$ltmain_in"; then
13547 test -f Makefile && make "$ltmain"
13553 ac_cpp='$CPP $CPPFLAGS'
13554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13562 with_gnu_ldcxx=$with_gnu_ld
13563 with_gnu_ld=$lt_save_with_gnu_ld
13564 lt_cv_path_LDCXX=$lt_cv_path_LD
13565 lt_cv_path_LD=$lt_save_path_LD
13566 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13567 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13575 if test -n "$F77" && test "X$F77" != "Xno"; then
13578 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13579 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13580 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13583 archive_cmds_need_lc_F77=no
13584 allow_undefined_flag_F77=
13585 always_export_symbols_F77=no
13586 archive_expsym_cmds_F77=
13587 export_dynamic_flag_spec_F77=
13588 hardcode_direct_F77=no
13589 hardcode_libdir_flag_spec_F77=
13590 hardcode_libdir_flag_spec_ld_F77=
13591 hardcode_libdir_separator_F77=
13592 hardcode_minus_L_F77=no
13593 hardcode_automatic_F77=no
13595 module_expsym_cmds_F77=
13596 link_all_deplibs_F77=unknown
13597 old_archive_cmds_F77=$old_archive_cmds
13598 no_undefined_flag_F77=
13599 whole_archive_flag_spec_F77=
13600 enable_shared_with_static_runtimes_F77=no
13602 # Source file extension for f77 test sources.
13605 # Object file extension for compiled f77 test sources.
13609 # Code to be used in simple compile tests
13610 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13612 # Code to be used in simple link tests
13613 lt_simple_link_test_code=" program t\n end\n"
13615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13617 # If no C compiler was specified, use CC.
13620 # If no C compiler flags were specified, use CFLAGS.
13621 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13623 # Allow CC to be a program name with arguments.
13627 # save warnings/boilerplate of simple test code
13628 ac_outfile=conftest.$ac_objext
13629 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13630 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13631 _lt_compiler_boilerplate=`cat conftest.err`
13634 ac_outfile=conftest.$ac_objext
13635 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13636 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13637 _lt_linker_boilerplate=`cat conftest.err`
13641 # Allow CC to be a program name with arguments.
13646 for cc_temp in $compiler""; do
13648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13657 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13658 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13659 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13660 echo "${ECHO_T}$can_build_shared" >&6; }
13662 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13663 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13664 test "$can_build_shared" = "no" && enable_shared=no
13666 # On AIX, shared libraries and static libraries use the same namespace, and
13667 # are all built from PIC.
13670 test "$enable_shared" = yes && enable_static=no
13671 if test -n "$RANLIB"; then
13672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13673 postinstall_cmds='$RANLIB $lib'
13677 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13678 test "$enable_shared" = yes && enable_static=no
13682 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13683 echo "${ECHO_T}$enable_shared" >&6; }
13685 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13686 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13687 # Make sure either enable_shared or enable_static is yes.
13688 test "$enable_shared" = yes || enable_static=yes
13689 { echo "$as_me:$LINENO: result: $enable_static" >&5
13690 echo "${ECHO_T}$enable_static" >&6; }
13695 lt_prog_compiler_wl_F77=
13696 lt_prog_compiler_pic_F77=
13697 lt_prog_compiler_static_F77=
13699 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13702 if test "$GCC" = yes; then
13703 lt_prog_compiler_wl_F77='-Wl,'
13704 lt_prog_compiler_static_F77='-static'
13708 # All AIX code is PIC.
13709 if test "$host_cpu" = ia64; then
13710 # AIX 5 now supports IA64 processor
13711 lt_prog_compiler_static_F77='-Bstatic'
13716 # FIXME: we need at least 68020 code to build shared libraries, but
13717 # adding the `-m68020' flag to GCC prevents building anything better,
13719 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13723 # PIC is the default for these OSes.
13726 mingw* | pw32* | os2*)
13727 # This hack is so that the source file can tell whether it is being
13728 # built for inclusion in a dll (and should export symbols for example).
13729 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13732 darwin* | rhapsody*)
13733 # PIC is the default on this platform
13734 # Common symbols not allowed in MH_DYLIB files
13735 lt_prog_compiler_pic_F77='-fno-common'
13739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13740 # Instead, we relocate shared libraries at runtime.
13744 # Just because we use GCC doesn't mean we suddenly get shared libraries
13745 # on systems that don't support them.
13746 lt_prog_compiler_can_build_shared_F77=no
13751 if test -d /usr/nec; then
13752 lt_prog_compiler_pic_F77=-Kconform_pic
13757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13758 # not for PA HP-UX.
13764 lt_prog_compiler_pic_F77='-fPIC'
13770 lt_prog_compiler_pic_F77='-fPIC'
13774 # PORTME Check for flag to pass linker flags through the system compiler.
13777 lt_prog_compiler_wl_F77='-Wl,'
13778 if test "$host_cpu" = ia64; then
13779 # AIX 5 now supports IA64 processor
13780 lt_prog_compiler_static_F77='-Bstatic'
13782 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13786 # PIC is the default on this platform
13787 # Common symbols not allowed in MH_DYLIB files
13788 case $cc_basename in
13790 lt_prog_compiler_pic_F77='-qnocommon'
13791 lt_prog_compiler_wl_F77='-Wl,'
13796 mingw* | pw32* | os2*)
13797 # This hack is so that the source file can tell whether it is being
13798 # built for inclusion in a dll (and should export symbols for example).
13799 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13802 hpux9* | hpux10* | hpux11*)
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13805 # not for PA HP-UX.
13811 lt_prog_compiler_pic_F77='+Z'
13814 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13815 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13818 irix5* | irix6* | nonstopux*)
13819 lt_prog_compiler_wl_F77='-Wl,'
13820 # PIC (with -KPIC) is the default.
13821 lt_prog_compiler_static_F77='-non_shared'
13825 lt_prog_compiler_pic_F77='-KPIC'
13826 lt_prog_compiler_static_F77='-Bstatic'
13829 linux* | k*bsd*-gnu)
13830 case $cc_basename in
13832 lt_prog_compiler_wl_F77='-Wl,'
13833 lt_prog_compiler_pic_F77='-KPIC'
13834 lt_prog_compiler_static_F77='-static'
13836 pgcc* | pgf77* | pgf90* | pgf95*)
13837 # Portland Group compilers (*not* the Pentium gcc compiler,
13838 # which looks to be a dead project)
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 lt_prog_compiler_pic_F77='-fpic'
13841 lt_prog_compiler_static_F77='-Bstatic'
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 # All Alpha code is PIC.
13846 lt_prog_compiler_static_F77='-non_shared'
13851 osf3* | osf4* | osf5*)
13852 lt_prog_compiler_wl_F77='-Wl,'
13853 # All OSF/1 code is PIC.
13854 lt_prog_compiler_static_F77='-non_shared'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-Bstatic'
13860 case $cc_basename in
13861 f77* | f90* | f95*)
13862 lt_prog_compiler_wl_F77='-Qoption ld ';;
13864 lt_prog_compiler_wl_F77='-Wl,';;
13869 lt_prog_compiler_wl_F77='-Qoption ld '
13870 lt_prog_compiler_pic_F77='-PIC'
13871 lt_prog_compiler_static_F77='-Bstatic'
13874 sysv4 | sysv4.2uw2* | sysv4.3*)
13875 lt_prog_compiler_wl_F77='-Wl,'
13876 lt_prog_compiler_pic_F77='-KPIC'
13877 lt_prog_compiler_static_F77='-Bstatic'
13881 if test -d /usr/nec ;then
13882 lt_prog_compiler_pic_F77='-Kconform_pic'
13883 lt_prog_compiler_static_F77='-Bstatic'
13887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13888 lt_prog_compiler_wl_F77='-Wl,'
13889 lt_prog_compiler_pic_F77='-KPIC'
13890 lt_prog_compiler_static_F77='-Bstatic'
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 lt_prog_compiler_can_build_shared_F77=no
13899 lt_prog_compiler_pic_F77='-pic'
13900 lt_prog_compiler_static_F77='-Bstatic'
13904 lt_prog_compiler_can_build_shared_F77=no
13909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13910 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13913 # Check to make sure the PIC flag actually works.
13915 if test -n "$lt_prog_compiler_pic_F77"; then
13917 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13919 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 lt_prog_compiler_pic_works_F77=no
13923 ac_outfile=conftest.$ac_objext
13924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13925 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13926 # Insert the option either (1) after the last *FLAGS variable, or
13927 # (2) before a word containing "conftest.", or (3) at the end.
13928 # Note that $ac_compile itself does not contain backslashes and begins
13929 # with a dollar sign (not a hyphen), so the echo should work correctly.
13930 # The option is referenced via a variable to avoid confusing sed.
13931 lt_compile=`echo "$ac_compile" | $SED \
13932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13934 -e 's:$: $lt_compiler_flag:'`
13935 (eval echo "\"\$as_me:13935: $lt_compile\"" >&5)
13936 (eval "$lt_compile" 2>conftest.err)
13938 cat conftest.err >&5
13939 echo "$as_me:13939: \$? = $ac_status" >&5
13940 if (exit $ac_status) && test -s "$ac_outfile"; then
13941 # The compiler can only warn and ignore the option if not recognized
13942 # So say no if there are warnings other than the usual output.
13943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13946 lt_prog_compiler_pic_works_F77=yes
13952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13953 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13955 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13956 case $lt_prog_compiler_pic_F77 in
13958 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13961 lt_prog_compiler_pic_F77=
13962 lt_prog_compiler_can_build_shared_F77=no
13967 # For platforms which do not support PIC, -DPIC is meaningless:
13969 lt_prog_compiler_pic_F77=
13972 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13977 # Check to make sure the static flag actually works.
13979 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13980 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13981 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13982 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 lt_prog_compiler_static_works_F77=no
13986 save_LDFLAGS="$LDFLAGS"
13987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13988 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13990 # The linker can only warn and ignore the option if not recognized
13991 # So say no if there are warnings
13992 if test -s conftest.err; then
13993 # Append any errors to the config.log.
13994 cat conftest.err 1>&5
13995 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13997 if diff conftest.exp conftest.er2 >/dev/null; then
13998 lt_prog_compiler_static_works_F77=yes
14001 lt_prog_compiler_static_works_F77=yes
14005 LDFLAGS="$save_LDFLAGS"
14008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14009 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14011 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14014 lt_prog_compiler_static_F77=
14018 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14019 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14020 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 lt_cv_prog_compiler_c_o_F77=no
14024 $rm -r conftest 2>/dev/null
14028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14030 lt_compiler_flag="-o out/conftest2.$ac_objext"
14031 # Insert the option either (1) after the last *FLAGS variable, or
14032 # (2) before a word containing "conftest.", or (3) at the end.
14033 # Note that $ac_compile itself does not contain backslashes and begins
14034 # with a dollar sign (not a hyphen), so the echo should work correctly.
14035 lt_compile=`echo "$ac_compile" | $SED \
14036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038 -e 's:$: $lt_compiler_flag:'`
14039 (eval echo "\"\$as_me:14039: $lt_compile\"" >&5)
14040 (eval "$lt_compile" 2>out/conftest.err)
14042 cat out/conftest.err >&5
14043 echo "$as_me:14043: \$? = $ac_status" >&5
14044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14046 # The compiler can only warn and ignore the option if not recognized
14047 # So say no if there are warnings
14048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14051 lt_cv_prog_compiler_c_o_F77=yes
14056 # SGI C++ compiler will create directory out/ii_files/ for
14057 # template instantiation
14058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14059 $rm out/* && rmdir out
14065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14066 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14069 hard_links="nottested"
14070 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14071 # do not overwrite the value of need_locks provided by the user
14072 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14073 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14078 ln conftest.a conftest.b 2>&5 || hard_links=no
14079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14080 { echo "$as_me:$LINENO: result: $hard_links" >&5
14081 echo "${ECHO_T}$hard_links" >&6; }
14082 if test "$hard_links" = no; then
14083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14084 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14095 allow_undefined_flag_F77=
14096 enable_shared_with_static_runtimes_F77=no
14098 archive_expsym_cmds_F77=
14099 old_archive_From_new_cmds_F77=
14100 old_archive_from_expsyms_cmds_F77=
14101 export_dynamic_flag_spec_F77=
14102 whole_archive_flag_spec_F77=
14103 thread_safe_flag_spec_F77=
14104 hardcode_libdir_flag_spec_F77=
14105 hardcode_libdir_flag_spec_ld_F77=
14106 hardcode_libdir_separator_F77=
14107 hardcode_direct_F77=no
14108 hardcode_minus_L_F77=no
14109 hardcode_shlibpath_var_F77=unsupported
14110 link_all_deplibs_F77=unknown
14111 hardcode_automatic_F77=no
14113 module_expsym_cmds_F77=
14114 always_export_symbols_F77=no
14115 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14116 # include_expsyms should be a list of space-separated symbols to be *always*
14117 # included in the symbol list
14118 include_expsyms_F77=
14119 # exclude_expsyms can be an extended regexp of symbols to exclude
14120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14122 # as well as any symbol that contains `d'.
14123 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14125 # platforms (ab)use it in PIC code, but their linkers get confused if
14126 # the symbol is explicitly referenced. Since portable code cannot
14127 # rely on this symbol name, it's probably fine to never include it in
14128 # preloaded symbol tables.
14129 extract_expsyms_cmds=
14130 # Just being paranoid about ensuring that cc_basename is set.
14131 for cc_temp in $compiler""; do
14133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14142 cygwin* | mingw* | pw32*)
14143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14144 # When not using gcc, we currently assume that we are using
14145 # Microsoft Visual C++.
14146 if test "$GCC" != yes; then
14151 # we just hope/assume this is gcc and not c89 (= MSVC++)
14160 if test "$with_gnu_ld" = yes; then
14161 # If archive_cmds runs LD, not CC, wlarc should be empty
14164 # Set some defaults for GNU ld with shared library support. These
14165 # are reset later if shared libraries are not supported. Putting them
14166 # here allows them to be overridden if necessary.
14167 runpath_var=LD_RUN_PATH
14168 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14169 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14170 # ancient GNU ld didn't support --whole-archive et. al.
14171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14172 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14174 whole_archive_flag_spec_F77=
14176 supports_anon_versioning=no
14177 case `$LD -v 2>/dev/null` in
14178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14181 *\ 2.11.*) ;; # other 2.11 versions
14182 *) supports_anon_versioning=yes ;;
14185 # See if GNU ld supports shared libraries.
14187 aix3* | aix4* | aix5*)
14188 # On AIX/PPC, the GNU linker is very broken
14189 if test "$host_cpu" != ia64; then
14193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14194 *** to be unable to reliably create shared libraries on AIX.
14195 *** Therefore, libtool is disabling shared libraries support. If you
14196 *** really care for shared libraries, you may want to modify your PATH
14197 *** so that a non-GNU linker is found, and then restart.
14204 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)'
14205 hardcode_libdir_flag_spec_F77='-L$libdir'
14206 hardcode_minus_L_F77=yes
14208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14209 # that the semantics of dynamic libraries on AmigaOS, at least up
14210 # to version 4, is to share data among multiple programs linked
14211 # with the same dynamic library. Since this doesn't match the
14212 # behavior of shared libraries on other platforms, we can't use
14218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14219 allow_undefined_flag_F77=unsupported
14220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14221 # support --undefined. This deserves some investigation. FIXME
14222 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228 cygwin* | mingw* | pw32*)
14229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14230 # as there is no search path for DLLs.
14231 hardcode_libdir_flag_spec_F77='-L$libdir'
14232 allow_undefined_flag_F77=unsupported
14233 always_export_symbols_F77=no
14234 enable_shared_with_static_runtimes_F77=yes
14235 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14239 # If the export-symbols file already is a .def file (1st line
14240 # is EXPORTS), use it as is; otherwise, prepend...
14241 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14242 cp $export_symbols $output_objdir/$soname.def;
14244 echo EXPORTS > $output_objdir/$soname.def;
14245 cat $export_symbols >> $output_objdir/$soname.def;
14247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14254 hardcode_direct_F77=no
14255 hardcode_shlibpath_var_F77=no
14256 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257 export_dynamic_flag_spec_F77='${wl}-E'
14258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14259 # Instead, shared libraries are loaded at an image base (0x10000000 by
14260 # default) and relocated if they conflict, which is a slow very memory
14261 # consuming and fragmenting process. To avoid this, we pick a random,
14262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14264 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'
14265 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'
14268 linux* | k*bsd*-gnu)
14269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14271 case $cc_basename,$host_cpu in
14272 pgcc*) # Portland Group C compiler
14273 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'
14274 tmp_addflag=' $pic_flag'
14276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14277 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'
14278 tmp_addflag=' $pic_flag -Mnomain' ;;
14279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14280 tmp_addflag=' -i_dynamic' ;;
14281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14282 tmp_addflag=' -i_dynamic -nofor_main' ;;
14283 ifc* | ifort*) # Intel Fortran compiler
14284 tmp_addflag=' -nofor_main' ;;
14286 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288 if test $supports_anon_versioning = yes; then
14289 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14291 $echo "local: *; };" >> $output_objdir/$libname.ver~
14292 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14294 link_all_deplibs_F77=no
14300 netbsd* | netbsdelf*-gnu)
14301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14302 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14305 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14306 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14316 *** create shared libraries on Solaris systems. Therefore, libtool
14317 *** is disabling shared libraries support. We urge you to upgrade GNU
14318 *** binutils to release 2.9.1 or newer. Another option is to modify
14319 *** your PATH or compiler configuration so that the native linker is
14320 *** used, and then restart.
14323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14324 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14325 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14332 case `$LD -v 2>&1` in
14333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14338 *** reliably create shared libraries on SCO systems. Therefore, libtool
14339 *** is disabling shared libraries support. We urge you to upgrade GNU
14340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14341 *** your PATH or compiler configuration so that the native linker is
14342 *** used, and then restart.
14347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14348 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14350 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14359 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14361 hardcode_direct_F77=yes
14362 hardcode_shlibpath_var_F77=no
14366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14367 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14368 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14375 if test "$ld_shlibs_F77" = no; then
14377 hardcode_libdir_flag_spec_F77=
14378 export_dynamic_flag_spec_F77=
14379 whole_archive_flag_spec_F77=
14382 # PORTME fill in a description of your system's linker (not GNU ld)
14385 allow_undefined_flag_F77=unsupported
14386 always_export_symbols_F77=yes
14387 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'
14388 # Note: this linker hardcodes the directories in LIBPATH if there
14389 # are no directories specified by -L.
14390 hardcode_minus_L_F77=yes
14391 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14392 # Neither direct hardcoding nor static linking is supported with a
14394 hardcode_direct_F77=unsupported
14399 if test "$host_cpu" = ia64; then
14400 # On IA64, the linker does run time linking by default, so we don't
14401 # have to do anything special.
14402 aix_use_runtimelinking=no
14403 exp_sym_flag='-Bexport'
14406 # If we're using GNU nm, then we don't want the "-C" option.
14407 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14409 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'
14411 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'
14413 aix_use_runtimelinking=no
14415 # Test if we are trying to use run time linking or normal
14416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14417 # need to do runtime linking.
14418 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14419 for ld_flag in $LDFLAGS; do
14420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14421 aix_use_runtimelinking=yes
14428 exp_sym_flag='-bexport'
14429 no_entry_flag='-bnoentry'
14432 # When large executables or shared objects are built, AIX ld can
14433 # have problems creating the table of contents. If linking a library
14434 # or program results in "error TOC overflow" add -mminimal-toc to
14435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14438 archive_cmds_F77=''
14439 hardcode_direct_F77=yes
14440 hardcode_libdir_separator_F77=':'
14441 link_all_deplibs_F77=yes
14443 if test "$GCC" = yes; then
14444 case $host_os in aix4.[012]|aix4.[012].*)
14445 # We only want to do this on AIX 4.2 and lower, the check
14446 # below for broken collect2 doesn't work under 4.3+
14447 collect2name=`${CC} -print-prog-name=collect2`
14448 if test -f "$collect2name" && \
14449 strings "$collect2name" | grep resolve_lib_name >/dev/null
14451 # We have reworked collect2
14452 hardcode_direct_F77=yes
14454 # We have old collect2
14455 hardcode_direct_F77=unsupported
14456 # It fails to find uninstalled libraries when the uninstalled
14457 # path is not listed in the libpath. Setting hardcode_minus_L
14458 # to unsupported forces relinking
14459 hardcode_minus_L_F77=yes
14460 hardcode_libdir_flag_spec_F77='-L$libdir'
14461 hardcode_libdir_separator_F77=
14465 shared_flag='-shared'
14466 if test "$aix_use_runtimelinking" = yes; then
14467 shared_flag="$shared_flag "'${wl}-G'
14471 if test "$host_cpu" = ia64; then
14472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14473 # chokes on -Wl,-G. The following line is correct:
14476 if test "$aix_use_runtimelinking" = yes; then
14477 shared_flag='${wl}-G'
14479 shared_flag='${wl}-bM:SRE'
14484 # It seems that -bexpall does not export symbols beginning with
14485 # underscore (_), so it is better to generate a list of symbols to export.
14486 always_export_symbols_F77=yes
14487 if test "$aix_use_runtimelinking" = yes; then
14488 # Warning - without using the other runtime loading flags (-brtl),
14489 # -berok will link without error, but may produce a broken library.
14490 allow_undefined_flag_F77='-berok'
14491 # Determine the default libpath from the value encoded in an empty executable.
14492 cat >conftest.$ac_ext <<_ACEOF
14497 rm -f conftest.$ac_objext conftest$ac_exeext
14498 if { (ac_try="$ac_link"
14499 case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_link") 2>conftest.er1
14506 grep -v '^ *+' conftest.er1 >conftest.err
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } && {
14511 test -z "$ac_f77_werror_flag" ||
14512 test ! -s conftest.err
14513 } && test -s conftest$ac_exeext &&
14514 $as_test_x conftest$ac_exeext; then
14516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14518 # Check for a 64-bit object if we didn't find anything.
14519 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; }
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529 conftest$ac_exeext conftest.$ac_ext
14530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14532 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14533 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"
14535 if test "$host_cpu" = ia64; then
14536 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14537 allow_undefined_flag_F77="-z nodefs"
14538 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"
14540 # Determine the default libpath from the value encoded in an empty executable.
14541 cat >conftest.$ac_ext <<_ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } && {
14560 test -z "$ac_f77_werror_flag" ||
14561 test ! -s conftest.err
14562 } && test -s conftest$ac_exeext &&
14563 $as_test_x conftest$ac_exeext; then
14565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14567 # Check for a 64-bit object if we didn't find anything.
14568 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; }
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14581 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14582 # Warning - without using the other run time loading flags,
14583 # -berok will link without error, but may produce a broken library.
14584 no_undefined_flag_F77=' ${wl}-bernotok'
14585 allow_undefined_flag_F77=' ${wl}-berok'
14586 # Exported symbols can be pulled into shared objects from archives
14587 whole_archive_flag_spec_F77='$convenience'
14588 archive_cmds_need_lc_F77=yes
14589 # This is similar to how AIX traditionally builds its shared libraries.
14590 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'
14596 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)'
14597 hardcode_libdir_flag_spec_F77='-L$libdir'
14598 hardcode_minus_L_F77=yes
14599 # see comment about different semantics on the GNU ld section
14604 export_dynamic_flag_spec_F77=-rdynamic
14607 cygwin* | mingw* | pw32*)
14608 # When not using gcc, we currently assume that we are using
14609 # Microsoft Visual C++.
14610 # hardcode_libdir_flag_spec is actually meaningless, as there is
14611 # no search path for DLLs.
14612 hardcode_libdir_flag_spec_F77=' '
14613 allow_undefined_flag_F77=unsupported
14614 # Tell ltmain to make .lib files, not .a files.
14616 # Tell ltmain to make .dll files, not .so files.
14618 # FIXME: Setting linknames here is a bad hack.
14619 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14620 # The linker will automatically build a .lib file if we build a DLL.
14621 old_archive_From_new_cmds_F77='true'
14622 # FIXME: Should let the user specify the lib program.
14623 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14624 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14625 enable_shared_with_static_runtimes_F77=yes
14628 darwin* | rhapsody*)
14630 rhapsody* | darwin1.[012])
14631 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14634 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14635 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14637 case ${MACOSX_DEPLOYMENT_TARGET} in
14639 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14642 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14648 archive_cmds_need_lc_F77=no
14649 hardcode_direct_F77=no
14650 hardcode_automatic_F77=yes
14651 hardcode_shlibpath_var_F77=unsupported
14652 whole_archive_flag_spec_F77=''
14653 link_all_deplibs_F77=yes
14654 if test "$GCC" = yes ; then
14655 output_verbose_link_cmd='echo'
14656 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14657 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14658 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14659 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}'
14660 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}'
14662 case $cc_basename in
14664 output_verbose_link_cmd='echo'
14665 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14666 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14668 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}'
14669 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}'
14679 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14680 hardcode_libdir_flag_spec_F77='-L$libdir'
14681 hardcode_shlibpath_var_F77=no
14688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14689 # support. Future versions do this automatically, but an explicit c++rt0.o
14690 # does not break anything, and helps significantly (at the cost of a little
14693 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14694 hardcode_libdir_flag_spec_F77='-R$libdir'
14695 hardcode_direct_F77=yes
14696 hardcode_shlibpath_var_F77=no
14699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14701 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_direct_F77=yes
14703 hardcode_minus_L_F77=yes
14704 hardcode_shlibpath_var_F77=no
14707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14708 freebsd* | dragonfly*)
14709 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14710 hardcode_libdir_flag_spec_F77='-R$libdir'
14711 hardcode_direct_F77=yes
14712 hardcode_shlibpath_var_F77=no
14716 if test "$GCC" = yes; then
14717 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'
14719 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'
14721 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14722 hardcode_libdir_separator_F77=:
14723 hardcode_direct_F77=yes
14725 # hardcode_minus_L: Not really in the search PATH,
14726 # but as the default location of the library.
14727 hardcode_minus_L_F77=yes
14728 export_dynamic_flag_spec_F77='${wl}-E'
14732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14733 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14735 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14737 if test "$with_gnu_ld" = no; then
14738 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14739 hardcode_libdir_separator_F77=:
14741 hardcode_direct_F77=yes
14742 export_dynamic_flag_spec_F77='${wl}-E'
14744 # hardcode_minus_L: Not really in the search PATH,
14745 # but as the default location of the library.
14746 hardcode_minus_L_F77=yes
14751 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14754 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14757 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14760 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14776 if test "$with_gnu_ld" = no; then
14777 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14778 hardcode_libdir_separator_F77=:
14782 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14783 hardcode_direct_F77=no
14784 hardcode_shlibpath_var_F77=no
14787 hardcode_direct_F77=yes
14788 export_dynamic_flag_spec_F77='${wl}-E'
14790 # hardcode_minus_L: Not really in the search PATH,
14791 # but as the default location of the library.
14792 hardcode_minus_L_F77=yes
14798 irix5* | irix6* | nonstopux*)
14799 if test "$GCC" = yes; then
14800 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'
14802 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'
14803 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14806 hardcode_libdir_separator_F77=:
14807 link_all_deplibs_F77=yes
14810 netbsd* | netbsdelf*-gnu)
14811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14812 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14814 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14816 hardcode_libdir_flag_spec_F77='-R$libdir'
14817 hardcode_direct_F77=yes
14818 hardcode_shlibpath_var_F77=no
14822 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823 hardcode_direct_F77=yes
14824 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14825 hardcode_libdir_separator_F77=:
14826 hardcode_shlibpath_var_F77=no
14830 hardcode_direct_F77=yes
14831 hardcode_shlibpath_var_F77=no
14832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14833 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14835 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836 export_dynamic_flag_spec_F77='${wl}-E'
14839 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14840 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_libdir_flag_spec_F77='-R$libdir'
14844 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14845 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14852 hardcode_libdir_flag_spec_F77='-L$libdir'
14853 hardcode_minus_L_F77=yes
14854 allow_undefined_flag_F77=unsupported
14855 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'
14856 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14860 if test "$GCC" = yes; then
14861 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14862 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'
14864 allow_undefined_flag_F77=' -expect_unresolved \*'
14865 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'
14867 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14868 hardcode_libdir_separator_F77=:
14871 osf4* | osf5*) # as osf3* with the addition of -msym flag
14872 if test "$GCC" = yes; then
14873 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14874 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'
14875 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14877 allow_undefined_flag_F77=' -expect_unresolved \*'
14878 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'
14879 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~
14880 $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'
14882 # Both c and cxx compiler support -rpath directly
14883 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14885 hardcode_libdir_separator_F77=:
14889 no_undefined_flag_F77=' -z text'
14890 if test "$GCC" = yes; then
14892 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14894 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14897 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14901 hardcode_libdir_flag_spec_F77='-R$libdir'
14902 hardcode_shlibpath_var_F77=no
14904 solaris2.[0-5] | solaris2.[0-5].*) ;;
14906 # The compiler driver will combine linker options so we
14907 # cannot just pass the convience library names through
14908 # without $wl, iff we do not link with $LD.
14909 # Luckily, gcc supports the same syntax we need for Sun Studio.
14910 # Supported since Solaris 2.6 (maybe 2.5.1?)
14913 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14915 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' ;;
14918 link_all_deplibs_F77=yes
14922 if test "x$host_vendor" = xsequent; then
14923 # Use $CC to link under sequent, because it throws in some extra .o
14924 # files that make .init and .fini sections work.
14925 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_direct_F77=yes
14931 hardcode_minus_L_F77=yes
14932 hardcode_shlibpath_var_F77=no
14936 case $host_vendor in
14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_direct_F77=yes # is this really true???
14942 ## LD is ld it makes a PLAMLIB
14943 ## CC just makes a GrossModule.
14944 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14945 reload_cmds_F77='$CC -r -o $output$reload_objs'
14946 hardcode_direct_F77=no
14949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14953 runpath_var='LD_RUN_PATH'
14954 hardcode_shlibpath_var_F77=no
14958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959 hardcode_shlibpath_var_F77=no
14960 export_dynamic_flag_spec_F77='-Bexport'
14964 if test -d /usr/nec; then
14965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 hardcode_shlibpath_var_F77=no
14967 runpath_var=LD_RUN_PATH
14968 hardcode_runpath_var=yes
14973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14974 no_undefined_flag_F77='${wl}-z,text'
14975 archive_cmds_need_lc_F77=no
14976 hardcode_shlibpath_var_F77=no
14977 runpath_var='LD_RUN_PATH'
14979 if test "$GCC" = yes; then
14980 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 sysv5* | sco3.2v5* | sco5v6*)
14989 # Note: We can NOT use -z defs as we might desire, because we do not
14990 # link with -lc, and that would cause any symbols used from libc to
14991 # always be unresolved, which means just about no library would
14992 # ever link correctly. If we're not using GNU ld we use -z text
14993 # though, which does catch some bad symbols but isn't as heavy-handed
14995 no_undefined_flag_F77='${wl}-z,text'
14996 allow_undefined_flag_F77='${wl}-z,nodefs'
14997 archive_cmds_need_lc_F77=no
14998 hardcode_shlibpath_var_F77=no
14999 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15000 hardcode_libdir_separator_F77=':'
15001 link_all_deplibs_F77=yes
15002 export_dynamic_flag_spec_F77='${wl}-Bexport'
15003 runpath_var='LD_RUN_PATH'
15005 if test "$GCC" = yes; then
15006 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 hardcode_libdir_flag_spec_F77='-L$libdir'
15017 hardcode_shlibpath_var_F77=no
15026 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15027 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15028 test "$ld_shlibs_F77" = no && can_build_shared=no
15031 # Do we need to explicitly link libc?
15033 case "x$archive_cmds_need_lc_F77" in
15035 # Assume -lc should be added
15036 archive_cmds_need_lc_F77=yes
15038 if test "$enable_shared" = yes && test "$GCC" = yes; then
15039 case $archive_cmds_F77 in
15041 # FIXME: we may have to deal with multi-command sequences.
15044 # Test whether the compiler implicitly links with -lc since on some
15045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15046 # to ld, don't add -lc before -lgcc.
15047 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } 2>conftest.err; then
15059 libobjs=conftest.$ac_objext
15061 wl=$lt_prog_compiler_wl_F77
15062 pic_flag=$lt_prog_compiler_pic_F77
15068 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15069 allow_undefined_flag_F77=
15070 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15071 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }
15076 archive_cmds_need_lc_F77=no
15078 archive_cmds_need_lc_F77=yes
15080 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15082 cat conftest.err 1>&5
15085 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15086 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15093 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15095 library_names_spec=
15096 libname_spec='lib$name'
15100 postuninstall_cmds=
15104 shlibpath_overrides_runpath=unknown
15106 dynamic_linker="$host_os ld.so"
15107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15108 if test "$GCC" = yes; then
15109 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15110 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15111 # if the path contains ";" then we assume it to be the separator
15112 # otherwise default to the standard path separator (i.e. ":") - it is
15113 # assumed that no part of a normal pathname contains ";" but that should
15114 # okay in the real world where ";" in dirpaths is itself problematic.
15115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15120 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15122 need_lib_prefix=unknown
15123 hardcode_into_libs=no
15125 # when you set need_version to no, make sure it does not cause -set_version
15126 # flags to be left without arguments
15127 need_version=unknown
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15133 shlibpath_var=LIBPATH
15135 # AIX 3 has no versioning support, so we append a major version to the name.
15136 soname_spec='${libname}${release}${shared_ext}$major'
15143 hardcode_into_libs=yes
15144 if test "$host_cpu" = ia64; then
15145 # AIX 5 supports IA64
15146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15149 # With GCC up to 2.95.x, collect2 would create an import file
15150 # for dependence libraries. The import file would start with
15151 # the line `#! .'. This would cause the generated library to
15152 # depend on `.', always an invalid library. This was fixed in
15153 # development snapshots of GCC prior to 3.0.
15155 aix4 | aix4.[01] | aix4.[01].*)
15156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15158 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15161 can_build_shared=no
15165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15166 # soname into executable. Probably we can add versioning support to
15167 # collect2, so additional links can be useful in future.
15168 if test "$aix_use_runtimelinking" = yes; then
15169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15170 # instead of lib<name>.a to let people know that these are not
15171 # typical AIX shared libraries.
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 # We preserve .a as extension for shared libraries through AIX4.2
15175 # and later when we are not doing run time linking.
15176 library_names_spec='${libname}${release}.a $libname.a'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LIBPATH
15184 library_names_spec='$libname.ixlibrary $libname.a'
15185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15186 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'
15190 library_names_spec='${libname}${shared_ext}'
15191 dynamic_linker="$host_os ld.so"
15192 shlibpath_var=LIBRARY_PATH
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15204 # the default ld.so.conf also contains /usr/contrib/lib and
15205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15206 # libtool to hard-code these into programs
15209 cygwin* | mingw* | pw32*)
15210 version_type=windows
15215 case $GCC,$host_os in
15216 yes,cygwin* | yes,mingw* | yes,pw32*)
15217 library_names_spec='$libname.dll.a'
15218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15219 postinstall_cmds='base_file=`basename \${file}`~
15220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15221 dldir=$destdir/`dirname \$dlpath`~
15222 test -d \$dldir || mkdir -p \$dldir~
15223 $install_prog $dir/$dlname \$dldir/$dlname~
15224 chmod a+x \$dldir/$dlname'
15225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15226 dlpath=$dir/\$dldll~
15228 shlibpath_overrides_runpath=yes
15232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15237 # MinGW DLLs use traditional 'lib' prefix
15238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15239 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15240 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15241 # It is most probably a Windows format PATH printed by
15242 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15243 # path with ; separators, and with drive letters. We can handle the
15244 # drive letters (cygwin fileutils understands them), so leave them,
15245 # especially as we might pass files found there to a mingw objdump,
15246 # which wouldn't understand a cygwinified path. Ahh.
15247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15253 # pw32 DLLs use 'pw' prefix rather than 'lib'
15254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15263 dynamic_linker='Win32 ld.exe'
15264 # FIXME: first we should search . and the directory the executable is in
15268 darwin* | rhapsody*)
15269 dynamic_linker="$host_os dyld"
15270 version_type=darwin
15273 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15274 soname_spec='${libname}${release}${major}$shared_ext'
15275 shlibpath_overrides_runpath=yes
15276 shlibpath_var=DYLD_LIBRARY_PATH
15277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15278 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15279 if test "$GCC" = yes; then
15280 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"`
15282 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15300 freebsd* | dragonfly*)
15301 # DragonFly does not have aout. When/if they implement a new
15302 # versioning mechanism, adjust this.
15303 if test -x /usr/bin/objformat; then
15304 objformat=`/usr/bin/objformat`
15307 freebsd[123]*) objformat=aout ;;
15308 *) objformat=elf ;;
15311 version_type=freebsd-$objformat
15312 case $version_type in
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15323 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15328 freebsd3.[01]* | freebsdelf3.[01]*)
15329 shlibpath_overrides_runpath=yes
15330 hardcode_into_libs=yes
15332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15334 shlibpath_overrides_runpath=no
15335 hardcode_into_libs=yes
15337 freebsd*) # from 4.6 on
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 hardcode_into_libs=yes
15354 hpux9* | hpux10* | hpux11*)
15355 # Give a soname corresponding to the major version so that dld.sl refuses to
15356 # link against other versions.
15363 hardcode_into_libs=yes
15364 dynamic_linker="$host_os dld.so"
15365 shlibpath_var=LD_LIBRARY_PATH
15366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 if test "X$HPUX_IA64_MODE" = X32; then
15370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15378 hardcode_into_libs=yes
15379 dynamic_linker="$host_os dld.sl"
15380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=SHLIB_PATH
15391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15396 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15397 postinstall_cmds='chmod 555 $lib'
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15412 irix5* | irix6* | nonstopux*)
15414 nonstopux*) version_type=nonstopux ;;
15416 if test "$lt_cv_prog_gnu_ld" = yes; then
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15427 irix5* | nonstopux*)
15428 libsuff= shlibsuff=
15431 case $LD in # libtool.m4 will add one of these switches to LD
15432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15433 libsuff= shlibsuff= libmagic=32-bit;;
15434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15435 libsuff=32 shlibsuff=N32 libmagic=N32;;
15436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15438 *) libsuff= shlibsuff= libmagic=never-match;;
15442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15443 shlibpath_overrides_runpath=no
15444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15446 hardcode_into_libs=yes
15449 # No shared lib support for Linux oldld, aout, or coff.
15450 linux*oldld* | linux*aout* | linux*coff*)
15454 # This must be Linux ELF.
15455 linux* | k*bsd*-gnu)
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 shlibpath_overrides_runpath=no
15464 # This implies no fast_install, which is unacceptable.
15465 # Some rework will be needed to allow for fast_install
15466 # before this can be enabled.
15467 hardcode_into_libs=yes
15469 # Append ld.so.conf contents to the search path
15470 if test -f /etc/ld.so.conf; then
15471 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' ' '`
15472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15475 # We used to test for /lib/ld.so.1 and disable shared libraries on
15476 # powerpc, because MkLinux only supported shared libraries with the
15477 # GNU dynamic linker. Since this was broken with cross compilers,
15478 # most powerpc-linux boxes support dynamic linking these days and
15479 # people can always --disable-shared, the test was removed, and we
15480 # assume the GNU/Linux dynamic linker is in use.
15481 dynamic_linker='GNU/Linux ld.so'
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=no
15492 hardcode_into_libs=yes
15493 dynamic_linker='NetBSD ld.elf_so'
15500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15503 dynamic_linker='NetBSD (a.out) ld.so'
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 dynamic_linker='NetBSD ld.elf_so'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes
15511 hardcode_into_libs=yes
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=yes
15533 sys_lib_dlsearch_path_spec="/usr/lib"
15535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15538 *) need_version=no ;;
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15545 openbsd2.[89] | openbsd2.[89].*)
15546 shlibpath_overrides_runpath=no
15549 shlibpath_overrides_runpath=yes
15553 shlibpath_overrides_runpath=yes
15558 libname_spec='$name'
15561 library_names_spec='$libname${shared_ext} $libname.a'
15562 dynamic_linker='OS/2 ld.exe'
15563 shlibpath_var=LIBPATH
15566 osf3* | osf4* | osf5*)
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15585 hardcode_into_libs=yes
15586 # ldd complains unless libraries are executable
15587 postinstall_cmds='chmod +x $lib'
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=yes
15596 if test "$with_gnu_ld" = yes; then
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 case $host_vendor in
15609 shlibpath_overrides_runpath=no
15611 export_dynamic_flag_spec='${wl}-Blargedynsym'
15612 runpath_var=LD_RUN_PATH
15620 shlibpath_overrides_runpath=no
15621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15627 if test -d /usr/nec ;then
15629 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15630 soname_spec='$libname${shared_ext}.$major'
15631 shlibpath_var=LD_LIBRARY_PATH
15635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15636 version_type=freebsd-elf
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 hardcode_into_libs=yes
15643 if test "$with_gnu_ld" = yes; then
15644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15645 shlibpath_overrides_runpath=no
15647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15648 shlibpath_overrides_runpath=yes
15651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15655 sys_lib_dlsearch_path_spec='/usr/lib'
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LD_LIBRARY_PATH
15669 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15670 echo "${ECHO_T}$dynamic_linker" >&6; }
15671 test "$dynamic_linker" = no && can_build_shared=no
15673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15674 if test "$GCC" = yes; then
15675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15678 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15679 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15680 hardcode_action_F77=
15681 if test -n "$hardcode_libdir_flag_spec_F77" || \
15682 test -n "$runpath_var_F77" || \
15683 test "X$hardcode_automatic_F77" = "Xyes" ; then
15685 # We can hardcode non-existant directories.
15686 if test "$hardcode_direct_F77" != no &&
15687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15688 # have to relink, otherwise we might link with an installed library
15689 # when we should be linking with a yet-to-be-installed one
15690 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15691 test "$hardcode_minus_L_F77" != no; then
15692 # Linking always hardcodes the temporary library directory.
15693 hardcode_action_F77=relink
15695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15696 hardcode_action_F77=immediate
15699 # We cannot hardcode anything, or else we can only hardcode existing
15701 hardcode_action_F77=unsupported
15703 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15704 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15706 if test "$hardcode_action_F77" = relink; then
15707 # Fast installation is not supported
15708 enable_fast_install=no
15709 elif test "$shlibpath_overrides_runpath" = yes ||
15710 test "$enable_shared" = no; then
15711 # Fast installation is not necessary
15712 enable_fast_install=needless
15716 # The else clause should only fire when bootstrapping the
15717 # libtool distribution, otherwise you forgot to ship ltmain.sh
15718 # with your package, and you will get complaints that there are
15719 # no rules to generate ltmain.sh.
15720 if test -f "$ltmain"; then
15721 # See if we are running on zsh, and set the options which allow our commands through
15722 # without removal of \ escapes.
15723 if test -n "${ZSH_VERSION+set}" ; then
15724 setopt NO_GLOB_SUBST
15726 # Now quote all the things that may contain metacharacters while being
15727 # careful not to overquote the AC_SUBSTed values. We take copies of the
15728 # variables and quote the copies for generation of the libtool script.
15729 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15731 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15732 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15733 deplibs_check_method reload_flag reload_cmds need_locks \
15734 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15735 lt_cv_sys_global_symbol_to_c_name_address \
15736 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15737 old_postinstall_cmds old_postuninstall_cmds \
15741 lt_prog_compiler_wl_F77 \
15742 lt_prog_compiler_pic_F77 \
15743 lt_prog_compiler_static_F77 \
15744 lt_prog_compiler_no_builtin_flag_F77 \
15745 export_dynamic_flag_spec_F77 \
15746 thread_safe_flag_spec_F77 \
15747 whole_archive_flag_spec_F77 \
15748 enable_shared_with_static_runtimes_F77 \
15749 old_archive_cmds_F77 \
15750 old_archive_from_new_cmds_F77 \
15751 predep_objects_F77 \
15752 postdep_objects_F77 \
15755 compiler_lib_search_path_F77 \
15757 archive_expsym_cmds_F77 \
15758 postinstall_cmds_F77 \
15759 postuninstall_cmds_F77 \
15760 old_archive_from_expsyms_cmds_F77 \
15761 allow_undefined_flag_F77 \
15762 no_undefined_flag_F77 \
15763 export_symbols_cmds_F77 \
15764 hardcode_libdir_flag_spec_F77 \
15765 hardcode_libdir_flag_spec_ld_F77 \
15766 hardcode_libdir_separator_F77 \
15767 hardcode_automatic_F77 \
15769 module_expsym_cmds_F77 \
15770 lt_cv_prog_compiler_c_o_F77 \
15771 exclude_expsyms_F77 \
15772 include_expsyms_F77; do
15775 old_archive_cmds_F77 | \
15776 old_archive_from_new_cmds_F77 | \
15777 archive_cmds_F77 | \
15778 archive_expsym_cmds_F77 | \
15779 module_cmds_F77 | \
15780 module_expsym_cmds_F77 | \
15781 old_archive_from_expsyms_cmds_F77 | \
15782 export_symbols_cmds_F77 | \
15783 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15784 postinstall_cmds | postuninstall_cmds | \
15785 old_postinstall_cmds | old_postuninstall_cmds | \
15786 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15787 # Double-quote double-evaled strings.
15788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15791 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15797 *'\$0 --fallback-echo"')
15798 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15804 cat <<__EOF__ >> "$cfgfile"
15805 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15809 # Shell to use when invoking shell scripts.
15812 # Whether or not to build shared libraries.
15813 build_libtool_libs=$enable_shared
15815 # Whether or not to build static libraries.
15816 build_old_libs=$enable_static
15818 # Whether or not to add -lc for building shared libraries.
15819 build_libtool_need_lc=$archive_cmds_need_lc_F77
15821 # Whether or not to disallow shared libs when runtime libs are static
15822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15824 # Whether or not to optimize for fast installation.
15825 fast_install=$enable_fast_install
15828 host_alias=$host_alias
15832 # The build system.
15833 build_alias=$build_alias
15837 # An echo program that does not interpret backslashes.
15842 AR_FLAGS=$lt_AR_FLAGS
15847 # LTCC compiler flags.
15848 LTCFLAGS=$lt_LTCFLAGS
15850 # A language-specific compiler.
15851 CC=$lt_compiler_F77
15853 # Is the compiler the GNU C compiler?
15859 # The linker used to build libraries.
15862 # Whether we need hard or soft links.
15865 # A BSD-compatible nm program.
15868 # A symbol stripping program
15871 # Used to examine libraries when file_magic_cmd begins "file"
15872 MAGIC_CMD=$MAGIC_CMD
15874 # Used on cygwin: DLL creation program.
15877 # Used on cygwin: object dumper.
15880 # Used on cygwin: assembler.
15883 # The name of the directory that contains temporary libtool files.
15886 # How to create reloadable object files.
15887 reload_flag=$lt_reload_flag
15888 reload_cmds=$lt_reload_cmds
15890 # How to pass a linker flag through the compiler.
15891 wl=$lt_lt_prog_compiler_wl_F77
15893 # Object file suffix (normally "o").
15894 objext="$ac_objext"
15896 # Old archive suffix (normally "a").
15899 # Shared library suffix (normally ".so").
15900 shrext_cmds='$shrext_cmds'
15902 # Executable file suffix (normally "").
15905 # Additional compiler flags for building library objects.
15906 pic_flag=$lt_lt_prog_compiler_pic_F77
15909 # What is the maximum length of a command?
15910 max_cmd_len=$lt_cv_sys_max_cmd_len
15912 # Does compiler simultaneously support -c and -o options?
15913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15915 # Must we lock files when doing compilation?
15916 need_locks=$lt_need_locks
15918 # Do we need the lib prefix for modules?
15919 need_lib_prefix=$need_lib_prefix
15921 # Do we need a version for libraries?
15922 need_version=$need_version
15924 # Whether dlopen is supported.
15925 dlopen_support=$enable_dlopen
15927 # Whether dlopen of programs is supported.
15928 dlopen_self=$enable_dlopen_self
15930 # Whether dlopen of statically linked programs is supported.
15931 dlopen_self_static=$enable_dlopen_self_static
15933 # Compiler flag to prevent dynamic linking.
15934 link_static_flag=$lt_lt_prog_compiler_static_F77
15936 # Compiler flag to turn off builtin functions.
15937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15939 # Compiler flag to allow reflexive dlopens.
15940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15942 # Compiler flag to generate shared objects directly from archives.
15943 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15945 # Compiler flag to generate thread-safe objects.
15946 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15948 # Library versioning type.
15949 version_type=$version_type
15951 # Format of library name prefix.
15952 libname_spec=$lt_libname_spec
15954 # List of archive names. First name is the real one, the rest are links.
15955 # The last name is the one that the linker finds with -lNAME.
15956 library_names_spec=$lt_library_names_spec
15958 # The coded name of the library, if different from the real name.
15959 soname_spec=$lt_soname_spec
15961 # Commands used to build and install an old-style archive.
15963 old_archive_cmds=$lt_old_archive_cmds_F77
15964 old_postinstall_cmds=$lt_old_postinstall_cmds
15965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15967 # Create an old-style archive from a shared archive.
15968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15970 # Create a temporary old-style archive to link instead of a shared archive.
15971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15973 # Commands used to build and install a shared archive.
15974 archive_cmds=$lt_archive_cmds_F77
15975 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15976 postinstall_cmds=$lt_postinstall_cmds
15977 postuninstall_cmds=$lt_postuninstall_cmds
15979 # Commands used to build a loadable module (assumed same as above if empty)
15980 module_cmds=$lt_module_cmds_F77
15981 module_expsym_cmds=$lt_module_expsym_cmds_F77
15983 # Commands to strip libraries.
15984 old_striplib=$lt_old_striplib
15985 striplib=$lt_striplib
15987 # Dependencies to place before the objects being linked to create a
15989 predep_objects=$lt_predep_objects_F77
15991 # Dependencies to place after the objects being linked to create a
15993 postdep_objects=$lt_postdep_objects_F77
15995 # Dependencies to place before the objects being linked to create a
15997 predeps=$lt_predeps_F77
15999 # Dependencies to place after the objects being linked to create a
16001 postdeps=$lt_postdeps_F77
16003 # The library search path used internally by the compiler when linking
16004 # a shared library.
16005 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16007 # Method to check whether dependent libraries are shared objects.
16008 deplibs_check_method=$lt_deplibs_check_method
16010 # Command to use when deplibs_check_method == file_magic.
16011 file_magic_cmd=$lt_file_magic_cmd
16013 # Flag that allows shared libraries with undefined symbols to be built.
16014 allow_undefined_flag=$lt_allow_undefined_flag_F77
16016 # Flag that forces no undefined symbols.
16017 no_undefined_flag=$lt_no_undefined_flag_F77
16019 # Commands used to finish a libtool library installation in a directory.
16020 finish_cmds=$lt_finish_cmds
16022 # Same as above, but a single script fragment to be evaled but not shown.
16023 finish_eval=$lt_finish_eval
16025 # Take the output of nm and produce a listing of raw symbols and C names.
16026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16028 # Transform the output of nm in a proper C declaration
16029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16031 # Transform the output of nm in a C name address pair
16032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16034 # This is the shared library runtime path variable.
16035 runpath_var=$runpath_var
16037 # This is the shared library path variable.
16038 shlibpath_var=$shlibpath_var
16040 # Is shlibpath searched before the hard-coded library search path?
16041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16043 # How to hardcode a shared library path into an executable.
16044 hardcode_action=$hardcode_action_F77
16046 # Whether we should hardcode library paths into libraries.
16047 hardcode_into_libs=$hardcode_into_libs
16049 # Flag to hardcode \$libdir into a binary during linking.
16050 # This must work even if \$libdir does not exist.
16051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16053 # If ld is used when linking, flag to hardcode \$libdir into
16054 # a binary during linking. This must work even if \$libdir does
16056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16058 # Whether we need a single -rpath flag with a separated argument.
16059 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16061 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16062 # resulting binary.
16063 hardcode_direct=$hardcode_direct_F77
16065 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16066 # resulting binary.
16067 hardcode_minus_L=$hardcode_minus_L_F77
16069 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16070 # the resulting binary.
16071 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16073 # Set to yes if building a shared library automatically hardcodes DIR into the library
16074 # and all subsequent libraries and executables linked against it.
16075 hardcode_automatic=$hardcode_automatic_F77
16077 # Variables whose values should be saved in libtool wrapper scripts and
16078 # restored at relink time.
16079 variables_saved_for_relink="$variables_saved_for_relink"
16081 # Whether libtool must link a program against all its dependency libraries.
16082 link_all_deplibs=$link_all_deplibs_F77
16084 # Compile-time system search path for libraries
16085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16087 # Run-time system search path for libraries
16088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16090 # Fix the shell variable \$srcfile for the compiler.
16091 fix_srcfile_path="$fix_srcfile_path_F77"
16093 # Set to yes if exported symbols are required.
16094 always_export_symbols=$always_export_symbols_F77
16096 # The commands to list exported symbols.
16097 export_symbols_cmds=$lt_export_symbols_cmds_F77
16099 # The commands to extract the exported symbol list from a shared archive.
16100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16102 # Symbols that should not be listed in the preloaded symbols.
16103 exclude_expsyms=$lt_exclude_expsyms_F77
16105 # Symbols that must always be exported.
16106 include_expsyms=$lt_include_expsyms_F77
16108 # ### END LIBTOOL TAG CONFIG: $tagname
16114 # If there is no Makefile yet, we rely on a make rule to execute
16115 # `config.status --recheck' to rerun these tests and create the
16116 # libtool script then.
16117 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16118 if test -f "$ltmain_in"; then
16119 test -f Makefile && make "$ltmain"
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16138 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16141 # Source file extension for Java test sources.
16144 # Object file extension for compiled Java test sources.
16148 # Code to be used in simple compile tests
16149 lt_simple_compile_test_code="class foo {}\n"
16151 # Code to be used in simple link tests
16152 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16156 # If no C compiler was specified, use CC.
16159 # If no C compiler flags were specified, use CFLAGS.
16160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16162 # Allow CC to be a program name with arguments.
16166 # save warnings/boilerplate of simple test code
16167 ac_outfile=conftest.$ac_objext
16168 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16170 _lt_compiler_boilerplate=`cat conftest.err`
16173 ac_outfile=conftest.$ac_objext
16174 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16176 _lt_linker_boilerplate=`cat conftest.err`
16180 # Allow CC to be a program name with arguments.
16185 for cc_temp in $compiler""; do
16187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16196 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16197 archive_cmds_need_lc_GCJ=no
16199 old_archive_cmds_GCJ=$old_archive_cmds
16202 lt_prog_compiler_no_builtin_flag_GCJ=
16204 if test "$GCC" = yes; then
16205 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16208 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16209 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16210 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 lt_cv_prog_compiler_rtti_exceptions=no
16214 ac_outfile=conftest.$ac_objext
16215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16216 lt_compiler_flag="-fno-rtti -fno-exceptions"
16217 # Insert the option either (1) after the last *FLAGS variable, or
16218 # (2) before a word containing "conftest.", or (3) at the end.
16219 # Note that $ac_compile itself does not contain backslashes and begins
16220 # with a dollar sign (not a hyphen), so the echo should work correctly.
16221 # The option is referenced via a variable to avoid confusing sed.
16222 lt_compile=`echo "$ac_compile" | $SED \
16223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16225 -e 's:$: $lt_compiler_flag:'`
16226 (eval echo "\"\$as_me:16226: $lt_compile\"" >&5)
16227 (eval "$lt_compile" 2>conftest.err)
16229 cat conftest.err >&5
16230 echo "$as_me:16230: \$? = $ac_status" >&5
16231 if (exit $ac_status) && test -s "$ac_outfile"; then
16232 # The compiler can only warn and ignore the option if not recognized
16233 # So say no if there are warnings other than the usual output.
16234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16237 lt_cv_prog_compiler_rtti_exceptions=yes
16243 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16244 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16246 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16247 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16254 lt_prog_compiler_wl_GCJ=
16255 lt_prog_compiler_pic_GCJ=
16256 lt_prog_compiler_static_GCJ=
16258 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16261 if test "$GCC" = yes; then
16262 lt_prog_compiler_wl_GCJ='-Wl,'
16263 lt_prog_compiler_static_GCJ='-static'
16267 # All AIX code is PIC.
16268 if test "$host_cpu" = ia64; then
16269 # AIX 5 now supports IA64 processor
16270 lt_prog_compiler_static_GCJ='-Bstatic'
16275 # FIXME: we need at least 68020 code to build shared libraries, but
16276 # adding the `-m68020' flag to GCC prevents building anything better,
16278 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16281 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16282 # PIC is the default for these OSes.
16285 mingw* | pw32* | os2*)
16286 # This hack is so that the source file can tell whether it is being
16287 # built for inclusion in a dll (and should export symbols for example).
16288 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16291 darwin* | rhapsody*)
16292 # PIC is the default on this platform
16293 # Common symbols not allowed in MH_DYLIB files
16294 lt_prog_compiler_pic_GCJ='-fno-common'
16298 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16299 # Instead, we relocate shared libraries at runtime.
16303 # Just because we use GCC doesn't mean we suddenly get shared libraries
16304 # on systems that don't support them.
16305 lt_prog_compiler_can_build_shared_GCJ=no
16310 if test -d /usr/nec; then
16311 lt_prog_compiler_pic_GCJ=-Kconform_pic
16316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16317 # not for PA HP-UX.
16323 lt_prog_compiler_pic_GCJ='-fPIC'
16329 lt_prog_compiler_pic_GCJ='-fPIC'
16333 # PORTME Check for flag to pass linker flags through the system compiler.
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 if test "$host_cpu" = ia64; then
16338 # AIX 5 now supports IA64 processor
16339 lt_prog_compiler_static_GCJ='-Bstatic'
16341 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16345 # PIC is the default on this platform
16346 # Common symbols not allowed in MH_DYLIB files
16347 case $cc_basename in
16349 lt_prog_compiler_pic_GCJ='-qnocommon'
16350 lt_prog_compiler_wl_GCJ='-Wl,'
16355 mingw* | pw32* | os2*)
16356 # This hack is so that the source file can tell whether it is being
16357 # built for inclusion in a dll (and should export symbols for example).
16358 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16361 hpux9* | hpux10* | hpux11*)
16362 lt_prog_compiler_wl_GCJ='-Wl,'
16363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16364 # not for PA HP-UX.
16370 lt_prog_compiler_pic_GCJ='+Z'
16373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16374 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16377 irix5* | irix6* | nonstopux*)
16378 lt_prog_compiler_wl_GCJ='-Wl,'
16379 # PIC (with -KPIC) is the default.
16380 lt_prog_compiler_static_GCJ='-non_shared'
16384 lt_prog_compiler_pic_GCJ='-KPIC'
16385 lt_prog_compiler_static_GCJ='-Bstatic'
16388 linux* | k*bsd*-gnu)
16389 case $cc_basename in
16391 lt_prog_compiler_wl_GCJ='-Wl,'
16392 lt_prog_compiler_pic_GCJ='-KPIC'
16393 lt_prog_compiler_static_GCJ='-static'
16395 pgcc* | pgf77* | pgf90* | pgf95*)
16396 # Portland Group compilers (*not* the Pentium gcc compiler,
16397 # which looks to be a dead project)
16398 lt_prog_compiler_wl_GCJ='-Wl,'
16399 lt_prog_compiler_pic_GCJ='-fpic'
16400 lt_prog_compiler_static_GCJ='-Bstatic'
16403 lt_prog_compiler_wl_GCJ='-Wl,'
16404 # All Alpha code is PIC.
16405 lt_prog_compiler_static_GCJ='-non_shared'
16410 osf3* | osf4* | osf5*)
16411 lt_prog_compiler_wl_GCJ='-Wl,'
16412 # All OSF/1 code is PIC.
16413 lt_prog_compiler_static_GCJ='-non_shared'
16417 lt_prog_compiler_pic_GCJ='-KPIC'
16418 lt_prog_compiler_static_GCJ='-Bstatic'
16419 case $cc_basename in
16420 f77* | f90* | f95*)
16421 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16423 lt_prog_compiler_wl_GCJ='-Wl,';;
16428 lt_prog_compiler_wl_GCJ='-Qoption ld '
16429 lt_prog_compiler_pic_GCJ='-PIC'
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16433 sysv4 | sysv4.2uw2* | sysv4.3*)
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 lt_prog_compiler_pic_GCJ='-KPIC'
16436 lt_prog_compiler_static_GCJ='-Bstatic'
16440 if test -d /usr/nec ;then
16441 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16442 lt_prog_compiler_static_GCJ='-Bstatic'
16446 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 lt_prog_compiler_pic_GCJ='-KPIC'
16449 lt_prog_compiler_static_GCJ='-Bstatic'
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 lt_prog_compiler_can_build_shared_GCJ=no
16458 lt_prog_compiler_pic_GCJ='-pic'
16459 lt_prog_compiler_static_GCJ='-Bstatic'
16463 lt_prog_compiler_can_build_shared_GCJ=no
16468 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16469 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16472 # Check to make sure the PIC flag actually works.
16474 if test -n "$lt_prog_compiler_pic_GCJ"; then
16476 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16477 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16478 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 lt_prog_compiler_pic_works_GCJ=no
16482 ac_outfile=conftest.$ac_objext
16483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16484 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16485 # Insert the option either (1) after the last *FLAGS variable, or
16486 # (2) before a word containing "conftest.", or (3) at the end.
16487 # Note that $ac_compile itself does not contain backslashes and begins
16488 # with a dollar sign (not a hyphen), so the echo should work correctly.
16489 # The option is referenced via a variable to avoid confusing sed.
16490 lt_compile=`echo "$ac_compile" | $SED \
16491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16493 -e 's:$: $lt_compiler_flag:'`
16494 (eval echo "\"\$as_me:16494: $lt_compile\"" >&5)
16495 (eval "$lt_compile" 2>conftest.err)
16497 cat conftest.err >&5
16498 echo "$as_me:16498: \$? = $ac_status" >&5
16499 if (exit $ac_status) && test -s "$ac_outfile"; then
16500 # The compiler can only warn and ignore the option if not recognized
16501 # So say no if there are warnings other than the usual output.
16502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16505 lt_prog_compiler_pic_works_GCJ=yes
16511 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16512 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16514 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16515 case $lt_prog_compiler_pic_GCJ in
16517 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16520 lt_prog_compiler_pic_GCJ=
16521 lt_prog_compiler_can_build_shared_GCJ=no
16526 # For platforms which do not support PIC, -DPIC is meaningless:
16528 lt_prog_compiler_pic_GCJ=
16531 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16536 # Check to make sure the static flag actually works.
16538 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16539 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16540 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16541 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 lt_prog_compiler_static_works_GCJ=no
16545 save_LDFLAGS="$LDFLAGS"
16546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16547 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16549 # The linker can only warn and ignore the option if not recognized
16550 # So say no if there are warnings
16551 if test -s conftest.err; then
16552 # Append any errors to the config.log.
16553 cat conftest.err 1>&5
16554 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16556 if diff conftest.exp conftest.er2 >/dev/null; then
16557 lt_prog_compiler_static_works_GCJ=yes
16560 lt_prog_compiler_static_works_GCJ=yes
16564 LDFLAGS="$save_LDFLAGS"
16567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16568 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16570 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16573 lt_prog_compiler_static_GCJ=
16577 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16578 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16579 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 lt_cv_prog_compiler_c_o_GCJ=no
16583 $rm -r conftest 2>/dev/null
16587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16589 lt_compiler_flag="-o out/conftest2.$ac_objext"
16590 # Insert the option either (1) after the last *FLAGS variable, or
16591 # (2) before a word containing "conftest.", or (3) at the end.
16592 # Note that $ac_compile itself does not contain backslashes and begins
16593 # with a dollar sign (not a hyphen), so the echo should work correctly.
16594 lt_compile=`echo "$ac_compile" | $SED \
16595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597 -e 's:$: $lt_compiler_flag:'`
16598 (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
16599 (eval "$lt_compile" 2>out/conftest.err)
16601 cat out/conftest.err >&5
16602 echo "$as_me:16602: \$? = $ac_status" >&5
16603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16605 # The compiler can only warn and ignore the option if not recognized
16606 # So say no if there are warnings
16607 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16610 lt_cv_prog_compiler_c_o_GCJ=yes
16615 # SGI C++ compiler will create directory out/ii_files/ for
16616 # template instantiation
16617 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16618 $rm out/* && rmdir out
16624 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16625 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16628 hard_links="nottested"
16629 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16630 # do not overwrite the value of need_locks provided by the user
16631 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16632 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16637 ln conftest.a conftest.b 2>&5 || hard_links=no
16638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16639 { echo "$as_me:$LINENO: result: $hard_links" >&5
16640 echo "${ECHO_T}$hard_links" >&6; }
16641 if test "$hard_links" = no; then
16642 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16643 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16650 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16651 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16654 allow_undefined_flag_GCJ=
16655 enable_shared_with_static_runtimes_GCJ=no
16657 archive_expsym_cmds_GCJ=
16658 old_archive_From_new_cmds_GCJ=
16659 old_archive_from_expsyms_cmds_GCJ=
16660 export_dynamic_flag_spec_GCJ=
16661 whole_archive_flag_spec_GCJ=
16662 thread_safe_flag_spec_GCJ=
16663 hardcode_libdir_flag_spec_GCJ=
16664 hardcode_libdir_flag_spec_ld_GCJ=
16665 hardcode_libdir_separator_GCJ=
16666 hardcode_direct_GCJ=no
16667 hardcode_minus_L_GCJ=no
16668 hardcode_shlibpath_var_GCJ=unsupported
16669 link_all_deplibs_GCJ=unknown
16670 hardcode_automatic_GCJ=no
16672 module_expsym_cmds_GCJ=
16673 always_export_symbols_GCJ=no
16674 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16675 # include_expsyms should be a list of space-separated symbols to be *always*
16676 # included in the symbol list
16677 include_expsyms_GCJ=
16678 # exclude_expsyms can be an extended regexp of symbols to exclude
16679 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16680 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16681 # as well as any symbol that contains `d'.
16682 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16683 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16684 # platforms (ab)use it in PIC code, but their linkers get confused if
16685 # the symbol is explicitly referenced. Since portable code cannot
16686 # rely on this symbol name, it's probably fine to never include it in
16687 # preloaded symbol tables.
16688 extract_expsyms_cmds=
16689 # Just being paranoid about ensuring that cc_basename is set.
16690 for cc_temp in $compiler""; do
16692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16701 cygwin* | mingw* | pw32*)
16702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16703 # When not using gcc, we currently assume that we are using
16704 # Microsoft Visual C++.
16705 if test "$GCC" != yes; then
16710 # we just hope/assume this is gcc and not c89 (= MSVC++)
16719 if test "$with_gnu_ld" = yes; then
16720 # If archive_cmds runs LD, not CC, wlarc should be empty
16723 # Set some defaults for GNU ld with shared library support. These
16724 # are reset later if shared libraries are not supported. Putting them
16725 # here allows them to be overridden if necessary.
16726 runpath_var=LD_RUN_PATH
16727 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16728 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16729 # ancient GNU ld didn't support --whole-archive et. al.
16730 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16731 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16733 whole_archive_flag_spec_GCJ=
16735 supports_anon_versioning=no
16736 case `$LD -v 2>/dev/null` in
16737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16740 *\ 2.11.*) ;; # other 2.11 versions
16741 *) supports_anon_versioning=yes ;;
16744 # See if GNU ld supports shared libraries.
16746 aix3* | aix4* | aix5*)
16747 # On AIX/PPC, the GNU linker is very broken
16748 if test "$host_cpu" != ia64; then
16752 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16753 *** to be unable to reliably create shared libraries on AIX.
16754 *** Therefore, libtool is disabling shared libraries support. If you
16755 *** really care for shared libraries, you may want to modify your PATH
16756 *** so that a non-GNU linker is found, and then restart.
16763 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)'
16764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16765 hardcode_minus_L_GCJ=yes
16767 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16768 # that the semantics of dynamic libraries on AmigaOS, at least up
16769 # to version 4, is to share data among multiple programs linked
16770 # with the same dynamic library. Since this doesn't match the
16771 # behavior of shared libraries on other platforms, we can't use
16777 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16778 allow_undefined_flag_GCJ=unsupported
16779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16780 # support --undefined. This deserves some investigation. FIXME
16781 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16787 cygwin* | mingw* | pw32*)
16788 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16789 # as there is no search path for DLLs.
16790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791 allow_undefined_flag_GCJ=unsupported
16792 always_export_symbols_GCJ=no
16793 enable_shared_with_static_runtimes_GCJ=yes
16794 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16796 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16798 # If the export-symbols file already is a .def file (1st line
16799 # is EXPORTS), use it as is; otherwise, prepend...
16800 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16801 cp $export_symbols $output_objdir/$soname.def;
16803 echo EXPORTS > $output_objdir/$soname.def;
16804 cat $export_symbols >> $output_objdir/$soname.def;
16806 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16813 hardcode_direct_GCJ=no
16814 hardcode_shlibpath_var_GCJ=no
16815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16816 export_dynamic_flag_spec_GCJ='${wl}-E'
16817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16818 # Instead, shared libraries are loaded at an image base (0x10000000 by
16819 # default) and relocated if they conflict, which is a slow very memory
16820 # consuming and fragmenting process. To avoid this, we pick a random,
16821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16823 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'
16824 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'
16827 linux* | k*bsd*-gnu)
16828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16830 case $cc_basename,$host_cpu in
16831 pgcc*) # Portland Group C compiler
16832 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'
16833 tmp_addflag=' $pic_flag'
16835 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16836 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'
16837 tmp_addflag=' $pic_flag -Mnomain' ;;
16838 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16839 tmp_addflag=' -i_dynamic' ;;
16840 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16841 tmp_addflag=' -i_dynamic -nofor_main' ;;
16842 ifc* | ifort*) # Intel Fortran compiler
16843 tmp_addflag=' -nofor_main' ;;
16845 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16847 if test $supports_anon_versioning = yes; then
16848 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16850 $echo "local: *; };" >> $output_objdir/$libname.ver~
16851 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16853 link_all_deplibs_GCJ=no
16859 netbsd* | netbsdelf*-gnu)
16860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16861 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16864 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16870 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16874 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16875 *** create shared libraries on Solaris systems. Therefore, libtool
16876 *** is disabling shared libraries support. We urge you to upgrade GNU
16877 *** binutils to release 2.9.1 or newer. Another option is to modify
16878 *** your PATH or compiler configuration so that the native linker is
16879 *** used, and then restart.
16882 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16884 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16891 case `$LD -v 2>&1` in
16892 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16896 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16897 *** reliably create shared libraries on SCO systems. Therefore, libtool
16898 *** is disabling shared libraries support. We urge you to upgrade GNU
16899 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16900 *** your PATH or compiler configuration so that the native linker is
16901 *** used, and then restart.
16906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16907 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16908 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16909 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16918 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_direct_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=no
16925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16926 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16934 if test "$ld_shlibs_GCJ" = no; then
16936 hardcode_libdir_flag_spec_GCJ=
16937 export_dynamic_flag_spec_GCJ=
16938 whole_archive_flag_spec_GCJ=
16941 # PORTME fill in a description of your system's linker (not GNU ld)
16944 allow_undefined_flag_GCJ=unsupported
16945 always_export_symbols_GCJ=yes
16946 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'
16947 # Note: this linker hardcodes the directories in LIBPATH if there
16948 # are no directories specified by -L.
16949 hardcode_minus_L_GCJ=yes
16950 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16951 # Neither direct hardcoding nor static linking is supported with a
16953 hardcode_direct_GCJ=unsupported
16958 if test "$host_cpu" = ia64; then
16959 # On IA64, the linker does run time linking by default, so we don't
16960 # have to do anything special.
16961 aix_use_runtimelinking=no
16962 exp_sym_flag='-Bexport'
16965 # If we're using GNU nm, then we don't want the "-C" option.
16966 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16967 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16968 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'
16970 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'
16972 aix_use_runtimelinking=no
16974 # Test if we are trying to use run time linking or normal
16975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16976 # need to do runtime linking.
16977 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16978 for ld_flag in $LDFLAGS; do
16979 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16980 aix_use_runtimelinking=yes
16987 exp_sym_flag='-bexport'
16988 no_entry_flag='-bnoentry'
16991 # When large executables or shared objects are built, AIX ld can
16992 # have problems creating the table of contents. If linking a library
16993 # or program results in "error TOC overflow" add -mminimal-toc to
16994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16997 archive_cmds_GCJ=''
16998 hardcode_direct_GCJ=yes
16999 hardcode_libdir_separator_GCJ=':'
17000 link_all_deplibs_GCJ=yes
17002 if test "$GCC" = yes; then
17003 case $host_os in aix4.[012]|aix4.[012].*)
17004 # We only want to do this on AIX 4.2 and lower, the check
17005 # below for broken collect2 doesn't work under 4.3+
17006 collect2name=`${CC} -print-prog-name=collect2`
17007 if test -f "$collect2name" && \
17008 strings "$collect2name" | grep resolve_lib_name >/dev/null
17010 # We have reworked collect2
17011 hardcode_direct_GCJ=yes
17013 # We have old collect2
17014 hardcode_direct_GCJ=unsupported
17015 # It fails to find uninstalled libraries when the uninstalled
17016 # path is not listed in the libpath. Setting hardcode_minus_L
17017 # to unsupported forces relinking
17018 hardcode_minus_L_GCJ=yes
17019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17020 hardcode_libdir_separator_GCJ=
17024 shared_flag='-shared'
17025 if test "$aix_use_runtimelinking" = yes; then
17026 shared_flag="$shared_flag "'${wl}-G'
17030 if test "$host_cpu" = ia64; then
17031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17032 # chokes on -Wl,-G. The following line is correct:
17035 if test "$aix_use_runtimelinking" = yes; then
17036 shared_flag='${wl}-G'
17038 shared_flag='${wl}-bM:SRE'
17043 # It seems that -bexpall does not export symbols beginning with
17044 # underscore (_), so it is better to generate a list of symbols to export.
17045 always_export_symbols_GCJ=yes
17046 if test "$aix_use_runtimelinking" = yes; then
17047 # Warning - without using the other runtime loading flags (-brtl),
17048 # -berok will link without error, but may produce a broken library.
17049 allow_undefined_flag_GCJ='-berok'
17050 # Determine the default libpath from the value encoded in an empty executable.
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest$ac_exeext &&
17083 $as_test_x conftest$ac_exeext; then
17085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17087 # Check for a 64-bit object if we didn't find anything.
17088 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; }
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17098 conftest$ac_exeext conftest.$ac_ext
17099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17101 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17102 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"
17104 if test "$host_cpu" = ia64; then
17105 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17106 allow_undefined_flag_GCJ="-z nodefs"
17107 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"
17109 # Determine the default libpath from the value encoded in an empty executable.
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17146 # Check for a 64-bit object if we didn't find anything.
17147 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; }
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17157 conftest$ac_exeext conftest.$ac_ext
17158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17160 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17161 # Warning - without using the other run time loading flags,
17162 # -berok will link without error, but may produce a broken library.
17163 no_undefined_flag_GCJ=' ${wl}-bernotok'
17164 allow_undefined_flag_GCJ=' ${wl}-berok'
17165 # Exported symbols can be pulled into shared objects from archives
17166 whole_archive_flag_spec_GCJ='$convenience'
17167 archive_cmds_need_lc_GCJ=yes
17168 # This is similar to how AIX traditionally builds its shared libraries.
17169 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'
17175 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)'
17176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177 hardcode_minus_L_GCJ=yes
17178 # see comment about different semantics on the GNU ld section
17183 export_dynamic_flag_spec_GCJ=-rdynamic
17186 cygwin* | mingw* | pw32*)
17187 # When not using gcc, we currently assume that we are using
17188 # Microsoft Visual C++.
17189 # hardcode_libdir_flag_spec is actually meaningless, as there is
17190 # no search path for DLLs.
17191 hardcode_libdir_flag_spec_GCJ=' '
17192 allow_undefined_flag_GCJ=unsupported
17193 # Tell ltmain to make .lib files, not .a files.
17195 # Tell ltmain to make .dll files, not .so files.
17197 # FIXME: Setting linknames here is a bad hack.
17198 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17199 # The linker will automatically build a .lib file if we build a DLL.
17200 old_archive_From_new_cmds_GCJ='true'
17201 # FIXME: Should let the user specify the lib program.
17202 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17203 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17204 enable_shared_with_static_runtimes_GCJ=yes
17207 darwin* | rhapsody*)
17209 rhapsody* | darwin1.[012])
17210 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17213 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17214 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17216 case ${MACOSX_DEPLOYMENT_TARGET} in
17218 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17227 archive_cmds_need_lc_GCJ=no
17228 hardcode_direct_GCJ=no
17229 hardcode_automatic_GCJ=yes
17230 hardcode_shlibpath_var_GCJ=unsupported
17231 whole_archive_flag_spec_GCJ=''
17232 link_all_deplibs_GCJ=yes
17233 if test "$GCC" = yes ; then
17234 output_verbose_link_cmd='echo'
17235 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17236 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17238 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}'
17239 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}'
17241 case $cc_basename in
17243 output_verbose_link_cmd='echo'
17244 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17245 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17247 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}'
17248 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}'
17258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17260 hardcode_shlibpath_var_GCJ=no
17267 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17268 # support. Future versions do this automatically, but an explicit c++rt0.o
17269 # does not break anything, and helps significantly (at the cost of a little
17272 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17274 hardcode_direct_GCJ=yes
17275 hardcode_shlibpath_var_GCJ=no
17278 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17281 hardcode_direct_GCJ=yes
17282 hardcode_minus_L_GCJ=yes
17283 hardcode_shlibpath_var_GCJ=no
17286 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17287 freebsd* | dragonfly*)
17288 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17289 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17290 hardcode_direct_GCJ=yes
17291 hardcode_shlibpath_var_GCJ=no
17295 if test "$GCC" = yes; then
17296 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'
17298 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'
17300 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17301 hardcode_libdir_separator_GCJ=:
17302 hardcode_direct_GCJ=yes
17304 # hardcode_minus_L: Not really in the search PATH,
17305 # but as the default location of the library.
17306 hardcode_minus_L_GCJ=yes
17307 export_dynamic_flag_spec_GCJ='${wl}-E'
17311 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17312 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17316 if test "$with_gnu_ld" = no; then
17317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17318 hardcode_libdir_separator_GCJ=:
17320 hardcode_direct_GCJ=yes
17321 export_dynamic_flag_spec_GCJ='${wl}-E'
17323 # hardcode_minus_L: Not really in the search PATH,
17324 # but as the default location of the library.
17325 hardcode_minus_L_GCJ=yes
17330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17333 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17336 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17351 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17355 if test "$with_gnu_ld" = no; then
17356 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17357 hardcode_libdir_separator_GCJ=:
17361 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17362 hardcode_direct_GCJ=no
17363 hardcode_shlibpath_var_GCJ=no
17366 hardcode_direct_GCJ=yes
17367 export_dynamic_flag_spec_GCJ='${wl}-E'
17369 # hardcode_minus_L: Not really in the search PATH,
17370 # but as the default location of the library.
17371 hardcode_minus_L_GCJ=yes
17377 irix5* | irix6* | nonstopux*)
17378 if test "$GCC" = yes; then
17379 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'
17381 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'
17382 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17385 hardcode_libdir_separator_GCJ=:
17386 link_all_deplibs_GCJ=yes
17389 netbsd* | netbsdelf*-gnu)
17390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17393 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17396 hardcode_direct_GCJ=yes
17397 hardcode_shlibpath_var_GCJ=no
17401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402 hardcode_direct_GCJ=yes
17403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17404 hardcode_libdir_separator_GCJ=:
17405 hardcode_shlibpath_var_GCJ=no
17409 hardcode_direct_GCJ=yes
17410 hardcode_shlibpath_var_GCJ=no
17411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17412 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17413 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17415 export_dynamic_flag_spec_GCJ='${wl}-E'
17418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17423 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17432 hardcode_minus_L_GCJ=yes
17433 allow_undefined_flag_GCJ=unsupported
17434 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'
17435 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17439 if test "$GCC" = yes; then
17440 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17441 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'
17443 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17444 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'
17446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator_GCJ=:
17450 osf4* | osf5*) # as osf3* with the addition of -msym flag
17451 if test "$GCC" = yes; then
17452 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17453 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'
17454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17456 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17457 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'
17458 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~
17459 $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'
17461 # Both c and cxx compiler support -rpath directly
17462 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17464 hardcode_libdir_separator_GCJ=:
17468 no_undefined_flag_GCJ=' -z text'
17469 if test "$GCC" = yes; then
17471 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17476 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481 hardcode_shlibpath_var_GCJ=no
17483 solaris2.[0-5] | solaris2.[0-5].*) ;;
17485 # The compiler driver will combine linker options so we
17486 # cannot just pass the convience library names through
17487 # without $wl, iff we do not link with $LD.
17488 # Luckily, gcc supports the same syntax we need for Sun Studio.
17489 # Supported since Solaris 2.6 (maybe 2.5.1?)
17492 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17494 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' ;;
17497 link_all_deplibs_GCJ=yes
17501 if test "x$host_vendor" = xsequent; then
17502 # Use $CC to link under sequent, because it throws in some extra .o
17503 # files that make .init and .fini sections work.
17504 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17506 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17509 hardcode_direct_GCJ=yes
17510 hardcode_minus_L_GCJ=yes
17511 hardcode_shlibpath_var_GCJ=no
17515 case $host_vendor in
17517 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518 hardcode_direct_GCJ=yes # is this really true???
17521 ## LD is ld it makes a PLAMLIB
17522 ## CC just makes a GrossModule.
17523 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17524 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17525 hardcode_direct_GCJ=no
17528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17529 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17532 runpath_var='LD_RUN_PATH'
17533 hardcode_shlibpath_var_GCJ=no
17537 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538 hardcode_shlibpath_var_GCJ=no
17539 export_dynamic_flag_spec_GCJ='-Bexport'
17543 if test -d /usr/nec; then
17544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 hardcode_shlibpath_var_GCJ=no
17546 runpath_var=LD_RUN_PATH
17547 hardcode_runpath_var=yes
17552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17553 no_undefined_flag_GCJ='${wl}-z,text'
17554 archive_cmds_need_lc_GCJ=no
17555 hardcode_shlibpath_var_GCJ=no
17556 runpath_var='LD_RUN_PATH'
17558 if test "$GCC" = yes; then
17559 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17560 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17563 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 sysv5* | sco3.2v5* | sco5v6*)
17568 # Note: We can NOT use -z defs as we might desire, because we do not
17569 # link with -lc, and that would cause any symbols used from libc to
17570 # always be unresolved, which means just about no library would
17571 # ever link correctly. If we're not using GNU ld we use -z text
17572 # though, which does catch some bad symbols but isn't as heavy-handed
17574 no_undefined_flag_GCJ='${wl}-z,text'
17575 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17576 archive_cmds_need_lc_GCJ=no
17577 hardcode_shlibpath_var_GCJ=no
17578 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17579 hardcode_libdir_separator_GCJ=':'
17580 link_all_deplibs_GCJ=yes
17581 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17582 runpath_var='LD_RUN_PATH'
17584 if test "$GCC" = yes; then
17585 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17596 hardcode_shlibpath_var_GCJ=no
17605 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17606 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17607 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17610 # Do we need to explicitly link libc?
17612 case "x$archive_cmds_need_lc_GCJ" in
17614 # Assume -lc should be added
17615 archive_cmds_need_lc_GCJ=yes
17617 if test "$enable_shared" = yes && test "$GCC" = yes; then
17618 case $archive_cmds_GCJ in
17620 # FIXME: we may have to deal with multi-command sequences.
17623 # Test whether the compiler implicitly links with -lc since on some
17624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17625 # to ld, don't add -lc before -lgcc.
17626 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17627 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17629 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632 (eval $ac_compile) 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } 2>conftest.err; then
17638 libobjs=conftest.$ac_objext
17640 wl=$lt_prog_compiler_wl_GCJ
17641 pic_flag=$lt_prog_compiler_pic_GCJ
17647 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17648 allow_undefined_flag_GCJ=
17649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17650 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }
17655 archive_cmds_need_lc_GCJ=no
17657 archive_cmds_need_lc_GCJ=yes
17659 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17661 cat conftest.err 1>&5
17664 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17665 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17672 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17674 library_names_spec=
17675 libname_spec='lib$name'
17679 postuninstall_cmds=
17683 shlibpath_overrides_runpath=unknown
17685 dynamic_linker="$host_os ld.so"
17686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17687 if test "$GCC" = yes; then
17688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17689 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17690 # if the path contains ";" then we assume it to be the separator
17691 # otherwise default to the standard path separator (i.e. ":") - it is
17692 # assumed that no part of a normal pathname contains ";" but that should
17693 # okay in the real world where ";" in dirpaths is itself problematic.
17694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17701 need_lib_prefix=unknown
17702 hardcode_into_libs=no
17704 # when you set need_version to no, make sure it does not cause -set_version
17705 # flags to be left without arguments
17706 need_version=unknown
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17712 shlibpath_var=LIBPATH
17714 # AIX 3 has no versioning support, so we append a major version to the name.
17715 soname_spec='${libname}${release}${shared_ext}$major'
17722 hardcode_into_libs=yes
17723 if test "$host_cpu" = ia64; then
17724 # AIX 5 supports IA64
17725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17726 shlibpath_var=LD_LIBRARY_PATH
17728 # With GCC up to 2.95.x, collect2 would create an import file
17729 # for dependence libraries. The import file would start with
17730 # the line `#! .'. This would cause the generated library to
17731 # depend on `.', always an invalid library. This was fixed in
17732 # development snapshots of GCC prior to 3.0.
17734 aix4 | aix4.[01] | aix4.[01].*)
17735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17737 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17740 can_build_shared=no
17744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17745 # soname into executable. Probably we can add versioning support to
17746 # collect2, so additional links can be useful in future.
17747 if test "$aix_use_runtimelinking" = yes; then
17748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17749 # instead of lib<name>.a to let people know that these are not
17750 # typical AIX shared libraries.
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 # We preserve .a as extension for shared libraries through AIX4.2
17754 # and later when we are not doing run time linking.
17755 library_names_spec='${libname}${release}.a $libname.a'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17758 shlibpath_var=LIBPATH
17763 library_names_spec='$libname.ixlibrary $libname.a'
17764 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17765 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'
17769 library_names_spec='${libname}${shared_ext}'
17770 dynamic_linker="$host_os ld.so"
17771 shlibpath_var=LIBRARY_PATH
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17783 # the default ld.so.conf also contains /usr/contrib/lib and
17784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17785 # libtool to hard-code these into programs
17788 cygwin* | mingw* | pw32*)
17789 version_type=windows
17794 case $GCC,$host_os in
17795 yes,cygwin* | yes,mingw* | yes,pw32*)
17796 library_names_spec='$libname.dll.a'
17797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17798 postinstall_cmds='base_file=`basename \${file}`~
17799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17800 dldir=$destdir/`dirname \$dlpath`~
17801 test -d \$dldir || mkdir -p \$dldir~
17802 $install_prog $dir/$dlname \$dldir/$dlname~
17803 chmod a+x \$dldir/$dlname'
17804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17805 dlpath=$dir/\$dldll~
17807 shlibpath_overrides_runpath=yes
17811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17816 # MinGW DLLs use traditional 'lib' prefix
17817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17819 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17820 # It is most probably a Windows format PATH printed by
17821 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17822 # path with ; separators, and with drive letters. We can handle the
17823 # drive letters (cygwin fileutils understands them), so leave them,
17824 # especially as we might pass files found there to a mingw objdump,
17825 # which wouldn't understand a cygwinified path. Ahh.
17826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17832 # pw32 DLLs use 'pw' prefix rather than 'lib'
17833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17842 dynamic_linker='Win32 ld.exe'
17843 # FIXME: first we should search . and the directory the executable is in
17847 darwin* | rhapsody*)
17848 dynamic_linker="$host_os dyld"
17849 version_type=darwin
17852 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17853 soname_spec='${libname}${release}${major}$shared_ext'
17854 shlibpath_overrides_runpath=yes
17855 shlibpath_var=DYLD_LIBRARY_PATH
17856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17857 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17858 if test "$GCC" = yes; then
17859 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"`
17861 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 shlibpath_var=LD_LIBRARY_PATH
17879 freebsd* | dragonfly*)
17880 # DragonFly does not have aout. When/if they implement a new
17881 # versioning mechanism, adjust this.
17882 if test -x /usr/bin/objformat; then
17883 objformat=`/usr/bin/objformat`
17886 freebsd[123]*) objformat=aout ;;
17887 *) objformat=elf ;;
17890 version_type=freebsd-$objformat
17891 case $version_type in
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17902 shlibpath_var=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath=yes
17907 freebsd3.[01]* | freebsdelf3.[01]*)
17908 shlibpath_overrides_runpath=yes
17909 hardcode_into_libs=yes
17911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17913 shlibpath_overrides_runpath=no
17914 hardcode_into_libs=yes
17916 freebsd*) # from 4.6 on
17917 shlibpath_overrides_runpath=yes
17918 hardcode_into_libs=yes
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17928 soname_spec='${libname}${release}${shared_ext}$major'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 hardcode_into_libs=yes
17933 hpux9* | hpux10* | hpux11*)
17934 # Give a soname corresponding to the major version so that dld.sl refuses to
17935 # link against other versions.
17942 hardcode_into_libs=yes
17943 dynamic_linker="$host_os dld.so"
17944 shlibpath_var=LD_LIBRARY_PATH
17945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 if test "X$HPUX_IA64_MODE" = X32; then
17949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17957 hardcode_into_libs=yes
17958 dynamic_linker="$host_os dld.sl"
17959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17968 dynamic_linker="$host_os dld.sl"
17969 shlibpath_var=SHLIB_PATH
17970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17976 postinstall_cmds='chmod 555 $lib'
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17986 shlibpath_var=LD_LIBRARY_PATH
17987 shlibpath_overrides_runpath=no
17988 hardcode_into_libs=yes
17991 irix5* | irix6* | nonstopux*)
17993 nonstopux*) version_type=nonstopux ;;
17995 if test "$lt_cv_prog_gnu_ld" = yes; then
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18006 irix5* | nonstopux*)
18007 libsuff= shlibsuff=
18010 case $LD in # libtool.m4 will add one of these switches to LD
18011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18012 libsuff= shlibsuff= libmagic=32-bit;;
18013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18014 libsuff=32 shlibsuff=N32 libmagic=N32;;
18015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18017 *) libsuff= shlibsuff= libmagic=never-match;;
18021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18022 shlibpath_overrides_runpath=no
18023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18025 hardcode_into_libs=yes
18028 # No shared lib support for Linux oldld, aout, or coff.
18029 linux*oldld* | linux*aout* | linux*coff*)
18033 # This must be Linux ELF.
18034 linux* | k*bsd*-gnu)
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18041 shlibpath_var=LD_LIBRARY_PATH
18042 shlibpath_overrides_runpath=no
18043 # This implies no fast_install, which is unacceptable.
18044 # Some rework will be needed to allow for fast_install
18045 # before this can be enabled.
18046 hardcode_into_libs=yes
18048 # Append ld.so.conf contents to the search path
18049 if test -f /etc/ld.so.conf; then
18050 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' ' '`
18051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18054 # We used to test for /lib/ld.so.1 and disable shared libraries on
18055 # powerpc, because MkLinux only supported shared libraries with the
18056 # GNU dynamic linker. Since this was broken with cross compilers,
18057 # most powerpc-linux boxes support dynamic linking these days and
18058 # people can always --disable-shared, the test was removed, and we
18059 # assume the GNU/Linux dynamic linker is in use.
18060 dynamic_linker='GNU/Linux ld.so'
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 shlibpath_overrides_runpath=no
18071 hardcode_into_libs=yes
18072 dynamic_linker='NetBSD ld.elf_so'
18079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18082 dynamic_linker='NetBSD (a.out) ld.so'
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 dynamic_linker='NetBSD ld.elf_so'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath=yes
18090 hardcode_into_libs=yes
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=yes
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18112 sys_lib_dlsearch_path_spec="/usr/lib"
18114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18117 *) need_version=no ;;
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18124 openbsd2.[89] | openbsd2.[89].*)
18125 shlibpath_overrides_runpath=no
18128 shlibpath_overrides_runpath=yes
18132 shlibpath_overrides_runpath=yes
18137 libname_spec='$name'
18140 library_names_spec='$libname${shared_ext} $libname.a'
18141 dynamic_linker='OS/2 ld.exe'
18142 shlibpath_var=LIBPATH
18145 osf3* | osf4* | osf5*)
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=yes
18164 hardcode_into_libs=yes
18165 # ldd complains unless libraries are executable
18166 postinstall_cmds='chmod +x $lib'
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath=yes
18175 if test "$with_gnu_ld" = yes; then
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 case $host_vendor in
18188 shlibpath_overrides_runpath=no
18190 export_dynamic_flag_spec='${wl}-Blargedynsym'
18191 runpath_var=LD_RUN_PATH
18199 shlibpath_overrides_runpath=no
18200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18206 if test -d /usr/nec ;then
18208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18209 soname_spec='$libname${shared_ext}.$major'
18210 shlibpath_var=LD_LIBRARY_PATH
18214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18215 version_type=freebsd-elf
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 hardcode_into_libs=yes
18222 if test "$with_gnu_ld" = yes; then
18223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18224 shlibpath_overrides_runpath=no
18226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18227 shlibpath_overrides_runpath=yes
18230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18234 sys_lib_dlsearch_path_spec='/usr/lib'
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 shlibpath_var=LD_LIBRARY_PATH
18248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18249 echo "${ECHO_T}$dynamic_linker" >&6; }
18250 test "$dynamic_linker" = no && can_build_shared=no
18252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18253 if test "$GCC" = yes; then
18254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18259 hardcode_action_GCJ=
18260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18261 test -n "$runpath_var_GCJ" || \
18262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18264 # We can hardcode non-existant directories.
18265 if test "$hardcode_direct_GCJ" != no &&
18266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18267 # have to relink, otherwise we might link with an installed library
18268 # when we should be linking with a yet-to-be-installed one
18269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18270 test "$hardcode_minus_L_GCJ" != no; then
18271 # Linking always hardcodes the temporary library directory.
18272 hardcode_action_GCJ=relink
18274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18275 hardcode_action_GCJ=immediate
18278 # We cannot hardcode anything, or else we can only hardcode existing
18280 hardcode_action_GCJ=unsupported
18282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18285 if test "$hardcode_action_GCJ" = relink; then
18286 # Fast installation is not supported
18287 enable_fast_install=no
18288 elif test "$shlibpath_overrides_runpath" = yes ||
18289 test "$enable_shared" = no; then
18290 # Fast installation is not necessary
18291 enable_fast_install=needless
18295 # The else clause should only fire when bootstrapping the
18296 # libtool distribution, otherwise you forgot to ship ltmain.sh
18297 # with your package, and you will get complaints that there are
18298 # no rules to generate ltmain.sh.
18299 if test -f "$ltmain"; then
18300 # See if we are running on zsh, and set the options which allow our commands through
18301 # without removal of \ escapes.
18302 if test -n "${ZSH_VERSION+set}" ; then
18303 setopt NO_GLOB_SUBST
18305 # Now quote all the things that may contain metacharacters while being
18306 # careful not to overquote the AC_SUBSTed values. We take copies of the
18307 # variables and quote the copies for generation of the libtool script.
18308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18312 deplibs_check_method reload_flag reload_cmds need_locks \
18313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18314 lt_cv_sys_global_symbol_to_c_name_address \
18315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18316 old_postinstall_cmds old_postuninstall_cmds \
18320 lt_prog_compiler_wl_GCJ \
18321 lt_prog_compiler_pic_GCJ \
18322 lt_prog_compiler_static_GCJ \
18323 lt_prog_compiler_no_builtin_flag_GCJ \
18324 export_dynamic_flag_spec_GCJ \
18325 thread_safe_flag_spec_GCJ \
18326 whole_archive_flag_spec_GCJ \
18327 enable_shared_with_static_runtimes_GCJ \
18328 old_archive_cmds_GCJ \
18329 old_archive_from_new_cmds_GCJ \
18330 predep_objects_GCJ \
18331 postdep_objects_GCJ \
18334 compiler_lib_search_path_GCJ \
18336 archive_expsym_cmds_GCJ \
18337 postinstall_cmds_GCJ \
18338 postuninstall_cmds_GCJ \
18339 old_archive_from_expsyms_cmds_GCJ \
18340 allow_undefined_flag_GCJ \
18341 no_undefined_flag_GCJ \
18342 export_symbols_cmds_GCJ \
18343 hardcode_libdir_flag_spec_GCJ \
18344 hardcode_libdir_flag_spec_ld_GCJ \
18345 hardcode_libdir_separator_GCJ \
18346 hardcode_automatic_GCJ \
18348 module_expsym_cmds_GCJ \
18349 lt_cv_prog_compiler_c_o_GCJ \
18350 exclude_expsyms_GCJ \
18351 include_expsyms_GCJ; do
18354 old_archive_cmds_GCJ | \
18355 old_archive_from_new_cmds_GCJ | \
18356 archive_cmds_GCJ | \
18357 archive_expsym_cmds_GCJ | \
18358 module_cmds_GCJ | \
18359 module_expsym_cmds_GCJ | \
18360 old_archive_from_expsyms_cmds_GCJ | \
18361 export_symbols_cmds_GCJ | \
18362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18363 postinstall_cmds | postuninstall_cmds | \
18364 old_postinstall_cmds | old_postuninstall_cmds | \
18365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18366 # Double-quote double-evaled strings.
18367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18376 *'\$0 --fallback-echo"')
18377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18383 cat <<__EOF__ >> "$cfgfile"
18384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18388 # Shell to use when invoking shell scripts.
18391 # Whether or not to build shared libraries.
18392 build_libtool_libs=$enable_shared
18394 # Whether or not to build static libraries.
18395 build_old_libs=$enable_static
18397 # Whether or not to add -lc for building shared libraries.
18398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18400 # Whether or not to disallow shared libs when runtime libs are static
18401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18403 # Whether or not to optimize for fast installation.
18404 fast_install=$enable_fast_install
18407 host_alias=$host_alias
18411 # The build system.
18412 build_alias=$build_alias
18416 # An echo program that does not interpret backslashes.
18421 AR_FLAGS=$lt_AR_FLAGS
18426 # LTCC compiler flags.
18427 LTCFLAGS=$lt_LTCFLAGS
18429 # A language-specific compiler.
18430 CC=$lt_compiler_GCJ
18432 # Is the compiler the GNU C compiler?
18438 # The linker used to build libraries.
18441 # Whether we need hard or soft links.
18444 # A BSD-compatible nm program.
18447 # A symbol stripping program
18450 # Used to examine libraries when file_magic_cmd begins "file"
18451 MAGIC_CMD=$MAGIC_CMD
18453 # Used on cygwin: DLL creation program.
18456 # Used on cygwin: object dumper.
18459 # Used on cygwin: assembler.
18462 # The name of the directory that contains temporary libtool files.
18465 # How to create reloadable object files.
18466 reload_flag=$lt_reload_flag
18467 reload_cmds=$lt_reload_cmds
18469 # How to pass a linker flag through the compiler.
18470 wl=$lt_lt_prog_compiler_wl_GCJ
18472 # Object file suffix (normally "o").
18473 objext="$ac_objext"
18475 # Old archive suffix (normally "a").
18478 # Shared library suffix (normally ".so").
18479 shrext_cmds='$shrext_cmds'
18481 # Executable file suffix (normally "").
18484 # Additional compiler flags for building library objects.
18485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18488 # What is the maximum length of a command?
18489 max_cmd_len=$lt_cv_sys_max_cmd_len
18491 # Does compiler simultaneously support -c and -o options?
18492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18494 # Must we lock files when doing compilation?
18495 need_locks=$lt_need_locks
18497 # Do we need the lib prefix for modules?
18498 need_lib_prefix=$need_lib_prefix
18500 # Do we need a version for libraries?
18501 need_version=$need_version
18503 # Whether dlopen is supported.
18504 dlopen_support=$enable_dlopen
18506 # Whether dlopen of programs is supported.
18507 dlopen_self=$enable_dlopen_self
18509 # Whether dlopen of statically linked programs is supported.
18510 dlopen_self_static=$enable_dlopen_self_static
18512 # Compiler flag to prevent dynamic linking.
18513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18515 # Compiler flag to turn off builtin functions.
18516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18518 # Compiler flag to allow reflexive dlopens.
18519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18521 # Compiler flag to generate shared objects directly from archives.
18522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18524 # Compiler flag to generate thread-safe objects.
18525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18527 # Library versioning type.
18528 version_type=$version_type
18530 # Format of library name prefix.
18531 libname_spec=$lt_libname_spec
18533 # List of archive names. First name is the real one, the rest are links.
18534 # The last name is the one that the linker finds with -lNAME.
18535 library_names_spec=$lt_library_names_spec
18537 # The coded name of the library, if different from the real name.
18538 soname_spec=$lt_soname_spec
18540 # Commands used to build and install an old-style archive.
18542 old_archive_cmds=$lt_old_archive_cmds_GCJ
18543 old_postinstall_cmds=$lt_old_postinstall_cmds
18544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18546 # Create an old-style archive from a shared archive.
18547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18549 # Create a temporary old-style archive to link instead of a shared archive.
18550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18552 # Commands used to build and install a shared archive.
18553 archive_cmds=$lt_archive_cmds_GCJ
18554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555 postinstall_cmds=$lt_postinstall_cmds
18556 postuninstall_cmds=$lt_postuninstall_cmds
18558 # Commands used to build a loadable module (assumed same as above if empty)
18559 module_cmds=$lt_module_cmds_GCJ
18560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18562 # Commands to strip libraries.
18563 old_striplib=$lt_old_striplib
18564 striplib=$lt_striplib
18566 # Dependencies to place before the objects being linked to create a
18568 predep_objects=$lt_predep_objects_GCJ
18570 # Dependencies to place after the objects being linked to create a
18572 postdep_objects=$lt_postdep_objects_GCJ
18574 # Dependencies to place before the objects being linked to create a
18576 predeps=$lt_predeps_GCJ
18578 # Dependencies to place after the objects being linked to create a
18580 postdeps=$lt_postdeps_GCJ
18582 # The library search path used internally by the compiler when linking
18583 # a shared library.
18584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18586 # Method to check whether dependent libraries are shared objects.
18587 deplibs_check_method=$lt_deplibs_check_method
18589 # Command to use when deplibs_check_method == file_magic.
18590 file_magic_cmd=$lt_file_magic_cmd
18592 # Flag that allows shared libraries with undefined symbols to be built.
18593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18595 # Flag that forces no undefined symbols.
18596 no_undefined_flag=$lt_no_undefined_flag_GCJ
18598 # Commands used to finish a libtool library installation in a directory.
18599 finish_cmds=$lt_finish_cmds
18601 # Same as above, but a single script fragment to be evaled but not shown.
18602 finish_eval=$lt_finish_eval
18604 # Take the output of nm and produce a listing of raw symbols and C names.
18605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18607 # Transform the output of nm in a proper C declaration
18608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18610 # Transform the output of nm in a C name address pair
18611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18613 # This is the shared library runtime path variable.
18614 runpath_var=$runpath_var
18616 # This is the shared library path variable.
18617 shlibpath_var=$shlibpath_var
18619 # Is shlibpath searched before the hard-coded library search path?
18620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18622 # How to hardcode a shared library path into an executable.
18623 hardcode_action=$hardcode_action_GCJ
18625 # Whether we should hardcode library paths into libraries.
18626 hardcode_into_libs=$hardcode_into_libs
18628 # Flag to hardcode \$libdir into a binary during linking.
18629 # This must work even if \$libdir does not exist.
18630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18632 # If ld is used when linking, flag to hardcode \$libdir into
18633 # a binary during linking. This must work even if \$libdir does
18635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18637 # Whether we need a single -rpath flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641 # resulting binary.
18642 hardcode_direct=$hardcode_direct_GCJ
18644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_minus_L=$hardcode_minus_L_GCJ
18648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649 # the resulting binary.
18650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18652 # Set to yes if building a shared library automatically hardcodes DIR into the library
18653 # and all subsequent libraries and executables linked against it.
18654 hardcode_automatic=$hardcode_automatic_GCJ
18656 # Variables whose values should be saved in libtool wrapper scripts and
18657 # restored at relink time.
18658 variables_saved_for_relink="$variables_saved_for_relink"
18660 # Whether libtool must link a program against all its dependency libraries.
18661 link_all_deplibs=$link_all_deplibs_GCJ
18663 # Compile-time system search path for libraries
18664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18666 # Run-time system search path for libraries
18667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18669 # Fix the shell variable \$srcfile for the compiler.
18670 fix_srcfile_path="$fix_srcfile_path_GCJ"
18672 # Set to yes if exported symbols are required.
18673 always_export_symbols=$always_export_symbols_GCJ
18675 # The commands to list exported symbols.
18676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18678 # The commands to extract the exported symbol list from a shared archive.
18679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18681 # Symbols that should not be listed in the preloaded symbols.
18682 exclude_expsyms=$lt_exclude_expsyms_GCJ
18684 # Symbols that must always be exported.
18685 include_expsyms=$lt_include_expsyms_GCJ
18687 # ### END LIBTOOL TAG CONFIG: $tagname
18693 # If there is no Makefile yet, we rely on a make rule to execute
18694 # `config.status --recheck' to rerun these tests and create the
18695 # libtool script then.
18696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697 if test -f "$ltmain_in"; then
18698 test -f Makefile && make "$ltmain"
18704 ac_cpp='$CPP $CPPFLAGS'
18705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18719 # Source file extension for RC test sources.
18722 # Object file extension for compiled RC test sources.
18726 # Code to be used in simple compile tests
18727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18729 # Code to be used in simple link tests
18730 lt_simple_link_test_code="$lt_simple_compile_test_code"
18732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734 # If no C compiler was specified, use CC.
18737 # If no C compiler flags were specified, use CFLAGS.
18738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18740 # Allow CC to be a program name with arguments.
18744 # save warnings/boilerplate of simple test code
18745 ac_outfile=conftest.$ac_objext
18746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_compiler_boilerplate=`cat conftest.err`
18751 ac_outfile=conftest.$ac_objext
18752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18754 _lt_linker_boilerplate=`cat conftest.err`
18758 # Allow CC to be a program name with arguments.
18763 for cc_temp in $compiler""; do
18765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18773 lt_cv_prog_compiler_c_o_RC=yes
18775 # The else clause should only fire when bootstrapping the
18776 # libtool distribution, otherwise you forgot to ship ltmain.sh
18777 # with your package, and you will get complaints that there are
18778 # no rules to generate ltmain.sh.
18779 if test -f "$ltmain"; then
18780 # See if we are running on zsh, and set the options which allow our commands through
18781 # without removal of \ escapes.
18782 if test -n "${ZSH_VERSION+set}" ; then
18783 setopt NO_GLOB_SUBST
18785 # Now quote all the things that may contain metacharacters while being
18786 # careful not to overquote the AC_SUBSTed values. We take copies of the
18787 # variables and quote the copies for generation of the libtool script.
18788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792 deplibs_check_method reload_flag reload_cmds need_locks \
18793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794 lt_cv_sys_global_symbol_to_c_name_address \
18795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796 old_postinstall_cmds old_postuninstall_cmds \
18800 lt_prog_compiler_wl_RC \
18801 lt_prog_compiler_pic_RC \
18802 lt_prog_compiler_static_RC \
18803 lt_prog_compiler_no_builtin_flag_RC \
18804 export_dynamic_flag_spec_RC \
18805 thread_safe_flag_spec_RC \
18806 whole_archive_flag_spec_RC \
18807 enable_shared_with_static_runtimes_RC \
18808 old_archive_cmds_RC \
18809 old_archive_from_new_cmds_RC \
18810 predep_objects_RC \
18811 postdep_objects_RC \
18814 compiler_lib_search_path_RC \
18816 archive_expsym_cmds_RC \
18817 postinstall_cmds_RC \
18818 postuninstall_cmds_RC \
18819 old_archive_from_expsyms_cmds_RC \
18820 allow_undefined_flag_RC \
18821 no_undefined_flag_RC \
18822 export_symbols_cmds_RC \
18823 hardcode_libdir_flag_spec_RC \
18824 hardcode_libdir_flag_spec_ld_RC \
18825 hardcode_libdir_separator_RC \
18826 hardcode_automatic_RC \
18828 module_expsym_cmds_RC \
18829 lt_cv_prog_compiler_c_o_RC \
18830 exclude_expsyms_RC \
18831 include_expsyms_RC; do
18834 old_archive_cmds_RC | \
18835 old_archive_from_new_cmds_RC | \
18836 archive_cmds_RC | \
18837 archive_expsym_cmds_RC | \
18839 module_expsym_cmds_RC | \
18840 old_archive_from_expsyms_cmds_RC | \
18841 export_symbols_cmds_RC | \
18842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843 postinstall_cmds | postuninstall_cmds | \
18844 old_postinstall_cmds | old_postuninstall_cmds | \
18845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18846 # Double-quote double-evaled strings.
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18856 *'\$0 --fallback-echo"')
18857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18863 cat <<__EOF__ >> "$cfgfile"
18864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868 # Shell to use when invoking shell scripts.
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18877 # Whether or not to add -lc for building shared libraries.
18878 build_libtool_need_lc=$archive_cmds_need_lc_RC
18880 # Whether or not to disallow shared libs when runtime libs are static
18881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18887 host_alias=$host_alias
18891 # The build system.
18892 build_alias=$build_alias
18896 # An echo program that does not interpret backslashes.
18901 AR_FLAGS=$lt_AR_FLAGS
18906 # LTCC compiler flags.
18907 LTCFLAGS=$lt_LTCFLAGS
18909 # A language-specific compiler.
18912 # Is the compiler the GNU C compiler?
18918 # The linker used to build libraries.
18921 # Whether we need hard or soft links.
18924 # A BSD-compatible nm program.
18927 # A symbol stripping program
18930 # Used to examine libraries when file_magic_cmd begins "file"
18931 MAGIC_CMD=$MAGIC_CMD
18933 # Used on cygwin: DLL creation program.
18936 # Used on cygwin: object dumper.
18939 # Used on cygwin: assembler.
18942 # The name of the directory that contains temporary libtool files.
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18949 # How to pass a linker flag through the compiler.
18950 wl=$lt_lt_prog_compiler_wl_RC
18952 # Object file suffix (normally "o").
18953 objext="$ac_objext"
18955 # Old archive suffix (normally "a").
18958 # Shared library suffix (normally ".so").
18959 shrext_cmds='$shrext_cmds'
18961 # Executable file suffix (normally "").
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic_RC
18968 # What is the maximum length of a command?
18969 max_cmd_len=$lt_cv_sys_max_cmd_len
18971 # Does compiler simultaneously support -c and -o options?
18972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18974 # Must we lock files when doing compilation?
18975 need_locks=$lt_need_locks
18977 # Do we need the lib prefix for modules?
18978 need_lib_prefix=$need_lib_prefix
18980 # Do we need a version for libraries?
18981 need_version=$need_version
18983 # Whether dlopen is supported.
18984 dlopen_support=$enable_dlopen
18986 # Whether dlopen of programs is supported.
18987 dlopen_self=$enable_dlopen_self
18989 # Whether dlopen of statically linked programs is supported.
18990 dlopen_self_static=$enable_dlopen_self_static
18992 # Compiler flag to prevent dynamic linking.
18993 link_static_flag=$lt_lt_prog_compiler_static_RC
18995 # Compiler flag to turn off builtin functions.
18996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18998 # Compiler flag to allow reflexive dlopens.
18999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19001 # Compiler flag to generate shared objects directly from archives.
19002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19004 # Compiler flag to generate thread-safe objects.
19005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19007 # Library versioning type.
19008 version_type=$version_type
19010 # Format of library name prefix.
19011 libname_spec=$lt_libname_spec
19013 # List of archive names. First name is the real one, the rest are links.
19014 # The last name is the one that the linker finds with -lNAME.
19015 library_names_spec=$lt_library_names_spec
19017 # The coded name of the library, if different from the real name.
19018 soname_spec=$lt_soname_spec
19020 # Commands used to build and install an old-style archive.
19022 old_archive_cmds=$lt_old_archive_cmds_RC
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19026 # Create an old-style archive from a shared archive.
19027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19029 # Create a temporary old-style archive to link instead of a shared archive.
19030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19032 # Commands used to build and install a shared archive.
19033 archive_cmds=$lt_archive_cmds_RC
19034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19035 postinstall_cmds=$lt_postinstall_cmds
19036 postuninstall_cmds=$lt_postuninstall_cmds
19038 # Commands used to build a loadable module (assumed same as above if empty)
19039 module_cmds=$lt_module_cmds_RC
19040 module_expsym_cmds=$lt_module_expsym_cmds_RC
19042 # Commands to strip libraries.
19043 old_striplib=$lt_old_striplib
19044 striplib=$lt_striplib
19046 # Dependencies to place before the objects being linked to create a
19048 predep_objects=$lt_predep_objects_RC
19050 # Dependencies to place after the objects being linked to create a
19052 postdep_objects=$lt_postdep_objects_RC
19054 # Dependencies to place before the objects being linked to create a
19056 predeps=$lt_predeps_RC
19058 # Dependencies to place after the objects being linked to create a
19060 postdeps=$lt_postdeps_RC
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path="$fix_srcfile_path_RC"
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile && make "$ltmain"
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags="$available_tags $tagname"
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19225 # Always use our own libtool.
19226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19228 # Prevent multiple expansion
19254 { echo "$as_me:$LINENO: result: " >&5
19255 echo "${ECHO_T}" >&6; }
19256 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19257 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19260 ac_cpp='$CPP $CPPFLAGS'
19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264 if test -n "$ac_tool_prefix"; then
19265 for ac_prog in xlC gcc cc
19267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19271 if test "${ac_cv_prog_CC+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 if test -n "$CC"; then
19275 ac_cv_prog_CC="$CC" # Let the user override the test.
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19295 if test -n "$CC"; then
19296 { echo "$as_me:$LINENO: result: $CC" >&5
19297 echo "${ECHO_T}$CC" >&6; }
19299 { echo "$as_me:$LINENO: result: no" >&5
19300 echo "${ECHO_T}no" >&6; }
19304 test -n "$CC" && break
19307 if test -z "$CC"; then
19309 for ac_prog in xlC gcc cc
19311 # Extract the first word of "$ac_prog", so it can be a program name with args.
19312 set dummy $ac_prog; ac_word=$2
19313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 if test -n "$ac_ct_CC"; then
19319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19322 for as_dir in $PATH
19325 test -z "$as_dir" && as_dir=.
19326 for ac_exec_ext in '' $ac_executable_extensions; do
19327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19328 ac_cv_prog_ac_ct_CC="$ac_prog"
19329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19339 if test -n "$ac_ct_CC"; then
19340 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19341 echo "${ECHO_T}$ac_ct_CC" >&6; }
19343 { echo "$as_me:$LINENO: result: no" >&5
19344 echo "${ECHO_T}no" >&6; }
19348 test -n "$ac_ct_CC" && break
19351 if test "x$ac_ct_CC" = x; then
19354 case $cross_compiling:$ac_tool_warned in
19356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19357 whose name does not start with the host triplet. If you think this
19358 configuration is useful to you, please write to autoconf@gnu.org." >&5
19359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19360 whose name does not start with the host triplet. If you think this
19361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19362 ac_tool_warned=yes ;;
19369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19370 See \`config.log' for more details." >&5
19371 echo "$as_me: error: no acceptable C compiler found in \$PATH
19372 See \`config.log' for more details." >&2;}
19373 { (exit 1); exit 1; }; }
19375 # Provide some information about the compiler.
19376 echo "$as_me:$LINENO: checking for C compiler version" >&5
19377 ac_compiler=`set X $ac_compile; echo $2`
19378 { (ac_try="$ac_compiler --version >&5"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_compiler --version >&5") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }
19388 { (ac_try="$ac_compiler -v >&5"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_compiler -v >&5") 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }
19398 { (ac_try="$ac_compiler -V >&5"
19399 case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_compiler -V >&5") 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }
19409 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19432 rm -f conftest.$ac_objext
19433 if { (ac_try="$ac_compile"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_compile") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest.$ac_objext; then
19449 ac_compiler_gnu=yes
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19463 GCC=`test $ac_compiler_gnu = yes && echo yes`
19464 ac_test_CFLAGS=${CFLAGS+set}
19465 ac_save_CFLAGS=$CFLAGS
19466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19468 if test "${ac_cv_prog_cc_g+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 ac_save_c_werror_flag=$ac_c_werror_flag
19472 ac_c_werror_flag=yes
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest.$ac_objext; then
19507 ac_cv_prog_cc_g=yes
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest.$ac_objext; then
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 ac_c_werror_flag=$ac_save_c_werror_flag
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_compile") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest.$ac_objext; then
19584 ac_cv_prog_cc_g=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 ac_c_werror_flag=$ac_save_c_werror_flag
19601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19603 if test "$ac_test_CFLAGS" = set; then
19604 CFLAGS=$ac_save_CFLAGS
19605 elif test $ac_cv_prog_cc_g = yes; then
19606 if test "$GCC" = yes; then
19612 if test "$GCC" = yes; then
19618 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19619 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19620 if test "${ac_cv_prog_cc_c89+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 ac_cv_prog_cc_c89=no
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 #include <stdarg.h>
19633 #include <sys/types.h>
19634 #include <sys/stat.h>
19635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19636 struct buf { int x; };
19637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19638 static char *e (p, i)
19644 static char *f (char * (*g) (char **, int), char **p, ...)
19649 s = g (p, va_arg (v,int));
19654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19655 function prototypes and stuff, but not '\xHH' hex character constants.
19656 These don't provoke an error unfortunately, instead are silently treated
19657 as 'x'. The following induces an error, until -std is added to get
19658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19659 array size at least. It's necessary to write '\x00'==0 to get something
19660 that's true only with -std. */
19661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19664 inside strings and character constants. */
19666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19668 int test (int i, double x);
19669 struct s1 {int (*f) (int a);};
19670 struct s2 {int (*f) (double a);};
19671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19685 CC="$ac_save_CC $ac_arg"
19686 rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_compile") 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } && {
19700 test -z "$ac_c_werror_flag" ||
19701 test ! -s conftest.err
19702 } && test -s conftest.$ac_objext; then
19703 ac_cv_prog_cc_c89=$ac_arg
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19711 rm -f core conftest.err conftest.$ac_objext
19712 test "x$ac_cv_prog_cc_c89" != "xno" && break
19714 rm -f conftest.$ac_ext
19719 case "x$ac_cv_prog_cc_c89" in
19721 { echo "$as_me:$LINENO: result: none needed" >&5
19722 echo "${ECHO_T}none needed" >&6; } ;;
19724 { echo "$as_me:$LINENO: result: unsupported" >&5
19725 echo "${ECHO_T}unsupported" >&6; } ;;
19727 CC="$CC $ac_cv_prog_cc_c89"
19728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19729 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739 depcc="$CC" am_compiler_list=
19741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19743 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19747 # We make a subdir and do the tests there. Otherwise we can end up
19748 # making bogus files that we don't know about and never remove. For
19749 # instance it was reported that on HP-UX the gcc test will end up
19750 # making a dummy file named `D' -- because `-MD' means `put the output
19753 # Copy depcomp to subdir because otherwise we won't find it if we're
19754 # using a relative directory.
19755 cp "$am_depcomp" conftest.dir
19757 # We will build objects and dependencies in a subdirectory because
19758 # it helps to detect inapplicable dependency modes. For instance
19759 # both Tru64's cc and ICC support -MD to output dependencies as a
19760 # side effect of compilation, but ICC will put the dependencies in
19761 # the current directory while Tru64 will put them in the object
19765 am_cv_CC_dependencies_compiler_type=none
19766 if test "$am_compiler_list" = ""; then
19767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19769 for depmode in $am_compiler_list; do
19770 # Setup a source with many dependencies, because some compilers
19771 # like to wrap large dependency lists on column 80 (with \), and
19772 # we should not choose a depcomp mode which is confused by this.
19774 # We need to recreate these files for each test, as the compiler may
19775 # overwrite some of them when testing with obscure command lines.
19776 # This happens at least with the AIX C compiler.
19778 for i in 1 2 3 4 5 6; do
19779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19781 # Solaris 8's {/usr,}/bin/sh.
19782 touch sub/conftst$i.h
19784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19788 # after this tag, mechanisms are not by side-effect, so they'll
19789 # only be used when explicitly requested
19790 if test "x$enable_dependency_tracking" = xyes; then
19798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19799 # mode. It turns out that the SunPro C++ compiler does not properly
19800 # handle `-M -o', and we need to detect this.
19801 if depmode=$depmode \
19802 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19804 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19805 >/dev/null 2>conftest.err &&
19806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19807 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19809 # icc doesn't choke on unknown options, it will just issue warnings
19810 # or remarks (even with -Werror). So we grep stderr for any message
19811 # that says an option was ignored or not supported.
19812 # When given -MP, icc 7.0 and 7.1 complain thusly:
19813 # icc: Command line warning: ignoring option '-M'; no argument required
19814 # The diagnosis changed in icc 8.0:
19815 # icc: Command line remark: option '-MP' not supported
19816 if (grep 'ignoring option' conftest.err ||
19817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19818 am_cv_CC_dependencies_compiler_type=$depmode
19825 rm -rf conftest.dir
19827 am_cv_CC_dependencies_compiler_type=none
19831 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19832 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19833 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19838 test "x$enable_dependency_tracking" != xno \
19839 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19840 am__fastdepCC_TRUE=
19841 am__fastdepCC_FALSE='#'
19843 am__fastdepCC_TRUE='#'
19844 am__fastdepCC_FALSE=
19848 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19849 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
19852 echo timestamp > conftest.file
19853 # Do `set' in a subshell so we don't clobber the current shell's
19854 # arguments. Must try -L first in case configure is actually a
19855 # symlink; some systems play weird games with the mod time of symlinks
19856 # (eg FreeBSD returns the mod time of the symlink's containing
19859 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19860 if test "$*" = "X"; then
19862 set X `ls -t $srcdir/configure conftest.file`
19864 rm -f conftest.file
19865 if test "$*" != "X $srcdir/configure conftest.file" \
19866 && test "$*" != "X conftest.file $srcdir/configure"; then
19868 # If neither matched, then we have a broken ls. This can happen
19869 # if, for instance, CONFIG_SHELL is bash and it inherits a
19870 # broken ls alias from the environment. This has actually
19871 # happened. Such a system could not be considered "sane".
19872 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19873 alias in your environment" >&5
19874 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19875 alias in your environment" >&2;}
19876 { (exit 1); exit 1; }; }
19879 test "$2" = conftest.file
19885 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19886 Check your system clock" >&5
19887 echo "$as_me: error: newly created file is older than distributed files!
19888 Check your system clock" >&2;}
19889 { (exit 1); exit 1; }; }
19891 { echo "$as_me:$LINENO: result: yes" >&5
19892 echo "${ECHO_T}yes" >&6; }
19893 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19894 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19895 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19896 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 cat >conftest.make <<\_ACEOF
19902 @echo '@@@%%%=$(MAKE)=@@@%%%'
19904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19905 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19906 *@@@%%%=?*=@@@%%%*)
19907 eval ac_cv_prog_make_${ac_make}_set=yes;;
19909 eval ac_cv_prog_make_${ac_make}_set=no;;
19911 rm -f conftest.make
19913 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19914 { echo "$as_me:$LINENO: result: yes" >&5
19915 echo "${ECHO_T}yes" >&6; }
19918 { echo "$as_me:$LINENO: result: no" >&5
19919 echo "${ECHO_T}no" >&6; }
19920 SET_MAKE="MAKE=${MAKE-make}"
19924 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19925 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
19926 if test "$cross_compiling" = yes; then
19927 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19928 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19945 rm -f conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_link") 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define PRINTF_NULL_WORKING 1
19970 { echo "$as_me:$LINENO: result: yes" >&5
19971 echo "${ECHO_T}yes" >&6; }
19973 echo "$as_me: program exited with status $ac_status" >&5
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ( exit $ac_status )
19978 { echo "$as_me:$LINENO: result: no" >&5
19979 echo "${ECHO_T}no" >&6; }
19981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19987 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
19988 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
19989 if test "${ac_cv_va_copy+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 if test ".$ac_cv_va_copy" = .; then
19998 if test "$cross_compiling" = yes; then
19999 ac_cv_va_copy="C99"
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 #include <stdlib.h>
20009 #include <stdarg.h>
20010 #include <string.h>
20011 #define DO_VA_COPY(d, s) va_copy((d), (s))
20012 void test(char *str, ...)
20017 DO_VA_COPY(ap2, ap);
20018 for (i = 1; i <= 9; i++) {
20019 int k = (int)va_arg(ap, int);
20023 DO_VA_COPY(ap, ap2);
20024 for (i = 1; i <= 9; i++) {
20025 int k = (int)va_arg(ap, int);
20031 int main(int argc, char *argv[])
20033 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20038 rm -f conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_link") 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_va_copy="C99"
20060 echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20074 if test ".$ac_cv_va_copy" = .; then
20075 if test "$cross_compiling" = yes; then
20076 ac_cv_va_copy="GCM"
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20085 #include <stdlib.h>
20086 #include <stdarg.h>
20087 #include <string.h>
20088 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20089 void test(char *str, ...)
20094 DO_VA_COPY(ap2, ap);
20095 for (i = 1; i <= 9; i++) {
20096 int k = (int)va_arg(ap, int);
20100 DO_VA_COPY(ap, ap2);
20101 for (i = 1; i <= 9; i++) {
20102 int k = (int)va_arg(ap, int);
20108 int main(int argc, char *argv[])
20110 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20115 rm -f conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_link") 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_cv_va_copy="GCM"
20137 echo "$as_me: program exited with status $ac_status" >&5
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20151 if test ".$ac_cv_va_copy" = .; then
20152 if test "$cross_compiling" = yes; then
20153 ac_cv_va_copy="GCH"
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 #include <stdlib.h>
20163 #include <stdarg.h>
20164 #include <string.h>
20165 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20166 void test(char *str, ...)
20171 DO_VA_COPY(ap2, ap);
20172 for (i = 1; i <= 9; i++) {
20173 int k = (int)va_arg(ap, int);
20177 DO_VA_COPY(ap, ap2);
20178 for (i = 1; i <= 9; i++) {
20179 int k = (int)va_arg(ap, int);
20185 int main(int argc, char *argv[])
20187 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20192 rm -f conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_link") 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20203 { (case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_try") 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_va_copy="GCH"
20214 echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20228 if test ".$ac_cv_va_copy" = .; then
20229 if test "$cross_compiling" = yes; then
20230 ac_cv_va_copy="GCB"
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 #include <stdlib.h>
20240 #include <stdarg.h>
20241 #include <string.h>
20242 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20243 void test(char *str, ...)
20248 DO_VA_COPY(ap2, ap);
20249 for (i = 1; i <= 9; i++) {
20250 int k = (int)va_arg(ap, int);
20254 DO_VA_COPY(ap, ap2);
20255 for (i = 1; i <= 9; i++) {
20256 int k = (int)va_arg(ap, int);
20262 int main(int argc, char *argv[])
20264 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20269 rm -f conftest$ac_exeext
20270 if { (ac_try="$ac_link"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_link") 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_va_copy="GCB"
20291 echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20305 if test ".$ac_cv_va_copy" = .; then
20306 if test "$cross_compiling" = yes; then
20307 ac_cv_va_copy="ASS"
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20316 #include <stdlib.h>
20317 #include <stdarg.h>
20318 #include <string.h>
20319 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20320 void test(char *str, ...)
20325 DO_VA_COPY(ap2, ap);
20326 for (i = 1; i <= 9; i++) {
20327 int k = (int)va_arg(ap, int);
20331 DO_VA_COPY(ap, ap2);
20332 for (i = 1; i <= 9; i++) {
20333 int k = (int)va_arg(ap, int);
20339 int main(int argc, char *argv[])
20341 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20346 rm -f conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_va_copy="ASS"
20368 echo "$as_me: program exited with status $ac_status" >&5
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20382 if test ".$ac_cv_va_copy" = .; then
20383 if test "$cross_compiling" = yes; then
20384 ac_cv_va_copy="ASP"
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20393 #include <stdlib.h>
20394 #include <stdarg.h>
20395 #include <string.h>
20396 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20397 void test(char *str, ...)
20402 DO_VA_COPY(ap2, ap);
20403 for (i = 1; i <= 9; i++) {
20404 int k = (int)va_arg(ap, int);
20408 DO_VA_COPY(ap, ap2);
20409 for (i = 1; i <= 9; i++) {
20410 int k = (int)va_arg(ap, int);
20416 int main(int argc, char *argv[])
20418 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20423 rm -f conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_cv_va_copy="ASP"
20445 echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 if test ".$ac_cv_va_copy" = .; then
20460 if test "$cross_compiling" = yes; then
20461 ac_cv_va_copy="CPS"
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 #include <stdlib.h>
20471 #include <stdarg.h>
20472 #include <string.h>
20473 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20474 void test(char *str, ...)
20479 DO_VA_COPY(ap2, ap);
20480 for (i = 1; i <= 9; i++) {
20481 int k = (int)va_arg(ap, int);
20485 DO_VA_COPY(ap, ap2);
20486 for (i = 1; i <= 9; i++) {
20487 int k = (int)va_arg(ap, int);
20493 int main(int argc, char *argv[])
20495 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20500 rm -f conftest$ac_exeext
20501 if { (ac_try="$ac_link"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_link") 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20511 { (case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_try") 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_va_copy="CPS"
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20536 if test ".$ac_cv_va_copy" = .; then
20537 if test "$cross_compiling" = yes; then
20538 ac_cv_va_copy="CPP"
20540 cat >conftest.$ac_ext <<_ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20547 #include <stdlib.h>
20548 #include <stdarg.h>
20549 #include <string.h>
20550 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20551 void test(char *str, ...)
20556 DO_VA_COPY(ap2, ap);
20557 for (i = 1; i <= 9; i++) {
20558 int k = (int)va_arg(ap, int);
20562 DO_VA_COPY(ap, ap2);
20563 for (i = 1; i <= 9; i++) {
20564 int k = (int)va_arg(ap, int);
20570 int main(int argc, char *argv[])
20572 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20577 rm -f conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_link") 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20588 { (case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_try") 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_cv_va_copy="CPP"
20599 echo "$as_me: program exited with status $ac_status" >&5
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20610 if test ".$ac_cv_va_copy" = .; then
20611 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20612 echo "$as_me: error: no working implementation found" >&2;}
20613 { (exit 1); exit 1; }; }
20618 if test ".$ac_cv_va_copy" = ".C99"; then
20620 cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_VA_COPY 1
20626 cat >>confdefs.h <<_ACEOF
20627 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20632 if test ".$ac_cv_va_copy" = ".C99"; then
20633 { echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6; }
20636 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20637 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20641 # Checks for header files.
20642 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20643 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20644 if test "${ac_cv_header_stdc+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <stdlib.h>
20654 #include <stdarg.h>
20655 #include <string.h>
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20675 grep -v '^ *+' conftest.er1 >conftest.err
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
20683 ac_cv_header_stdc=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_header_stdc=no
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 if test $ac_cv_header_stdc = yes; then
20694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20695 cat >conftest.$ac_ext <<_ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 #include <string.h>
20704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20705 $EGREP "memchr" >/dev/null 2>&1; then
20708 ac_cv_header_stdc=no
20714 if test $ac_cv_header_stdc = yes; then
20715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <stdlib.h>
20725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20726 $EGREP "free" >/dev/null 2>&1; then
20729 ac_cv_header_stdc=no
20735 if test $ac_cv_header_stdc = yes; then
20736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20737 if test "$cross_compiling" = yes; then
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 #include <stdlib.h>
20748 #if ((' ' & 0x0FF) == 0x020)
20749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20752 # define ISLOWER(c) \
20753 (('a' <= (c) && (c) <= 'i') \
20754 || ('j' <= (c) && (c) <= 'r') \
20755 || ('s' <= (c) && (c) <= 'z'))
20756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20764 for (i = 0; i < 256; i++)
20765 if (XOR (islower (i), ISLOWER (i))
20766 || toupper (i) != TOUPPER (i))
20771 rm -f conftest$ac_exeext
20772 if { (ac_try="$ac_link"
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_link") 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20793 echo "$as_me: program exited with status $ac_status" >&5
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ( exit $ac_status )
20798 ac_cv_header_stdc=no
20800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20806 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20807 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20808 if test $ac_cv_header_stdc = yes; then
20810 cat >>confdefs.h <<\_ACEOF
20811 #define STDC_HEADERS 1
20816 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20817 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20818 if test "${ac_cv_header_time+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <sys/types.h>
20828 #include <sys/time.h>
20834 if ((struct tm *) 0)
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_compile") 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest.$ac_objext; then
20857 ac_cv_header_time=yes
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_cv_header_time=no
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20867 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20868 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20869 if test $ac_cv_header_time = yes; then
20871 cat >>confdefs.h <<\_ACEOF
20872 #define TIME_WITH_SYS_TIME 1
20887 for ac_header in sys/socket.h \
20889 windows.h winsock.h winsock2.h \
20895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 ac_res=`eval echo '${'$as_ac_Header'}'`
20903 { echo "$as_me:$LINENO: result: $ac_res" >&5
20904 echo "${ECHO_T}$ac_res" >&6; }
20906 # Is the header compilable?
20907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20908 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
20916 #include <$ac_header>
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_header_compiler=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_header_compiler=no
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20945 echo "${ECHO_T}$ac_header_compiler" >&6; }
20947 # Is the header present?
20948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <$ac_header>
20958 if { (ac_try="$ac_cpp conftest.$ac_ext"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } >/dev/null && {
20971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20974 ac_header_preproc=yes
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_header_preproc=no
20982 rm -f conftest.err conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20984 echo "${ECHO_T}$ac_header_preproc" >&6; }
20986 # So? What about this header?
20987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20993 ac_header_preproc=yes
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21009 ## -------------------------------------------------- ##
21010 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21011 ## -------------------------------------------------- ##
21013 ) | sed "s/^/$as_me: WARNING: /" >&2
21016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 eval "$as_ac_Header=\$ac_header_preproc"
21023 ac_res=`eval echo '${'$as_ac_Header'}'`
21024 { echo "$as_me:$LINENO: result: $ac_res" >&5
21025 echo "${ECHO_T}$ac_res" >&6; }
21028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21029 cat >>confdefs.h <<_ACEOF
21030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21045 for ac_func in gettimeofday usleep \
21053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21067 #define $ac_func innocuous_$ac_func
21069 /* System header to define __stub macros and hopefully few prototypes,
21070 which can conflict with char $ac_func (); below.
21071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21072 <limits.h> exists even on freestanding compilers. */
21075 # include <limits.h>
21077 # include <assert.h>
21082 /* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21089 /* The GNU C library defines this for functions which it implements
21090 to always fail with ENOSYS. Some functions are actually named
21091 something starting with __ and the normal name is an alias. */
21092 #if defined __stub_$ac_func || defined __stub___$ac_func
21099 return $ac_func ();
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_link") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest$ac_exeext &&
21121 $as_test_x conftest$ac_exeext; then
21122 eval "$as_ac_var=yes"
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 eval "$as_ac_var=no"
21130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21131 conftest$ac_exeext conftest.$ac_ext
21133 ac_res=`eval echo '${'$as_ac_var'}'`
21134 { echo "$as_me:$LINENO: result: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21136 if test `eval echo '${'$as_ac_var'}'` = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21145 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21148 for ac_func in snprintf vsnprintf
21150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21164 #define $ac_func innocuous_$ac_func
21166 /* System header to define __stub macros and hopefully few prototypes,
21167 which can conflict with char $ac_func (); below.
21168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169 <limits.h> exists even on freestanding compilers. */
21172 # include <limits.h>
21174 # include <assert.h>
21179 /* Override any GCC internal prototype to avoid an error.
21180 Use char because int might match the return type of a GCC
21181 builtin and then its argument prototype would still apply. */
21186 /* The GNU C library defines this for functions which it implements
21187 to always fail with ENOSYS. Some functions are actually named
21188 something starting with __ and the normal name is an alias. */
21189 #if defined __stub_$ac_func || defined __stub___$ac_func
21196 return $ac_func ();
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_link") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext &&
21218 $as_test_x conftest$ac_exeext; then
21219 eval "$as_ac_var=yes"
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 eval "$as_ac_var=no"
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21230 ac_res=`eval echo '${'$as_ac_var'}'`
21231 { echo "$as_me:$LINENO: result: $ac_res" >&5
21232 echo "${ECHO_T}$ac_res" >&6; }
21233 if test `eval echo '${'$as_ac_var'}'` = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21241 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21242 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21243 if test "${ac_cv_have_working_snprintf+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 if test "$cross_compiling" = yes; then
21247 ac_cv_have_working_snprintf=cross
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21259 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21260 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21262 i = snprintf (bufs, 2, "%s", "111");
21263 if (strcmp (bufs, "1")) exit (1);
21264 if (i != 3) exit (1);
21265 i = snprintf (bufd, 2, "%d", 111);
21266 if (strcmp (bufd, "1")) exit (1);
21267 if (i != 3) exit (1);
21271 rm -f conftest$ac_exeext
21272 if { (ac_try="$ac_link"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_link") 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21282 { (case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_try") 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_have_working_snprintf=yes
21293 echo "$as_me: program exited with status $ac_status" >&5
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ( exit $ac_status )
21298 ac_cv_have_working_snprintf=no
21300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21306 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21307 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21308 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21309 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21310 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 if test "$cross_compiling" = yes; then
21314 ac_cv_have_working_vsnprintf=cross
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21323 #include <stdarg.h>
21325 int my_vsnprintf (char *buf, const char *tmpl, ...)
21329 va_start (args, tmpl);
21330 i = vsnprintf (buf, 2, tmpl, args);
21337 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21338 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21340 i = my_vsnprintf (bufs, "%s", "111");
21341 if (strcmp (bufs, "1")) exit (1);
21342 if (i != 3) exit (1);
21343 i = my_vsnprintf (bufd, "%d", 111);
21344 if (strcmp (bufd, "1")) exit (1);
21345 if (i != 3) exit (1);
21349 rm -f conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_link") 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21360 { (case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_try") 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_cv_have_working_vsnprintf=yes
21371 echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ( exit $ac_status )
21376 ac_cv_have_working_vsnprintf=no
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21385 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21386 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21387 case " $LIBOBJS " in
21388 *" snprintf.$ac_objext "* ) ;;
21389 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21393 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21394 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21396 cat >>confdefs.h <<\_ACEOF
21397 #define PREFER_PORTABLE_SNPRINTF 1
21401 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21402 { echo "$as_me:$LINENO: checking for asprintf" >&5
21403 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21404 if test "${ac_cv_func_asprintf+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21415 #define asprintf innocuous_asprintf
21417 /* System header to define __stub macros and hopefully few prototypes,
21418 which can conflict with char asprintf (); below.
21419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21420 <limits.h> exists even on freestanding compilers. */
21423 # include <limits.h>
21425 # include <assert.h>
21430 /* Override any GCC internal prototype to avoid an error.
21431 Use char because int might match the return type of a GCC
21432 builtin and then its argument prototype would still apply. */
21437 /* The GNU C library defines this for functions which it implements
21438 to always fail with ENOSYS. Some functions are actually named
21439 something starting with __ and the normal name is an alias. */
21440 #if defined __stub_asprintf || defined __stub___asprintf
21447 return asprintf ();
21452 rm -f conftest.$ac_objext conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_link") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest$ac_exeext &&
21469 $as_test_x conftest$ac_exeext; then
21470 ac_cv_func_asprintf=yes
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_cv_func_asprintf=no
21478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21479 conftest$ac_exeext conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21482 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21483 if test $ac_cv_func_asprintf = yes; then
21487 cat >>confdefs.h <<\_ACEOF
21488 #define NEED_ASPRINTF 1
21493 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21494 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21495 if test "${ac_cv_func_vasprintf+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 cat >conftest.$ac_ext <<_ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21506 #define vasprintf innocuous_vasprintf
21508 /* System header to define __stub macros and hopefully few prototypes,
21509 which can conflict with char vasprintf (); below.
21510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21511 <limits.h> exists even on freestanding compilers. */
21514 # include <limits.h>
21516 # include <assert.h>
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21528 /* The GNU C library defines this for functions which it implements
21529 to always fail with ENOSYS. Some functions are actually named
21530 something starting with __ and the normal name is an alias. */
21531 #if defined __stub_vasprintf || defined __stub___vasprintf
21538 return vasprintf ();
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (ac_try="$ac_link"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_link") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest$ac_exeext &&
21560 $as_test_x conftest$ac_exeext; then
21561 ac_cv_func_vasprintf=yes
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_cv_func_vasprintf=no
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570 conftest$ac_exeext conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21573 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21574 if test $ac_cv_func_vasprintf = yes; then
21578 cat >>confdefs.h <<\_ACEOF
21579 #define NEED_VASPRINTF 1
21585 # Checks for typedefs, structures, and compiler characteristics.
21586 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21587 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21588 if test "${ac_cv_c_const+set}" = set; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21601 /* FIXME: Include the comments suggested by Paul. */
21602 #ifndef __cplusplus
21603 /* Ultrix mips cc rejects this. */
21604 typedef int charset[2];
21606 /* SunOS 4.1.1 cc rejects this. */
21607 char const *const *pcpcc;
21609 /* NEC SVR4.0.2 mips cc rejects this. */
21610 struct point {int x, y;};
21611 static struct point const zero = {0,0};
21612 /* AIX XL C 1.02.0.0 rejects this.
21613 It does not let you subtract one const X* pointer from another in
21614 an arm of an if-expression whose if-part is not a constant
21616 const char *g = "string";
21617 pcpcc = &g + (g ? g-g : 0);
21618 /* HPUX 7.0 cc rejects these. */
21620 ppc = (char**) pcpcc;
21621 pcpcc = (char const *const *) ppc;
21622 { /* SCO 3.2v4 cc rejects this. */
21624 char const *s = 0 ? (char *) 0 : (char const *) 0;
21629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21630 int x[] = {25, 17};
21631 const int *foo = &x[0];
21634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21635 typedef const int *iptr;
21639 { /* AIX XL C 1.02.0.0 rejects this saying
21640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21641 struct s { int j; const int *ap[3]; };
21642 struct s *b; b->j = 5;
21644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21645 const int foo = 10;
21646 if (!foo) return 0;
21648 return !cs[0] && !zero.x;
21655 rm -f conftest.$ac_objext
21656 if { (ac_try="$ac_compile"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_compile") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest.$ac_objext; then
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21683 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21684 if test $ac_cv_c_const = no; then
21686 cat >>confdefs.h <<\_ACEOF
21692 { echo "$as_me:$LINENO: checking for inline" >&5
21693 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21694 if test "${ac_cv_c_inline+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 for ac_kw in inline __inline__ __inline; do
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 #ifndef __cplusplus
21707 static $ac_kw foo_t static_foo () {return 0; }
21708 $ac_kw foo_t foo () {return 0; }
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.$ac_objext; then
21729 ac_cv_c_inline=$ac_kw
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 test "$ac_cv_c_inline" != no && break
21742 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21743 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21746 case $ac_cv_c_inline in
21749 case $ac_cv_c_inline in
21751 *) ac_val=$ac_cv_c_inline;;
21753 cat >>confdefs.h <<_ACEOF
21754 #ifndef __cplusplus
21755 #define inline $ac_val
21761 { echo "$as_me:$LINENO: checking for size_t" >&5
21762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21763 if test "${ac_cv_type_size_t+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 $ac_includes_default
21773 typedef size_t ac__type_new_;
21777 if ((ac__type_new_ *) 0)
21779 if (sizeof (ac__type_new_))
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_compile") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest.$ac_objext; then
21802 ac_cv_type_size_t=yes
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 ac_cv_type_size_t=no
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21813 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21814 if test $ac_cv_type_size_t = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define size_t unsigned int
21825 ###################################
21826 ## SimGrid and GRAS specific checks
21830 { echo "$as_me:$LINENO: result: " >&5
21831 echo "${ECHO_T}" >&6; }
21832 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21833 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
21835 # Check architecture signature begin
21837 # Check for the architecture
21838 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21839 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21840 if test "${ac_cv_c_bigendian+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 # See if sys/param.h defines the BYTE_ORDER macro.
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 #include <sys/types.h>
21851 #include <sys/param.h>
21856 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21857 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21858 bogus endian macros
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_compile") 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && {
21879 test -z "$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 } && test -s conftest.$ac_objext; then
21882 # It does; now see whether it defined to BIG_ENDIAN or not.
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <sys/types.h>
21890 #include <sys/param.h>
21895 #if BYTE_ORDER != BIG_ENDIAN
21903 rm -f conftest.$ac_objext
21904 if { (ac_try="$ac_compile"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 ac_cv_c_bigendian=yes
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_c_bigendian=no
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 # It does not; compile a test program.
21934 if test "$cross_compiling" = yes; then
21935 # try to guess the endianness by grepping values into an object file
21936 ac_cv_c_bigendian=unknown
21937 cat >conftest.$ac_ext <<_ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h. */
21943 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21944 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21945 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21946 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21947 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21948 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21952 _ascii (); _ebcdic ();
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_compile") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest.$ac_objext; then
21974 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21975 ac_cv_c_bigendian=yes
21977 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21978 if test "$ac_cv_c_bigendian" = unknown; then
21979 ac_cv_c_bigendian=no
21981 # finding both strings is unlikely to happen, but who knows?
21982 ac_cv_c_bigendian=unknown
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22000 $ac_includes_default
22005 /* Are we little or big endian? From Harbison&Steele. */
22009 char c[sizeof (long int)];
22012 return u.c[sizeof (long int) - 1] == 1;
22018 rm -f conftest$ac_exeext
22019 if { (ac_try="$ac_link"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_link") 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22029 { (case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_try") 2>&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_c_bigendian=no
22040 echo "$as_me: program exited with status $ac_status" >&5
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22044 ( exit $ac_status )
22045 ac_cv_c_bigendian=yes
22047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22056 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22057 case $ac_cv_c_bigendian in
22063 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22064 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22065 { (exit 1); exit 1; }; } ;;
22069 cat >>confdefs.h <<_ACEOF
22070 #define GRAS_BIGENDIAN $endian
22074 { echo "$as_me:$LINENO: checking size of char" >&5
22075 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22076 if test "${ac_cv_sizeof_char+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22080 cat >conftest.$ac_ext <<_ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #include "confdefs.h"
22087 #include <sys/types.h>
22093 switch (0) case 0: case (sizeof (char) == $ac_size):;
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22115 ac_cv_sizeof_char=$ac_size
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124 if test x$ac_cv_sizeof_char != x ; then break; fi
22130 unspecif=$ac_cv_sizeof_char
22131 if test x$unspecif = x ; then
22132 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22133 echo "$as_me: error: cannot determine a size for char" >&2;}
22134 { (exit 1); exit 1; }; }
22137 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 #include "confdefs.h"
22148 #include <sys/types.h>
22154 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22176 ac_cv_sizeof_signed_char=$ac_size
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22191 signed=$ac_cv_sizeof_signed_char
22192 if test x$signed = x ; then
22193 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22194 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22195 { (exit 1); exit 1; }; }
22197 if test x$unspecif != x$signed ; then
22198 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22199 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22200 { (exit 1); exit 1; }; }
22203 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 #include "confdefs.h"
22214 #include <sys/types.h>
22220 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_compile") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest.$ac_objext; then
22242 ac_cv_sizeof_unsigned_char=$ac_size
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22257 unsigned=$ac_cv_sizeof_unsigned_char
22258 if test x$unsigned = x ; then
22259 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22260 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22261 { (exit 1); exit 1; }; }
22263 if test x$unsigned != x$signed ; then
22264 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22265 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22266 { (exit 1); exit 1; }; }
22269 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22270 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22271 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22272 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22274 if test "${ac_cv_struct_boundary_char+set}" = set; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 #include "confdefs.h"
22285 #include <sys/types.h>
22286 struct s { char c; char i; };
22291 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_compile") 2>conftest.er1
22305 grep -v '^ *+' conftest.er1 >conftest.err
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest.$ac_objext; then
22313 ac_cv_struct_boundary_char=$ac_size
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22327 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22328 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22329 if test x$ac_cv_struct_boundary_char = x ; then
22330 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22331 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22332 { (exit 1); exit 1; }; }
22335 { echo "$as_me:$LINENO: checking size of short int" >&5
22336 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22337 if test "${ac_cv_sizeof_short_int+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include "confdefs.h"
22348 #include <sys/types.h>
22354 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_compile") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest.$ac_objext; then
22376 ac_cv_sizeof_short_int=$ac_size
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22385 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22391 unspecif=$ac_cv_sizeof_short_int
22392 if test x$unspecif = x ; then
22393 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22394 echo "$as_me: error: cannot determine a size for short int" >&2;}
22395 { (exit 1); exit 1; }; }
22398 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22402 cat >conftest.$ac_ext <<_ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include "confdefs.h"
22409 #include <sys/types.h>
22415 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_sizeof_signed_short_int=$ac_size
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22452 signed=$ac_cv_sizeof_signed_short_int
22453 if test x$signed = x ; then
22454 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22455 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22456 { (exit 1); exit 1; }; }
22458 if test x$unspecif != x$signed ; then
22459 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22460 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22461 { (exit 1); exit 1; }; }
22464 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include "confdefs.h"
22475 #include <sys/types.h>
22481 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_compile") 2>conftest.er1
22495 grep -v '^ *+' conftest.er1 >conftest.err
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest.$ac_objext; then
22503 ac_cv_sizeof_unsigned_short_int=$ac_size
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22518 unsigned=$ac_cv_sizeof_unsigned_short_int
22519 if test x$unsigned = x ; then
22520 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22521 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22522 { (exit 1); exit 1; }; }
22524 if test x$unsigned != x$signed ; then
22525 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22526 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22527 { (exit 1); exit 1; }; }
22530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22531 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22532 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22533 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22535 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 #include "confdefs.h"
22546 #include <sys/types.h>
22547 struct s { char c; short int i; };
22552 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561 *) ac_try_echo=$ac_try;;
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.$ac_objext; then
22574 ac_cv_struct_boundary_short_int=$ac_size
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22589 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22590 if test x$ac_cv_struct_boundary_short_int = x ; then
22591 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22592 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22593 { (exit 1); exit 1; }; }
22596 { echo "$as_me:$LINENO: checking size of int" >&5
22597 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22598 if test "${ac_cv_sizeof_int+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22602 cat >conftest.$ac_ext <<_ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 #include "confdefs.h"
22609 #include <sys/types.h>
22615 switch (0) case 0: case (sizeof (int) == $ac_size):;
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22637 ac_cv_sizeof_int=$ac_size
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 if test x$ac_cv_sizeof_int != x ; then break; fi
22652 unspecif=$ac_cv_sizeof_int
22653 if test x$unspecif = x ; then
22654 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22655 echo "$as_me: error: cannot determine a size for int" >&2;}
22656 { (exit 1); exit 1; }; }
22659 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 #include "confdefs.h"
22670 #include <sys/types.h>
22676 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_cv_sizeof_signed_int=$ac_size
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22713 signed=$ac_cv_sizeof_signed_int
22714 if test x$signed = x ; then
22715 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22716 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22717 { (exit 1); exit 1; }; }
22719 if test x$unspecif != x$signed ; then
22720 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22721 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22722 { (exit 1); exit 1; }; }
22725 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22728 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include "confdefs.h"
22736 #include <sys/types.h>
22742 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751 *) ac_try_echo=$ac_try;;
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754 (eval "$ac_compile") 2>conftest.er1
22756 grep -v '^ *+' conftest.er1 >conftest.err
22758 cat conftest.err >&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && {
22761 test -z "$ac_c_werror_flag" ||
22762 test ! -s conftest.err
22763 } && test -s conftest.$ac_objext; then
22764 ac_cv_sizeof_unsigned_int=$ac_size
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22779 unsigned=$ac_cv_sizeof_unsigned_int
22780 if test x$unsigned = x ; then
22781 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22782 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22783 { (exit 1); exit 1; }; }
22785 if test x$unsigned != x$signed ; then
22786 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22787 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22788 { (exit 1); exit 1; }; }
22791 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22792 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22793 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22794 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22796 if test "${ac_cv_struct_boundary_int+set}" = set; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22799 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22800 cat >conftest.$ac_ext <<_ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 #include "confdefs.h"
22807 #include <sys/types.h>
22808 struct s { char c; int i; };
22813 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_compile") 2>conftest.er1
22827 grep -v '^ *+' conftest.er1 >conftest.err
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest.$ac_objext; then
22835 ac_cv_struct_boundary_int=$ac_size
22837 echo "$as_me: failed program was:" >&5
22838 sed 's/^/| /' conftest.$ac_ext >&5
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 if test x$ac_cv_struct_boundary_int != x ; then break; fi
22849 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22850 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
22851 if test x$ac_cv_struct_boundary_int = x ; then
22852 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22853 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22854 { (exit 1); exit 1; }; }
22857 { echo "$as_me:$LINENO: checking size of long int" >&5
22858 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
22859 if test "${ac_cv_sizeof_long_int+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22863 cat >conftest.$ac_ext <<_ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 #include "confdefs.h"
22870 #include <sys/types.h>
22876 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_compile") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest.$ac_objext; then
22898 ac_cv_sizeof_long_int=$ac_size
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 if test x$ac_cv_sizeof_long_int != x ; then break; fi
22913 unspecif=$ac_cv_sizeof_long_int
22914 if test x$unspecif = x ; then
22915 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22916 echo "$as_me: error: cannot determine a size for long int" >&2;}
22917 { (exit 1); exit 1; }; }
22920 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22924 cat >conftest.$ac_ext <<_ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 #include "confdefs.h"
22931 #include <sys/types.h>
22937 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 ac_cv_sizeof_signed_long_int=$ac_size
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22974 signed=$ac_cv_sizeof_signed_long_int
22975 if test x$signed = x ; then
22976 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22977 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22978 { (exit 1); exit 1; }; }
22980 if test x$unspecif != x$signed ; then
22981 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22982 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22983 { (exit 1); exit 1; }; }
22986 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 #include "confdefs.h"
22997 #include <sys/types.h>
23003 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_cv_sizeof_unsigned_long_int=$ac_size
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23040 unsigned=$ac_cv_sizeof_unsigned_long_int
23041 if test x$unsigned = x ; then
23042 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23043 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23044 { (exit 1); exit 1; }; }
23046 if test x$unsigned != x$signed ; then
23047 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23048 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23049 { (exit 1); exit 1; }; }
23052 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23053 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23054 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23055 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23057 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23061 cat >conftest.$ac_ext <<_ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include "confdefs.h"
23068 #include <sys/types.h>
23069 struct s { char c; long int i; };
23074 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_compile") 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest.$ac_objext; then
23096 ac_cv_struct_boundary_long_int=$ac_size
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23110 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23111 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23112 if test x$ac_cv_struct_boundary_long_int = x ; then
23113 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23114 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23115 { (exit 1); exit 1; }; }
23118 { echo "$as_me:$LINENO: checking size of long long int" >&5
23119 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23120 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include "confdefs.h"
23131 #include <sys/types.h>
23137 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_compile") 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } && {
23156 test -z "$ac_c_werror_flag" ||
23157 test ! -s conftest.err
23158 } && test -s conftest.$ac_objext; then
23159 ac_cv_sizeof_long_long_int=$ac_size
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23174 unspecif=$ac_cv_sizeof_long_long_int
23175 if test x$unspecif = x ; then
23176 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23177 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23178 { (exit 1); exit 1; }; }
23181 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 #include "confdefs.h"
23192 #include <sys/types.h>
23198 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_compile") 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest.$ac_objext; then
23220 ac_cv_sizeof_signed_long_long_int=$ac_size
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23229 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23235 signed=$ac_cv_sizeof_signed_long_long_int
23236 if test x$signed = x ; then
23237 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23238 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23239 { (exit 1); exit 1; }; }
23241 if test x$unspecif != x$signed ; then
23242 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23243 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23244 { (exit 1); exit 1; }; }
23247 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include "confdefs.h"
23258 #include <sys/types.h>
23264 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23269 rm -f conftest.$ac_objext
23270 if { (ac_try="$ac_compile"
23271 case "(($ac_try" in
23272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23276 (eval "$ac_compile") 2>conftest.er1
23278 grep -v '^ *+' conftest.er1 >conftest.err
23280 cat conftest.err >&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } && {
23283 test -z "$ac_c_werror_flag" ||
23284 test ! -s conftest.err
23285 } && test -s conftest.$ac_objext; then
23286 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23301 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23302 if test x$unsigned = x ; then
23303 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23304 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23305 { (exit 1); exit 1; }; }
23307 if test x$unsigned != x$signed ; then
23308 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23309 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23310 { (exit 1); exit 1; }; }
23313 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23314 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23315 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23316 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23318 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 #include "confdefs.h"
23329 #include <sys/types.h>
23330 struct s { char c; long long int i; };
23335 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347 (eval "$ac_compile") 2>conftest.er1
23349 grep -v '^ *+' conftest.er1 >conftest.err
23351 cat conftest.err >&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest.$ac_objext; then
23357 ac_cv_struct_boundary_long_long_int=$ac_size
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23371 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23372 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23373 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23374 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23375 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23376 { (exit 1); exit 1; }; }
23380 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23381 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23383 if test "${ac_cv_struct_boundary_float+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 #include "confdefs.h"
23394 #include <sys/types.h>
23395 struct s { char c; float i; };
23400 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412 (eval "$ac_compile") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23422 ac_cv_struct_boundary_float=$ac_size
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23436 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23437 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23438 if test x$ac_cv_struct_boundary_float = x ; then
23439 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23440 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23441 { (exit 1); exit 1; }; }
23443 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23444 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23446 if test "${ac_cv_struct_boundary_double+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23450 cat >conftest.$ac_ext <<_ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23456 #include "confdefs.h"
23457 #include <sys/types.h>
23458 struct s { char c; double i; };
23463 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_compile") 2>conftest.er1
23477 grep -v '^ *+' conftest.er1 >conftest.err
23479 cat conftest.err >&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); } && {
23482 test -z "$ac_c_werror_flag" ||
23483 test ! -s conftest.err
23484 } && test -s conftest.$ac_objext; then
23485 ac_cv_struct_boundary_double=$ac_size
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23499 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23500 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23501 if test x$ac_cv_struct_boundary_double = x ; then
23502 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23503 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23504 { (exit 1); exit 1; }; }
23508 { echo "$as_me:$LINENO: checking size of void *" >&5
23509 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23510 if test "${ac_cv_sizeof_void_p+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 #include "confdefs.h"
23521 #include <sys/types.h>
23527 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_cv_sizeof_void_p=$ac_size
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23564 if test x$ac_cv_sizeof_void_p = x ; then
23565 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23566 echo "$as_me: error: cannot determine a size for void *" >&2;}
23567 { (exit 1); exit 1; }; }
23569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23570 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23571 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23572 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23574 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include "confdefs.h"
23585 #include <sys/types.h>
23586 struct s { char c; void * i; };
23591 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_compile") 2>conftest.er1
23605 grep -v '^ *+' conftest.er1 >conftest.err
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest.$ac_objext; then
23613 ac_cv_struct_boundary_void_p=$ac_size
23615 echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23622 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23627 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23628 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23629 if test x$ac_cv_struct_boundary_void_p = x ; then
23630 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23631 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23632 { (exit 1); exit 1; }; }
23635 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23636 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23637 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 #include "confdefs.h"
23648 #include <sys/types.h>
23654 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666 (eval "$ac_compile") 2>conftest.er1
23668 grep -v '^ *+' conftest.er1 >conftest.err
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && {
23673 test -z "$ac_c_werror_flag" ||
23674 test ! -s conftest.err
23675 } && test -s conftest.$ac_objext; then
23676 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23678 echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23691 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23692 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23693 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23694 { (exit 1); exit 1; }; }
23696 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23697 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23701 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23702 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23703 if test x$endian = x1 ; then
23709 trace="$trace_endian"
23711 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23713 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23714 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23715 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23716 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23718 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23719 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23721 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23723 # sizeof float/double are not tested since IEEE 754 is assumed.
23724 # Check README.IEEE for rational.
23726 # The numbers after the _ in the arch name are the maximal packing boundary.
23727 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23728 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23730 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;;
23731 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;;
23732 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;;
23733 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;;
23735 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;;
23737 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;;
23738 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;;
23739 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;;
23740 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;;
23742 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;;
23743 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;;
23745 if test x$gras_arch = xunknown ; then
23746 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23747 echo "${ECHO_T}damnit ($trace)" >&6; }
23748 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23749 Please report this architecture trace ($trace) and what it corresponds to." >&5
23750 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23751 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23752 { (exit 1); exit 1; }; }
23754 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23756 cat >>confdefs.h <<_ACEOF
23757 #define GRAS_THISARCH $gras_arch
23760 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23761 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23765 if test "$gras_size" = 32; then
23766 GRAS_ARCH_32_BITS_TRUE=
23767 GRAS_ARCH_32_BITS_FALSE='#'
23769 GRAS_ARCH_32_BITS_TRUE='#'
23770 GRAS_ARCH_32_BITS_FALSE=
23774 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23775 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23777 for s in $ac_cv_sizeof_char \
23778 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23779 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23782 if test $ac_cv_sizeof_max -lt $s ; then
23783 ac_cv_sizeof_max=$s
23786 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23787 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23789 cat >>confdefs.h <<_ACEOF
23790 #define SIZEOF_MAX $ac_cv_sizeof_max
23795 # Check architecture signature end
23796 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23797 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23798 cat >conftest.$ac_ext <<_ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 #include "confdefs.h"
23805 #include <sys/types.h>
23806 #include <stddef.h> /* offsetof() */
23807 struct s {char c; double d;};
23814 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_compile") 2>conftest.er1
23829 grep -v '^ *+' conftest.er1 >conftest.err
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } && {
23834 test -z "$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23836 } && test -s conftest.$ac_objext; then
23837 gras_struct_packed=yes
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 gras_struct_packed=no
23845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23847 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23848 echo "${ECHO_T}$gras_struct_packed" >&6; }
23849 if test x$gras_struct_packed = "xyes" ; then
23850 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23851 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23852 { (exit 1); exit 1; }; }
23855 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23856 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
23857 cat >conftest.$ac_ext <<_ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863 #include "confdefs.h"
23864 #include <sys/types.h>
23865 #include <stddef.h> /* offsetof() */
23866 struct s {double d; int i; char c;};
23873 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886 (eval "$ac_compile") 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } && {
23893 test -z "$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 } && test -s conftest.$ac_objext; then
23896 gras_struct_compact=yes
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 gras_struct_compact=no
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23907 echo "${ECHO_T}$gras_struct_compact" >&6; }
23909 if test x$gras_struct_compact != xyes ; then
23910 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23911 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23912 { (exit 1); exit 1; }; }
23915 cat >>confdefs.h <<_ACEOF
23916 #define GRAS_STRUCT_COMPACT 1
23919 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23920 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
23922 cat >conftest.$ac_ext <<_ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 #include "confdefs.h"
23929 #include <sys/types.h>
23930 #include <stddef.h> /* offsetof() */
23931 struct s { double d; int i; char c[6]; };
23938 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23944 rm -f conftest.$ac_objext
23945 if { (ac_try="$ac_compile"
23946 case "(($ac_try" in
23947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948 *) ac_try_echo=$ac_try;;
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951 (eval "$ac_compile") 2>conftest.er1
23953 grep -v '^ *+' conftest.er1 >conftest.err
23955 cat conftest.err >&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } && {
23958 test -z "$ac_c_werror_flag" ||
23959 test ! -s conftest.err
23960 } && test -s conftest.$ac_objext; then
23961 gras_array_straddle_struct=yes
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 gras_array_straddle_struct=no
23969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23971 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23972 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
23974 if test x$gras_array_straddle_struct = xyes ; then
23976 cat >>confdefs.h <<_ACEOF
23977 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23981 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23982 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23983 { (exit 1); exit 1; }; }
23990 { echo "$as_me:$LINENO: result: " >&5
23991 echo "${ECHO_T}" >&6; }
23992 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23993 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
23998 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23999 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24000 if test "${ac_cv_check_mcsc+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24004 if test "$cross_compiling" = yes; then
24005 ac_cv_check_mcsc=no
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24017 #include <stdlib.h>
24018 #include <ucontext.h>
24020 ucontext_t uc_child;
24021 ucontext_t uc_main;
24023 void child(void *arg)
24025 if (arg != (void *)12345)
24027 if (swapcontext(&uc_child, &uc_main) != 0)
24031 int main(int argc, char *argv[])
24036 /* the default is that it fails */
24037 if ((fp = fopen("conftestval", "w")) == NULL)
24039 fprintf(fp, "no\n");
24042 /* configure a child user-space context */
24043 if ((stack = malloc(64*1024)) == NULL)
24045 if (getcontext(&uc_child) != 0)
24047 uc_child.uc_link = NULL;
24048 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24049 uc_child.uc_stack.ss_size = 32*1024;
24050 uc_child.uc_stack.ss_flags = 0;
24051 makecontext(&uc_child, child, 2, (void *)12345);
24053 /* switch into the user context */
24054 if (swapcontext(&uc_main, &uc_child) != 0)
24057 /* Fine, child came home */
24058 if ((fp = fopen("conftestval", "w")) == NULL)
24060 fprintf(fp, "yes\n");
24063 /* die successfully */
24068 rm -f conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_link") 2>&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24079 { (case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_try") 2>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; }; then
24088 ac_cv_check_mcsc=`cat conftestval`
24090 echo "$as_me: program exited with status $ac_status" >&5
24091 echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24094 ( exit $ac_status )
24095 ac_cv_check_mcsc=no
24097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24102 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24103 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24104 if test ".$ac_cv_check_mcsc" = .yes; then
24112 for ac_header in pthread.h
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 ac_res=`eval echo '${'$as_ac_Header'}'`
24122 { echo "$as_me:$LINENO: result: $ac_res" >&5
24123 echo "${ECHO_T}$ac_res" >&6; }
24125 # Is the header compilable?
24126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 $ac_includes_default
24135 #include <$ac_header>
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141 *) ac_try_echo=$ac_try;;
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144 (eval "$ac_compile") 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } && {
24151 test -z "$ac_c_werror_flag" ||
24152 test ! -s conftest.err
24153 } && test -s conftest.$ac_objext; then
24154 ac_header_compiler=yes
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159 ac_header_compiler=no
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24164 echo "${ECHO_T}$ac_header_compiler" >&6; }
24166 # Is the header present?
24167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24169 cat >conftest.$ac_ext <<_ACEOF
24172 cat confdefs.h >>conftest.$ac_ext
24173 cat >>conftest.$ac_ext <<_ACEOF
24174 /* end confdefs.h. */
24175 #include <$ac_header>
24177 if { (ac_try="$ac_cpp conftest.$ac_ext"
24178 case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } >/dev/null && {
24190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24193 ac_header_preproc=yes
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ac_header_preproc=no
24201 rm -f conftest.err conftest.$ac_ext
24202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24203 echo "${ECHO_T}$ac_header_preproc" >&6; }
24205 # So? What about this header?
24206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24212 ac_header_preproc=yes
24215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24228 ## -------------------------------------------------- ##
24229 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24230 ## -------------------------------------------------- ##
24232 ) | sed "s/^/$as_me: WARNING: /" >&2
24235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 eval "$as_ac_Header=\$ac_header_preproc"
24242 ac_res=`eval echo '${'$as_ac_Header'}'`
24243 { echo "$as_me:$LINENO: result: $ac_res" >&5
24244 echo "${ECHO_T}$ac_res" >&6; }
24247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24248 cat >>confdefs.h <<_ACEOF
24249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24256 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24257 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24258 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24259 echo $ECHO_N "(cached) $ECHO_C" >&6
24261 ac_check_lib_save_LIBS=$LIBS
24262 LIBS="-lpthread $LIBS"
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24270 /* Override any GCC internal prototype to avoid an error.
24271 Use char because int might match the return type of a GCC
24272 builtin and then its argument prototype would still apply. */
24276 char pthread_create ();
24280 return pthread_create ();
24285 rm -f conftest.$ac_objext conftest$ac_exeext
24286 if { (ac_try="$ac_link"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_link") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest$ac_exeext &&
24302 $as_test_x conftest$ac_exeext; then
24303 ac_cv_lib_pthread_pthread_create=yes
24305 echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24308 ac_cv_lib_pthread_pthread_create=no
24311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24312 conftest$ac_exeext conftest.$ac_ext
24313 LIBS=$ac_check_lib_save_LIBS
24315 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24316 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24317 if test $ac_cv_lib_pthread_pthread_create = yes; then
24325 if test ".$mcsc" = .yes; then
24327 elif test ".$pthread" = .yes; then
24330 ac_header=windows.h
24331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24333 windows_context=yes
24335 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24336 echo "$as_me: error: no appropriate backend found" >&2;}
24337 { (exit 1); exit 1; }; }
24342 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24343 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24346 # Check whether --with-pthread was given.
24347 if test "${with_pthread+set}" = set; then
24348 withval=$with_pthread; with_context=pthread
24352 # Check whether --with-pthread was given.
24353 if test "${with_pthread+set}" = set; then
24354 withval=$with_pthread; with_context=pthread
24359 # Check whether --with-context was given.
24360 if test "${with_context+set}" = set; then
24361 withval=$with_context;
24367 if test "x$with_context$mcsc" = "xucontextno" ; then
24368 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24369 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24370 { (exit 77); exit 77; }; }
24373 case $with_context in
24378 auto) with_context=ucontext;;
24379 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24380 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24381 { (exit 1); exit 1; }; } ;;
24384 if test "x$with_context" = "xucontext" ; then
24385 if test ".$mcsc" = .yes; then
24386 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24387 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24389 cat >>confdefs.h <<\_ACEOF
24390 #define CONTEXT_UCONTEXT 1
24394 if test ".$windows_context" = .yes ; then
24395 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24396 echo "${ECHO_T}use windows context portability layer." >&6; }
24397 with_context=windows
24399 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24400 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24401 with_context=pthread
24406 if test "x$with_context" = "xpthreads"; then
24407 with_context=pthread
24409 if test "x$with_context" = "xpthread"; then
24411 for ac_header in pthread.h
24413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24418 echo $ECHO_N "(cached) $ECHO_C" >&6
24420 ac_res=`eval echo '${'$as_ac_Header'}'`
24421 { echo "$as_me:$LINENO: result: $ac_res" >&5
24422 echo "${ECHO_T}$ac_res" >&6; }
24424 # Is the header compilable?
24425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24427 cat >conftest.$ac_ext <<_ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 $ac_includes_default
24434 #include <$ac_header>
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest.$ac_objext; then
24453 ac_header_compiler=yes
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_header_compiler=no
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24463 echo "${ECHO_T}$ac_header_compiler" >&6; }
24465 # Is the header present?
24466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 #include <$ac_header>
24476 if { (ac_try="$ac_cpp conftest.$ac_ext"
24477 case "(($ac_try" in
24478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479 *) ac_try_echo=$ac_try;;
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24484 grep -v '^ *+' conftest.er1 >conftest.err
24486 cat conftest.err >&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } >/dev/null && {
24489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24490 test ! -s conftest.err
24492 ac_header_preproc=yes
24494 echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24497 ac_header_preproc=no
24500 rm -f conftest.err conftest.$ac_ext
24501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24502 echo "${ECHO_T}$ac_header_preproc" >&6; }
24504 # So? What about this header?
24505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24511 ac_header_preproc=yes
24514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24527 ## -------------------------------------------------- ##
24528 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24529 ## -------------------------------------------------- ##
24531 ) | sed "s/^/$as_me: WARNING: /" >&2
24534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 eval "$as_ac_Header=\$ac_header_preproc"
24541 ac_res=`eval echo '${'$as_ac_Header'}'`
24542 { echo "$as_me:$LINENO: result: $ac_res" >&5
24543 echo "${ECHO_T}$ac_res" >&6; }
24546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24547 cat >>confdefs.h <<_ACEOF
24548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24556 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24557 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24558 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24561 ac_check_lib_save_LIBS=$LIBS
24562 LIBS="-lpthread $LIBS"
24563 cat >conftest.$ac_ext <<_ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24570 /* Override any GCC internal prototype to avoid an error.
24571 Use char because int might match the return type of a GCC
24572 builtin and then its argument prototype would still apply. */
24576 char pthread_create ();
24580 return pthread_create ();
24585 rm -f conftest.$ac_objext conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_link") 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } && {
24599 test -z "$ac_c_werror_flag" ||
24600 test ! -s conftest.err
24601 } && test -s conftest$ac_exeext &&
24602 $as_test_x conftest$ac_exeext; then
24603 ac_cv_lib_pthread_pthread_create=yes
24605 echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24608 ac_cv_lib_pthread_pthread_create=no
24611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612 conftest$ac_exeext conftest.$ac_ext
24613 LIBS=$ac_check_lib_save_LIBS
24615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24616 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24617 if test $ac_cv_lib_pthread_pthread_create = yes; then
24618 cat >>confdefs.h <<_ACEOF
24619 #define HAVE_LIBPTHREAD 1
24622 LIBS="-lpthread $LIBS"
24625 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24626 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24627 { (exit 1); exit 1; }; }
24631 cat >>confdefs.h <<\_ACEOF
24632 #define CONTEXT_THREADS 1
24635 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24636 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24640 if test "x$with_context" = "xucontext" ; then
24641 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24642 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24643 if test "${ac_cv_check_stackgrowth+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 if test "$cross_compiling" = yes; then
24649 ac_cv_check_stackgrowth=down
24652 cat >conftest.$ac_ext <<_ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24660 #include <stdlib.h>
24661 static int iterate = 10;
24662 static int growsdown(int *x)
24672 int main(int argc, char *argv[])
24676 if ((f = fopen("conftestval", "w")) == NULL)
24678 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24685 rm -f conftest$ac_exeext
24686 if { (ac_try="$ac_link"
24687 case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692 (eval "$ac_link") 2>&5
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24696 { (case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_try") 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_check_stackgrowth=`cat conftestval`
24707 echo "$as_me: program exited with status $ac_status" >&5
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24711 ( exit $ac_status )
24712 ac_cv_check_stackgrowth=down
24714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24719 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24720 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24721 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24727 cat >>confdefs.h <<_ACEOF
24728 #define PTH_STACKGROWTH $val
24732 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24733 PTH_STACK_GROWTH="down"
24735 PTH_STACK_GROWTH="up"
24743 for ac_func in makecontext
24745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24759 #define $ac_func innocuous_$ac_func
24761 /* System header to define __stub macros and hopefully few prototypes,
24762 which can conflict with char $ac_func (); below.
24763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24764 <limits.h> exists even on freestanding compilers. */
24767 # include <limits.h>
24769 # include <assert.h>
24774 /* Override any GCC internal prototype to avoid an error.
24775 Use char because int might match the return type of a GCC
24776 builtin and then its argument prototype would still apply. */
24781 /* The GNU C library defines this for functions which it implements
24782 to always fail with ENOSYS. Some functions are actually named
24783 something starting with __ and the normal name is an alias. */
24784 #if defined __stub_$ac_func || defined __stub___$ac_func
24791 return $ac_func ();
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (ac_try="$ac_link"
24798 case "(($ac_try" in
24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_link") 2>conftest.er1
24805 grep -v '^ *+' conftest.er1 >conftest.err
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } && {
24810 test -z "$ac_c_werror_flag" ||
24811 test ! -s conftest.err
24812 } && test -s conftest$ac_exeext &&
24813 $as_test_x conftest$ac_exeext; then
24814 eval "$as_ac_var=yes"
24816 echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24819 eval "$as_ac_var=no"
24822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24823 conftest$ac_exeext conftest.$ac_ext
24825 ac_res=`eval echo '${'$as_ac_var'}'`
24826 { echo "$as_me:$LINENO: result: $ac_res" >&5
24827 echo "${ECHO_T}$ac_res" >&6; }
24828 if test `eval echo '${'$as_ac_var'}'` = yes; then
24829 cat >>confdefs.h <<_ACEOF
24830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24837 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24838 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
24839 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24843 if test ".$ac_cv_func_makecontext" = .no; then
24844 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24847 CFLAGS="$CFLAGS -DTEST_makecontext"
24849 if test "$cross_compiling" = yes; then
24851 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24862 #include <stdlib.h>
24863 #include <string.h>
24864 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24865 #include <sys/types.h>
24866 #include <signal.h>
24867 #include <unistd.h>
24869 #if defined(TEST_makecontext)
24870 #include <ucontext.h>
24879 static volatile char *handler_addr = (char *)0xDEAD;
24880 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24881 static volatile int handler_done = 0;
24882 void handler(int sig)
24884 char garbage[1024];
24887 for (i = 0; i < 1024; i++)
24889 handler_addr = (char *)&dummy;
24894 #if defined(TEST_makecontext)
24895 static ucontext_t uc_handler;
24896 static ucontext_t uc_main;
24899 char garbage[1024];
24902 for (i = 0; i < 1024; i++)
24904 handler_addr = (char *)&dummy;
24905 swapcontext(&uc_handler, &uc_main);
24909 int main(int argc, char *argv[])
24918 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24921 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24923 skaddr = skbuf+sizeof(union alltypes);
24924 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24926 struct sigaction sa;
24927 #if defined(TEST_sigstack)
24928 struct sigstack ss;
24929 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24932 struct sigaltstack ss;
24934 #if defined(TEST_sigstack)
24935 ss.ss_sp = (void *)(skaddr + sksize);
24937 if (sigstack(&ss, NULL) < 0)
24939 #elif defined(TEST_sigaltstack)
24940 ss.ss_sp = (void *)(skaddr + sksize);
24941 ss.ss_size = sksize;
24943 if (sigaltstack(&ss, NULL) < 0)
24946 memset((void *)&sa, 0, sizeof(struct sigaction));
24947 sa.sa_handler = handler;
24948 sa.sa_flags = SA_ONSTACK;
24949 sigemptyset(&sa.sa_mask);
24950 sigaction(SIGUSR1, &sa, NULL);
24951 kill(getpid(), SIGUSR1);
24952 while (!handler_done)
24956 #if defined(TEST_makecontext)
24958 if (getcontext(&uc_handler) != 0)
24960 uc_handler.uc_link = NULL;
24961 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
24962 uc_handler.uc_stack.ss_size = sksize;
24963 uc_handler.uc_stack.ss_flags = 0;
24964 makecontext(&uc_handler, handler, 1);
24965 swapcontext(&uc_main, &uc_handler);
24968 if (handler_addr == (char *)0xDEAD)
24970 if (handler_addr < skaddr+sksize) {
24971 /* stack was placed into lower area */
24972 if (*(skaddr+sksize) != 'A')
24973 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24974 sizeof(union alltypes), sizeof(union alltypes));
24976 strcpy(result, "(skaddr)+(sksize),(sksize)");
24979 /* stack was placed into higher area */
24980 if (*(skaddr+sksize*2) != 'A')
24981 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24983 strcpy(result, "(skaddr),(sksize)");
24985 if ((f = fopen("conftestval", "w")) == NULL)
24987 fprintf(f, "%s\n", result);
24993 rm -f conftest$ac_exeext
24994 if { (ac_try="$ac_link"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_link") 2>&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25004 { (case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_try") 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25014 ac_cv_stacksetup_makecontext=`cat conftestval`
25015 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25018 echo "$as_me: program exited with status $ac_status" >&5
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ( exit $ac_status )
25024 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25035 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25036 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25037 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25038 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25039 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25040 { echo "$as_me:$LINENO: result: $type" >&5
25041 echo "${ECHO_T}$type" >&6; }
25042 if test ".$verbose" = .yes; then
25043 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25044 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25047 if test ".$verbose" = .yes; then
25048 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25049 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25056 #########################################
25057 ## Build optional modules (simix)
25060 { echo "$as_me:$LINENO: result: " >&5
25061 echo "${ECHO_T}" >&6; }
25062 { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25063 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25065 # Check whether --enable-simix was given.
25066 if test "${enable_simix+set}" = set; then
25067 enableval=$enable_simix; enable_simix=$enableval
25072 if test "x$enable_simix" = "xyes" ; then
25073 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25074 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25076 cat >>confdefs.h <<\_ACEOF
25077 #define USE_SIMIX 1
25081 { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25082 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25086 if test x$enable_simix != xno; then
25088 USE_SIMIX_FALSE='#'
25095 #########################################
25096 ## Check for libraries extra-dependencies
25100 { echo "$as_me:$LINENO: result: " >&5
25101 echo "${ECHO_T}" >&6; }
25102 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25103 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25109 #########################################
25110 ## Build optional modules (gtnets)
25113 # Check whether --with-gtnets was given.
25114 if test "${with_gtnets+set}" = set; then
25115 withval=$with_gtnets; gtnets_path="$withval"
25120 if test "x$gtnets_path" = "xNO" ; then
25121 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25122 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25124 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25125 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25127 cat >>confdefs.h <<\_ACEOF
25128 #define USE_GTNETS 1
25131 if ! test -e $gtnets_path ; then
25132 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25133 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25134 { (exit 1); exit 1; }; }
25136 GTNETS_CFLAGS=-I$gtnets_path/include
25138 GTNETS_LDFLAGS=-L$gtnets_path/lib
25140 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25144 if test "x$gtnets_path" != xNO; then
25146 USE_GTNETS_FALSE='#'
25148 USE_GTNETS_TRUE='#'
25153 if test xpthread=xyes ; then
25154 # if the pthreads are usable
25155 if test "x$with_context" = "xpthread" ; then
25156 # if we use them to implement the xbt_context
25157 SIMGRID_DEP="-lpthread"
25159 # we need them in any case for the gras lib (which is multithreaded)
25160 GRAS_DEP="-lpthread"
25163 { echo "$as_me:$LINENO: checking for csdp" >&5
25164 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25166 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25167 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25168 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 ac_check_lib_save_LIBS=$LIBS
25172 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25180 /* Override any GCC internal prototype to avoid an error.
25181 Use char because int might match the return type of a GCC
25182 builtin and then its argument prototype would still apply. */
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (ac_try="$ac_link"
25197 case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202 (eval "$ac_link") 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && {
25209 test -z "$ac_c_werror_flag" ||
25210 test ! -s conftest.err
25211 } && test -s conftest$ac_exeext &&
25212 $as_test_x conftest$ac_exeext; then
25213 ac_cv_lib_sdp_sdp=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_cv_lib_sdp_sdp=no
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222 conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25225 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25226 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25227 if test $ac_cv_lib_sdp_sdp = yes; then
25233 if test "x$csdp" = xyes; then
25234 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25235 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25236 echo "${ECHO_T}Found working sdp library." >&6; }
25238 cat >>confdefs.h <<\_ACEOF
25243 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25244 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25248 if test x$csdp != xno; then
25259 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25260 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25261 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25264 ac_check_lib_save_LIBS=$LIBS
25266 cat >conftest.$ac_ext <<_ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25273 /* Override any GCC internal prototype to avoid an error.
25274 Use char because int might match the return type of a GCC
25275 builtin and then its argument prototype would still apply. */
25279 char gethostbyname ();
25283 return gethostbyname ();
25288 rm -f conftest.$ac_objext conftest$ac_exeext
25289 if { (ac_try="$ac_link"
25290 case "(($ac_try" in
25291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292 *) ac_try_echo=$ac_try;;
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295 (eval "$ac_link") 2>conftest.er1
25297 grep -v '^ *+' conftest.er1 >conftest.err
25299 cat conftest.err >&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && {
25302 test -z "$ac_c_werror_flag" ||
25303 test ! -s conftest.err
25304 } && test -s conftest$ac_exeext &&
25305 $as_test_x conftest$ac_exeext; then
25306 ac_cv_lib_nsl_gethostbyname=yes
25308 echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25311 ac_cv_lib_nsl_gethostbyname=no
25314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25315 conftest$ac_exeext conftest.$ac_ext
25316 LIBS=$ac_check_lib_save_LIBS
25318 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25319 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25320 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25321 GRAS_DEP="$GRAS_DEP -lnsl"
25324 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25325 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25326 if test "${ac_cv_lib_socket_connect+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 ac_check_lib_save_LIBS=$LIBS
25330 LIBS="-lsocket $LIBS"
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25338 /* Override any GCC internal prototype to avoid an error.
25339 Use char because int might match the return type of a GCC
25340 builtin and then its argument prototype would still apply. */
25353 rm -f conftest.$ac_objext conftest$ac_exeext
25354 if { (ac_try="$ac_link"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360 (eval "$ac_link") 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && {
25367 test -z "$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25369 } && test -s conftest$ac_exeext &&
25370 $as_test_x conftest$ac_exeext; then
25371 ac_cv_lib_socket_connect=yes
25373 echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_cv_lib_socket_connect=no
25379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25380 conftest$ac_exeext conftest.$ac_ext
25381 LIBS=$ac_check_lib_save_LIBS
25383 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25384 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25385 if test $ac_cv_lib_socket_connect = yes; then
25386 GRAS_DEP="$GRAS_DEP -lsocket"
25390 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25391 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25393 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25394 AM_CFLAGS=-DDLL_EXPORT
25396 cat >>confdefs.h <<\_ACEOF
25397 #define CONTEXT_THREADS 1
25402 if test "x$GRAS_DEP" = x; then
25403 { echo "$as_me:$LINENO: result: none" >&5
25404 echo "${ECHO_T}none" >&6; }
25406 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25407 echo "${ECHO_T}$GRAS_DEP" >&6; }
25412 ##############################################
25413 ## Enhance maintainer mode and SUBST variables
25414 ## (must be placed after any compilation tests since our overprotective flags
25415 ## let some tests fail)
25417 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25418 # Next line is modified by sed when building gramine source tree
25420 if test x$gramine_mode = xyes
25422 USE_MAINTAINER_MODE=no
25426 if test x$gramine_mode != xno; then
25428 GRAMINE_MODE_FALSE='#'
25430 GRAMINE_MODE_TRUE='#'
25431 GRAMINE_MODE_FALSE=
25436 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25437 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25438 # Check whether --enable-maintainer-mode was given.
25439 if test "${enable_maintainer_mode+set}" = set; then
25440 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25442 USE_MAINTAINER_MODE=no
25445 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25446 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25449 if test $USE_MAINTAINER_MODE = yes; then
25450 MAINTAINER_MODE_TRUE=
25451 MAINTAINER_MODE_FALSE='#'
25453 MAINTAINER_MODE_TRUE='#'
25454 MAINTAINER_MODE_FALSE=
25457 MAINT=$MAINTAINER_MODE_TRUE
25460 if test x$USE_MAINTAINER_MODE = xyes
25462 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25463 enable_compile_warnings=yes
25466 # Check whether --enable-compile-warnings was given.
25467 if test "${enable_compile_warnings+set}" = set; then
25468 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25470 enable_compile_warnings=no
25474 # Check whether --enable-compile-optimizations was given.
25475 if test "${enable_compile_optimizations+set}" = set; then
25476 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25478 enable_compile_optimizations=auto
25482 if test "x$cflags_set" != "xyes" ; then
25483 # if user didn't specify CFLAGS explicitely
25485 # AC PROG CC tests whether -g is accepted.
25486 # Cool, but it also tries to set -O2. I don't want it with gcc
25487 saveCFLAGS="$CFLAGS"
25489 case " $saveCFLAGS " in
25490 *-g*) CFLAGS="-g" ;;
25492 case " $saveCFLAGS " in
25493 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25496 # damn AC PROG CC, why did you set -O??
25500 if test "x$enable_compile_warnings" = "xyes" ; then
25501 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25502 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25504 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25505 case " $CFLAGS " in
25507 *) warnCFLAGS="-Wall -Wunused" ;;
25510 ## -W is not all that useful. And it cannot be controlled
25511 ## with individual -Wno-xxx flags, unlike -Wall
25513 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25514 ## -Wshadow chokes on try{ try{} } constructs
25515 if test "x$enable_compile_warnings" = "xyes"; then
25516 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25517 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25518 -Wno-unused-function \
25521 # -Wno-unused-variable -Wno-unused-label
25524 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25525 echo "${ECHO_T}$warnCFLAGS" >&6; }
25526 # placed before since gcc remembers the last one on conflict
25527 CFLAGS="$warnCFLAGS $CFLAGS"
25530 if test "x$enable_compile_optimizations" = "xyes" ||
25531 test "x$enable_compile_optimizations" = "xauto" ; then
25532 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25533 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25535 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25536 case " $CFLAGS " in
25538 *) optCFLAGS="$optCFLAGS -O3" ;;
25540 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25542 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25543 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25544 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25545 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25546 # isn't propagated enough to desserve an extra check
25548 # Note that the flag didn't exist before gcc 3.0
25549 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25552 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25553 echo "${ECHO_T}$optCFLAGS" >&6; }
25554 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25555 if test "x$cflags_set" != "xyes" ; then
25556 CFLAGS="$optCFLAGS $CFLAGS"
25560 if test x$lt_cv_prog_gnu_ld = xyes ; then
25561 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25577 #####################
25578 ## Check for programs
25582 { echo "$as_me:$LINENO: result: " >&5
25583 echo "${ECHO_T}" >&6; }
25584 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25585 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25587 # Extract the first word of "bash", so it can be a program name with args.
25588 set dummy bash; ac_word=$2
25589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25591 if test "${ac_cv_prog_BASH+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25594 if test -n "$BASH"; then
25595 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25598 for as_dir in $PATH
25601 test -z "$as_dir" && as_dir=.
25602 for ac_exec_ext in '' $ac_executable_extensions; do
25603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25604 ac_cv_prog_BASH="`which bash`"
25605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25612 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25615 BASH=$ac_cv_prog_BASH
25616 if test -n "$BASH"; then
25617 { echo "$as_me:$LINENO: result: $BASH" >&5
25618 echo "${ECHO_T}$BASH" >&6; }
25620 { echo "$as_me:$LINENO: result: no" >&5
25621 echo "${ECHO_T}no" >&6; }
25625 WARNING="This file is generated, do not edit"
25629 # Can we rebuild the parsers?
25630 # We really want flex and refuse other lex. So, the parser is portable and
25631 # does not induce extra lib dependency
25632 for ac_prog in flex lex
25634 # Extract the first word of "$ac_prog", so it can be a program name with args.
25635 set dummy $ac_prog; ac_word=$2
25636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25638 if test "${ac_cv_prog_LEX+set}" = set; then
25639 echo $ECHO_N "(cached) $ECHO_C" >&6
25641 if test -n "$LEX"; then
25642 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 for as_dir in $PATH
25648 test -z "$as_dir" && as_dir=.
25649 for ac_exec_ext in '' $ac_executable_extensions; do
25650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25651 ac_cv_prog_LEX="$ac_prog"
25652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25661 LEX=$ac_cv_prog_LEX
25662 if test -n "$LEX"; then
25663 { echo "$as_me:$LINENO: result: $LEX" >&5
25664 echo "${ECHO_T}$LEX" >&6; }
25666 { echo "$as_me:$LINENO: result: no" >&5
25667 echo "${ECHO_T}no" >&6; }
25671 test -n "$LEX" && break
25673 test -n "$LEX" || LEX=":"
25675 if test "x$LEX" != "x:"; then
25676 cat >conftest.l <<_ACEOF
25682 e { yyless (input () != 0); }
25683 f { unput (yytext[0]); }
25684 . { BEGIN INITIAL; }
25686 #ifdef YYTEXT_POINTER
25687 extern char *yytext;
25692 return ! yylex () + ! yywrap ();
25695 { (ac_try="$LEX conftest.l"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$LEX conftest.l") 2>&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }
25705 { echo "$as_me:$LINENO: checking lex output file root" >&5
25706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25707 if test "${ac_cv_prog_lex_root+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 if test -f lex.yy.c; then
25712 ac_cv_prog_lex_root=lex.yy
25713 elif test -f lexyy.c; then
25714 ac_cv_prog_lex_root=lexyy
25716 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25717 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25718 { (exit 1); exit 1; }; }
25721 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25722 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25725 if test -z "${LEXLIB+set}"; then
25726 { echo "$as_me:$LINENO: checking lex library" >&5
25727 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25728 if test "${ac_cv_lib_lex+set}" = set; then
25729 echo $ECHO_N "(cached) $ECHO_C" >&6
25733 ac_cv_lib_lex='none needed'
25734 for ac_lib in '' -lfl -ll; do
25735 LIBS="$ac_lib $ac_save_LIBS"
25736 cat >conftest.$ac_ext <<_ACEOF
25737 `cat $LEX_OUTPUT_ROOT.c`
25739 rm -f conftest.$ac_objext conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746 (eval "$ac_link") 2>conftest.er1
25748 grep -v '^ *+' conftest.er1 >conftest.err
25750 cat conftest.err >&5
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } && {
25753 test -z "$ac_c_werror_flag" ||
25754 test ! -s conftest.err
25755 } && test -s conftest$ac_exeext &&
25756 $as_test_x conftest$ac_exeext; then
25757 ac_cv_lib_lex=$ac_lib
25759 echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25766 conftest$ac_exeext conftest.$ac_ext
25767 test "$ac_cv_lib_lex" != 'none needed' && break
25772 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25773 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25774 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25778 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25779 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25780 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25781 echo $ECHO_N "(cached) $ECHO_C" >&6
25783 # POSIX says lex can declare yytext either as a pointer or an array; the
25784 # default is implementation-dependent. Figure out which it is, since
25785 # not all implementations provide the %pointer and %array declarations.
25786 ac_cv_prog_lex_yytext_pointer=no
25788 LIBS="$LEXLIB $ac_save_LIBS"
25789 cat >conftest.$ac_ext <<_ACEOF
25790 #define YYTEXT_POINTER 1
25791 `cat $LEX_OUTPUT_ROOT.c`
25793 rm -f conftest.$ac_objext conftest$ac_exeext
25794 if { (ac_try="$ac_link"
25795 case "(($ac_try" in
25796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25797 *) ac_try_echo=$ac_try;;
25799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25800 (eval "$ac_link") 2>conftest.er1
25802 grep -v '^ *+' conftest.er1 >conftest.err
25804 cat conftest.err >&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } && {
25807 test -z "$ac_c_werror_flag" ||
25808 test ! -s conftest.err
25809 } && test -s conftest$ac_exeext &&
25810 $as_test_x conftest$ac_exeext; then
25811 ac_cv_prog_lex_yytext_pointer=yes
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25820 conftest$ac_exeext conftest.$ac_ext
25824 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25825 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25826 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25828 cat >>confdefs.h <<\_ACEOF
25829 #define YYTEXT_POINTER 1
25833 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25837 if test "$LEX" != flex; then
25838 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25839 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25840 LEX=${am_missing_run}flex
25844 if test "x2.5.30" != "x" ; then
25845 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25847 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25848 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25849 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25851 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25852 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25853 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25855 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25856 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25857 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25859 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25860 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25861 LEX=${am_missing_run}flex
25865 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25866 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25872 # Can we rebuild the xml-lexers from the XML specification?
25873 # if not, simply touch the flex source files (which are distributed in
25874 # tarballs even if generated by flexml) and hope for the best.
25875 # Extract the first word of "flexml", so it can be a program name with args.
25876 set dummy flexml; ac_word=$2
25877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25879 if test "${ac_cv_prog_FLEXML+set}" = set; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 if test -n "$FLEXML"; then
25883 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25886 for as_dir in $PATH
25889 test -z "$as_dir" && as_dir=.
25890 for ac_exec_ext in '' $ac_executable_extensions; do
25891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25892 ac_cv_prog_FLEXML="`which flexml`"
25893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25900 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25903 FLEXML=$ac_cv_prog_FLEXML
25904 if test -n "$FLEXML"; then
25905 { echo "$as_me:$LINENO: result: $FLEXML" >&5
25906 echo "${ECHO_T}$FLEXML" >&6; }
25908 { echo "$as_me:$LINENO: result: no" >&5
25909 echo "${ECHO_T}no" >&6; }
25915 if test x$FLEXML != xNOTFOUND; then
25917 HAVE_FLEXML_FALSE='#'
25919 HAVE_FLEXML_TRUE='#'
25924 if test x$USE_MAINTAINER_MODE = xyes
25926 # Check for doxygen when in maintainer mode since dist* targets fail
25928 # Extract the first word of "doxygen", so it can be a program name with args.
25929 set dummy doxygen; ac_word=$2
25930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25932 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25933 echo $ECHO_N "(cached) $ECHO_C" >&6
25937 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941 for as_dir in $PATH
25944 test -z "$as_dir" && as_dir=.
25945 for ac_exec_ext in '' $ac_executable_extensions; do
25946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25947 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25955 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25959 DOXYGEN=$ac_cv_path_DOXYGEN
25960 if test -n "$DOXYGEN"; then
25961 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25962 echo "${ECHO_T}$DOXYGEN" >&6; }
25964 { echo "$as_me:$LINENO: result: no" >&5
25965 echo "${ECHO_T}no" >&6; }
25969 if test x$DOXYGEN = x ; then
25970 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25971 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25972 { (exit 1); exit 1; }; }
25976 # Can we extract really usable backtraces? (also need the popen function)
25977 # Extract the first word of "addr2line", so it can be a program name with args.
25978 set dummy addr2line; ac_word=$2
25979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25981 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25982 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 for as_dir in $PATH
25993 test -z "$as_dir" && as_dir=.
25994 for ac_exec_ext in '' $ac_executable_extensions; do
25995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25996 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26007 ADDR2LINE=$ac_cv_path_ADDR2LINE
26008 if test -n "$ADDR2LINE"; then
26009 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26010 echo "${ECHO_T}$ADDR2LINE" >&6; }
26012 { echo "$as_me:$LINENO: result: no" >&5
26013 echo "${ECHO_T}no" >&6; }
26017 if test x$ADDR2LINE != x ; then
26019 cat >>confdefs.h <<_ACEOF
26020 #define ADDR2LINE "$ADDR2LINE"
26026 # Can we make status line about the compilation result?
26027 # Extract the first word of "md5sum", so it can be a program name with args.
26028 set dummy md5sum; ac_word=$2
26029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26031 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26032 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 if test -n "$MD5SUM"; then
26035 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26038 for as_dir in $PATH
26041 test -z "$as_dir" && as_dir=.
26042 for ac_exec_ext in '' $ac_executable_extensions; do
26043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26044 ac_cv_prog_MD5SUM="`which md5sum`"
26045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26054 MD5SUM=$ac_cv_prog_MD5SUM
26055 if test -n "$MD5SUM"; then
26056 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26057 echo "${ECHO_T}$MD5SUM" >&6; }
26059 { echo "$as_me:$LINENO: result: no" >&5
26060 echo "${ECHO_T}no" >&6; }
26064 if test x$MD5SUM != xno ; then
26065 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26066 xargs cat| $MD5SUM | sed 's/ .*$//'`
26068 build_version="no_md5sum_binary"
26070 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26073 ###################
26074 ## Makes the output
26079 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26080 # src/amok/Makefile
26083 { echo "$as_me:$LINENO: result: " >&5
26084 echo "${ECHO_T}" >&6; }
26085 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26086 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26089 # Core of the libraries
26091 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26094 # Tools being embeeded in gramine (stub generator)
26095 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26099 # GRAMINE_CUT_BEGIN
26101 # Tools NOT being embeeded in gramine
26102 ac_config_files="$ac_config_files tools/graspe-slave"
26107 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26111 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26116 # examples/gras/p2p/Makefile
26117 # examples/gras/p2p/chord/Makefile
26118 # examples/gras/p2p/can/Makefile
26120 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"
26126 cat >confcache <<\_ACEOF
26127 # This file is a shell script that caches the results of configure
26128 # tests run on this system so they can be shared between configure
26129 # scripts and configure runs, see configure's option --config-cache.
26130 # It is not useful on other systems. If it contains results you don't
26131 # want to keep, you may remove or edit it.
26133 # config.status only pays attention to the cache file if you give it
26134 # the --recheck option to rerun configure.
26136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26138 # following values.
26142 # The following way of writing the cache mishandles newlines in values,
26143 # but we know of no workaround that is simple, portable, and efficient.
26144 # So, we kill variables containing newlines.
26145 # Ultrix sh set writes to stderr and can't be redirected directly,
26146 # and sets the high bit in the cache file unless we assign to the vars.
26148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26149 eval ac_val=\$$ac_var
26153 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26154 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26157 _ | IFS | as_nl) ;; #(
26158 *) $as_unset $ac_var ;;
26164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26165 *${as_nl}ac_space=\ *)
26166 # `set' does not quote correctly, so add quotes (double-quote
26167 # substitution turns \\\\ into \\, and sed turns \\ into \).
26170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26173 # `set' quotes correctly as required by POSIX, so do not add quotes.
26174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26188 if test -w "$cache_file"; then
26189 test "x$cache_file" != "x/dev/null" &&
26190 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26191 echo "$as_me: updating cache $cache_file" >&6;}
26192 cat confcache >$cache_file
26194 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26195 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26201 # Let make expand exec_prefix.
26202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26204 DEFS=-DHAVE_CONFIG_H
26208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26209 # 1. Remove the extension, and $U if already installed.
26210 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26211 ac_i=`echo "$ac_i" | sed "$ac_script"`
26212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26213 # will be set to the directory where LIBOBJS objects are built.
26214 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26215 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26217 LIBOBJS=$ac_libobjs
26219 LTLIBOBJS=$ac_ltlibobjs
26222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26223 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26224 Usually this means the macro was only invoked conditionally." >&5
26225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26226 Usually this means the macro was only invoked conditionally." >&2;}
26227 { (exit 1); exit 1; }; }
26229 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26230 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26231 Usually this means the macro was only invoked conditionally." >&5
26232 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26233 Usually this means the macro was only invoked conditionally." >&2;}
26234 { (exit 1); exit 1; }; }
26236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26238 Usually this means the macro was only invoked conditionally." >&5
26239 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26240 Usually this means the macro was only invoked conditionally." >&2;}
26241 { (exit 1); exit 1; }; }
26243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26245 Usually this means the macro was only invoked conditionally." >&5
26246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26247 Usually this means the macro was only invoked conditionally." >&2;}
26248 { (exit 1); exit 1; }; }
26250 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26251 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26252 Usually this means the macro was only invoked conditionally." >&5
26253 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26254 Usually this means the macro was only invoked conditionally." >&2;}
26255 { (exit 1); exit 1; }; }
26257 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26258 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26259 Usually this means the macro was only invoked conditionally." >&5
26260 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26261 Usually this means the macro was only invoked conditionally." >&2;}
26262 { (exit 1); exit 1; }; }
26264 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26265 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26266 Usually this means the macro was only invoked conditionally." >&5
26267 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26268 Usually this means the macro was only invoked conditionally." >&2;}
26269 { (exit 1); exit 1; }; }
26271 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26272 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26273 Usually this means the macro was only invoked conditionally." >&5
26274 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26275 Usually this means the macro was only invoked conditionally." >&2;}
26276 { (exit 1); exit 1; }; }
26278 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26279 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26280 Usually this means the macro was only invoked conditionally." >&5
26281 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26282 Usually this means the macro was only invoked conditionally." >&2;}
26283 { (exit 1); exit 1; }; }
26285 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26286 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26287 Usually this means the macro was only invoked conditionally." >&5
26288 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26289 Usually this means the macro was only invoked conditionally." >&2;}
26290 { (exit 1); exit 1; }; }
26292 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26293 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26294 Usually this means the macro was only invoked conditionally." >&5
26295 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26296 Usually this means the macro was only invoked conditionally." >&2;}
26297 { (exit 1); exit 1; }; }
26300 : ${CONFIG_STATUS=./config.status}
26301 ac_clean_files_save=$ac_clean_files
26302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26303 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26304 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26305 cat >$CONFIG_STATUS <<_ACEOF
26307 # Generated by $as_me.
26308 # Run this file to recreate the current configuration.
26309 # Compiler output produced by configure, useful for debugging
26310 # configure, is in config.log if it exists.
26313 ac_cs_recheck=false
26315 SHELL=\${CONFIG_SHELL-$SHELL}
26318 cat >>$CONFIG_STATUS <<\_ACEOF
26319 ## --------------------- ##
26320 ## M4sh Initialization. ##
26321 ## --------------------- ##
26323 # Be more Bourne compatible
26324 DUALCASE=1; export DUALCASE # for MKS sh
26325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26328 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26329 # is contrary to our usage. Disable this feature.
26330 alias -g '${1+"$@"}'='"$@"'
26331 setopt NO_GLOB_SUBST
26333 case `(set -o) 2>/dev/null` in
26334 *posix*) set -o posix ;;
26343 # Avoid depending upon Character Ranges.
26344 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26345 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26346 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26347 as_cr_digits='0123456789'
26348 as_cr_alnum=$as_cr_Letters$as_cr_digits
26350 # The user is always right.
26351 if test "${PATH_SEPARATOR+set}" != set; then
26352 echo "#! /bin/sh" >conf$$.sh
26353 echo "exit 0" >>conf$$.sh
26355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26363 # Support unset when possible.
26364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26372 # We need space, tab and new line, in precisely that order. Quoting is
26373 # there to prevent editors from complaining about space-tab.
26374 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26375 # splitting by setting IFS to empty value.)
26380 # Find who we are. Look in the path if we contain no directory separator.
26382 *[\\/]* ) as_myself=$0 ;;
26383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26384 for as_dir in $PATH
26387 test -z "$as_dir" && as_dir=.
26388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26394 # We did not find ourselves, most probably we were run as `sh COMMAND'
26395 # in which case we are not to be found in the path.
26396 if test "x$as_myself" = x; then
26399 if test ! -f "$as_myself"; then
26400 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26401 { (exit 1); exit 1; }
26404 # Work around bugs in pre-3.0 UWIN ksh.
26405 for as_var in ENV MAIL MAILPATH
26406 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26414 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26415 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26416 LC_TELEPHONE LC_TIME
26418 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26419 eval $as_var=C; export $as_var
26421 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26425 # Required to use basename.
26426 if expr a : '\(a\)' >/dev/null 2>&1 &&
26427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26434 as_basename=basename
26440 # Name of the executable.
26441 as_me=`$as_basename -- "$0" ||
26442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26443 X"$0" : 'X\(//\)$' \| \
26444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26446 sed '/^.*\/\([^/][^/]*\)\/*$/{
26465 as_lineno_1=$LINENO
26466 as_lineno_2=$LINENO
26467 test "x$as_lineno_1" != "x$as_lineno_2" &&
26468 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26471 # uniformly replaced by the line number. The first 'sed' inserts a
26472 # line-number line after each line using $LINENO; the second 'sed'
26473 # does the real work. The second script uses 'N' to pair each
26474 # line-number line with the line containing $LINENO, and appends
26475 # trailing '-' during substitution so that $LINENO is not a special
26476 # case at line end.
26477 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26478 # scripts with optimization help from Paolo Bonzini. Blame Lee
26479 # E. McMahon (1931-1989) for sed's syntax. :-)
26491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26494 ' >$as_me.lineno &&
26495 chmod +x "$as_me.lineno" ||
26496 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26497 { (exit 1); exit 1; }; }
26499 # Don't try to exec as it changes $[0], causing all sort of problems
26500 # (the dirname of $[0] is not the place where we might find the
26501 # original and so on. Autoconf is especially sensitive to this).
26502 . "./$as_me.lineno"
26503 # Exit status is that of the last command.
26508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26514 ECHO_C= ECHO_N= ECHO_T=
26515 case `echo -n x` in
26517 case `echo 'x\c'` in
26518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26525 if expr a : '\(a\)' >/dev/null 2>&1 &&
26526 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26532 rm -f conf$$ conf$$.exe conf$$.file
26533 if test -d conf$$.dir; then
26534 rm -f conf$$.dir/conf$$.file
26540 if ln -s conf$$.file conf$$ 2>/dev/null; then
26542 # ... but there are two gotchas:
26543 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26544 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26545 # In both cases, we have to default to `cp -p'.
26546 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26548 elif ln conf$$.file conf$$ 2>/dev/null; then
26553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26554 rmdir conf$$.dir 2>/dev/null
26556 if mkdir -p . 2>/dev/null; then
26559 test -d ./-p && rmdir ./-p
26563 if test -x / >/dev/null 2>&1; then
26564 as_test_x='test -x'
26566 if ls -dL / >/dev/null 2>&1; then
26573 if test -d "$1"; then
26579 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26580 ???[sx]*):;;*)false;;esac;fi
26584 as_executable_p=$as_test_x
26586 # Sed expression to map a string onto a valid CPP name.
26587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26589 # Sed expression to map a string onto a valid variable name.
26590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26595 # Save the log message, to keep $[0] and so on meaningful, and to
26596 # report actual input values of CONFIG_FILES etc. instead of their
26597 # values after options handling.
26599 This file was extended by simgrid $as_me 3.3-cvs, which was
26600 generated by GNU Autoconf 2.61. Invocation command line was
26602 CONFIG_FILES = $CONFIG_FILES
26603 CONFIG_HEADERS = $CONFIG_HEADERS
26604 CONFIG_LINKS = $CONFIG_LINKS
26605 CONFIG_COMMANDS = $CONFIG_COMMANDS
26608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26613 cat >>$CONFIG_STATUS <<_ACEOF
26614 # Files that config.status was made for.
26615 config_files="$ac_config_files"
26616 config_headers="$ac_config_headers"
26617 config_commands="$ac_config_commands"
26621 cat >>$CONFIG_STATUS <<\_ACEOF
26623 \`$as_me' instantiates files from templates according to the
26624 current configuration.
26626 Usage: $0 [OPTIONS] [FILE]...
26628 -h, --help print this help, then exit
26629 -V, --version print version number and configuration settings, then exit
26630 -q, --quiet do not print progress messages
26631 -d, --debug don't remove temporary files
26632 --recheck update $as_me by reconfiguring in the same conditions
26633 --file=FILE[:TEMPLATE]
26634 instantiate the configuration file FILE
26635 --header=FILE[:TEMPLATE]
26636 instantiate the configuration header FILE
26638 Configuration files:
26641 Configuration headers:
26644 Configuration commands:
26647 Report bugs to <bug-autoconf@gnu.org>."
26650 cat >>$CONFIG_STATUS <<_ACEOF
26652 simgrid config.status 3.3-cvs
26653 configured by $0, generated by GNU Autoconf 2.61,
26654 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26656 Copyright (C) 2006 Free Software Foundation, Inc.
26657 This config.status script is free software; the Free Software Foundation
26658 gives unlimited permission to copy, distribute and modify it."
26665 cat >>$CONFIG_STATUS <<\_ACEOF
26666 # If no file are specified by the user, then we need to provide default
26667 # value. By we need to know if files were specified by the user.
26673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26685 # Handling of the options.
26686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26689 echo "$ac_cs_version"; exit ;;
26690 --debug | --debu | --deb | --de | --d | -d )
26692 --file | --fil | --fi | --f )
26694 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26695 ac_need_defaults=false;;
26696 --header | --heade | --head | --hea )
26698 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26699 ac_need_defaults=false;;
26701 # Conflict between --help and --header
26702 { echo "$as_me: error: ambiguous option: $1
26703 Try \`$0 --help' for more information." >&2
26704 { (exit 1); exit 1; }; };;
26705 --help | --hel | -h )
26706 echo "$ac_cs_usage"; exit ;;
26707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26711 # This is an error.
26712 -*) { echo "$as_me: error: unrecognized option: $1
26713 Try \`$0 --help' for more information." >&2
26714 { (exit 1); exit 1; }; } ;;
26716 *) ac_config_targets="$ac_config_targets $1"
26717 ac_need_defaults=false ;;
26723 ac_configure_extra_args=
26725 if $ac_cs_silent; then
26727 ac_configure_extra_args="$ac_configure_extra_args --silent"
26731 cat >>$CONFIG_STATUS <<_ACEOF
26732 if \$ac_cs_recheck; then
26733 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26734 CONFIG_SHELL=$SHELL
26735 export CONFIG_SHELL
26736 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26740 cat >>$CONFIG_STATUS <<\_ACEOF
26744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26745 ## Running $as_me. ##
26751 cat >>$CONFIG_STATUS <<_ACEOF
26755 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26759 cat >>$CONFIG_STATUS <<\_ACEOF
26761 # Handling of arguments.
26762 for ac_config_target in $ac_config_targets
26764 case $ac_config_target in
26765 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26767 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26768 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26769 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26770 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26771 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26772 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26773 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
26774 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26775 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26776 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26777 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26778 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26779 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26780 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26781 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26782 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26783 "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
26784 "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
26785 "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
26786 "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
26787 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26788 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26789 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26790 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26791 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26792 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26793 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26794 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26795 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26796 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26797 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26798 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26799 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26800 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26801 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26802 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26803 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26804 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26806 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26808 { (exit 1); exit 1; }; };;
26813 # If the user did not use the arguments to specify the items to instantiate,
26814 # then the envvar interface is used. Set only those that are not.
26815 # We use the long form for the default assignment because of an extremely
26816 # bizarre bug on SunOS 4.1.3.
26817 if $ac_need_defaults; then
26818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26823 # Have a temporary directory for convenience. Make it in the build tree
26824 # simply because there is no reason against having it here, and in addition,
26825 # creating and moving files from /tmp can sometimes cause problems.
26826 # Hook for its removal unless debugging.
26827 # Note that there is a small window in which the directory will not be cleaned:
26828 # after its creation but before its name has been assigned to `$tmp'.
26832 trap 'exit_status=$?
26833 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26835 trap '{ (exit 1); exit 1; }' 1 2 13 15
26837 # Create a (secure) tmp directory for tmp files.
26840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26841 test -n "$tmp" && test -d "$tmp"
26844 tmp=./conf$$-$RANDOM
26845 (umask 077 && mkdir "$tmp")
26848 echo "$me: cannot create a temporary directory in ." >&2
26849 { (exit 1); exit 1; }
26853 # Set up the sed scripts for CONFIG_FILES section.
26856 # No need to generate the scripts if there are no CONFIG_FILES.
26857 # This happens for instance when ./config.status config.h
26858 if test -n "$CONFIG_FILES"; then
26865 for ac_last_try in false false false false false :; do
26866 cat >conf$$subs.sed <<_ACEOF
26867 SHELL!$SHELL$ac_delim
26868 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26869 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26870 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26871 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26872 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26873 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26874 exec_prefix!$exec_prefix$ac_delim
26875 prefix!$prefix$ac_delim
26876 program_transform_name!$program_transform_name$ac_delim
26877 bindir!$bindir$ac_delim
26878 sbindir!$sbindir$ac_delim
26879 libexecdir!$libexecdir$ac_delim
26880 datarootdir!$datarootdir$ac_delim
26881 datadir!$datadir$ac_delim
26882 sysconfdir!$sysconfdir$ac_delim
26883 sharedstatedir!$sharedstatedir$ac_delim
26884 localstatedir!$localstatedir$ac_delim
26885 includedir!$includedir$ac_delim
26886 oldincludedir!$oldincludedir$ac_delim
26887 docdir!$docdir$ac_delim
26888 infodir!$infodir$ac_delim
26889 htmldir!$htmldir$ac_delim
26890 dvidir!$dvidir$ac_delim
26891 pdfdir!$pdfdir$ac_delim
26892 psdir!$psdir$ac_delim
26893 libdir!$libdir$ac_delim
26894 localedir!$localedir$ac_delim
26895 mandir!$mandir$ac_delim
26896 DEFS!$DEFS$ac_delim
26897 ECHO_C!$ECHO_C$ac_delim
26898 ECHO_N!$ECHO_N$ac_delim
26899 ECHO_T!$ECHO_T$ac_delim
26900 LIBS!$LIBS$ac_delim
26901 build_alias!$build_alias$ac_delim
26902 host_alias!$host_alias$ac_delim
26903 target_alias!$target_alias$ac_delim
26904 build!$build$ac_delim
26905 build_cpu!$build_cpu$ac_delim
26906 build_vendor!$build_vendor$ac_delim
26907 build_os!$build_os$ac_delim
26908 host!$host$ac_delim
26909 host_cpu!$host_cpu$ac_delim
26910 host_vendor!$host_vendor$ac_delim
26911 host_os!$host_os$ac_delim
26912 target!$target$ac_delim
26913 target_cpu!$target_cpu$ac_delim
26914 target_vendor!$target_vendor$ac_delim
26915 target_os!$target_os$ac_delim
26916 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26917 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26918 INSTALL_DATA!$INSTALL_DATA$ac_delim
26919 CYGPATH_W!$CYGPATH_W$ac_delim
26920 PACKAGE!$PACKAGE$ac_delim
26921 VERSION!$VERSION$ac_delim
26922 ACLOCAL!$ACLOCAL$ac_delim
26923 AUTOCONF!$AUTOCONF$ac_delim
26924 AUTOMAKE!$AUTOMAKE$ac_delim
26925 AUTOHEADER!$AUTOHEADER$ac_delim
26926 MAKEINFO!$MAKEINFO$ac_delim
26927 install_sh!$install_sh$ac_delim
26928 STRIP!$STRIP$ac_delim
26929 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26930 mkdir_p!$mkdir_p$ac_delim
26932 SET_MAKE!$SET_MAKE$ac_delim
26933 am__leading_dot!$am__leading_dot$ac_delim
26934 AMTAR!$AMTAR$ac_delim
26935 am__tar!$am__tar$ac_delim
26936 am__untar!$am__untar$ac_delim
26938 CFLAGS!$CFLAGS$ac_delim
26939 LDFLAGS!$LDFLAGS$ac_delim
26940 CPPFLAGS!$CPPFLAGS$ac_delim
26941 ac_ct_CC!$ac_ct_CC$ac_delim
26942 EXEEXT!$EXEEXT$ac_delim
26943 OBJEXT!$OBJEXT$ac_delim
26944 DEPDIR!$DEPDIR$ac_delim
26945 am__include!$am__include$ac_delim
26946 am__quote!$am__quote$ac_delim
26947 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26948 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26949 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26950 CCDEPMODE!$CCDEPMODE$ac_delim
26951 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26952 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26953 GREP!$GREP$ac_delim
26954 EGREP!$EGREP$ac_delim
26955 LN_S!$LN_S$ac_delim
26956 ECHO!$ECHO$ac_delim
26958 RANLIB!$RANLIB$ac_delim
26959 DLLTOOL!$DLLTOOL$ac_delim
26961 OBJDUMP!$OBJDUMP$ac_delim
26966 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26968 elif $ac_last_try; then
26969 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26970 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26971 { (exit 1); exit 1; }; }
26973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26977 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26978 if test -n "$ac_eof"; then
26979 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26980 ac_eof=`expr $ac_eof + 1`
26983 cat >>$CONFIG_STATUS <<_ACEOF
26984 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26988 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26989 s/^/s,@/; s/!/@,|#_!!_#|/
26992 s/'"$ac_delim"'$/,g/; t
26994 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26995 ' >>$CONFIG_STATUS <conf$$subs.sed
26996 rm -f conf$$subs.sed
26997 cat >>$CONFIG_STATUS <<_ACEOF
27003 for ac_last_try in false false false false false :; do
27004 cat >conf$$subs.sed <<_ACEOF
27005 CXXFLAGS!$CXXFLAGS$ac_delim
27006 ac_ct_CXX!$ac_ct_CXX$ac_delim
27007 CXXDEPMODE!$CXXDEPMODE$ac_delim
27008 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27009 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27010 CXXCPP!$CXXCPP$ac_delim
27011 LIBTOOL!$LIBTOOL$ac_delim
27012 LIBOBJS!$LIBOBJS$ac_delim
27013 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27014 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27015 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27016 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27017 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27018 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27019 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27020 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27021 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27022 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27023 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27024 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27025 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27026 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27027 AM_CFLAGS!$AM_CFLAGS$ac_delim
27028 GRAS_DEP!$GRAS_DEP$ac_delim
27029 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27030 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27031 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27032 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27033 MAINT!$MAINT$ac_delim
27034 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27035 abs_builddir!$abs_builddir$ac_delim
27036 abs_srcdir!$abs_srcdir$ac_delim
27037 abs_top_builddir!$abs_top_builddir$ac_delim
27038 abs_top_srcdir!$abs_top_srcdir$ac_delim
27039 BASH!$BASH$ac_delim
27040 WARNING!$WARNING$ac_delim
27042 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27043 LEXLIB!$LEXLIB$ac_delim
27044 FLEXML!$FLEXML$ac_delim
27045 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27046 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27047 DOXYGEN!$DOXYGEN$ac_delim
27048 ADDR2LINE!$ADDR2LINE$ac_delim
27049 ac_configure_args!$ac_configure_args$ac_delim
27050 MD5SUM!$MD5SUM$ac_delim
27051 build_id!$build_id$ac_delim
27052 LTLIBOBJS!$LTLIBOBJS$ac_delim
27055 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
27057 elif $ac_last_try; then
27058 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27060 { (exit 1); exit 1; }; }
27062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27067 if test -n "$ac_eof"; then
27068 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27069 ac_eof=`expr $ac_eof + 1`
27072 cat >>$CONFIG_STATUS <<_ACEOF
27073 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27078 s/^/s,@/; s/!/@,|#_!!_#|/
27081 s/'"$ac_delim"'$/,g/; t
27083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27084 ' >>$CONFIG_STATUS <conf$$subs.sed
27085 rm -f conf$$subs.sed
27086 cat >>$CONFIG_STATUS <<_ACEOF
27093 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27094 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27095 # trailing colons and then remove the whole line if VPATH becomes empty
27096 # (actually we leave an empty line to preserve line numbers).
27097 if test "x$srcdir" = x.; then
27098 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27099 s/:*\$(srcdir):*/:/
27100 s/:*\${srcdir}:*/:/
27102 s/^\([^=]*=[ ]*\):*/\1/
27108 cat >>$CONFIG_STATUS <<\_ACEOF
27109 fi # test -n "$CONFIG_FILES"
27112 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27115 :[FHLC]) ac_mode=$ac_tag; continue;;
27117 case $ac_mode$ac_tag in
27119 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27120 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27121 { (exit 1); exit 1; }; };;
27122 :[FH]-) ac_tag=-:-;;
27123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27140 -) ac_f="$tmp/stdin";;
27141 *) # Look for the file first in the build tree, then in the source tree
27142 # (if the path is not absolute). The absolute path cannot be DOS-style,
27143 # because $ac_f cannot contain `:'.
27147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27149 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27150 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27151 { (exit 1); exit 1; }; };;
27153 ac_file_inputs="$ac_file_inputs $ac_f"
27156 # Let's still pretend it is `configure' which instantiates (i.e., don't
27157 # use $as_me), people would be surprised to read:
27158 # /* config.h. Generated by config.status. */
27159 configure_input="Generated from "`IFS=:
27160 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27161 if test x"$ac_file" != x-; then
27162 configure_input="$ac_file. $configure_input"
27163 { echo "$as_me:$LINENO: creating $ac_file" >&5
27164 echo "$as_me: creating $ac_file" >&6;}
27168 *:-:* | *:-) cat >"$tmp/stdin";;
27173 ac_dir=`$as_dirname -- "$ac_file" ||
27174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27175 X"$ac_file" : 'X\(//\)[^/]' \| \
27176 X"$ac_file" : 'X\(//\)$' \| \
27177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27183 /^X\(\/\/\)[^/].*/{
27198 -*) as_dir=./$as_dir;;
27200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27204 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27205 *) as_qdir=$as_dir;;
27207 as_dirs="'$as_qdir' $as_dirs"
27208 as_dir=`$as_dirname -- "$as_dir" ||
27209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27210 X"$as_dir" : 'X\(//\)[^/]' \| \
27211 X"$as_dir" : 'X\(//\)$' \| \
27212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27218 /^X\(\/\/\)[^/].*/{
27231 test -d "$as_dir" && break
27233 test -z "$as_dirs" || eval "mkdir $as_dirs"
27234 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27235 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27236 { (exit 1); exit 1; }; }; }
27240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27243 # A ".." for each directory in $ac_dir_suffix.
27244 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27245 case $ac_top_builddir_sub in
27246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27250 ac_abs_top_builddir=$ac_pwd
27251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27252 # for backward compatibility:
27253 ac_top_builddir=$ac_top_build_prefix
27256 .) # We are building in place.
27258 ac_top_srcdir=$ac_top_builddir_sub
27259 ac_abs_top_srcdir=$ac_pwd ;;
27260 [\\/]* | ?:[\\/]* ) # Absolute name.
27261 ac_srcdir=$srcdir$ac_dir_suffix;
27262 ac_top_srcdir=$srcdir
27263 ac_abs_top_srcdir=$srcdir ;;
27264 *) # Relative name.
27265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27266 ac_top_srcdir=$ac_top_build_prefix$srcdir
27267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27284 cat >>$CONFIG_STATUS <<\_ACEOF
27285 # If the template does not know about datarootdir, expand it.
27286 # FIXME: This hack should be removed a few years after 2.60.
27287 ac_datarootdir_hack=; ac_datarootdir_seen=
27289 case `sed -n '/datarootdir/ {
27298 ' $ac_file_inputs` in
27299 *datarootdir*) ac_datarootdir_seen=yes;;
27300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27301 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27302 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27304 cat >>$CONFIG_STATUS <<_ACEOF
27305 ac_datarootdir_hack='
27306 s&@datadir@&$datadir&g
27307 s&@docdir@&$docdir&g
27308 s&@infodir@&$infodir&g
27309 s&@localedir@&$localedir&g
27310 s&@mandir@&$mandir&g
27311 s&\\\${datarootdir}&$datarootdir&g' ;;
27315 # Neutralize VPATH when `$srcdir' = `.'.
27316 # Shell code in configure.ac might set extrasub.
27317 # FIXME: do we really want to maintain this feature?
27318 cat >>$CONFIG_STATUS <<_ACEOF
27322 cat >>$CONFIG_STATUS <<\_ACEOF
27324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27325 s&@configure_input@&$configure_input&;t t
27326 s&@top_builddir@&$ac_top_builddir_sub&;t t
27327 s&@srcdir@&$ac_srcdir&;t t
27328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27329 s&@top_srcdir@&$ac_top_srcdir&;t t
27330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27331 s&@builddir@&$ac_builddir&;t t
27332 s&@abs_builddir@&$ac_abs_builddir&;t t
27333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27334 s&@INSTALL@&$ac_INSTALL&;t t
27335 $ac_datarootdir_hack
27336 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27339 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27341 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27342 which seems to be undefined. Please make sure it is defined." >&5
27343 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27344 which seems to be undefined. Please make sure it is defined." >&2;}
27348 -) cat "$tmp/out"; rm -f "$tmp/out";;
27349 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27358 # Transform confdefs.h into a sed script `conftest.defines', that
27359 # substitutes the proper values into config.h.in to produce config.h.
27360 rm -f conftest.defines conftest.tail
27361 # First, append a space to every undef/define line, to ease matching.
27362 echo 's/$/ /' >conftest.defines
27363 # Then, protect against being on the right side of a sed subst, or in
27364 # an unquoted here document, in config.status. If some macros were
27365 # called several times there might be several #defines for the same
27366 # symbol, which is useless. But do not sort them, since the last
27367 # AC_DEFINE must be honored.
27368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27369 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27370 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27371 # PARAMS is the parameter list in the macro definition--in most cases, it's
27372 # just an empty string.
27373 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27374 ac_dB='\\)[ (].*,\\1define\\2'
27382 s/^[ ]*#[ ]*define[ ][ ]*//
27387 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27388 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27389 ' >>conftest.defines
27391 # Remove the space that was appended to ease matching.
27392 # Then replace #undef with comments. This is necessary, for
27393 # example, in the case of _POSIX_SOURCE, which is predefined and required
27394 # on some systems where configure will not decide to define it.
27395 # (The regexp can be short, since the line contains either #define or #undef.)
27397 s,^[ #]*u.*,/* & */,' >>conftest.defines
27399 # Break up conftest.defines:
27400 ac_max_sed_lines=50
27402 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27403 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27404 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27406 ac_in='$ac_file_inputs'
27407 ac_out='"$tmp/out1"'
27408 ac_nxt='"$tmp/out2"'
27412 # Write a here document:
27413 cat >>$CONFIG_STATUS <<_ACEOF
27414 # First, check the format of the line:
27415 cat >"\$tmp/defines.sed" <<\\CEOF
27416 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27417 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27421 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27423 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27424 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27425 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27426 grep . conftest.tail >/dev/null || break
27427 rm -f conftest.defines
27428 mv conftest.tail conftest.defines
27430 rm -f conftest.defines conftest.tail
27432 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27433 cat >>$CONFIG_STATUS <<\_ACEOF
27434 if test x"$ac_file" != x-; then
27435 echo "/* $configure_input */" >"$tmp/config.h"
27436 cat "$ac_result" >>"$tmp/config.h"
27437 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27438 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27439 echo "$as_me: $ac_file is unchanged" >&6;}
27442 mv "$tmp/config.h" $ac_file
27445 echo "/* $configure_input */"
27449 # Compute $ac_file's index in $config_headers.
27451 for _am_header in $config_headers :; do
27452 case $_am_header in
27453 $ac_file | $ac_file:* )
27456 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27459 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27460 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27461 X$ac_file : 'X\(//\)[^/]' \| \
27462 X$ac_file : 'X\(//\)$' \| \
27463 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27469 /^X\(\/\/\)[^/].*/{
27481 s/.*/./; q'`/stamp-h$_am_stamp_count
27484 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27485 echo "$as_me: executing $ac_file commands" >&6;}
27490 case $ac_file$ac_mode in
27491 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27492 # Strip MF so we end up with the name of the file.
27493 mf=`echo "$mf" | sed -e 's/:.*$//'`
27494 # Check whether this is an Automake generated Makefile or not.
27495 # We used to match only the files named `Makefile.in', but
27496 # some people rename them; so instead we look at the file content.
27497 # Grep'ing the first line is not enough: some people post-process
27498 # each Makefile.in and add a new line on top of each file to say so.
27499 # So let's grep whole file.
27500 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27501 dirpart=`$as_dirname -- "$mf" ||
27502 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27503 X"$mf" : 'X\(//\)[^/]' \| \
27504 X"$mf" : 'X\(//\)$' \| \
27505 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27511 /^X\(\/\/\)[^/].*/{
27527 # Extract the definition of DEPDIR, am__include, and am__quote
27528 # from the Makefile without running `make'.
27529 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27530 test -z "$DEPDIR" && continue
27531 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27532 test -z "am__include" && continue
27533 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27534 # When using ansi2knr, U may be empty or an underscore; expand it
27535 U=`sed -n 's/^U = //p' < "$mf"`
27536 # Find all dependency output files, they are included files with
27537 # $(DEPDIR) in their names. We invoke sed twice because it is the
27538 # simplest approach to changing $(DEPDIR) to its actual value in the
27540 for file in `sed -n "
27541 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27543 # Make sure the directory exists.
27544 test -f "$dirpart/$file" && continue
27545 fdir=`$as_dirname -- "$file" ||
27546 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27547 X"$file" : 'X\(//\)[^/]' \| \
27548 X"$file" : 'X\(//\)$' \| \
27549 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27555 /^X\(\/\/\)[^/].*/{
27568 { as_dir=$dirpart/$fdir
27570 -*) as_dir=./$as_dir;;
27572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27576 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27577 *) as_qdir=$as_dir;;
27579 as_dirs="'$as_qdir' $as_dirs"
27580 as_dir=`$as_dirname -- "$as_dir" ||
27581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27582 X"$as_dir" : 'X\(//\)[^/]' \| \
27583 X"$as_dir" : 'X\(//\)$' \| \
27584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27590 /^X\(\/\/\)[^/].*/{
27603 test -d "$as_dir" && break
27605 test -z "$as_dirs" || eval "mkdir $as_dirs"
27606 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27607 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27608 { (exit 1); exit 1; }; }; }
27609 # echo "creating $dirpart/$file"
27610 echo '# dummy' > "$dirpart/$file"
27614 "tools/graspe-slave":F)
27616 tools/graspe-slave tools/graspe-master \
27618 test -e $file && chmod +x $file; \
27621 "testsuite/Makefile":F)
27623 testsuite/run_tests \
27624 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27626 test -e $file && chmod +x $file; \
27629 "testsuite/run_tests":F)
27631 testsuite/run_tests \
27632 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27634 test -e $file && chmod +x $file; \
27637 "testsuite/gras/trp_tcp_usage":F)
27639 testsuite/run_tests \
27640 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27642 test -e $file && chmod +x $file; \
27645 "testsuite/gras/trp_file_usage":F)
27647 testsuite/run_tests \
27648 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27650 test -e $file && chmod +x $file; \
27653 "examples/Makefile":F)
27656 examples/msg/run_msg_test \
27657 examples/simdag/test_simdag \
27659 test -e $file && chmod +x $file; \
27662 "examples/msg/Makefile":F)
27665 examples/msg/run_msg_test \
27666 examples/simdag/test_simdag \
27668 test -e $file && chmod +x $file; \
27671 "examples/msg/basic.tesh":F)
27674 examples/msg/run_msg_test \
27675 examples/simdag/test_simdag \
27677 test -e $file && chmod +x $file; \
27680 "examples/msg/small_plat.tesh":F)
27683 examples/msg/run_msg_test \
27684 examples/simdag/test_simdag \
27686 test -e $file && chmod +x $file; \
27689 "examples/msg/suspend.tesh":F)
27692 examples/msg/run_msg_test \
27693 examples/simdag/test_simdag \
27695 test -e $file && chmod +x $file; \
27698 "examples/msg/flexml_bypass.tesh":F)
27701 examples/msg/run_msg_test \
27702 examples/simdag/test_simdag \
27704 test -e $file && chmod +x $file; \
27707 "examples/simdag/Makefile":F)
27710 examples/msg/run_msg_test \
27711 examples/simdag/test_simdag \
27713 test -e $file && chmod +x $file; \
27716 "examples/simdag/test_simdag":F)
27719 examples/msg/run_msg_test \
27720 examples/simdag/test_simdag \
27722 test -e $file && chmod +x $file; \
27725 "examples/gras/Makefile":F)
27728 examples/msg/run_msg_test \
27729 examples/simdag/test_simdag \
27731 test -e $file && chmod +x $file; \
27734 "examples/gras/ping/Makefile":F)
27737 examples/msg/run_msg_test \
27738 examples/simdag/test_simdag \
27740 test -e $file && chmod +x $file; \
27743 "examples/gras/rpc/Makefile":F)
27746 examples/msg/run_msg_test \
27747 examples/simdag/test_simdag \
27749 test -e $file && chmod +x $file; \
27752 "examples/gras/timer/Makefile":F)
27755 examples/msg/run_msg_test \
27756 examples/simdag/test_simdag \
27758 test -e $file && chmod +x $file; \
27761 "examples/gras/chrono/Makefile":F)
27764 examples/msg/run_msg_test \
27765 examples/simdag/test_simdag \
27767 test -e $file && chmod +x $file; \
27770 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
27773 examples/msg/run_msg_test \
27774 examples/simdag/test_simdag \
27776 test -e $file && chmod +x $file; \
27779 "examples/gras/mmrpc/Makefile":F)
27782 examples/msg/run_msg_test \
27783 examples/simdag/test_simdag \
27785 test -e $file && chmod +x $file; \
27788 "examples/gras/pmm/Makefile":F)
27791 examples/msg/run_msg_test \
27792 examples/simdag/test_simdag \
27794 test -e $file && chmod +x $file; \
27797 "examples/gras/all2all/Makefile":F)
27800 examples/msg/run_msg_test \
27801 examples/simdag/test_simdag \
27803 test -e $file && chmod +x $file; \
27806 "examples/amok/Makefile":F)
27809 examples/msg/run_msg_test \
27810 examples/simdag/test_simdag \
27812 test -e $file && chmod +x $file; \
27815 "examples/amok/bandwidth/Makefile":F)
27818 examples/msg/run_msg_test \
27819 examples/simdag/test_simdag \
27821 test -e $file && chmod +x $file; \
27824 "examples/amok/bandwidth/test_sg":F)
27827 examples/msg/run_msg_test \
27828 examples/simdag/test_simdag \
27830 test -e $file && chmod +x $file; \
27833 "examples/amok/bandwidth/test_rl":F)
27836 examples/msg/run_msg_test \
27837 examples/simdag/test_simdag \
27839 test -e $file && chmod +x $file; \
27842 "examples/amok/saturate/Makefile":F)
27845 examples/msg/run_msg_test \
27846 examples/simdag/test_simdag \
27848 test -e $file && chmod +x $file; \
27851 "examples/amok/saturate/test_sg":F)
27854 examples/msg/run_msg_test \
27855 examples/simdag/test_simdag \
27857 test -e $file && chmod +x $file; \
27860 "examples/amok/saturate/test_rl":F)
27863 examples/msg/run_msg_test \
27864 examples/simdag/test_simdag \
27866 test -e $file && chmod +x $file; \
27874 { (exit 0); exit 0; }
27876 chmod +x $CONFIG_STATUS
27877 ac_clean_files=$ac_clean_files_save
27880 # configure is writing to config.log, and then calls config.status.
27881 # config.status does its own redirection, appending to config.log.
27882 # Unfortunately, on DOS this fails, as config.log is still kept open
27883 # by configure, so config.status won't be able to write to it; its
27884 # output is simply discarded. So we exec the FD to /dev/null,
27885 # effectively closing config.log, so it can be properly (re)opened and
27886 # appended to by config.status. When coming back to configure, we
27887 # need to make the FD available again.
27888 if test "$no_create" != yes; then
27890 ac_config_status_args=
27891 test "$silent" = yes &&
27892 ac_config_status_args="$ac_config_status_args --quiet"
27894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27897 # would make configure fail if this is the last instruction.
27898 $ac_cs_success || { (exit 1); exit 1; }
27904 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
27906 Compiler: ${CC} (version: ${GCC_VERSION})
27909 CPPFlags: ${CPPFLAGS}
27910 LDFlags: ${LDFLAGS}
27912 Context backend: ${with_context}
27915 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
27917 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
27918 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
27919 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
27921 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
27924 echo $build_id > stamp.configure