2 # From configure.ac Revision: 1.159 .
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
895 MAINTAINER_MODE_FALSE
917 ac_precious_vars='build_alias
932 # Initialize some variables set by options.
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
944 program_transform_name=s,x,x,
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
990 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003 bindir=$ac_optarg ;;
1005 -build | --build | --buil | --bui | --bu)
1006 ac_prev=build_alias ;;
1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008 build_alias=$ac_optarg ;;
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015 cache_file=$ac_optarg ;;
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
1020 -datadir | --datadir | --datadi | --datad)
1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023 datadir=$ac_optarg ;;
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1032 -disable-* | --disable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=\$ac_optarg ;;
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 htmldir=$ac_optarg ;;
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1103 -libdir | --libdir | --libdi | --libd)
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1194 -psdir | --psdir | --psdi | --psd | --ps)
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 sbindir=$ac_optarg ;;
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 sharedstatedir=$ac_optarg ;;
1220 -site | --site | --sit)
1222 -site=* | --site=* | --sit=*)
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1249 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid package name: $ac_package" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255 eval with_$ac_package=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid package name: $ac_package" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264 eval with_$ac_package=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286 { (exit 1); exit 1; }; }
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294 { (exit 1); exit 1; }; }
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 { echo "$as_me: error: missing argument to $ac_option" >&2
1312 { (exit 1); exit 1; }; }
1315 # Be sure to have absolute directory names.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327 { (exit 1); exit 1; }; }
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 { echo "$as_me: error: Working directory cannot be determined" >&2
1358 { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 { echo "$as_me: error: pwd does not report name of working directory" >&2
1361 { (exit 1); exit 1; }; }
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$0" : 'X\(//\)[^/]' \| \
1371 X"$0" : 'X\(//\)$' \| \
1372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401 { (exit 1); exit 1; }; }
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406 { (exit 1); exit 1; }; }
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-shared[=PKGS] build shared libraries [default=yes]
1511 --enable-static[=PKGS] build static libraries [default=yes]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-maintainer-mode enable make rules and dependencies not useful
1518 (and sometimes confusing) to the casual installer
1519 --enable-compile-warnings
1520 use compiler warnings (default=no, unless in
1522 --disable-compile-optimizations
1523 use compiler optimizations (default=yes, unless if
1524 CFLAGS is explicitly set)
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-pic try to use only PIC/non-PIC objects [default=use
1532 --with-tags[=TAGS] include additional configurations [automatic]
1533 --with-pthread Use pthread instead of ucontext.
1534 --with-pthreads Use pthread instead of ucontext.
1535 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1536 --with-gtnets Path to GTNetS installation (default to empty, ie
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 CXX C++ compiler command
1549 CXXFLAGS C++ compiler flags
1550 CXXCPP C++ preprocessor
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" || continue
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 simgrid configure 3.3-cvs
1617 generated by GNU Autoconf 2.61
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by simgrid $as_me 3.3-cvs, which was
1631 generated by GNU Autoconf 2.61. Invocation command line was
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 echo "$as_me: caught signal $ac_signal"
1824 echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868 set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872 set x "$ac_default_prefix/share/config.site" \
1873 "$ac_default_prefix/etc/config.site"
1878 if test -r "$ac_site_file"; then
1879 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1903 # Check that the precious variables saved in the cache have kept the same
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908 eval ac_new_set=\$ac_env_${ac_var}_set
1909 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910 eval ac_new_val=\$ac_env_${ac_var}_value
1911 case $ac_old_set,$ac_new_set in
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1922 if test "x$ac_old_val" != "x$ac_new_val"; then
1923 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1926 echo "$as_me: former value: $ac_old_val" >&2;}
1927 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1928 echo "$as_me: current value: $ac_new_val" >&2;}
1929 ac_cache_corrupted=:
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1935 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 *) ac_arg=$ac_var=$ac_new_val ;;
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944 if $ac_cache_corrupted; then
1945 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949 { (exit 1); exit 1; }; }
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 ac_config_headers="$ac_config_headers src/gras_config.h"
1986 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991 if test -f "$ac_dir/install-sh"; then
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 elif test -f "$ac_dir/install.sh"; then
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 elif test -f "$ac_dir/shtool"; then
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008 { (exit 1); exit 1; }; }
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024 { (exit 1); exit 1; }; }
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037 { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050 { (exit 1); exit 1; }; };;
2053 ac_save_IFS=$IFS; IFS='-'
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test "x$host_alias" = x; then
2072 ac_cv_host=$ac_cv_build
2074 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087 { (exit 1); exit 1; }; };;
2090 ac_save_IFS=$IFS; IFS='-'
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test "x$target_alias" = x; then
2109 ac_cv_target=$ac_cv_host
2111 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124 { (exit 1); exit 1; }; };;
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143 test "$program_prefix$program_suffix$program_transform_name" = \
2145 program_prefix=${target_alias}-
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 am__api_version="1.9"
2154 # Find a good install program. We prefer a C program (faster),
2155 # so one script is as good as another. But avoid the broken or
2156 # incompatible versions:
2157 # SysV /etc/install, /usr/sbin/install
2158 # SunOS /usr/etc/install
2159 # IRIX /sbin/install
2161 # AmigaOS /C/install, which installs bootblocks on floppy discs
2162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2165 # OS/2's system install, which has a completely different semantic
2166 # ./install, which can be erroneously created by make from ./install.sh.
2167 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2169 if test -z "$INSTALL"; then
2170 if test "${ac_cv_path_install+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 # Account for people who put trailing slashes in PATH elements.
2180 ./ | .// | /cC/* | \
2181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2185 # OSF1 and SCO ODT 3.0 have their own names for install.
2186 # Don't use installbsd from OSF since it installs stuff as root
2188 for ac_prog in ginstall scoinst install; do
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191 if test $ac_prog = install &&
2192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193 # AIX install. It has an incompatible calling convention.
2195 elif test $ac_prog = install &&
2196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197 # program-specific install script used by HP pwplus--don't use.
2200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2213 if test "${ac_cv_path_install+set}" = set; then
2214 INSTALL=$ac_cv_path_install
2216 # As a last resort, use the slow shell script. Don't cache a
2217 # value for INSTALL within a source directory, because that will
2218 # break other packages using the cache if that directory is
2219 # removed, or if the value is a relative name.
2220 INSTALL=$ac_install_sh
2223 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2224 echo "${ECHO_T}$INSTALL" >&6; }
2226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2227 # It thinks the first close brace ends the variable substitution.
2228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2234 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2235 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2238 echo timestamp > conftest.file
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments. Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2245 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2248 set X `ls -t $srcdir/configure conftest.file`
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" >&5
2260 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2261 alias in your environment" >&2;}
2262 { (exit 1); exit 1; }; }
2265 test "$2" = conftest.file
2271 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272 Check your system clock" >&5
2273 echo "$as_me: error: newly created file is older than distributed files!
2274 Check your system clock" >&2;}
2275 { (exit 1); exit 1; }; }
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $. echo might interpret backslashes.
2285 # By default was `s,x,x', remove it if useless.
2286 cat <<\_ACEOF >conftest.sed
2287 s/[\\$]/&&/g;s/;s,x,x,$//
2289 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2292 # expand $ac_aux_dir to an absolute path
2293 am_aux_dir=`cd $ac_aux_dir && pwd`
2295 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298 am_missing_run="$MISSING --run "
2301 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2302 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2305 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2306 # We used to keeping the `.' as first argument, in order to
2307 # allow $(mkdir_p) to be used without argument. As in
2308 # $(mkdir_p) $(somedir)
2309 # where $(somedir) is conditionally defined. However this is wrong
2311 # 1. if the package is installed by a user who cannot write `.'
2312 # make install will fail,
2313 # 2. the above comment should most certainly read
2314 # $(mkdir_p) $(DESTDIR)$(somedir)
2315 # so it does not work when $(somedir) is undefined and
2316 # $(DESTDIR) is not.
2317 # To support the latter case, we have to write
2318 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2319 # so the `.' trick is pointless.
2320 mkdir_p='mkdir -p --'
2322 # On NextStep and OpenStep, the `mkdir' command does not
2323 # recognize any option. It will interpret all options as
2324 # directories to create, and then abort because `.' already
2326 for d in ./-p ./--version;
2328 test -d $d && rmdir $d
2330 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2331 if test -f "$ac_aux_dir/mkinstalldirs"; then
2332 mkdir_p='$(mkinstalldirs)'
2334 mkdir_p='$(install_sh) -d'
2338 for ac_prog in gawk mawk nawk awk
2340 # Extract the first word of "$ac_prog", so it can be a program name with args.
2341 set dummy $ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_AWK+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 if test -n "$AWK"; then
2348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 ac_cv_prog_AWK="$ac_prog"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test -n "$AWK"; then
2369 { echo "$as_me:$LINENO: result: $AWK" >&5
2370 echo "${ECHO_T}$AWK" >&6; }
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2377 test -n "$AWK" && break
2380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 cat >conftest.make <<\_ACEOF
2389 @echo '@@@%%%=$(MAKE)=@@@%%%'
2391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2394 eval ac_cv_prog_make_${ac_make}_set=yes;;
2396 eval ac_cv_prog_make_${ac_make}_set=no;;
2400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401 { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407 SET_MAKE="MAKE=${MAKE-make}"
2410 rm -rf .tst 2>/dev/null
2411 mkdir .tst 2>/dev/null
2412 if test -d .tst; then
2417 rmdir .tst 2>/dev/null
2419 # test to see if srcdir already configured
2420 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2421 test -f $srcdir/config.status; then
2422 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2423 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2424 { (exit 1); exit 1; }; }
2427 # test whether we have cygpath
2428 if test -z "$CYGPATH_W"; then
2429 if (cygpath --version) >/dev/null 2>/dev/null; then
2430 CYGPATH_W='cygpath -w'
2437 # Define the identity of the package.
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE "$PACKAGE"
2447 cat >>confdefs.h <<_ACEOF
2448 #define VERSION "$VERSION"
2451 # Some tools Automake needs.
2453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2467 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'. However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504 { echo "$as_me:$LINENO: result: $STRIP" >&5
2505 echo "${ECHO_T}$STRIP" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2513 if test -z "$ac_cv_prog_STRIP"; then
2515 # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2551 if test "x$ac_ct_STRIP" = x; then
2554 case $cross_compiling:$ac_tool_warned in
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet. If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: 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." >&2;}
2562 ac_tool_warned=yes ;;
2567 STRIP="$ac_cv_prog_STRIP"
2571 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2573 # We need awk for the "check" target. The system "awk" is bad on
2575 # Always define AMTAR for backward compatibility.
2577 AMTAR=${AMTAR-"${am_missing_run}tar"}
2579 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2586 ACLOCAL="$ACLOCAL -I acmacro"
2593 # Check whether --enable-shared was given.
2594 if test "${enable_shared+set}" = set; then
2595 enableval=$enable_shared; p=${PACKAGE-default}
2597 yes) enable_shared=yes ;;
2598 no) enable_shared=no ;;
2601 # Look at the argument we got. We use all the common list separators.
2602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2603 for pkg in $enableval; do
2605 if test "X$pkg" = "X$p"; then
2617 # Check whether --enable-static was given.
2618 if test "${enable_static+set}" = set; then
2619 enableval=$enable_static; p=${PACKAGE-default}
2621 yes) enable_static=yes ;;
2622 no) enable_static=no ;;
2625 # Look at the argument we got. We use all the common list separators.
2626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2627 for pkg in $enableval; do
2629 if test "X$pkg" = "X$p"; then
2641 # Check whether --enable-fast-install was given.
2642 if test "${enable_fast_install+set}" = set; then
2643 enableval=$enable_fast_install; p=${PACKAGE-default}
2645 yes) enable_fast_install=yes ;;
2646 no) enable_fast_install=no ;;
2648 enable_fast_install=no
2649 # Look at the argument we got. We use all the common list separators.
2650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2651 for pkg in $enableval; do
2653 if test "X$pkg" = "X$p"; then
2654 enable_fast_install=yes
2661 enable_fast_install=yes
2665 DEPDIR="${am__leading_dot}deps"
2667 ac_config_commands="$ac_config_commands depfiles"
2670 am_make=${MAKE-make}
2671 cat > confinc << 'END'
2676 # If we don't find an include directive, just comment out the code.
2677 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696 echo '.include "confinc"' > confmf
2697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698 am__include=.include
2705 { echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6; }
2707 rm -f confinc confmf
2709 # Check whether --enable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711 enableval=$enable_dependency_tracking;
2714 if test "x$enable_dependency_tracking" != xno; then
2715 am_depcomp="$ac_aux_dir/depcomp"
2720 if test "x$enable_dependency_tracking" != xno; then
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_CC+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test -n "$CC"; then
2765 { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2774 if test -z "$ac_cv_prog_CC"; then
2776 # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_CC="gcc"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&5
2820 echo "$as_me: 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." >&2;}
2823 ac_tool_warned=yes ;;
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="${ac_tool_prefix}cc"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test -n "$CC"; then
2862 { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2872 if test -z "$CC"; then
2873 # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected=yes
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test $ac_prog_rejected = yes; then
2904 # We found a bogon in the path, so make sure we never use it.
2905 set dummy $ac_cv_prog_CC
2907 if test $# != 0; then
2908 # We chose a different compiler from the bogus one.
2909 # However, it has the same basename, so the bogon will be chosen
2910 # first if we set CC to just the basename; use the full file name.
2912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 if test -n "$CC"; then
2919 { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2922 { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in cl.exe
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2969 test -n "$CC" && break
2972 if test -z "$CC"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_ac_ct_CC="$ac_prog"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3008 { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3013 test -n "$ac_ct_CC" && break
3016 if test "x$ac_ct_CC" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # List of possible output files, starting from the most likely.
3101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3102 # only as a last resort. b.out is created by i960 compilers.
3103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3105 # The IRIX 6 linker writes into existing files which may not be
3106 # executable, retaining their permissions. Remove them first so a
3107 # subsequent execution test works.
3109 for ac_file in $ac_files
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118 if { (ac_try="$ac_link_default"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_link_default") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3133 for ac_file in $ac_files ''
3135 test -f "$ac_file" || continue
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3140 # We found the default executable, but exeext='' is most
3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 # We set ac_cv_exeext here because the later test for it is not
3149 # safe: cross compilers may not add the suffix if given an `-o'
3150 # argument, so we may need to know it at that point already.
3151 # Even if this section looks crufty: it has the advantage of
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164 { echo "$as_me:$LINENO: result: $ac_file" >&5
3165 echo "${ECHO_T}$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174 { (exit 77); exit 77; }; }
3177 ac_exeext=$ac_cv_exeext
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3184 # If not cross compiling, check that we can run a simple program.
3185 if test "$cross_compiling" != yes; then
3186 if { ac_try='./$ac_file'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3198 if test "$cross_compiling" = maybe; then
3201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3211 { echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6; }
3214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 # Check that the compiler produces executables we can run. If not, either
3217 # the compiler is broken, or we cross compile.
3218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3221 echo "${ECHO_T}$cross_compiling" >&6; }
3223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3225 if { (ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_link") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3239 for ac_file in conftest.exe conftest conftest.*; do
3240 test -f "$ac_file" || continue
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3256 rm -f conftest$ac_cv_exeext
3257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3265 if test "${ac_cv_objext+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 for ac_file in conftest.o conftest.obj conftest.*; do
3295 test -f "$ac_file" || continue;
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." >&2;}
3310 { (exit 1); exit 1; }; }
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3316 echo "${ECHO_T}$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_save_c_werror_flag=$ac_c_werror_flag
3382 ac_c_werror_flag=yes
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3522 if test "$GCC" = yes; then
3528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3530 if test "${ac_cv_prog_cc_c89+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_prog_cc_c89=no
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_prog_cc_c89=$ac_arg
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -f conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { echo "$as_me:$LINENO: result: none needed" >&5
3632 echo "${ECHO_T}none needed" >&6; } ;;
3634 { echo "$as_me:$LINENO: result: unsupported" >&5
3635 echo "${ECHO_T}unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 depcc="$CC" am_compiler_list=
3651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657 # We make a subdir and do the tests there. Otherwise we can end up
3658 # making bogus files that we don't know about and never remove. For
3659 # instance it was reported that on HP-UX the gcc test will end up
3660 # making a dummy file named `D' -- because `-MD' means `put the output
3663 # Copy depcomp to subdir because otherwise we won't find it if we're
3664 # using a relative directory.
3665 cp "$am_depcomp" conftest.dir
3667 # We will build objects and dependencies in a subdirectory because
3668 # it helps to detect inapplicable dependency modes. For instance
3669 # both Tru64's cc and ICC support -MD to output dependencies as a
3670 # side effect of compilation, but ICC will put the dependencies in
3671 # the current directory while Tru64 will put them in the object
3675 am_cv_CC_dependencies_compiler_type=none
3676 if test "$am_compiler_list" = ""; then
3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3679 for depmode in $am_compiler_list; do
3680 # Setup a source with many dependencies, because some compilers
3681 # like to wrap large dependency lists on column 80 (with \), and
3682 # we should not choose a depcomp mode which is confused by this.
3684 # We need to recreate these files for each test, as the compiler may
3685 # overwrite some of them when testing with obscure command lines.
3686 # This happens at least with the AIX C compiler.
3688 for i in 1 2 3 4 5 6; do
3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691 # Solaris 8's {/usr,}/bin/sh.
3692 touch sub/conftst$i.h
3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3698 # after this tag, mechanisms are not by side-effect, so they'll
3699 # only be used when explicitly requested
3700 if test "x$enable_dependency_tracking" = xyes; then
3708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709 # mode. It turns out that the SunPro C++ compiler does not properly
3710 # handle `-M -o', and we need to detect this.
3711 if depmode=$depmode \
3712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715 >/dev/null 2>conftest.err &&
3716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719 # icc doesn't choke on unknown options, it will just issue warnings
3720 # or remarks (even with -Werror). So we grep stderr for any message
3721 # that says an option was ignored or not supported.
3722 # When given -MP, icc 7.0 and 7.1 complain thusly:
3723 # icc: Command line warning: ignoring option '-M'; no argument required
3724 # The diagnosis changed in icc 8.0:
3725 # icc: Command line remark: option '-MP' not supported
3726 if (grep 'ignoring option' conftest.err ||
3727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728 am_cv_CC_dependencies_compiler_type=$depmode
3737 am_cv_CC_dependencies_compiler_type=none
3741 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751 am__fastdepCC_FALSE='#'
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3758 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3759 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3760 if test "${lt_cv_path_SED+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 # Loop through the user's path and test for sed and gsed.
3764 # Then use that list of sed's as ones to test for truncation.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for lt_ac_prog in sed gsed; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3773 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3780 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3781 # along with /bin/sed that truncates output.
3782 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3783 test ! -f $lt_ac_sed && continue
3784 cat /dev/null > conftest.in
3786 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3787 # Check for GNU sed and select it if it is found.
3788 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3789 lt_cv_path_SED=$lt_ac_sed
3793 cat conftest.in conftest.in >conftest.tmp
3794 mv conftest.tmp conftest.in
3795 cp conftest.in conftest.nl
3797 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3798 cmp -s conftest.out conftest.nl || break
3799 # 10000 chars as input seems more than enough
3800 test $lt_ac_count -gt 10 && break
3801 lt_ac_count=`expr $lt_ac_count + 1`
3802 if test $lt_ac_count -gt $lt_ac_max; then
3803 lt_ac_max=$lt_ac_count
3804 lt_cv_path_SED=$lt_ac_sed
3812 { echo "$as_me:$LINENO: result: $SED" >&5
3813 echo "${ECHO_T}$SED" >&6; }
3815 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3816 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3817 if test "${ac_cv_path_GREP+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 # Extract the first word of "grep ggrep" to use in msg output
3821 if test -z "$GREP"; then
3822 set dummy grep ggrep; ac_prog_name=$2
3823 if test "${ac_cv_path_GREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 ac_path_GREP_found=false
3827 # Loop through the user's path and test for each of PROGNAME-LIST
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3832 test -z "$as_dir" && as_dir=.
3833 for ac_prog in grep ggrep; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3836 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3837 # Check for GNU ac_path_GREP and select it if it is found.
3838 # Check for GNU $ac_path_GREP
3839 case `"$ac_path_GREP" --version 2>&1` in
3841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3844 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3847 cat "conftest.in" "conftest.in" >"conftest.tmp"
3848 mv "conftest.tmp" "conftest.in"
3849 cp "conftest.in" "conftest.nl"
3850 echo 'GREP' >> "conftest.nl"
3851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853 ac_count=`expr $ac_count + 1`
3854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3855 # Best one so far, save it but keep looking for a better one
3856 ac_cv_path_GREP="$ac_path_GREP"
3857 ac_path_GREP_max=$ac_count
3859 # 10*(2^10) chars as input seems more than enough
3860 test $ac_count -gt 10 && break
3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866 $ac_path_GREP_found && break 3
3876 GREP="$ac_cv_path_GREP"
3877 if test -z "$GREP"; then
3878 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3879 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3880 { (exit 1); exit 1; }; }
3884 ac_cv_path_GREP=$GREP
3889 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3890 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3891 GREP="$ac_cv_path_GREP"
3894 { echo "$as_me:$LINENO: checking for egrep" >&5
3895 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_EGREP+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3900 then ac_cv_path_EGREP="$GREP -E"
3902 # Extract the first word of "egrep" to use in msg output
3903 if test -z "$EGREP"; then
3904 set dummy egrep; ac_prog_name=$2
3905 if test "${ac_cv_path_EGREP+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 ac_path_EGREP_found=false
3909 # Loop through the user's path and test for each of PROGNAME-LIST
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 test -z "$as_dir" && as_dir=.
3915 for ac_prog in egrep; do
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3918 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3919 # Check for GNU ac_path_EGREP and select it if it is found.
3920 # Check for GNU $ac_path_EGREP
3921 case `"$ac_path_EGREP" --version 2>&1` in
3923 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3926 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3929 cat "conftest.in" "conftest.in" >"conftest.tmp"
3930 mv "conftest.tmp" "conftest.in"
3931 cp "conftest.in" "conftest.nl"
3932 echo 'EGREP' >> "conftest.nl"
3933 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3935 ac_count=`expr $ac_count + 1`
3936 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3937 # Best one so far, save it but keep looking for a better one
3938 ac_cv_path_EGREP="$ac_path_EGREP"
3939 ac_path_EGREP_max=$ac_count
3941 # 10*(2^10) chars as input seems more than enough
3942 test $ac_count -gt 10 && break
3944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948 $ac_path_EGREP_found && break 3
3958 EGREP="$ac_cv_path_EGREP"
3959 if test -z "$EGREP"; then
3960 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3962 { (exit 1); exit 1; }; }
3966 ac_cv_path_EGREP=$EGREP
3972 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3973 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3974 EGREP="$ac_cv_path_EGREP"
3978 # Check whether --with-gnu-ld was given.
3979 if test "${with_gnu_ld+set}" = set; then
3980 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3986 if test "$GCC" = yes; then
3987 # Check if gcc -print-prog-name=ld gives a path.
3988 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3989 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3992 # gcc leaves a trailing carriage return which upsets mingw
3993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3998 # Accept absolute paths.
4000 re_direlt='/[^/][^/]*/\.\./'
4001 # Canonicalize the pathname of ld
4002 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4003 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4004 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4006 test -z "$LD" && LD="$ac_prog"
4009 # If it fails, then pretend we aren't using GCC.
4013 # If it is relative, then search for the first ld in PATH.
4017 elif test "$with_gnu_ld" = yes; then
4018 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4019 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4021 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4022 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4024 if test "${lt_cv_path_LD+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 if test -z "$LD"; then
4028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4029 for ac_dir in $PATH; do
4031 test -z "$ac_dir" && ac_dir=.
4032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4033 lt_cv_path_LD="$ac_dir/$ac_prog"
4034 # Check to see if the program is GNU ld. I'd rather use --version,
4035 # but apparently some variants of GNU ld only accept -v.
4036 # Break only if it was the GNU/non-GNU ld that we prefer.
4037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4038 *GNU* | *'with BFD'*)
4039 test "$with_gnu_ld" != no && break
4042 test "$with_gnu_ld" != yes && break
4049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054 if test -n "$LD"; then
4055 { echo "$as_me:$LINENO: result: $LD" >&5
4056 echo "${ECHO_T}$LD" >&6; }
4058 { echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6; }
4061 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4062 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4063 { (exit 1); exit 1; }; }
4064 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4065 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4066 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4070 case `$LD -v 2>&1 </dev/null` in
4071 *GNU* | *'with BFD'*)
4072 lt_cv_prog_gnu_ld=yes
4075 lt_cv_prog_gnu_ld=no
4079 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4080 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4081 with_gnu_ld=$lt_cv_prog_gnu_ld
4084 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4085 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4086 if test "${lt_cv_ld_reload_flag+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 lt_cv_ld_reload_flag='-r'
4091 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4092 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4093 reload_flag=$lt_cv_ld_reload_flag
4094 case $reload_flag in
4096 *) reload_flag=" $reload_flag" ;;
4098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4101 if test "$GCC" = yes; then
4102 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4109 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4110 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4111 if test "${lt_cv_path_NM+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$NM"; then
4115 # Let the user override the test.
4118 lt_nm_to_check="${ac_tool_prefix}nm"
4119 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4120 lt_nm_to_check="$lt_nm_to_check nm"
4122 for lt_tmp_nm in $lt_nm_to_check; do
4123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4126 test -z "$ac_dir" && ac_dir=.
4127 tmp_nm="$ac_dir/$lt_tmp_nm"
4128 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4129 # Check to see if the nm accepts a BSD-compat flag.
4130 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4131 # nm: unknown option "B" ignored
4132 # Tru64's nm complains that /dev/null is an invalid object file
4133 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4134 */dev/null* | *'Invalid file or object type'*)
4135 lt_cv_path_NM="$tmp_nm -B"
4139 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4141 lt_cv_path_NM="$tmp_nm -p"
4145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4146 continue # so that we can try to find one that supports BSD flags
4155 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4158 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4159 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4162 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4163 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4165 if test "$LN_S" = "ln -s"; then
4166 { echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6; }
4169 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4170 echo "${ECHO_T}no, using $LN_S" >&6; }
4173 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4174 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4175 if test "${lt_cv_deplibs_check_method+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 lt_cv_file_magic_cmd='$MAGIC_CMD'
4179 lt_cv_file_magic_test_file=
4180 lt_cv_deplibs_check_method='unknown'
4181 # Need to set the preceding variable on all platforms that support
4182 # interlibrary dependencies.
4183 # 'none' -- dependencies not supported.
4184 # `unknown' -- same as none, but documents that we really don't know.
4185 # 'pass_all' -- all dependencies passed with no checks.
4186 # 'test_compile' -- check by making test program.
4187 # 'file_magic [[regex]]' -- check by looking for files in library path
4188 # which responds to the $file_magic_cmd with a given extended regex.
4189 # If you have `file' or equivalent on your system and you're not sure
4190 # whether `pass_all' will *always* work, you probably want this one.
4194 lt_cv_deplibs_check_method=pass_all
4198 lt_cv_deplibs_check_method=pass_all
4202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4203 lt_cv_file_magic_cmd='/usr/bin/file -L'
4204 lt_cv_file_magic_test_file=/shlib/libc.so
4208 # func_win32_libid is a shell function defined in ltmain.sh
4209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4210 lt_cv_file_magic_cmd='func_win32_libid'
4214 # Base MSYS/MinGW do not provide the 'file' command needed by
4215 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4220 darwin* | rhapsody*)
4221 lt_cv_deplibs_check_method=pass_all
4224 freebsd* | dragonfly*)
4225 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 # Not sure whether the presence of OpenBSD here was a mistake.
4229 # Let's accept both of them until this is cleared up.
4230 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4231 lt_cv_file_magic_cmd=/usr/bin/file
4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4236 lt_cv_deplibs_check_method=pass_all
4241 lt_cv_deplibs_check_method=pass_all
4244 hpux10.20* | hpux11*)
4245 lt_cv_file_magic_cmd=/usr/bin/file
4248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4249 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4252 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]'
4253 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4257 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4263 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4267 irix5* | irix6* | nonstopux*)
4269 *-32|*"-32 ") libmagic=32-bit;;
4270 *-n32|*"-n32 ") libmagic=N32;;
4271 *-64|*"-64 ") libmagic=64-bit;;
4272 *) libmagic=never-match;;
4274 lt_cv_deplibs_check_method=pass_all
4277 # This must be Linux ELF.
4278 linux* | k*bsd*-gnu)
4279 lt_cv_deplibs_check_method=pass_all
4282 netbsd* | netbsdelf*-gnu)
4283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4292 lt_cv_file_magic_cmd=/usr/bin/file
4293 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4297 lt_cv_deplibs_check_method=unknown
4301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4308 osf3* | osf4* | osf5*)
4309 lt_cv_deplibs_check_method=pass_all
4313 lt_cv_deplibs_check_method=pass_all
4317 case $host_vendor in
4319 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]'
4320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4323 lt_cv_deplibs_check_method=pass_all
4326 lt_cv_file_magic_cmd='/bin/file'
4327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4330 lt_cv_file_magic_cmd='/bin/file'
4331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4332 lt_cv_file_magic_test_file=/lib/libc.so
4335 lt_cv_deplibs_check_method=pass_all
4338 lt_cv_deplibs_check_method=pass_all
4343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4344 lt_cv_deplibs_check_method=pass_all
4349 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4350 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4351 file_magic_cmd=$lt_cv_file_magic_cmd
4352 deplibs_check_method=$lt_cv_deplibs_check_method
4353 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4358 # If no C compiler was specified, use CC.
4361 # If no C compiler flags were specified, use CFLAGS.
4362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4364 # Allow CC to be a program name with arguments.
4368 # Check whether --enable-libtool-lock was given.
4369 if test "${enable_libtool_lock+set}" = set; then
4370 enableval=$enable_libtool_lock;
4373 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4375 # Some flags need to be propagated to the compiler or linker for good
4379 # Find out which ABI we are using.
4380 echo 'int i;' > conftest.$ac_ext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; then
4386 case `/usr/bin/file conftest.$ac_objext` in
4398 # Find out which ABI we are using.
4399 echo '#line 4399 "configure"' > conftest.$ac_ext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; then
4405 if test "$lt_cv_prog_gnu_ld" = yes; then
4406 case `/usr/bin/file conftest.$ac_objext` in
4408 LD="${LD-ld} -melf32bsmip"
4411 LD="${LD-ld} -melf32bmipn32"
4414 LD="${LD-ld} -melf64bmip"
4418 case `/usr/bin/file conftest.$ac_objext` in
4434 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4435 # Find out which ABI we are using.
4436 echo 'int i;' > conftest.$ac_ext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
4442 case `/usr/bin/file conftest.o` in
4446 LD="${LD-ld} -m elf_i386"
4448 ppc64-*linux*|powerpc64-*linux*)
4449 LD="${LD-ld} -m elf32ppclinux"
4452 LD="${LD-ld} -m elf_s390"
4455 LD="${LD-ld} -m elf32_sparc"
4462 LD="${LD-ld} -m elf_x86_64"
4464 ppc*-*linux*|powerpc*-*linux*)
4465 LD="${LD-ld} -m elf64ppc"
4468 LD="${LD-ld} -m elf64_s390"
4471 LD="${LD-ld} -m elf64_sparc"
4481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4482 SAVE_CFLAGS="$CFLAGS"
4483 CFLAGS="$CFLAGS -belf"
4484 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4485 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4486 if test "${lt_cv_cc_needs_belf+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_link") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest$ac_exeext &&
4527 $as_test_x conftest$ac_exeext; then
4528 lt_cv_cc_needs_belf=yes
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 lt_cv_cc_needs_belf=no
4536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4537 conftest$ac_exeext conftest.$ac_ext
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4546 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4547 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4549 CFLAGS="$SAVE_CFLAGS"
4553 # Find out which ABI we are using.
4554 echo 'int i;' > conftest.$ac_ext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; then
4560 case `/usr/bin/file conftest.o` in
4562 case $lt_cv_prog_gnu_ld in
4563 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4564 *) LD="${LD-ld} -64" ;;
4572 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 if test -n "$DLLTOOL"; then
4582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 DLLTOOL=$ac_cv_prog_DLLTOOL
4602 if test -n "$DLLTOOL"; then
4603 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4604 echo "${ECHO_T}$DLLTOOL" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4612 if test -z "$ac_cv_prog_DLLTOOL"; then
4613 ac_ct_DLLTOOL=$DLLTOOL
4614 # Extract the first word of "dlltool", so it can be a program name with args.
4615 set dummy dlltool; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$ac_ct_DLLTOOL"; then
4622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4642 if test -n "$ac_ct_DLLTOOL"; then
4643 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4644 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4650 if test "x$ac_ct_DLLTOOL" = x; then
4653 case $cross_compiling:$ac_tool_warned in
4655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4656 whose name does not start with the host triplet. If you think this
4657 configuration is useful to you, please write to autoconf@gnu.org." >&5
4658 echo "$as_me: 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." >&2;}
4661 ac_tool_warned=yes ;;
4663 DLLTOOL=$ac_ct_DLLTOOL
4666 DLLTOOL="$ac_cv_prog_DLLTOOL"
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}as; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AS+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$AS"; then
4678 ac_cv_prog_AS="$AS" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_AS="${ac_tool_prefix}as"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test -n "$AS"; then
4699 { echo "$as_me:$LINENO: result: $AS" >&5
4700 echo "${ECHO_T}$AS" >&6; }
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4708 if test -z "$ac_cv_prog_AS"; then
4710 # Extract the first word of "as", so it can be a program name with args.
4711 set dummy as; ac_word=$2
4712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4714 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 if test -n "$ac_ct_AS"; then
4718 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_ac_ct_AS="as"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4738 if test -n "$ac_ct_AS"; then
4739 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4740 echo "${ECHO_T}$ac_ct_AS" >&6; }
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4746 if test "x$ac_ct_AS" = x; then
4749 case $cross_compiling:$ac_tool_warned in
4751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4752 whose name does not start with the host triplet. If you think this
4753 configuration is useful to you, please write to autoconf@gnu.org." >&5
4754 echo "$as_me: 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." >&2;}
4757 ac_tool_warned=yes ;;
4765 if test -n "$ac_tool_prefix"; then
4766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test -n "$OBJDUMP"; then
4774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 OBJDUMP=$ac_cv_prog_OBJDUMP
4794 if test -n "$OBJDUMP"; then
4795 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4796 echo "${ECHO_T}$OBJDUMP" >&6; }
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4804 if test -z "$ac_cv_prog_OBJDUMP"; then
4805 ac_ct_OBJDUMP=$OBJDUMP
4806 # Extract the first word of "objdump", so it can be a program name with args.
4807 set dummy objdump; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$ac_ct_OBJDUMP"; then
4814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4834 if test -n "$ac_ct_OBJDUMP"; then
4835 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4836 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4842 if test "x$ac_ct_OBJDUMP" = x; then
4845 case $cross_compiling:$ac_tool_warned in
4847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4848 whose name does not start with the host triplet. If you think this
4849 configuration is useful to you, please write to autoconf@gnu.org." >&5
4850 echo "$as_me: 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." >&2;}
4853 ac_tool_warned=yes ;;
4855 OBJDUMP=$ac_ct_OBJDUMP
4858 OBJDUMP="$ac_cv_prog_OBJDUMP"
4865 need_locks="$enable_libtool_lock"
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4875 # On Suns, sometimes $CPP names a directory.
4876 if test -n "$CPP" && test -d "$CPP"; then
4879 if test -z "$CPP"; then
4880 if test "${ac_cv_prog_CPP+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 # Double quotes because CPP needs to be expanded
4884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887 for ac_c_preproc_warn_flag in '' yes
4889 # Use a header file that comes with gcc, so configuring glibc
4890 # with a fresh cross-compiler works.
4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4902 # include <limits.h>
4904 # include <assert.h>
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null && {
4921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4922 test ! -s conftest.err
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 # Broken: fails on valid input.
4933 rm -f conftest.err conftest.$ac_ext
4935 # OK, works on sane cases. Now check whether nonexistent headers
4936 # can be detected and how.
4937 cat >conftest.$ac_ext <<_ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <ac_nonexistent.h>
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4961 # Broken: success on invalid input.
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 # Passes both tests.
4972 rm -f conftest.err conftest.$ac_ext
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4989 { echo "$as_me:$LINENO: result: $CPP" >&5
4990 echo "${ECHO_T}$CPP" >&6; }
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null && {
5026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 # Broken: fails on valid input.
5038 rm -f conftest.err conftest.$ac_ext
5040 # OK, works on sane cases. Now check whether nonexistent headers
5041 # can be detected and how.
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <ac_nonexistent.h>
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5066 # Broken: success on invalid input.
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Passes both tests.
5077 rm -f conftest.err conftest.$ac_ext
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then
5085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; }
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5100 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5101 if test "${ac_cv_header_stdc+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5123 rm -f conftest.$ac_objext
5124 if { (ac_try="$ac_compile"
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_compile") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest.$ac_objext; then
5140 ac_cv_header_stdc=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_cv_header_stdc=no
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 if test $ac_cv_header_stdc = yes; then
5151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162 $EGREP "memchr" >/dev/null 2>&1; then
5165 ac_cv_header_stdc=no
5171 if test $ac_cv_header_stdc = yes; then
5172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5183 $EGREP "free" >/dev/null 2>&1; then
5186 ac_cv_header_stdc=no
5192 if test $ac_cv_header_stdc = yes; then
5193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5194 if test "$cross_compiling" = yes; then
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5205 #if ((' ' & 0x0FF) == 0x020)
5206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5209 # define ISLOWER(c) \
5210 (('a' <= (c) && (c) <= 'i') \
5211 || ('j' <= (c) && (c) <= 'r') \
5212 || ('s' <= (c) && (c) <= 'z'))
5213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5221 for (i = 0; i < 256; i++)
5222 if (XOR (islower (i), ISLOWER (i))
5223 || toupper (i) != TOUPPER (i))
5228 rm -f conftest$ac_exeext
5229 if { (ac_try="$ac_link"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_link") 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5250 echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_header_stdc=no
5257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5263 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5264 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5265 if test $ac_cv_header_stdc = yes; then
5267 cat >>confdefs.h <<\_ACEOF
5268 #define STDC_HEADERS 1
5273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5284 inttypes.h stdint.h unistd.h
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 $ac_includes_default
5300 #include <$ac_header>
5302 rm -f conftest.$ac_objext
5303 if { (ac_try="$ac_compile"
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compile") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && {
5316 test -z "$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5318 } && test -s conftest.$ac_objext; then
5319 eval "$as_ac_Header=yes"
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 eval "$as_ac_Header=no"
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 ac_res=`eval echo '${'$as_ac_Header'}'`
5330 { echo "$as_me:$LINENO: result: $ac_res" >&5
5331 echo "${ECHO_T}$ac_res" >&6; }
5332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343 for ac_header in dlfcn.h
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 ac_res=`eval echo '${'$as_ac_Header'}'`
5353 { echo "$as_me:$LINENO: result: $ac_res" >&5
5354 echo "${ECHO_T}$ac_res" >&6; }
5356 # Is the header compilable?
5357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5359 cat >conftest.$ac_ext <<_ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 #include <$ac_header>
5368 rm -f conftest.$ac_objext
5369 if { (ac_try="$ac_compile"
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_compile") 2>conftest.er1
5377 grep -v '^ *+' conftest.er1 >conftest.err
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest.$ac_objext; then
5385 ac_header_compiler=yes
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 ac_header_compiler=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5395 echo "${ECHO_T}$ac_header_compiler" >&6; }
5397 # Is the header present?
5398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <$ac_header>
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null && {
5421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5424 ac_header_preproc=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 ac_header_preproc=no
5432 rm -f conftest.err conftest.$ac_ext
5433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5434 echo "${ECHO_T}$ac_header_preproc" >&6; }
5436 # So? What about this header?
5437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5443 ac_header_preproc=yes
5446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5459 ## -------------------------------------------------- ##
5460 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5461 ## -------------------------------------------------- ##
5463 ) | sed "s/^/$as_me: WARNING: /" >&2
5466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 eval "$as_ac_Header=\$ac_header_preproc"
5473 ac_res=`eval echo '${'$as_ac_Header'}'`
5474 { echo "$as_me:$LINENO: result: $ac_res" >&5
5475 echo "${ECHO_T}$ac_res" >&6; }
5478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479 cat >>confdefs.h <<_ACEOF
5480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5492 if test -z "$CXX"; then
5493 if test -n "$CCC"; then
5496 if test -n "$ac_tool_prefix"; then
5497 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_prog_CXX+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 if test -n "$CXX"; then
5507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 if test -n "$CXX"; then
5528 { echo "$as_me:$LINENO: result: $CXX" >&5
5529 echo "${ECHO_T}$CXX" >&6; }
5531 { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5536 test -n "$CXX" && break
5539 if test -z "$CXX"; then
5541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5543 # Extract the first word of "$ac_prog", so it can be a program name with args.
5544 set dummy $ac_prog; ac_word=$2
5545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 if test -n "$ac_ct_CXX"; then
5551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_ac_ct_CXX="$ac_prog"
5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5571 if test -n "$ac_ct_CXX"; then
5572 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5573 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5575 { echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6; }
5580 test -n "$ac_ct_CXX" && break
5583 if test "x$ac_ct_CXX" = x; then
5586 case $cross_compiling:$ac_tool_warned in
5588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5589 whose name does not start with the host triplet. If you think this
5590 configuration is useful to you, please write to autoconf@gnu.org." >&5
5591 echo "$as_me: 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." >&2;}
5594 ac_tool_warned=yes ;;
5602 # Provide some information about the compiler.
5603 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5604 ac_compiler=`set X $ac_compile; echo $2`
5605 { (ac_try="$ac_compiler --version >&5"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compiler --version >&5") 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }
5615 { (ac_try="$ac_compiler -v >&5"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compiler -v >&5") 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }
5625 { (ac_try="$ac_compiler -V >&5"
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler -V >&5") 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
5636 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5637 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5638 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_compile") 2>conftest.er1
5668 grep -v '^ *+' conftest.er1 >conftest.err
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_cxx_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest.$ac_objext; then
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5688 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5689 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5690 GXX=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_test_CXXFLAGS=${CXXFLAGS+set}
5692 ac_save_CXXFLAGS=$CXXFLAGS
5693 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5694 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_cxx_g+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5699 ac_cxx_werror_flag=yes
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_cxx_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_prog_cxx_g=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_cxx_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_prog_cxx_g=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5828 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5829 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5830 if test "$ac_test_CXXFLAGS" = set; then
5831 CXXFLAGS=$ac_save_CXXFLAGS
5832 elif test $ac_cv_prog_cxx_g = yes; then
5833 if test "$GXX" = yes; then
5839 if test "$GXX" = yes; then
5846 ac_cpp='$CXXCPP $CPPFLAGS'
5847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5851 depcc="$CXX" am_compiler_list=
5853 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5855 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5859 # We make a subdir and do the tests there. Otherwise we can end up
5860 # making bogus files that we don't know about and never remove. For
5861 # instance it was reported that on HP-UX the gcc test will end up
5862 # making a dummy file named `D' -- because `-MD' means `put the output
5865 # Copy depcomp to subdir because otherwise we won't find it if we're
5866 # using a relative directory.
5867 cp "$am_depcomp" conftest.dir
5869 # We will build objects and dependencies in a subdirectory because
5870 # it helps to detect inapplicable dependency modes. For instance
5871 # both Tru64's cc and ICC support -MD to output dependencies as a
5872 # side effect of compilation, but ICC will put the dependencies in
5873 # the current directory while Tru64 will put them in the object
5877 am_cv_CXX_dependencies_compiler_type=none
5878 if test "$am_compiler_list" = ""; then
5879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5881 for depmode in $am_compiler_list; do
5882 # Setup a source with many dependencies, because some compilers
5883 # like to wrap large dependency lists on column 80 (with \), and
5884 # we should not choose a depcomp mode which is confused by this.
5886 # We need to recreate these files for each test, as the compiler may
5887 # overwrite some of them when testing with obscure command lines.
5888 # This happens at least with the AIX C compiler.
5890 for i in 1 2 3 4 5 6; do
5891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5893 # Solaris 8's {/usr,}/bin/sh.
5894 touch sub/conftst$i.h
5896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5900 # after this tag, mechanisms are not by side-effect, so they'll
5901 # only be used when explicitly requested
5902 if test "x$enable_dependency_tracking" = xyes; then
5910 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5911 # mode. It turns out that the SunPro C++ compiler does not properly
5912 # handle `-M -o', and we need to detect this.
5913 if depmode=$depmode \
5914 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5916 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5917 >/dev/null 2>conftest.err &&
5918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5921 # icc doesn't choke on unknown options, it will just issue warnings
5922 # or remarks (even with -Werror). So we grep stderr for any message
5923 # that says an option was ignored or not supported.
5924 # When given -MP, icc 7.0 and 7.1 complain thusly:
5925 # icc: Command line warning: ignoring option '-M'; no argument required
5926 # The diagnosis changed in icc 8.0:
5927 # icc: Command line remark: option '-MP' not supported
5928 if (grep 'ignoring option' conftest.err ||
5929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5930 am_cv_CXX_dependencies_compiler_type=$depmode
5939 am_cv_CXX_dependencies_compiler_type=none
5943 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5944 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5945 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5950 test "x$enable_dependency_tracking" != xno \
5951 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5952 am__fastdepCXX_TRUE=
5953 am__fastdepCXX_FALSE='#'
5955 am__fastdepCXX_TRUE='#'
5956 am__fastdepCXX_FALSE=
5962 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5963 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5964 (test "X$CXX" != "Xg++"))) ; then
5966 ac_cpp='$CXXCPP $CPPFLAGS'
5967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5970 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5971 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5972 if test -z "$CXXCPP"; then
5973 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 # Double quotes because CXXCPP needs to be expanded
5977 for CXXCPP in "$CXX -E" "/lib/cpp"
5980 for ac_cxx_preproc_warn_flag in '' yes
5982 # Use a header file that comes with gcc, so configuring glibc
5983 # with a fresh cross-compiler works.
5984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5985 # <limits.h> exists even on freestanding compilers.
5986 # On the NeXT, cc -E runs the code through the compiler's parser,
5987 # not just through cpp. "Syntax error" is here to catch this case.
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 # include <limits.h>
5997 # include <assert.h>
6001 if { (ac_try="$ac_cpp conftest.$ac_ext"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } >/dev/null && {
6014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6015 test ! -s conftest.err
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 # Broken: fails on valid input.
6026 rm -f conftest.err conftest.$ac_ext
6028 # OK, works on sane cases. Now check whether nonexistent headers
6029 # can be detected and how.
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #include <ac_nonexistent.h>
6038 if { (ac_try="$ac_cpp conftest.$ac_ext"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev/null && {
6051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6052 test ! -s conftest.err
6054 # Broken: success on invalid input.
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 # Passes both tests.
6065 rm -f conftest.err conftest.$ac_ext
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6075 ac_cv_prog_CXXCPP=$CXXCPP
6078 CXXCPP=$ac_cv_prog_CXXCPP
6080 ac_cv_prog_CXXCPP=$CXXCPP
6082 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6083 echo "${ECHO_T}$CXXCPP" >&6; }
6085 for ac_cxx_preproc_warn_flag in '' yes
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 # include <limits.h>
6102 # include <assert.h>
6106 if { (ac_try="$ac_cpp conftest.$ac_ext"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } >/dev/null && {
6119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6120 test ! -s conftest.err
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 # Broken: fails on valid input.
6131 rm -f conftest.err conftest.$ac_ext
6133 # OK, works on sane cases. Now check whether nonexistent headers
6134 # can be detected and how.
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <ac_nonexistent.h>
6143 if { (ac_try="$ac_cpp conftest.$ac_ext"
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null && {
6156 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6157 test ! -s conftest.err
6159 # Broken: success on invalid input.
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 # Passes both tests.
6170 rm -f conftest.err conftest.$ac_ext
6173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6174 rm -f conftest.err conftest.$ac_ext
6175 if $ac_preproc_ok; then
6178 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6179 See \`config.log' for more details." >&5
6180 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6181 See \`config.log' for more details." >&2;}
6182 { (exit 1); exit 1; }; }
6186 ac_cpp='$CXXCPP $CPPFLAGS'
6187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6197 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199 # find the maximum length of command line arguments
6200 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 # On DJGPP, this test can blow up pretty badly due to problems in libc
6211 # (any single argument exceeding 2000 bytes causes a buffer overrun
6212 # during glob expansion). Even if it were fixed, the result of this
6213 # check would be larger than it should be.
6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6218 # Under GNU Hurd, this test is not required because there is
6219 # no limit to the length of command line arguments.
6220 # Libtool will interpret -1 as no limit whatsoever
6221 lt_cv_sys_max_cmd_len=-1;
6225 # On Win9x/ME, this test blows up -- it succeeds, but takes
6226 # about 5 minutes as the teststring grows exponentially.
6227 # Worse, since 9x/ME are not pre-emptively multitasking,
6228 # you end up with a "frozen" computer, even though with patience
6229 # the test eventually succeeds (with a max line length of 256k).
6230 # Instead, let's just punt: use the minimum linelength reported by
6231 # all of the supported platforms: 8192 (on NT/2K/XP).
6232 lt_cv_sys_max_cmd_len=8192;
6236 # On AmigaOS with pdksh, this test takes hours, literally.
6237 # So we just punt and use a minimum line length of 8192.
6238 lt_cv_sys_max_cmd_len=8192;
6241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242 # This has been around since 386BSD, at least. Likely further.
6243 if test -x /sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245 elif test -x /usr/sbin/sysctl; then
6246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6250 # And add a safety zone
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257 lt_cv_sys_max_cmd_len=196608
6261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263 # nice to cause kernel panics so lets avoid the loop below.
6264 # First set a reasonable default.
6265 lt_cv_sys_max_cmd_len=16384
6267 if test -x /sbin/sysconfig; then
6268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274 lt_cv_sys_max_cmd_len=102400
6276 sysv5* | sco5v6* | sysv4.2uw2*)
6277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278 if test -n "$kargmax"; then
6279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6281 lt_cv_sys_max_cmd_len=32768
6285 # If test is not a shell built-in, we'll probably end up computing a
6286 # maximum length that is only half of the actual maximum length, but
6288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6289 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6290 = "XX$teststring") >/dev/null 2>&1 &&
6291 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6292 lt_cv_sys_max_cmd_len=$new_result &&
6293 test $i != 17 # 1/2 MB should be enough
6296 teststring=$teststring$teststring
6299 # Add a significant safety factor because C++ compilers can tack on massive
6300 # amounts of additional arguments before passing them to the linker.
6301 # It appears as though 1/2 is a usable value.
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6308 if test -n $lt_cv_sys_max_cmd_len ; then
6309 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6310 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6312 { echo "$as_me:$LINENO: result: none" >&5
6313 echo "${ECHO_T}none" >&6; }
6319 # Check for command to grab the raw symbol name followed by C symbol from nm.
6320 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6321 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 # These are sane defaults that work on at least a few old systems.
6327 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6329 # Character class describing NM global symbol codes.
6330 symcode='[BCDEGRST]'
6332 # Regexp to match symbols that can be accessed directly from C.
6333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6335 # Transform an extracted symbol line into a proper C declaration
6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6338 # Transform an extracted symbol line into symbol name and symbol address
6339 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'"
6341 # Define system-specific variables.
6346 cygwin* | mingw* | pw32*)
6347 symcode='[ABCDGISTW]'
6349 hpux*) # Its linker distinguishes data from code symbols
6350 if test "$host_cpu" = ia64; then
6351 symcode='[ABCDEGRST]'
6353 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6354 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'"
6356 linux* | k*bsd*-gnu)
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDGIRSTW]'
6359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360 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'"
6364 symcode='[BCDEGRST]'
6367 symcode='[BCDEGQRST]'
6378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6386 # Handle CRLF in mingw tool chain
6390 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6394 # If we're using GNU nm, then use its standard symbol codes.
6395 case `$NM -V 2>&1` in
6396 *GNU* | *'with BFD'*)
6397 symcode='[ABCDGIRSTW]' ;;
6400 # Try without a prefix undercore, then with it.
6401 for ac_symprfx in "" "_"; do
6403 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6404 symxfrm="\\1 $ac_symprfx\\2 \\2"
6406 # Write the raw and C identifiers.
6407 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6409 # Check to see that the pipe works correctly.
6413 cat > conftest.$ac_ext <<EOF
6418 void nm_test_func(){}
6422 int main(){nm_test_var='a';nm_test_func();return(0);}
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; then
6430 # Now try to grab the symbols.
6432 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6433 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && test -s "$nlist"; then
6437 # Try sorting and uniquifying the output.
6438 if sort "$nlist" | uniq > "$nlist"T; then
6439 mv -f "$nlist"T "$nlist"
6444 # Make sure that we snagged all the symbols we need.
6445 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6446 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6447 cat <<EOF > conftest.$ac_ext
6453 # Now generate the symbol file.
6454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6456 cat <<EOF >> conftest.$ac_ext
6457 #if defined (__STDC__) && __STDC__
6458 # define lt_ptr_t void *
6460 # define lt_ptr_t char *
6464 /* The mapping between symbol names and symbols. */
6469 lt_preloaded_symbols[] =
6472 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6473 cat <<\EOF >> conftest.$ac_ext
6481 # Now try linking the two files.
6482 mv conftest.$ac_objext conftstm.$ac_objext
6483 lt_save_LIBS="$LIBS"
6484 lt_save_CFLAGS="$CFLAGS"
6485 LIBS="conftstm.$ac_objext"
6486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6494 LIBS="$lt_save_LIBS"
6495 CFLAGS="$lt_save_CFLAGS"
6497 echo "cannot find nm_test_func in $nlist" >&5
6500 echo "cannot find nm_test_var in $nlist" >&5
6503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6506 echo "$progname: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6509 rm -f conftest* conftst*
6511 # Do not use the global_symbol_pipe unless it works.
6512 if test "$pipe_works" = yes; then
6515 lt_cv_sys_global_symbol_pipe=
6521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522 lt_cv_sys_global_symbol_to_cdecl=
6524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525 { echo "$as_me:$LINENO: result: failed" >&5
6526 echo "${ECHO_T}failed" >&6; }
6528 { echo "$as_me:$LINENO: result: ok" >&5
6529 echo "${ECHO_T}ok" >&6; }
6532 { echo "$as_me:$LINENO: checking for objdir" >&5
6533 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6534 if test "${lt_cv_objdir+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 rm -f .libs 2>/dev/null
6538 mkdir .libs 2>/dev/null
6539 if test -d .libs; then
6542 # MS-DOS does not allow filenames that begin with a dot.
6545 rmdir .libs 2>/dev/null
6547 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6548 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6549 objdir=$lt_cv_objdir
6557 # AIX sometimes has problems with the GCC collect2 program. For some
6558 # reason, if we set the COLLECT_NAMES environment variable, the problems
6559 # vanish in a puff of smoke.
6560 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 export COLLECT_NAMES
6567 # Sed substitution that helps us do robust quoting. It backslashifies
6568 # metacharacters that are still active within double-quoted strings.
6569 Xsed='sed -e 1s/^X//'
6570 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6586 default_ofile=libtool
6587 can_build_shared=yes
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6592 ltmain="$ac_aux_dir/ltmain.sh"
6593 ofile="$default_ofile"
6594 with_gnu_ld="$lt_cv_prog_gnu_ld"
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}ar; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_prog_AR+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 if test -n "$AR"; then
6605 ac_cv_prog_AR="$AR" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_AR="${ac_tool_prefix}ar"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 if test -n "$AR"; then
6626 { echo "$as_me:$LINENO: result: $AR" >&5
6627 echo "${ECHO_T}$AR" >&6; }
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6635 if test -z "$ac_cv_prog_AR"; then
6637 # Extract the first word of "ar", so it can be a program name with args.
6638 set dummy ar; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 if test -n "$ac_ct_AR"; then
6645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_ac_ct_AR="ar"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6665 if test -n "$ac_ct_AR"; then
6666 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6667 echo "${ECHO_T}$ac_ct_AR" >&6; }
6669 { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6673 if test "x$ac_ct_AR" = x; then
6676 case $cross_compiling:$ac_tool_warned in
6678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet. If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&5
6681 echo "$as_me: 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." >&2;}
6684 ac_tool_warned=yes ;;
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_prog_RANLIB+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 if test -n "$RANLIB"; then
6701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 RANLIB=$ac_cv_prog_RANLIB
6721 if test -n "$RANLIB"; then
6722 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6723 echo "${ECHO_T}$RANLIB" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6731 if test -z "$ac_cv_prog_RANLIB"; then
6732 ac_ct_RANLIB=$RANLIB
6733 # Extract the first word of "ranlib", so it can be a program name with args.
6734 set dummy ranlib; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 if test -n "$ac_ct_RANLIB"; then
6741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_ac_ct_RANLIB="ranlib"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6761 if test -n "$ac_ct_RANLIB"; then
6762 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6763 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6765 { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6769 if test "x$ac_ct_RANLIB" = x; then
6772 case $cross_compiling:$ac_tool_warned in
6774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet. If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&5
6777 echo "$as_me: 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." >&2;}
6780 ac_tool_warned=yes ;;
6782 RANLIB=$ac_ct_RANLIB
6785 RANLIB="$ac_cv_prog_RANLIB"
6788 if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}strip; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_prog_STRIP+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 if test -n "$STRIP"; then
6797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 STRIP=$ac_cv_prog_STRIP
6817 if test -n "$STRIP"; then
6818 { echo "$as_me:$LINENO: result: $STRIP" >&5
6819 echo "${ECHO_T}$STRIP" >&6; }
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6827 if test -z "$ac_cv_prog_STRIP"; then
6829 # Extract the first word of "strip", so it can be a program name with args.
6830 set dummy strip; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 if test -n "$ac_ct_STRIP"; then
6837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_ac_ct_STRIP="strip"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6857 if test -n "$ac_ct_STRIP"; then
6858 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6859 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6865 if test "x$ac_ct_STRIP" = x; then
6868 case $cross_compiling:$ac_tool_warned in
6870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&5
6873 echo "$as_me: 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." >&2;}
6876 ac_tool_warned=yes ;;
6881 STRIP="$ac_cv_prog_STRIP"
6886 old_CFLAGS="$CFLAGS"
6888 # Set sane defaults for various variables
6889 test -z "$AR" && AR=ar
6890 test -z "$AR_FLAGS" && AR_FLAGS=cru
6891 test -z "$AS" && AS=as
6892 test -z "$CC" && CC=cc
6893 test -z "$LTCC" && LTCC=$CC
6894 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6895 test -z "$DLLTOOL" && DLLTOOL=dlltool
6896 test -z "$LD" && LD=ld
6897 test -z "$LN_S" && LN_S="ln -s"
6898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6899 test -z "$NM" && NM=nm
6900 test -z "$SED" && SED=sed
6901 test -z "$OBJDUMP" && OBJDUMP=objdump
6902 test -z "$RANLIB" && RANLIB=:
6903 test -z "$STRIP" && STRIP=:
6904 test -z "$ac_objext" && ac_objext=o
6906 # Determine commands to create old-style static archives.
6907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6908 old_postinstall_cmds='chmod 644 $oldlib'
6909 old_postuninstall_cmds=
6911 if test -n "$RANLIB"; then
6914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6923 for cc_temp in $compiler""; do
6925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6934 # Only perform the check for file, if the check method requires it
6935 case $deplibs_check_method in
6937 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6938 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6939 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6948 lt_save_MAGIC_CMD="$MAGIC_CMD"
6949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6951 for ac_dir in $ac_dummy; do
6953 test -z "$ac_dir" && ac_dir=.
6954 if test -f $ac_dir/${ac_tool_prefix}file; then
6955 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6956 if test -n "$file_magic_test_file"; then
6957 case $deplibs_check_method in
6959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6962 $EGREP "$file_magic_regex" > /dev/null; then
6967 *** Warning: the command libtool uses to detect shared libraries,
6968 *** $file_magic_cmd, produces output that libtool cannot recognize.
6969 *** The result is that libtool may fail to recognize shared libraries
6970 *** as such. This will affect the creation of libtool libraries that
6971 *** depend on shared libraries, but programs linked with such libtool
6972 *** libraries will work regardless of this problem. Nevertheless, you
6973 *** may want to report the problem to your system manager and/or to
6974 *** bug-libtool@gnu.org
6984 MAGIC_CMD="$lt_save_MAGIC_CMD"
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if test -n "$MAGIC_CMD"; then
6991 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6992 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6998 if test -z "$lt_cv_path_MAGIC_CMD"; then
6999 if test -n "$ac_tool_prefix"; then
7000 { echo "$as_me:$LINENO: checking for file" >&5
7001 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7010 lt_save_MAGIC_CMD="$MAGIC_CMD"
7011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013 for ac_dir in $ac_dummy; do
7015 test -z "$ac_dir" && ac_dir=.
7016 if test -f $ac_dir/file; then
7017 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7018 if test -n "$file_magic_test_file"; then
7019 case $deplibs_check_method in
7021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024 $EGREP "$file_magic_regex" > /dev/null; then
7029 *** Warning: the command libtool uses to detect shared libraries,
7030 *** $file_magic_cmd, produces output that libtool cannot recognize.
7031 *** The result is that libtool may fail to recognize shared libraries
7032 *** as such. This will affect the creation of libtool libraries that
7033 *** depend on shared libraries, but programs linked with such libtool
7034 *** libraries will work regardless of this problem. Nevertheless, you
7035 *** may want to report the problem to your system manager and/or to
7036 *** bug-libtool@gnu.org
7046 MAGIC_CMD="$lt_save_MAGIC_CMD"
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if test -n "$MAGIC_CMD"; then
7053 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7054 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7056 { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7070 enable_win32_dll=yes
7072 # Check whether --enable-libtool-lock was given.
7073 if test "${enable_libtool_lock+set}" = set; then
7074 enableval=$enable_libtool_lock;
7077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7080 # Check whether --with-pic was given.
7081 if test "${with_pic+set}" = set; then
7082 withval=$with_pic; pic_mode="$withval"
7087 test -z "$pic_mode" && pic_mode=default
7089 # Use C for the default configuration in the libtool script
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099 # Source file extension for C test sources.
7102 # Object file extension for compiled C test sources.
7106 # Code to be used in simple compile tests
7107 lt_simple_compile_test_code="int some_variable = 0;\n"
7109 # Code to be used in simple link tests
7110 lt_simple_link_test_code='int main(){return(0);}\n'
7113 # If no C compiler was specified, use CC.
7116 # If no C compiler flags were specified, use CFLAGS.
7117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7119 # Allow CC to be a program name with arguments.
7123 # save warnings/boilerplate of simple test code
7124 ac_outfile=conftest.$ac_objext
7125 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7127 _lt_compiler_boilerplate=`cat conftest.err`
7130 ac_outfile=conftest.$ac_objext
7131 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7133 _lt_linker_boilerplate=`cat conftest.err`
7138 lt_prog_compiler_no_builtin_flag=
7140 if test "$GCC" = yes; then
7141 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7144 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7145 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 lt_cv_prog_compiler_rtti_exceptions=no
7150 ac_outfile=conftest.$ac_objext
7151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7152 lt_compiler_flag="-fno-rtti -fno-exceptions"
7153 # Insert the option either (1) after the last *FLAGS variable, or
7154 # (2) before a word containing "conftest.", or (3) at the end.
7155 # Note that $ac_compile itself does not contain backslashes and begins
7156 # with a dollar sign (not a hyphen), so the echo should work correctly.
7157 # The option is referenced via a variable to avoid confusing sed.
7158 lt_compile=`echo "$ac_compile" | $SED \
7159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161 -e 's:$: $lt_compiler_flag:'`
7162 (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
7163 (eval "$lt_compile" 2>conftest.err)
7165 cat conftest.err >&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 if (exit $ac_status) && test -s "$ac_outfile"; then
7168 # The compiler can only warn and ignore the option if not recognized
7169 # So say no if there are warnings other than the usual output.
7170 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7173 lt_cv_prog_compiler_rtti_exceptions=yes
7179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7180 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7190 lt_prog_compiler_wl=
7191 lt_prog_compiler_pic=
7192 lt_prog_compiler_static=
7194 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7197 if test "$GCC" = yes; then
7198 lt_prog_compiler_wl='-Wl,'
7199 lt_prog_compiler_static='-static'
7203 # All AIX code is PIC.
7204 if test "$host_cpu" = ia64; then
7205 # AIX 5 now supports IA64 processor
7206 lt_prog_compiler_static='-Bstatic'
7211 # FIXME: we need at least 68020 code to build shared libraries, but
7212 # adding the `-m68020' flag to GCC prevents building anything better,
7214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7218 # PIC is the default for these OSes.
7221 mingw* | pw32* | os2*)
7222 # This hack is so that the source file can tell whether it is being
7223 # built for inclusion in a dll (and should export symbols for example).
7224 lt_prog_compiler_pic='-DDLL_EXPORT'
7227 darwin* | rhapsody*)
7228 # PIC is the default on this platform
7229 # Common symbols not allowed in MH_DYLIB files
7230 lt_prog_compiler_pic='-fno-common'
7234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7235 # Instead, we relocate shared libraries at runtime.
7239 # Just because we use GCC doesn't mean we suddenly get shared libraries
7240 # on systems that don't support them.
7241 lt_prog_compiler_can_build_shared=no
7246 if test -d /usr/nec; then
7247 lt_prog_compiler_pic=-Kconform_pic
7252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7259 lt_prog_compiler_pic='-fPIC'
7265 lt_prog_compiler_pic='-fPIC'
7269 # PORTME Check for flag to pass linker flags through the system compiler.
7272 lt_prog_compiler_wl='-Wl,'
7273 if test "$host_cpu" = ia64; then
7274 # AIX 5 now supports IA64 processor
7275 lt_prog_compiler_static='-Bstatic'
7277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7281 # PIC is the default on this platform
7282 # Common symbols not allowed in MH_DYLIB files
7283 case $cc_basename in
7285 lt_prog_compiler_pic='-qnocommon'
7286 lt_prog_compiler_wl='-Wl,'
7291 mingw* | pw32* | os2*)
7292 # This hack is so that the source file can tell whether it is being
7293 # built for inclusion in a dll (and should export symbols for example).
7294 lt_prog_compiler_pic='-DDLL_EXPORT'
7297 hpux9* | hpux10* | hpux11*)
7298 lt_prog_compiler_wl='-Wl,'
7299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7306 lt_prog_compiler_pic='+Z'
7309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7310 lt_prog_compiler_static='${wl}-a ${wl}archive'
7313 irix5* | irix6* | nonstopux*)
7314 lt_prog_compiler_wl='-Wl,'
7315 # PIC (with -KPIC) is the default.
7316 lt_prog_compiler_static='-non_shared'
7320 lt_prog_compiler_pic='-KPIC'
7321 lt_prog_compiler_static='-Bstatic'
7324 linux* | k*bsd*-gnu)
7325 case $cc_basename in
7327 lt_prog_compiler_wl='-Wl,'
7328 lt_prog_compiler_pic='-KPIC'
7329 lt_prog_compiler_static='-static'
7331 pgcc* | pgf77* | pgf90* | pgf95*)
7332 # Portland Group compilers (*not* the Pentium gcc compiler,
7333 # which looks to be a dead project)
7334 lt_prog_compiler_wl='-Wl,'
7335 lt_prog_compiler_pic='-fpic'
7336 lt_prog_compiler_static='-Bstatic'
7339 lt_prog_compiler_wl='-Wl,'
7340 # All Alpha code is PIC.
7341 lt_prog_compiler_static='-non_shared'
7346 osf3* | osf4* | osf5*)
7347 lt_prog_compiler_wl='-Wl,'
7348 # All OSF/1 code is PIC.
7349 lt_prog_compiler_static='-non_shared'
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-Bstatic'
7355 case $cc_basename in
7357 lt_prog_compiler_wl='-Qoption ld ';;
7359 lt_prog_compiler_wl='-Wl,';;
7364 lt_prog_compiler_wl='-Qoption ld '
7365 lt_prog_compiler_pic='-PIC'
7366 lt_prog_compiler_static='-Bstatic'
7369 sysv4 | sysv4.2uw2* | sysv4.3*)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-KPIC'
7372 lt_prog_compiler_static='-Bstatic'
7376 if test -d /usr/nec ;then
7377 lt_prog_compiler_pic='-Kconform_pic'
7378 lt_prog_compiler_static='-Bstatic'
7382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7383 lt_prog_compiler_wl='-Wl,'
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_can_build_shared=no
7394 lt_prog_compiler_pic='-pic'
7395 lt_prog_compiler_static='-Bstatic'
7399 lt_prog_compiler_can_build_shared=no
7404 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7405 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7408 # Check to make sure the PIC flag actually works.
7410 if test -n "$lt_prog_compiler_pic"; then
7412 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7414 if test "${lt_prog_compiler_pic_works+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 lt_prog_compiler_pic_works=no
7418 ac_outfile=conftest.$ac_objext
7419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7421 # Insert the option either (1) after the last *FLAGS variable, or
7422 # (2) before a word containing "conftest.", or (3) at the end.
7423 # Note that $ac_compile itself does not contain backslashes and begins
7424 # with a dollar sign (not a hyphen), so the echo should work correctly.
7425 # The option is referenced via a variable to avoid confusing sed.
7426 lt_compile=`echo "$ac_compile" | $SED \
7427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429 -e 's:$: $lt_compiler_flag:'`
7430 (eval echo "\"\$as_me:7430: $lt_compile\"" >&5)
7431 (eval "$lt_compile" 2>conftest.err)
7433 cat conftest.err >&5
7434 echo "$as_me:7434: \$? = $ac_status" >&5
7435 if (exit $ac_status) && test -s "$ac_outfile"; then
7436 # The compiler can only warn and ignore the option if not recognized
7437 # So say no if there are warnings other than the usual output.
7438 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7441 lt_prog_compiler_pic_works=yes
7447 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7448 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7450 if test x"$lt_prog_compiler_pic_works" = xyes; then
7451 case $lt_prog_compiler_pic in
7453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7456 lt_prog_compiler_pic=
7457 lt_prog_compiler_can_build_shared=no
7462 # For platforms which do not support PIC, -DPIC is meaningless:
7464 lt_prog_compiler_pic=
7467 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7472 # Check to make sure the static flag actually works.
7474 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7475 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7476 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7477 if test "${lt_prog_compiler_static_works+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 lt_prog_compiler_static_works=no
7481 save_LDFLAGS="$LDFLAGS"
7482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7483 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7485 # The linker can only warn and ignore the option if not recognized
7486 # So say no if there are warnings
7487 if test -s conftest.err; then
7488 # Append any errors to the config.log.
7489 cat conftest.err 1>&5
7490 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7492 if diff conftest.exp conftest.er2 >/dev/null; then
7493 lt_prog_compiler_static_works=yes
7496 lt_prog_compiler_static_works=yes
7500 LDFLAGS="$save_LDFLAGS"
7503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7504 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7506 if test x"$lt_prog_compiler_static_works" = xyes; then
7509 lt_prog_compiler_static=
7513 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7514 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7515 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 lt_cv_prog_compiler_c_o=no
7519 $rm -r conftest 2>/dev/null
7523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7525 lt_compiler_flag="-o out/conftest2.$ac_objext"
7526 # Insert the option either (1) after the last *FLAGS variable, or
7527 # (2) before a word containing "conftest.", or (3) at the end.
7528 # Note that $ac_compile itself does not contain backslashes and begins
7529 # with a dollar sign (not a hyphen), so the echo should work correctly.
7530 lt_compile=`echo "$ac_compile" | $SED \
7531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7533 -e 's:$: $lt_compiler_flag:'`
7534 (eval echo "\"\$as_me:7534: $lt_compile\"" >&5)
7535 (eval "$lt_compile" 2>out/conftest.err)
7537 cat out/conftest.err >&5
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7541 # The compiler can only warn and ignore the option if not recognized
7542 # So say no if there are warnings
7543 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7546 lt_cv_prog_compiler_c_o=yes
7551 # SGI C++ compiler will create directory out/ii_files/ for
7552 # template instantiation
7553 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7554 $rm out/* && rmdir out
7560 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7561 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7564 hard_links="nottested"
7565 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7566 # do not overwrite the value of need_locks provided by the user
7567 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7568 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7573 ln conftest.a conftest.b 2>&5 || hard_links=no
7574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7575 { echo "$as_me:$LINENO: result: $hard_links" >&5
7576 echo "${ECHO_T}$hard_links" >&6; }
7577 if test "$hard_links" = no; then
7578 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7579 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7586 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7587 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7590 allow_undefined_flag=
7591 enable_shared_with_static_runtimes=no
7593 archive_expsym_cmds=
7594 old_archive_From_new_cmds=
7595 old_archive_from_expsyms_cmds=
7596 export_dynamic_flag_spec=
7597 whole_archive_flag_spec=
7598 thread_safe_flag_spec=
7599 hardcode_libdir_flag_spec=
7600 hardcode_libdir_flag_spec_ld=
7601 hardcode_libdir_separator=
7604 hardcode_shlibpath_var=unsupported
7605 link_all_deplibs=unknown
7606 hardcode_automatic=no
7609 always_export_symbols=no
7610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7611 # include_expsyms should be a list of space-separated symbols to be *always*
7612 # included in the symbol list
7614 # exclude_expsyms can be an extended regexp of symbols to exclude
7615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7617 # as well as any symbol that contains `d'.
7618 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7620 # platforms (ab)use it in PIC code, but their linkers get confused if
7621 # the symbol is explicitly referenced. Since portable code cannot
7622 # rely on this symbol name, it's probably fine to never include it in
7623 # preloaded symbol tables.
7624 extract_expsyms_cmds=
7625 # Just being paranoid about ensuring that cc_basename is set.
7626 for cc_temp in $compiler""; do
7628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7634 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7637 cygwin* | mingw* | pw32*)
7638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7639 # When not using gcc, we currently assume that we are using
7640 # Microsoft Visual C++.
7641 if test "$GCC" != yes; then
7646 # we just hope/assume this is gcc and not c89 (= MSVC++)
7655 if test "$with_gnu_ld" = yes; then
7656 # If archive_cmds runs LD, not CC, wlarc should be empty
7659 # Set some defaults for GNU ld with shared library support. These
7660 # are reset later if shared libraries are not supported. Putting them
7661 # here allows them to be overridden if necessary.
7662 runpath_var=LD_RUN_PATH
7663 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7664 export_dynamic_flag_spec='${wl}--export-dynamic'
7665 # ancient GNU ld didn't support --whole-archive et. al.
7666 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7667 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7669 whole_archive_flag_spec=
7671 supports_anon_versioning=no
7672 case `$LD -v 2>/dev/null` in
7673 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7674 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7675 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7676 *\ 2.11.*) ;; # other 2.11 versions
7677 *) supports_anon_versioning=yes ;;
7680 # See if GNU ld supports shared libraries.
7682 aix3* | aix4* | aix5*)
7683 # On AIX/PPC, the GNU linker is very broken
7684 if test "$host_cpu" != ia64; then
7688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7689 *** to be unable to reliably create shared libraries on AIX.
7690 *** Therefore, libtool is disabling shared libraries support. If you
7691 *** really care for shared libraries, you may want to modify your PATH
7692 *** so that a non-GNU linker is found, and then restart.
7699 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)'
7700 hardcode_libdir_flag_spec='-L$libdir'
7701 hardcode_minus_L=yes
7703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7704 # that the semantics of dynamic libraries on AmigaOS, at least up
7705 # to version 4, is to share data among multiple programs linked
7706 # with the same dynamic library. Since this doesn't match the
7707 # behavior of shared libraries on other platforms, we can't use
7713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7714 allow_undefined_flag=unsupported
7715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7716 # support --undefined. This deserves some investigation. FIXME
7717 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723 cygwin* | mingw* | pw32*)
7724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7725 # as there is no search path for DLLs.
7726 hardcode_libdir_flag_spec='-L$libdir'
7727 allow_undefined_flag=unsupported
7728 always_export_symbols=no
7729 enable_shared_with_static_runtimes=yes
7730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7734 # If the export-symbols file already is a .def file (1st line
7735 # is EXPORTS), use it as is; otherwise, prepend...
7736 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7737 cp $export_symbols $output_objdir/$soname.def;
7739 echo EXPORTS > $output_objdir/$soname.def;
7740 cat $export_symbols >> $output_objdir/$soname.def;
7742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7750 hardcode_shlibpath_var=no
7751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7752 export_dynamic_flag_spec='${wl}-E'
7753 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7754 # Instead, shared libraries are loaded at an image base (0x10000000 by
7755 # default) and relocated if they conflict, which is a slow very memory
7756 # consuming and fragmenting process. To avoid this, we pick a random,
7757 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7758 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7760 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'
7763 linux* | k*bsd*-gnu)
7764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7766 case $cc_basename,$host_cpu in
7767 pgcc*) # Portland Group C compiler
7768 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'
7769 tmp_addflag=' $pic_flag'
7771 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7772 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'
7773 tmp_addflag=' $pic_flag -Mnomain' ;;
7774 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7775 tmp_addflag=' -i_dynamic' ;;
7776 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7777 tmp_addflag=' -i_dynamic -nofor_main' ;;
7778 ifc* | ifort*) # Intel Fortran compiler
7779 tmp_addflag=' -nofor_main' ;;
7781 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7783 if test $supports_anon_versioning = yes; then
7784 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7786 $echo "local: *; };" >> $output_objdir/$libname.ver~
7787 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7795 netbsd* | netbsdelf*-gnu)
7796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7806 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7811 *** create shared libraries on Solaris systems. Therefore, libtool
7812 *** is disabling shared libraries support. We urge you to upgrade GNU
7813 *** binutils to release 2.9.1 or newer. Another option is to modify
7814 *** your PATH or compiler configuration so that the native linker is
7815 *** used, and then restart.
7818 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7827 case `$LD -v 2>&1` in
7828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7833 *** reliably create shared libraries on SCO systems. Therefore, libtool
7834 *** is disabling shared libraries support. We urge you to upgrade GNU
7835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7836 *** your PATH or compiler configuration so that the native linker is
7837 *** used, and then restart.
7842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7857 hardcode_shlibpath_var=no
7861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7870 if test "$ld_shlibs" = no; then
7872 hardcode_libdir_flag_spec=
7873 export_dynamic_flag_spec=
7874 whole_archive_flag_spec=
7877 # PORTME fill in a description of your system's linker (not GNU ld)
7880 allow_undefined_flag=unsupported
7881 always_export_symbols=yes
7882 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'
7883 # Note: this linker hardcodes the directories in LIBPATH if there
7884 # are no directories specified by -L.
7885 hardcode_minus_L=yes
7886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887 # Neither direct hardcoding nor static linking is supported with a
7889 hardcode_direct=unsupported
7894 if test "$host_cpu" = ia64; then
7895 # On IA64, the linker does run time linking by default, so we don't
7896 # have to do anything special.
7897 aix_use_runtimelinking=no
7898 exp_sym_flag='-Bexport'
7901 # If we're using GNU nm, then we don't want the "-C" option.
7902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7904 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'
7906 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'
7908 aix_use_runtimelinking=no
7910 # Test if we are trying to use run time linking or normal
7911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912 # need to do runtime linking.
7913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7914 for ld_flag in $LDFLAGS; do
7915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916 aix_use_runtimelinking=yes
7923 exp_sym_flag='-bexport'
7924 no_entry_flag='-bnoentry'
7927 # When large executables or shared objects are built, AIX ld can
7928 # have problems creating the table of contents. If linking a library
7929 # or program results in "error TOC overflow" add -mminimal-toc to
7930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7935 hardcode_libdir_separator=':'
7936 link_all_deplibs=yes
7938 if test "$GCC" = yes; then
7939 case $host_os in aix4.[012]|aix4.[012].*)
7940 # We only want to do this on AIX 4.2 and lower, the check
7941 # below for broken collect2 doesn't work under 4.3+
7942 collect2name=`${CC} -print-prog-name=collect2`
7943 if test -f "$collect2name" && \
7944 strings "$collect2name" | grep resolve_lib_name >/dev/null
7946 # We have reworked collect2
7949 # We have old collect2
7950 hardcode_direct=unsupported
7951 # It fails to find uninstalled libraries when the uninstalled
7952 # path is not listed in the libpath. Setting hardcode_minus_L
7953 # to unsupported forces relinking
7954 hardcode_minus_L=yes
7955 hardcode_libdir_flag_spec='-L$libdir'
7956 hardcode_libdir_separator=
7960 shared_flag='-shared'
7961 if test "$aix_use_runtimelinking" = yes; then
7962 shared_flag="$shared_flag "'${wl}-G'
7966 if test "$host_cpu" = ia64; then
7967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7968 # chokes on -Wl,-G. The following line is correct:
7971 if test "$aix_use_runtimelinking" = yes; then
7972 shared_flag='${wl}-G'
7974 shared_flag='${wl}-bM:SRE'
7979 # It seems that -bexpall does not export symbols beginning with
7980 # underscore (_), so it is better to generate a list of symbols to export.
7981 always_export_symbols=yes
7982 if test "$aix_use_runtimelinking" = yes; then
7983 # Warning - without using the other runtime loading flags (-brtl),
7984 # -berok will link without error, but may produce a broken library.
7985 allow_undefined_flag='-berok'
7986 # Determine the default libpath from the value encoded in an empty executable.
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (ac_try="$ac_link"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_link") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest$ac_exeext &&
8019 $as_test_x conftest$ac_exeext; then
8021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8023 # Check for a 64-bit object if we didn't find anything.
8024 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; }
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8034 conftest$ac_exeext conftest.$ac_ext
8035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8038 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"
8040 if test "$host_cpu" = ia64; then
8041 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8042 allow_undefined_flag="-z nodefs"
8043 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"
8045 # Determine the default libpath from the value encoded in an empty executable.
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest$ac_exeext &&
8078 $as_test_x conftest$ac_exeext; then
8080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8082 # Check for a 64-bit object if we didn't find anything.
8083 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; }
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8097 # Warning - without using the other run time loading flags,
8098 # -berok will link without error, but may produce a broken library.
8099 no_undefined_flag=' ${wl}-bernotok'
8100 allow_undefined_flag=' ${wl}-berok'
8101 # Exported symbols can be pulled into shared objects from archives
8102 whole_archive_flag_spec='$convenience'
8103 archive_cmds_need_lc=yes
8104 # This is similar to how AIX traditionally builds its shared libraries.
8105 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'
8111 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)'
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 hardcode_minus_L=yes
8114 # see comment about different semantics on the GNU ld section
8119 export_dynamic_flag_spec=-rdynamic
8122 cygwin* | mingw* | pw32*)
8123 # When not using gcc, we currently assume that we are using
8124 # Microsoft Visual C++.
8125 # hardcode_libdir_flag_spec is actually meaningless, as there is
8126 # no search path for DLLs.
8127 hardcode_libdir_flag_spec=' '
8128 allow_undefined_flag=unsupported
8129 # Tell ltmain to make .lib files, not .a files.
8131 # Tell ltmain to make .dll files, not .so files.
8133 # FIXME: Setting linknames here is a bad hack.
8134 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8135 # The linker will automatically build a .lib file if we build a DLL.
8136 old_archive_From_new_cmds='true'
8137 # FIXME: Should let the user specify the lib program.
8138 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8139 fix_srcfile_path='`cygpath -w "$srcfile"`'
8140 enable_shared_with_static_runtimes=yes
8143 darwin* | rhapsody*)
8145 rhapsody* | darwin1.[012])
8146 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8149 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8150 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8152 case ${MACOSX_DEPLOYMENT_TARGET} in
8154 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8157 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8163 archive_cmds_need_lc=no
8165 hardcode_automatic=yes
8166 hardcode_shlibpath_var=unsupported
8167 whole_archive_flag_spec=''
8168 link_all_deplibs=yes
8169 if test "$GCC" = yes ; then
8170 output_verbose_link_cmd='echo'
8171 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8172 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8173 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8174 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}'
8175 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}'
8177 case $cc_basename in
8179 output_verbose_link_cmd='echo'
8180 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8181 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8183 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}'
8184 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}'
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_shlibpath_var=no
8203 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8204 # support. Future versions do this automatically, but an explicit c++rt0.o
8205 # does not break anything, and helps significantly (at the cost of a little
8208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8209 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_shlibpath_var=no
8214 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_minus_L=yes
8219 hardcode_shlibpath_var=no
8222 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8223 freebsd* | dragonfly*)
8224 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8225 hardcode_libdir_flag_spec='-R$libdir'
8227 hardcode_shlibpath_var=no
8231 if test "$GCC" = yes; then
8232 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'
8234 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'
8236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8237 hardcode_libdir_separator=:
8240 # hardcode_minus_L: Not really in the search PATH,
8241 # but as the default location of the library.
8242 hardcode_minus_L=yes
8243 export_dynamic_flag_spec='${wl}-E'
8247 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8248 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8252 if test "$with_gnu_ld" = no; then
8253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8254 hardcode_libdir_separator=:
8257 export_dynamic_flag_spec='${wl}-E'
8259 # hardcode_minus_L: Not really in the search PATH,
8260 # but as the default location of the library.
8261 hardcode_minus_L=yes
8266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8269 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8272 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8291 if test "$with_gnu_ld" = no; then
8292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8293 hardcode_libdir_separator=:
8297 hardcode_libdir_flag_spec_ld='+b $libdir'
8299 hardcode_shlibpath_var=no
8303 export_dynamic_flag_spec='${wl}-E'
8305 # hardcode_minus_L: Not really in the search PATH,
8306 # but as the default location of the library.
8307 hardcode_minus_L=yes
8313 irix5* | irix6* | nonstopux*)
8314 if test "$GCC" = yes; then
8315 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'
8317 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'
8318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322 link_all_deplibs=yes
8325 netbsd* | netbsdelf*-gnu)
8326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8331 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_shlibpath_var=no
8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 hardcode_libdir_separator=:
8341 hardcode_shlibpath_var=no
8346 hardcode_shlibpath_var=no
8347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351 export_dynamic_flag_spec='${wl}-E'
8354 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_libdir_flag_spec='-R$libdir'
8359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_minus_L=yes
8369 allow_undefined_flag=unsupported
8370 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'
8371 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375 if test "$GCC" = yes; then
8376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8377 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'
8379 allow_undefined_flag=' -expect_unresolved \*'
8380 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'
8382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383 hardcode_libdir_separator=:
8386 osf4* | osf5*) # as osf3* with the addition of -msym flag
8387 if test "$GCC" = yes; then
8388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8389 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'
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8392 allow_undefined_flag=' -expect_unresolved \*'
8393 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'
8394 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8395 $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'
8397 # Both c and cxx compiler support -rpath directly
8398 hardcode_libdir_flag_spec='-rpath $libdir'
8400 hardcode_libdir_separator=:
8404 no_undefined_flag=' -z text'
8405 if test "$GCC" = yes; then
8407 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8412 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8413 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8416 hardcode_libdir_flag_spec='-R$libdir'
8417 hardcode_shlibpath_var=no
8419 solaris2.[0-5] | solaris2.[0-5].*) ;;
8421 # The compiler driver will combine linker options so we
8422 # cannot just pass the convience library names through
8423 # without $wl, iff we do not link with $LD.
8424 # Luckily, gcc supports the same syntax we need for Sun Studio.
8425 # Supported since Solaris 2.6 (maybe 2.5.1?)
8428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8430 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' ;;
8433 link_all_deplibs=yes
8437 if test "x$host_vendor" = xsequent; then
8438 # Use $CC to link under sequent, because it throws in some extra .o
8439 # files that make .init and .fini sections work.
8440 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8444 hardcode_libdir_flag_spec='-L$libdir'
8446 hardcode_minus_L=yes
8447 hardcode_shlibpath_var=no
8451 case $host_vendor in
8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454 hardcode_direct=yes # is this really true???
8457 ## LD is ld it makes a PLAMLIB
8458 ## CC just makes a GrossModule.
8459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8460 reload_cmds='$CC -r -o $output$reload_objs'
8464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8468 runpath_var='LD_RUN_PATH'
8469 hardcode_shlibpath_var=no
8473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 hardcode_shlibpath_var=no
8475 export_dynamic_flag_spec='-Bexport'
8479 if test -d /usr/nec; then
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_shlibpath_var=no
8482 runpath_var=LD_RUN_PATH
8483 hardcode_runpath_var=yes
8488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8489 no_undefined_flag='${wl}-z,text'
8490 archive_cmds_need_lc=no
8491 hardcode_shlibpath_var=no
8492 runpath_var='LD_RUN_PATH'
8494 if test "$GCC" = yes; then
8495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 sysv5* | sco3.2v5* | sco5v6*)
8504 # Note: We can NOT use -z defs as we might desire, because we do not
8505 # link with -lc, and that would cause any symbols used from libc to
8506 # always be unresolved, which means just about no library would
8507 # ever link correctly. If we're not using GNU ld we use -z text
8508 # though, which does catch some bad symbols but isn't as heavy-handed
8510 no_undefined_flag='${wl}-z,text'
8511 allow_undefined_flag='${wl}-z,nodefs'
8512 archive_cmds_need_lc=no
8513 hardcode_shlibpath_var=no
8514 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8515 hardcode_libdir_separator=':'
8516 link_all_deplibs=yes
8517 export_dynamic_flag_spec='${wl}-Bexport'
8518 runpath_var='LD_RUN_PATH'
8520 if test "$GCC" = yes; then
8521 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_shlibpath_var=no
8541 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8542 echo "${ECHO_T}$ld_shlibs" >&6; }
8543 test "$ld_shlibs" = no && can_build_shared=no
8546 # Do we need to explicitly link libc?
8548 case "x$archive_cmds_need_lc" in
8550 # Assume -lc should be added
8551 archive_cmds_need_lc=yes
8553 if test "$enable_shared" = yes && test "$GCC" = yes; then
8554 case $archive_cmds in
8556 # FIXME: we may have to deal with multi-command sequences.
8559 # Test whether the compiler implicitly links with -lc since on some
8560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8561 # to ld, don't add -lc before -lgcc.
8562 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8563 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568 (eval $ac_compile) 2>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } 2>conftest.err; then
8574 libobjs=conftest.$ac_objext
8576 wl=$lt_prog_compiler_wl
8577 pic_flag=$lt_prog_compiler_pic
8583 lt_save_allow_undefined_flag=$allow_undefined_flag
8584 allow_undefined_flag=
8585 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8586 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }
8591 archive_cmds_need_lc=no
8593 archive_cmds_need_lc=yes
8595 allow_undefined_flag=$lt_save_allow_undefined_flag
8597 cat conftest.err 1>&5
8600 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8601 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8608 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8609 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8611 libname_spec='lib$name'
8619 shlibpath_overrides_runpath=unknown
8621 dynamic_linker="$host_os ld.so"
8622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8623 if test "$GCC" = yes; then
8624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8625 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8626 # if the path contains ";" then we assume it to be the separator
8627 # otherwise default to the standard path separator (i.e. ":") - it is
8628 # assumed that no part of a normal pathname contains ";" but that should
8629 # okay in the real world where ";" in dirpaths is itself problematic.
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8635 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8637 need_lib_prefix=unknown
8638 hardcode_into_libs=no
8640 # when you set need_version to no, make sure it does not cause -set_version
8641 # flags to be left without arguments
8642 need_version=unknown
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8648 shlibpath_var=LIBPATH
8650 # AIX 3 has no versioning support, so we append a major version to the name.
8651 soname_spec='${libname}${release}${shared_ext}$major'
8658 hardcode_into_libs=yes
8659 if test "$host_cpu" = ia64; then
8660 # AIX 5 supports IA64
8661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8662 shlibpath_var=LD_LIBRARY_PATH
8664 # With GCC up to 2.95.x, collect2 would create an import file
8665 # for dependence libraries. The import file would start with
8666 # the line `#! .'. This would cause the generated library to
8667 # depend on `.', always an invalid library. This was fixed in
8668 # development snapshots of GCC prior to 3.0.
8670 aix4 | aix4.[01] | aix4.[01].*)
8671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8673 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8681 # soname into executable. Probably we can add versioning support to
8682 # collect2, so additional links can be useful in future.
8683 if test "$aix_use_runtimelinking" = yes; then
8684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8685 # instead of lib<name>.a to let people know that these are not
8686 # typical AIX shared libraries.
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 # We preserve .a as extension for shared libraries through AIX4.2
8690 # and later when we are not doing run time linking.
8691 library_names_spec='${libname}${release}.a $libname.a'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8694 shlibpath_var=LIBPATH
8699 library_names_spec='$libname.ixlibrary $libname.a'
8700 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8701 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'
8705 library_names_spec='${libname}${shared_ext}'
8706 dynamic_linker="$host_os ld.so"
8707 shlibpath_var=LIBRARY_PATH
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8716 shlibpath_var=LD_LIBRARY_PATH
8717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8719 # the default ld.so.conf also contains /usr/contrib/lib and
8720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8721 # libtool to hard-code these into programs
8724 cygwin* | mingw* | pw32*)
8725 version_type=windows
8730 case $GCC,$host_os in
8731 yes,cygwin* | yes,mingw* | yes,pw32*)
8732 library_names_spec='$libname.dll.a'
8733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8734 postinstall_cmds='base_file=`basename \${file}`~
8735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8736 dldir=$destdir/`dirname \$dlpath`~
8737 test -d \$dldir || mkdir -p \$dldir~
8738 $install_prog $dir/$dlname \$dldir/$dlname~
8739 chmod a+x \$dldir/$dlname'
8740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8741 dlpath=$dir/\$dldll~
8743 shlibpath_overrides_runpath=yes
8747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8752 # MinGW DLLs use traditional 'lib' prefix
8753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8756 # It is most probably a Windows format PATH printed by
8757 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8758 # path with ; separators, and with drive letters. We can handle the
8759 # drive letters (cygwin fileutils understands them), so leave them,
8760 # especially as we might pass files found there to a mingw objdump,
8761 # which wouldn't understand a cygwinified path. Ahh.
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8768 # pw32 DLLs use 'pw' prefix rather than 'lib'
8769 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8778 dynamic_linker='Win32 ld.exe'
8779 # FIXME: first we should search . and the directory the executable is in
8783 darwin* | rhapsody*)
8784 dynamic_linker="$host_os dyld"
8788 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8789 soname_spec='${libname}${release}${major}$shared_ext'
8790 shlibpath_overrides_runpath=yes
8791 shlibpath_var=DYLD_LIBRARY_PATH
8792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8793 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8794 if test "$GCC" = yes; then
8795 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"`
8797 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 shlibpath_var=LD_LIBRARY_PATH
8815 freebsd* | dragonfly*)
8816 # DragonFly does not have aout. When/if they implement a new
8817 # versioning mechanism, adjust this.
8818 if test -x /usr/bin/objformat; then
8819 objformat=`/usr/bin/objformat`
8822 freebsd[123]*) objformat=aout ;;
8826 version_type=freebsd-$objformat
8827 case $version_type in
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8838 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=yes
8843 freebsd3.[01]* | freebsdelf3.[01]*)
8844 shlibpath_overrides_runpath=yes
8845 hardcode_into_libs=yes
8847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8849 shlibpath_overrides_runpath=no
8850 hardcode_into_libs=yes
8852 freebsd*) # from 4.6 on
8853 shlibpath_overrides_runpath=yes
8854 hardcode_into_libs=yes
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 hardcode_into_libs=yes
8869 hpux9* | hpux10* | hpux11*)
8870 # Give a soname corresponding to the major version so that dld.sl refuses to
8871 # link against other versions.
8878 hardcode_into_libs=yes
8879 dynamic_linker="$host_os dld.so"
8880 shlibpath_var=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 if test "X$HPUX_IA64_MODE" = X32; then
8885 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.sl"
8895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904 dynamic_linker="$host_os dld.sl"
8905 shlibpath_var=SHLIB_PATH
8906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8911 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8912 postinstall_cmds='chmod 555 $lib'
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8927 irix5* | irix6* | nonstopux*)
8929 nonstopux*) version_type=nonstopux ;;
8931 if test "$lt_cv_prog_gnu_ld" = yes; then
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8942 irix5* | nonstopux*)
8946 case $LD in # libtool.m4 will add one of these switches to LD
8947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8948 libsuff= shlibsuff= libmagic=32-bit;;
8949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8950 libsuff=32 shlibsuff=N32 libmagic=N32;;
8951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8953 *) libsuff= shlibsuff= libmagic=never-match;;
8957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8958 shlibpath_overrides_runpath=no
8959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8961 hardcode_into_libs=yes
8964 # No shared lib support for Linux oldld, aout, or coff.
8965 linux*oldld* | linux*aout* | linux*coff*)
8969 # This must be Linux ELF.
8970 linux* | k*bsd*-gnu)
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=no
8979 # This implies no fast_install, which is unacceptable.
8980 # Some rework will be needed to allow for fast_install
8981 # before this can be enabled.
8982 hardcode_into_libs=yes
8984 # Append ld.so.conf contents to the search path
8985 if test -f /etc/ld.so.conf; then
8986 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' ' '`
8987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8990 # We used to test for /lib/ld.so.1 and disable shared libraries on
8991 # powerpc, because MkLinux only supported shared libraries with the
8992 # GNU dynamic linker. Since this was broken with cross compilers,
8993 # most powerpc-linux boxes support dynamic linking these days and
8994 # people can always --disable-shared, the test was removed, and we
8995 # assume the GNU/Linux dynamic linker is in use.
8996 dynamic_linker='GNU/Linux ld.so'
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=no
9007 hardcode_into_libs=yes
9008 dynamic_linker='NetBSD ld.elf_so'
9015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9018 dynamic_linker='NetBSD (a.out) ld.so'
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 dynamic_linker='NetBSD ld.elf_so'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 hardcode_into_libs=yes
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=yes
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=yes
9048 sys_lib_dlsearch_path_spec="/usr/lib"
9050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9052 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9053 *) need_version=no ;;
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9060 openbsd2.[89] | openbsd2.[89].*)
9061 shlibpath_overrides_runpath=no
9064 shlibpath_overrides_runpath=yes
9068 shlibpath_overrides_runpath=yes
9073 libname_spec='$name'
9076 library_names_spec='$libname${shared_ext} $libname.a'
9077 dynamic_linker='OS/2 ld.exe'
9078 shlibpath_var=LIBPATH
9081 osf3* | osf4* | osf5*)
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9100 hardcode_into_libs=yes
9101 # ldd complains unless libraries are executable
9102 postinstall_cmds='chmod +x $lib'
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes
9111 if test "$with_gnu_ld" = yes; then
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 case $host_vendor in
9124 shlibpath_overrides_runpath=no
9126 export_dynamic_flag_spec='${wl}-Blargedynsym'
9127 runpath_var=LD_RUN_PATH
9135 shlibpath_overrides_runpath=no
9136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9142 if test -d /usr/nec ;then
9144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9145 soname_spec='$libname${shared_ext}.$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9151 version_type=freebsd-elf
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 hardcode_into_libs=yes
9158 if test "$with_gnu_ld" = yes; then
9159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9160 shlibpath_overrides_runpath=no
9162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9163 shlibpath_overrides_runpath=yes
9166 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9170 sys_lib_dlsearch_path_spec='/usr/lib'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 soname_spec='${libname}${release}${shared_ext}$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9184 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9185 echo "${ECHO_T}$dynamic_linker" >&6; }
9186 test "$dynamic_linker" = no && can_build_shared=no
9188 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9189 if test "$GCC" = yes; then
9190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9193 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9196 if test -n "$hardcode_libdir_flag_spec" || \
9197 test -n "$runpath_var" || \
9198 test "X$hardcode_automatic" = "Xyes" ; then
9200 # We can hardcode non-existant directories.
9201 if test "$hardcode_direct" != no &&
9202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9203 # have to relink, otherwise we might link with an installed library
9204 # when we should be linking with a yet-to-be-installed one
9205 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9206 test "$hardcode_minus_L" != no; then
9207 # Linking always hardcodes the temporary library directory.
9208 hardcode_action=relink
9210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9211 hardcode_action=immediate
9214 # We cannot hardcode anything, or else we can only hardcode existing
9216 hardcode_action=unsupported
9218 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9219 echo "${ECHO_T}$hardcode_action" >&6; }
9221 if test "$hardcode_action" = relink; then
9222 # Fast installation is not supported
9223 enable_fast_install=no
9224 elif test "$shlibpath_overrides_runpath" = yes ||
9225 test "$enable_shared" = no; then
9226 # Fast installation is not necessary
9227 enable_fast_install=needless
9232 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9235 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9236 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9237 { echo "$as_me:$LINENO: result: yes" >&5
9238 echo "${ECHO_T}yes" >&6; }
9240 # FIXME - insert some real tests, host_os isn't really good enough
9243 if test -n "$STRIP" ; then
9244 striplib="$STRIP -x"
9245 { echo "$as_me:$LINENO: result: yes" >&5
9246 echo "${ECHO_T}yes" >&6; }
9248 { echo "$as_me:$LINENO: result: no" >&5
9249 echo "${ECHO_T}no" >&6; }
9253 { echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6; }
9259 if test "x$enable_dlopen" != xyes; then
9260 enable_dlopen=unknown
9261 enable_dlopen_self=unknown
9262 enable_dlopen_self_static=unknown
9269 lt_cv_dlopen="load_add_on"
9271 lt_cv_dlopen_self=yes
9275 lt_cv_dlopen="LoadLibrary"
9280 lt_cv_dlopen="dlopen"
9285 # if libdl is installed we need to link against it
9286 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 ac_check_lib_save_LIBS=$LIBS
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9300 /* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_link") 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest$ac_exeext &&
9332 $as_test_x conftest$ac_exeext; then
9333 ac_cv_lib_dl_dlopen=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_lib_dl_dlopen=no
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342 conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9345 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9347 if test $ac_cv_lib_dl_dlopen = yes; then
9348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9353 lt_cv_dlopen_self=yes
9360 { echo "$as_me:$LINENO: checking for shl_load" >&5
9361 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9362 if test "${ac_cv_func_shl_load+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9373 #define shl_load innocuous_shl_load
9375 /* System header to define __stub macros and hopefully few prototypes,
9376 which can conflict with char shl_load (); below.
9377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378 <limits.h> exists even on freestanding compilers. */
9381 # include <limits.h>
9383 # include <assert.h>
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9395 /* The GNU C library defines this for functions which it implements
9396 to always fail with ENOSYS. Some functions are actually named
9397 something starting with __ and the normal name is an alias. */
9398 #if defined __stub_shl_load || defined __stub___shl_load
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (ac_try="$ac_link"
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_link") 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && {
9424 test -z "$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 } && test -s conftest$ac_exeext &&
9427 $as_test_x conftest$ac_exeext; then
9428 ac_cv_func_shl_load=yes
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_cv_func_shl_load=no
9436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9439 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9440 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9441 if test $ac_cv_func_shl_load = yes; then
9442 lt_cv_dlopen="shl_load"
9444 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9445 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 ac_check_lib_save_LIBS=$LIBS
9451 cat >conftest.$ac_ext <<_ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest$ac_exeext &&
9490 $as_test_x conftest$ac_exeext; then
9491 ac_cv_lib_dld_shl_load=yes
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_cv_lib_dld_shl_load=no
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9504 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9505 if test $ac_cv_lib_dld_shl_load = yes; then
9506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9508 { echo "$as_me:$LINENO: checking for dlopen" >&5
9509 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9510 if test "${ac_cv_func_dlopen+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9521 #define dlopen innocuous_dlopen
9523 /* System header to define __stub macros and hopefully few prototypes,
9524 which can conflict with char dlopen (); below.
9525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9526 <limits.h> exists even on freestanding compilers. */
9529 # include <limits.h>
9531 # include <assert.h>
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9543 /* The GNU C library defines this for functions which it implements
9544 to always fail with ENOSYS. Some functions are actually named
9545 something starting with __ and the normal name is an alias. */
9546 #if defined __stub_dlopen || defined __stub___dlopen
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_link") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest$ac_exeext &&
9575 $as_test_x conftest$ac_exeext; then
9576 ac_cv_func_dlopen=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_cv_func_dlopen=no
9584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9585 conftest$ac_exeext conftest.$ac_ext
9587 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9589 if test $ac_cv_func_dlopen = yes; then
9590 lt_cv_dlopen="dlopen"
9592 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 ac_check_lib_save_LIBS=$LIBS
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_link") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1 >conftest.err
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest$ac_exeext &&
9638 $as_test_x conftest$ac_exeext; then
9639 ac_cv_lib_dl_dlopen=yes
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_cv_lib_dl_dlopen=no
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9653 if test $ac_cv_lib_dl_dlopen = yes; then
9654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9656 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9657 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9658 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_check_lib_save_LIBS=$LIBS
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_lib_svld_dlopen=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_lib_svld_dlopen=no
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9717 if test $ac_cv_lib_svld_dlopen = yes; then
9718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9720 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9721 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9722 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 ac_check_lib_save_LIBS=$LIBS
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9734 /* Override any GCC internal prototype to avoid an error.
9735 Use char because int might match the return type of a GCC
9736 builtin and then its argument prototype would still apply. */
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest$ac_exeext &&
9766 $as_test_x conftest$ac_exeext; then
9767 ac_cv_lib_dld_dld_link=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_lib_dld_dld_link=no
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9781 if test $ac_cv_lib_dld_dld_link = yes; then
9782 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9803 if test "x$lt_cv_dlopen" != xno; then
9809 case $lt_cv_dlopen in
9811 save_CPPFLAGS="$CPPFLAGS"
9812 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9814 save_LDFLAGS="$LDFLAGS"
9815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9818 LIBS="$lt_cv_dlopen_libs $LIBS"
9820 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9821 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9822 if test "${lt_cv_dlopen_self+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 if test "$cross_compiling" = yes; then :
9826 lt_cv_dlopen_self=cross
9828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9829 lt_status=$lt_dlunknown
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9831 "configure"
9832 #include "confdefs.h"
9841 # define LT_DLGLOBAL RTLD_GLOBAL
9844 # define LT_DLGLOBAL DL_GLOBAL
9846 # define LT_DLGLOBAL 0
9850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9851 find out it does not work in some platform. */
9852 #ifndef LT_DLLAZY_OR_NOW
9854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9857 # define LT_DLLAZY_OR_NOW DL_LAZY
9860 # define LT_DLLAZY_OR_NOW RTLD_NOW
9863 # define LT_DLLAZY_OR_NOW DL_NOW
9865 # define LT_DLLAZY_OR_NOW 0
9873 extern "C" void exit (int);
9876 void fnord() { int i=42;}
9879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9880 int status = $lt_dlunknown;
9884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9885 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9886 /* dlclose (self); */
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9899 (./conftest; exit; ) >&5 2>/dev/null
9902 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9903 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9904 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9907 # compilation failed
9908 lt_cv_dlopen_self=no
9915 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9916 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9918 if test "x$lt_cv_dlopen_self" = xyes; then
9919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9920 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9921 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9922 if test "${lt_cv_dlopen_self_static+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 if test "$cross_compiling" = yes; then :
9926 lt_cv_dlopen_self_static=cross
9928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9929 lt_status=$lt_dlunknown
9930 cat > conftest.$ac_ext <<EOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9941 # define LT_DLGLOBAL RTLD_GLOBAL
9944 # define LT_DLGLOBAL DL_GLOBAL
9946 # define LT_DLGLOBAL 0
9950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9951 find out it does not work in some platform. */
9952 #ifndef LT_DLLAZY_OR_NOW
9954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9957 # define LT_DLLAZY_OR_NOW DL_LAZY
9960 # define LT_DLLAZY_OR_NOW RTLD_NOW
9963 # define LT_DLLAZY_OR_NOW DL_NOW
9965 # define LT_DLLAZY_OR_NOW 0
9973 extern "C" void exit (int);
9976 void fnord() { int i=42;}
9979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9980 int status = $lt_dlunknown;
9984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9986 /* dlclose (self); */
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9999 (./conftest; exit; ) >&5 2>/dev/null
10001 case x$lt_status in
10002 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10003 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10004 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10007 # compilation failed
10008 lt_cv_dlopen_self_static=no
10015 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10016 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10019 CPPFLAGS="$save_CPPFLAGS"
10020 LDFLAGS="$save_LDFLAGS"
10025 case $lt_cv_dlopen_self in
10026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10027 *) enable_dlopen_self=unknown ;;
10030 case $lt_cv_dlopen_self_static in
10031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10032 *) enable_dlopen_self_static=unknown ;;
10037 # Report which library types will actually be built
10038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10041 echo "${ECHO_T}$can_build_shared" >&6; }
10043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10045 test "$can_build_shared" = "no" && enable_shared=no
10047 # On AIX, shared libraries and static libraries use the same namespace, and
10048 # are all built from PIC.
10051 test "$enable_shared" = yes && enable_static=no
10052 if test -n "$RANLIB"; then
10053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10054 postinstall_cmds='$RANLIB $lib'
10059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10060 test "$enable_shared" = yes && enable_static=no
10064 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10065 echo "${ECHO_T}$enable_shared" >&6; }
10067 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10068 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10069 # Make sure either enable_shared or enable_static is yes.
10070 test "$enable_shared" = yes || enable_static=yes
10071 { echo "$as_me:$LINENO: result: $enable_static" >&5
10072 echo "${ECHO_T}$enable_static" >&6; }
10074 # The else clause should only fire when bootstrapping the
10075 # libtool distribution, otherwise you forgot to ship ltmain.sh
10076 # with your package, and you will get complaints that there are
10077 # no rules to generate ltmain.sh.
10078 if test -f "$ltmain"; then
10079 # See if we are running on zsh, and set the options which allow our commands through
10080 # without removal of \ escapes.
10081 if test -n "${ZSH_VERSION+set}" ; then
10082 setopt NO_GLOB_SUBST
10084 # Now quote all the things that may contain metacharacters while being
10085 # careful not to overquote the AC_SUBSTed values. We take copies of the
10086 # variables and quote the copies for generation of the libtool script.
10087 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10089 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10090 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10091 deplibs_check_method reload_flag reload_cmds need_locks \
10092 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10093 lt_cv_sys_global_symbol_to_c_name_address \
10094 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10095 old_postinstall_cmds old_postuninstall_cmds \
10099 lt_prog_compiler_wl \
10100 lt_prog_compiler_pic \
10101 lt_prog_compiler_static \
10102 lt_prog_compiler_no_builtin_flag \
10103 export_dynamic_flag_spec \
10104 thread_safe_flag_spec \
10105 whole_archive_flag_spec \
10106 enable_shared_with_static_runtimes \
10108 old_archive_from_new_cmds \
10113 compiler_lib_search_path \
10115 archive_expsym_cmds \
10117 postuninstall_cmds \
10118 old_archive_from_expsyms_cmds \
10119 allow_undefined_flag \
10120 no_undefined_flag \
10121 export_symbols_cmds \
10122 hardcode_libdir_flag_spec \
10123 hardcode_libdir_flag_spec_ld \
10124 hardcode_libdir_separator \
10125 hardcode_automatic \
10127 module_expsym_cmds \
10128 lt_cv_prog_compiler_c_o \
10130 include_expsyms; do
10133 old_archive_cmds | \
10134 old_archive_from_new_cmds | \
10136 archive_expsym_cmds | \
10138 module_expsym_cmds | \
10139 old_archive_from_expsyms_cmds | \
10140 export_symbols_cmds | \
10141 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10142 postinstall_cmds | postuninstall_cmds | \
10143 old_postinstall_cmds | old_postuninstall_cmds | \
10144 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10145 # Double-quote double-evaled strings.
10146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10155 *'\$0 --fallback-echo"')
10156 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10160 cfgfile="${ofile}T"
10161 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10163 { echo "$as_me:$LINENO: creating $ofile" >&5
10164 echo "$as_me: creating $ofile" >&6;}
10166 cat <<__EOF__ >> "$cfgfile"
10169 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10170 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10173 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10174 # Free Software Foundation, Inc.
10176 # This file is part of GNU Libtool:
10177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10179 # This program is free software; you can redistribute it and/or modify
10180 # it under the terms of the GNU General Public License as published by
10181 # the Free Software Foundation; either version 2 of the License, or
10182 # (at your option) any later version.
10184 # This program is distributed in the hope that it will be useful, but
10185 # WITHOUT ANY WARRANTY; without even the implied warranty of
10186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10187 # General Public License for more details.
10189 # You should have received a copy of the GNU General Public License
10190 # along with this program; if not, write to the Free Software
10191 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10193 # As a special exception to the GNU General Public License, if you
10194 # distribute this file as part of a program that contains a
10195 # configuration script generated by Autoconf, you may include it under
10196 # the same distribution terms that you use for the rest of that program.
10198 # A sed program that does not truncate output.
10201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10202 Xsed="$SED -e 1s/^X//"
10204 # The HP-UX ksh and POSIX shell print the target directory to stdout
10205 # if CDPATH is set.
10206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10208 # The names of the tagged configurations supported by this script.
10211 # ### BEGIN LIBTOOL CONFIG
10213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10215 # Shell to use when invoking shell scripts.
10218 # Whether or not to build shared libraries.
10219 build_libtool_libs=$enable_shared
10221 # Whether or not to build static libraries.
10222 build_old_libs=$enable_static
10224 # Whether or not to add -lc for building shared libraries.
10225 build_libtool_need_lc=$archive_cmds_need_lc
10227 # Whether or not to disallow shared libs when runtime libs are static
10228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10230 # Whether or not to optimize for fast installation.
10231 fast_install=$enable_fast_install
10234 host_alias=$host_alias
10238 # The build system.
10239 build_alias=$build_alias
10243 # An echo program that does not interpret backslashes.
10248 AR_FLAGS=$lt_AR_FLAGS
10253 # LTCC compiler flags.
10254 LTCFLAGS=$lt_LTCFLAGS
10256 # A language-specific compiler.
10259 # Is the compiler the GNU C compiler?
10265 # The linker used to build libraries.
10268 # Whether we need hard or soft links.
10271 # A BSD-compatible nm program.
10274 # A symbol stripping program
10277 # Used to examine libraries when file_magic_cmd begins "file"
10278 MAGIC_CMD=$MAGIC_CMD
10280 # Used on cygwin: DLL creation program.
10283 # Used on cygwin: object dumper.
10286 # Used on cygwin: assembler.
10289 # The name of the directory that contains temporary libtool files.
10292 # How to create reloadable object files.
10293 reload_flag=$lt_reload_flag
10294 reload_cmds=$lt_reload_cmds
10296 # How to pass a linker flag through the compiler.
10297 wl=$lt_lt_prog_compiler_wl
10299 # Object file suffix (normally "o").
10300 objext="$ac_objext"
10302 # Old archive suffix (normally "a").
10305 # Shared library suffix (normally ".so").
10306 shrext_cmds='$shrext_cmds'
10308 # Executable file suffix (normally "").
10311 # Additional compiler flags for building library objects.
10312 pic_flag=$lt_lt_prog_compiler_pic
10315 # What is the maximum length of a command?
10316 max_cmd_len=$lt_cv_sys_max_cmd_len
10318 # Does compiler simultaneously support -c and -o options?
10319 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10321 # Must we lock files when doing compilation?
10322 need_locks=$lt_need_locks
10324 # Do we need the lib prefix for modules?
10325 need_lib_prefix=$need_lib_prefix
10327 # Do we need a version for libraries?
10328 need_version=$need_version
10330 # Whether dlopen is supported.
10331 dlopen_support=$enable_dlopen
10333 # Whether dlopen of programs is supported.
10334 dlopen_self=$enable_dlopen_self
10336 # Whether dlopen of statically linked programs is supported.
10337 dlopen_self_static=$enable_dlopen_self_static
10339 # Compiler flag to prevent dynamic linking.
10340 link_static_flag=$lt_lt_prog_compiler_static
10342 # Compiler flag to turn off builtin functions.
10343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10345 # Compiler flag to allow reflexive dlopens.
10346 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10348 # Compiler flag to generate shared objects directly from archives.
10349 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10351 # Compiler flag to generate thread-safe objects.
10352 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10354 # Library versioning type.
10355 version_type=$version_type
10357 # Format of library name prefix.
10358 libname_spec=$lt_libname_spec
10360 # List of archive names. First name is the real one, the rest are links.
10361 # The last name is the one that the linker finds with -lNAME.
10362 library_names_spec=$lt_library_names_spec
10364 # The coded name of the library, if different from the real name.
10365 soname_spec=$lt_soname_spec
10367 # Commands used to build and install an old-style archive.
10369 old_archive_cmds=$lt_old_archive_cmds
10370 old_postinstall_cmds=$lt_old_postinstall_cmds
10371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10373 # Create an old-style archive from a shared archive.
10374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10376 # Create a temporary old-style archive to link instead of a shared archive.
10377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10379 # Commands used to build and install a shared archive.
10380 archive_cmds=$lt_archive_cmds
10381 archive_expsym_cmds=$lt_archive_expsym_cmds
10382 postinstall_cmds=$lt_postinstall_cmds
10383 postuninstall_cmds=$lt_postuninstall_cmds
10385 # Commands used to build a loadable module (assumed same as above if empty)
10386 module_cmds=$lt_module_cmds
10387 module_expsym_cmds=$lt_module_expsym_cmds
10389 # Commands to strip libraries.
10390 old_striplib=$lt_old_striplib
10391 striplib=$lt_striplib
10393 # Dependencies to place before the objects being linked to create a
10395 predep_objects=$lt_predep_objects
10397 # Dependencies to place after the objects being linked to create a
10399 postdep_objects=$lt_postdep_objects
10401 # Dependencies to place before the objects being linked to create a
10403 predeps=$lt_predeps
10405 # Dependencies to place after the objects being linked to create a
10407 postdeps=$lt_postdeps
10409 # The library search path used internally by the compiler when linking
10410 # a shared library.
10411 compiler_lib_search_path=$lt_compiler_lib_search_path
10413 # Method to check whether dependent libraries are shared objects.
10414 deplibs_check_method=$lt_deplibs_check_method
10416 # Command to use when deplibs_check_method == file_magic.
10417 file_magic_cmd=$lt_file_magic_cmd
10419 # Flag that allows shared libraries with undefined symbols to be built.
10420 allow_undefined_flag=$lt_allow_undefined_flag
10422 # Flag that forces no undefined symbols.
10423 no_undefined_flag=$lt_no_undefined_flag
10425 # Commands used to finish a libtool library installation in a directory.
10426 finish_cmds=$lt_finish_cmds
10428 # Same as above, but a single script fragment to be evaled but not shown.
10429 finish_eval=$lt_finish_eval
10431 # Take the output of nm and produce a listing of raw symbols and C names.
10432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10434 # Transform the output of nm in a proper C declaration
10435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10437 # Transform the output of nm in a C name address pair
10438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10440 # This is the shared library runtime path variable.
10441 runpath_var=$runpath_var
10443 # This is the shared library path variable.
10444 shlibpath_var=$shlibpath_var
10446 # Is shlibpath searched before the hard-coded library search path?
10447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10449 # How to hardcode a shared library path into an executable.
10450 hardcode_action=$hardcode_action
10452 # Whether we should hardcode library paths into libraries.
10453 hardcode_into_libs=$hardcode_into_libs
10455 # Flag to hardcode \$libdir into a binary during linking.
10456 # This must work even if \$libdir does not exist.
10457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10459 # If ld is used when linking, flag to hardcode \$libdir into
10460 # a binary during linking. This must work even if \$libdir does
10462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10464 # Whether we need a single -rpath flag with a separated argument.
10465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10468 # resulting binary.
10469 hardcode_direct=$hardcode_direct
10471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10472 # resulting binary.
10473 hardcode_minus_L=$hardcode_minus_L
10475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10476 # the resulting binary.
10477 hardcode_shlibpath_var=$hardcode_shlibpath_var
10479 # Set to yes if building a shared library automatically hardcodes DIR into the library
10480 # and all subsequent libraries and executables linked against it.
10481 hardcode_automatic=$hardcode_automatic
10483 # Variables whose values should be saved in libtool wrapper scripts and
10484 # restored at relink time.
10485 variables_saved_for_relink="$variables_saved_for_relink"
10487 # Whether libtool must link a program against all its dependency libraries.
10488 link_all_deplibs=$link_all_deplibs
10490 # Compile-time system search path for libraries
10491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10493 # Run-time system search path for libraries
10494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10496 # Fix the shell variable \$srcfile for the compiler.
10497 fix_srcfile_path="$fix_srcfile_path"
10499 # Set to yes if exported symbols are required.
10500 always_export_symbols=$always_export_symbols
10502 # The commands to list exported symbols.
10503 export_symbols_cmds=$lt_export_symbols_cmds
10505 # The commands to extract the exported symbol list from a shared archive.
10506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10508 # Symbols that should not be listed in the preloaded symbols.
10509 exclude_expsyms=$lt_exclude_expsyms
10511 # Symbols that must always be exported.
10512 include_expsyms=$lt_include_expsyms
10514 # ### END LIBTOOL CONFIG
10521 cat <<\EOF >> "$cfgfile"
10523 # AIX sometimes has problems with the GCC collect2 program. For some
10524 # reason, if we set the COLLECT_NAMES environment variable, the problems
10525 # vanish in a puff of smoke.
10526 if test "X${COLLECT_NAMES+set}" != Xset; then
10528 export COLLECT_NAMES
10534 # We use sed instead of cat because bash on DJGPP gets confused if
10535 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10536 # text mode, it properly converts lines to CR/LF. This bash problem
10537 # is reportedly fixed, but why not run on old versions too?
10538 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10540 mv -f "$cfgfile" "$ofile" || \
10541 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10545 # If there is no Makefile yet, we rely on a make rule to execute
10546 # `config.status --recheck' to rerun these tests and create the
10547 # libtool script then.
10548 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10549 if test -f "$ltmain_in"; then
10550 test -f Makefile && make "$ltmain"
10556 ac_cpp='$CPP $CPPFLAGS'
10557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10564 # Check whether --with-tags was given.
10565 if test "${with_tags+set}" = set; then
10566 withval=$with_tags; tagnames="$withval"
10570 if test -f "$ltmain" && test -n "$tagnames"; then
10571 if test ! -f "${ofile}"; then
10572 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10573 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10576 if test -z "$LTCC"; then
10577 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10578 if test -z "$LTCC"; then
10579 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10580 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10583 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10586 if test -z "$LTCFLAGS"; then
10587 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10590 # Extract list of available tagged configurations in $ofile.
10591 # Note that this assumes the entire list is on one line.
10592 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10595 for tagname in $tagnames; do
10597 # Check whether tagname contains only valid characters
10598 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10600 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10601 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10602 { (exit 1); exit 1; }; }
10606 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10608 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10609 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10610 { (exit 1); exit 1; }; }
10613 # Update the list of available tags.
10614 if test -n "$tagname"; then
10615 echo appending configuration tag \"$tagname\" to $ofile
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621 (test "X$CXX" != "Xg++"))) ; then
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10631 archive_cmds_need_lc_CXX=no
10632 allow_undefined_flag_CXX=
10633 always_export_symbols_CXX=no
10634 archive_expsym_cmds_CXX=
10635 export_dynamic_flag_spec_CXX=
10636 hardcode_direct_CXX=no
10637 hardcode_libdir_flag_spec_CXX=
10638 hardcode_libdir_flag_spec_ld_CXX=
10639 hardcode_libdir_separator_CXX=
10640 hardcode_minus_L_CXX=no
10641 hardcode_shlibpath_var_CXX=unsupported
10642 hardcode_automatic_CXX=no
10644 module_expsym_cmds_CXX=
10645 link_all_deplibs_CXX=unknown
10646 old_archive_cmds_CXX=$old_archive_cmds
10647 no_undefined_flag_CXX=
10648 whole_archive_flag_spec_CXX=
10649 enable_shared_with_static_runtimes_CXX=no
10651 # Dependencies to place before and after the object being linked:
10652 predep_objects_CXX=
10653 postdep_objects_CXX=
10656 compiler_lib_search_path_CXX=
10658 # Source file extension for C++ test sources.
10661 # Object file extension for compiled C++ test sources.
10665 # Code to be used in simple compile tests
10666 lt_simple_compile_test_code="int some_variable = 0;\n"
10668 # Code to be used in simple link tests
10669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10673 # If no C compiler was specified, use CC.
10676 # If no C compiler flags were specified, use CFLAGS.
10677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10679 # Allow CC to be a program name with arguments.
10683 # save warnings/boilerplate of simple test code
10684 ac_outfile=conftest.$ac_objext
10685 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10687 _lt_compiler_boilerplate=`cat conftest.err`
10690 ac_outfile=conftest.$ac_objext
10691 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10693 _lt_linker_boilerplate=`cat conftest.err`
10697 # Allow CC to be a program name with arguments.
10702 lt_save_with_gnu_ld=$with_gnu_ld
10703 lt_save_path_LD=$lt_cv_path_LD
10704 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10705 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10707 $as_unset lt_cv_prog_gnu_ld
10709 if test -n "${lt_cv_path_LDCXX+set}"; then
10710 lt_cv_path_LD=$lt_cv_path_LDCXX
10712 $as_unset lt_cv_path_LD
10714 test -z "${LDCXX+set}" || LD=$LDCXX
10718 for cc_temp in $compiler""; do
10720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10726 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10729 # We don't want -fno-exception wen compiling C++ code, so set the
10730 # no_builtin_flag separately
10731 if test "$GXX" = yes; then
10732 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10734 lt_prog_compiler_no_builtin_flag_CXX=
10737 if test "$GXX" = yes; then
10738 # Set up default GNU C++ configuration
10741 # Check whether --with-gnu-ld was given.
10742 if test "${with_gnu_ld+set}" = set; then
10743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10749 if test "$GCC" = yes; then
10750 # Check if gcc -print-prog-name=ld gives a path.
10751 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10752 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10755 # gcc leaves a trailing carriage return which upsets mingw
10756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10761 # Accept absolute paths.
10763 re_direlt='/[^/][^/]*/\.\./'
10764 # Canonicalize the pathname of ld
10765 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10767 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10769 test -z "$LD" && LD="$ac_prog"
10772 # If it fails, then pretend we aren't using GCC.
10776 # If it is relative, then search for the first ld in PATH.
10777 with_gnu_ld=unknown
10780 elif test "$with_gnu_ld" = yes; then
10781 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10784 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10787 if test "${lt_cv_path_LD+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 if test -z "$LD"; then
10791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10792 for ac_dir in $PATH; do
10794 test -z "$ac_dir" && ac_dir=.
10795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10796 lt_cv_path_LD="$ac_dir/$ac_prog"
10797 # Check to see if the program is GNU ld. I'd rather use --version,
10798 # but apparently some variants of GNU ld only accept -v.
10799 # Break only if it was the GNU/non-GNU ld that we prefer.
10800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10801 *GNU* | *'with BFD'*)
10802 test "$with_gnu_ld" != no && break
10805 test "$with_gnu_ld" != yes && break
10812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10816 LD="$lt_cv_path_LD"
10817 if test -n "$LD"; then
10818 { echo "$as_me:$LINENO: result: $LD" >&5
10819 echo "${ECHO_T}$LD" >&6; }
10821 { echo "$as_me:$LINENO: result: no" >&5
10822 echo "${ECHO_T}no" >&6; }
10824 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10825 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10826 { (exit 1); exit 1; }; }
10827 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10828 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10829 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10833 case `$LD -v 2>&1 </dev/null` in
10834 *GNU* | *'with BFD'*)
10835 lt_cv_prog_gnu_ld=yes
10838 lt_cv_prog_gnu_ld=no
10842 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10843 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10844 with_gnu_ld=$lt_cv_prog_gnu_ld
10848 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10849 # archiving commands below assume that GNU ld is being used.
10850 if test "$with_gnu_ld" = yes; then
10851 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10852 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'
10854 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10857 # If archive_cmds runs LD, not CC, wlarc should be empty
10858 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10859 # investigate it a little bit more. (MM)
10862 # ancient GNU ld didn't support --whole-archive et. al.
10863 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10864 grep 'no-whole-archive' > /dev/null; then
10865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10867 whole_archive_flag_spec_CXX=
10873 # A generic and very simple default shared library creation
10874 # command for GNU C++ for the case where it uses the native
10875 # linker, instead of GNU ld. If possible, this setting should
10876 # overridden to take advantage of the native linker features on
10877 # the platform it is being used on.
10878 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10881 # Commands to make compiler produce verbose output that lists
10882 # what "hidden" libraries, object files and flags are used when
10883 # linking a shared library.
10884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10892 # PORTME: fill in a description of your system's C++ link characteristics
10893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10898 # FIXME: insert proper C++ library support
10902 if test "$host_cpu" = ia64; then
10903 # On IA64, the linker does run time linking by default, so we don't
10904 # have to do anything special.
10905 aix_use_runtimelinking=no
10906 exp_sym_flag='-Bexport'
10909 aix_use_runtimelinking=no
10911 # Test if we are trying to use run time linking or normal
10912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10913 # need to do runtime linking.
10914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10915 for ld_flag in $LDFLAGS; do
10918 aix_use_runtimelinking=yes
10926 exp_sym_flag='-bexport'
10927 no_entry_flag='-bnoentry'
10930 # When large executables or shared objects are built, AIX ld can
10931 # have problems creating the table of contents. If linking a library
10932 # or program results in "error TOC overflow" add -mminimal-toc to
10933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10936 archive_cmds_CXX=''
10937 hardcode_direct_CXX=yes
10938 hardcode_libdir_separator_CXX=':'
10939 link_all_deplibs_CXX=yes
10941 if test "$GXX" = yes; then
10942 case $host_os in aix4.[012]|aix4.[012].*)
10943 # We only want to do this on AIX 4.2 and lower, the check
10944 # below for broken collect2 doesn't work under 4.3+
10945 collect2name=`${CC} -print-prog-name=collect2`
10946 if test -f "$collect2name" && \
10947 strings "$collect2name" | grep resolve_lib_name >/dev/null
10949 # We have reworked collect2
10950 hardcode_direct_CXX=yes
10952 # We have old collect2
10953 hardcode_direct_CXX=unsupported
10954 # It fails to find uninstalled libraries when the uninstalled
10955 # path is not listed in the libpath. Setting hardcode_minus_L
10956 # to unsupported forces relinking
10957 hardcode_minus_L_CXX=yes
10958 hardcode_libdir_flag_spec_CXX='-L$libdir'
10959 hardcode_libdir_separator_CXX=
10963 shared_flag='-shared'
10964 if test "$aix_use_runtimelinking" = yes; then
10965 shared_flag="$shared_flag "'${wl}-G'
10969 if test "$host_cpu" = ia64; then
10970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10971 # chokes on -Wl,-G. The following line is correct:
10974 if test "$aix_use_runtimelinking" = yes; then
10975 shared_flag='${wl}-G'
10977 shared_flag='${wl}-bM:SRE'
10982 # It seems that -bexpall does not export symbols beginning with
10983 # underscore (_), so it is better to generate a list of symbols to export.
10984 always_export_symbols_CXX=yes
10985 if test "$aix_use_runtimelinking" = yes; then
10986 # Warning - without using the other runtime loading flags (-brtl),
10987 # -berok will link without error, but may produce a broken library.
10988 allow_undefined_flag_CXX='-berok'
10989 # Determine the default libpath from the value encoded in an empty executable.
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_cxx_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11026 # Check for a 64-bit object if we didn't find anything.
11027 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; }
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037 conftest$ac_exeext conftest.$ac_ext
11038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11040 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11042 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"
11044 if test "$host_cpu" = ia64; then
11045 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11046 allow_undefined_flag_CXX="-z nodefs"
11047 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"
11049 # Determine the default libpath from the value encoded in an empty executable.
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11074 grep -v '^ *+' conftest.er1 >conftest.err
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_cxx_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext &&
11082 $as_test_x conftest$ac_exeext; then
11084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11086 # Check for a 64-bit object if we didn't find anything.
11087 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; }
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097 conftest$ac_exeext conftest.$ac_ext
11098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11101 # Warning - without using the other run time loading flags,
11102 # -berok will link without error, but may produce a broken library.
11103 no_undefined_flag_CXX=' ${wl}-bernotok'
11104 allow_undefined_flag_CXX=' ${wl}-berok'
11105 # Exported symbols can be pulled into shared objects from archives
11106 whole_archive_flag_spec_CXX='$convenience'
11107 archive_cmds_need_lc_CXX=yes
11108 # This is similar to how AIX traditionally builds its shared libraries.
11109 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'
11115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11116 allow_undefined_flag_CXX=unsupported
11117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11118 # support --undefined. This deserves some investigation. FIXME
11119 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126 case $cc_basename in
11128 # FIXME: insert proper C++ library support
11134 cygwin* | mingw* | pw32*)
11135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11136 # as there is no search path for DLLs.
11137 hardcode_libdir_flag_spec_CXX='-L$libdir'
11138 allow_undefined_flag_CXX=unsupported
11139 always_export_symbols_CXX=no
11140 enable_shared_with_static_runtimes_CXX=yes
11142 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11143 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'
11144 # If the export-symbols file already is a .def file (1st line
11145 # is EXPORTS), use it as is; otherwise, prepend...
11146 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11147 cp $export_symbols $output_objdir/$soname.def;
11149 echo EXPORTS > $output_objdir/$soname.def;
11150 cat $export_symbols >> $output_objdir/$soname.def;
11152 $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'
11157 darwin* | rhapsody*)
11159 rhapsody* | darwin1.[012])
11160 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11164 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11166 case ${MACOSX_DEPLOYMENT_TARGET} in
11168 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11171 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11177 archive_cmds_need_lc_CXX=no
11178 hardcode_direct_CXX=no
11179 hardcode_automatic_CXX=yes
11180 hardcode_shlibpath_var_CXX=unsupported
11181 whole_archive_flag_spec_CXX=''
11182 link_all_deplibs_CXX=yes
11184 if test "$GXX" = yes ; then
11185 lt_int_apple_cc_single_mod=no
11186 output_verbose_link_cmd='echo'
11187 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11188 lt_int_apple_cc_single_mod=yes
11190 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11193 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'
11195 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11197 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198 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}'
11200 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}'
11202 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}'
11204 case $cc_basename in
11206 output_verbose_link_cmd='echo'
11207 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'
11208 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11210 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}'
11211 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}'
11221 case $cc_basename in
11223 # FIXME: insert proper C++ library support
11227 # Green Hills C++ Compiler
11228 # FIXME: insert proper C++ library support
11232 # FIXME: insert proper C++ library support
11238 # C++ shared libraries reported to be fairly broken before switch to ELF
11242 archive_cmds_need_lc_CXX=no
11244 freebsd* | dragonfly*)
11245 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11253 hardcode_libdir_separator_CXX=:
11254 export_dynamic_flag_spec_CXX='${wl}-E'
11255 hardcode_direct_CXX=yes
11256 hardcode_minus_L_CXX=yes # Not in the search PATH,
11257 # but as the default
11258 # location of the library.
11260 case $cc_basename in
11262 # FIXME: insert proper C++ library support
11266 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'
11267 # Commands to make compiler produce verbose output that lists
11268 # what "hidden" libraries, object files and flags are used when
11269 # linking a shared library.
11271 # There doesn't appear to be a way to prevent this compiler from
11272 # explicitly linking system object files so we need to strip them
11273 # from the output so that they don't get included in the library
11275 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'
11278 if test "$GXX" = yes; then
11279 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'
11281 # FIXME: insert proper C++ library support
11288 if test $with_gnu_ld = no; then
11289 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11290 hardcode_libdir_separator_CXX=:
11294 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11297 export_dynamic_flag_spec_CXX='${wl}-E'
11303 hardcode_direct_CXX=no
11304 hardcode_shlibpath_var_CXX=no
11307 hardcode_direct_CXX=yes
11308 hardcode_minus_L_CXX=yes # Not in the search PATH,
11309 # but as the default
11310 # location of the library.
11314 case $cc_basename in
11316 # FIXME: insert proper C++ library support
11322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11331 # Commands to make compiler produce verbose output that lists
11332 # what "hidden" libraries, object files and flags are used when
11333 # linking a shared library.
11335 # There doesn't appear to be a way to prevent this compiler from
11336 # explicitly linking system object files so we need to strip them
11337 # from the output so that they don't get included in the library
11339 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'
11342 if test "$GXX" = yes; then
11343 if test $with_gnu_ld = no; then
11346 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11349 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11352 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'
11357 # FIXME: insert proper C++ library support
11364 hardcode_direct_CXX=no
11365 hardcode_shlibpath_var_CXX=no
11366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11367 export_dynamic_flag_spec_CXX='${wl}-E'
11368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11369 # Instead, shared libraries are loaded at an image base (0x10000000 by
11370 # default) and relocated if they conflict, which is a slow very memory
11371 # consuming and fragmenting process. To avoid this, we pick a random,
11372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11374 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'
11375 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'
11378 case $cc_basename in
11381 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'
11383 # Archives containing C++ object files must be created using
11384 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11385 # necessary to make sure instantiated templates are included
11387 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11390 if test "$GXX" = yes; then
11391 if test "$with_gnu_ld" = no; then
11392 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'
11394 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'
11397 link_all_deplibs_CXX=yes
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11401 hardcode_libdir_separator_CXX=:
11403 linux* | k*bsd*-gnu)
11404 case $cc_basename in
11406 # Kuck and Associates, Inc. (KAI) C++ Compiler
11408 # KCC will only create a shared library if the output file
11409 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11410 # to its proper name (with version) after linking.
11411 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'
11412 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'
11413 # Commands to make compiler produce verbose output that lists
11414 # what "hidden" libraries, object files and flags are used when
11415 # linking a shared library.
11417 # There doesn't appear to be a way to prevent this compiler from
11418 # explicitly linking system object files so we need to strip them
11419 # from the output so that they don't get included in the library
11421 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'
11423 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11426 # Archives containing C++ object files must be created using
11427 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11428 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11433 # version 8.0 and above of icpc choke on multiply defined symbols
11434 # if we add $predep_objects and $postdep_objects, however 7.1 and
11435 # earlier do not add the objects themselves.
11436 case `$CC -V 2>&1` in
11438 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11439 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'
11441 *) # Version 8.0 or newer
11444 ia64*) tmp_idyn=' -i_dynamic';;
11446 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11447 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'
11450 archive_cmds_need_lc_CXX=no
11451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11456 # Portland Group C++ compiler
11457 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11458 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'
11460 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462 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'
11466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 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'
11469 runpath_var=LD_RUN_PATH
11470 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11471 hardcode_libdir_separator_CXX=:
11473 # Commands to make compiler produce verbose output that lists
11474 # what "hidden" libraries, object files and flags are used when
11475 # linking a shared library.
11477 # There doesn't appear to be a way to prevent this compiler from
11478 # explicitly linking system object files so we need to strip them
11479 # from the output so that they don't get included in the library
11481 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'
11486 # FIXME: insert proper C++ library support
11490 # FIXME: insert proper C++ library support
11494 case $cc_basename in
11496 # FIXME: insert proper C++ library support
11500 # FIXME: insert proper C++ library support
11505 netbsd* | netbsdelf*-gnu)
11506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11507 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11509 hardcode_libdir_flag_spec_CXX='-R$libdir'
11510 hardcode_direct_CXX=yes
11511 hardcode_shlibpath_var_CXX=no
11513 # Workaround some broken pre-1.5 toolchains
11514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11517 # C++ shared libraries are fairly broken
11521 hardcode_direct_CXX=yes
11522 hardcode_shlibpath_var_CXX=no
11523 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11526 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11527 export_dynamic_flag_spec_CXX='${wl}-E'
11528 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11530 output_verbose_link_cmd='echo'
11533 case $cc_basename in
11535 # Kuck and Associates, Inc. (KAI) C++ Compiler
11537 # KCC will only create a shared library if the output file
11538 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11539 # to its proper name (with version) after linking.
11540 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'
11542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543 hardcode_libdir_separator_CXX=:
11545 # Archives containing C++ object files must be created using
11546 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11547 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11551 # Rational C++ 2.4.1
11552 # FIXME: insert proper C++ library support
11556 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11557 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'
11559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11560 hardcode_libdir_separator_CXX=:
11562 # Commands to make compiler produce verbose output that lists
11563 # what "hidden" libraries, object files and flags are used when
11564 # linking a shared library.
11566 # There doesn't appear to be a way to prevent this compiler from
11567 # explicitly linking system object files so we need to strip them
11568 # from the output so that they don't get included in the library
11570 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'
11573 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575 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'
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11586 # FIXME: insert proper C++ library support
11593 case $cc_basename in
11595 # Kuck and Associates, Inc. (KAI) C++ Compiler
11597 # KCC will only create a shared library if the output file
11598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11599 # to its proper name (with version) after linking.
11600 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11603 hardcode_libdir_separator_CXX=:
11605 # Archives containing C++ object files must be created using
11606 # the KAI C++ compiler.
11607 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11610 # Rational C++ 2.4.1
11611 # FIXME: insert proper C++ library support
11615 allow_undefined_flag_CXX=' -expect_unresolved \*'
11616 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'
11617 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11618 echo "-hidden">> $lib.exp~
11619 $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~
11622 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11623 hardcode_libdir_separator_CXX=:
11625 # Commands to make compiler produce verbose output that lists
11626 # what "hidden" libraries, object files and flags are used when
11627 # linking a shared library.
11629 # There doesn't appear to be a way to prevent this compiler from
11630 # explicitly linking system object files so we need to strip them
11631 # from the output so that they don't get included in the library
11633 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'
11636 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11637 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11638 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'
11640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11641 hardcode_libdir_separator_CXX=:
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11649 # FIXME: insert proper C++ library support
11656 # FIXME: insert proper C++ library support
11660 case $cc_basename in
11663 # FIXME: insert proper C++ library support
11668 # FIXME: insert proper C++ library support
11672 # FIXME: insert proper C++ library support
11678 case $cc_basename in
11680 # Sun C++ 4.2, 5.x and Centerline C++
11681 archive_cmds_need_lc_CXX=yes
11682 no_undefined_flag_CXX=' -zdefs'
11683 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11685 $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'
11687 hardcode_libdir_flag_spec_CXX='-R$libdir'
11688 hardcode_shlibpath_var_CXX=no
11690 solaris2.[0-5] | solaris2.[0-5].*) ;;
11692 # The C++ compiler is used as linker so we must use $wl
11693 # flag to pass the commands to the underlying system
11694 # linker. We must also pass each convience library through
11695 # to the system linker between allextract/defaultextract.
11696 # The C++ compiler will combine linker options so we
11697 # cannot just pass the convience library names through
11699 # Supported since Solaris 2.6 (maybe 2.5.1?)
11700 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'
11703 link_all_deplibs_CXX=yes
11705 output_verbose_link_cmd='echo'
11707 # Archives containing C++ object files must be created using
11708 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11709 # necessary to make sure instantiated templates are included
11711 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11714 # Green Hills C++ Compiler
11715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11717 # The C++ compiler must be used to create the archive.
11718 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11721 # GNU C++ compiler with Solaris linker
11722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11723 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11724 if $CC --version | grep -v '^2\.7' > /dev/null; then
11725 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11726 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11727 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11729 # Commands to make compiler produce verbose output that lists
11730 # what "hidden" libraries, object files and flags are used when
11731 # linking a shared library.
11732 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11734 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11736 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11737 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11738 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11740 # Commands to make compiler produce verbose output that lists
11741 # what "hidden" libraries, object files and flags are used when
11742 # linking a shared library.
11743 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11746 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11752 no_undefined_flag_CXX='${wl}-z,text'
11753 archive_cmds_need_lc_CXX=no
11754 hardcode_shlibpath_var_CXX=no
11755 runpath_var='LD_RUN_PATH'
11757 case $cc_basename in
11759 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11764 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 sysv5* | sco3.2v5* | sco5v6*)
11769 # Note: We can NOT use -z defs as we might desire, because we do not
11770 # link with -lc, and that would cause any symbols used from libc to
11771 # always be unresolved, which means just about no library would
11772 # ever link correctly. If we're not using GNU ld we use -z text
11773 # though, which does catch some bad symbols but isn't as heavy-handed
11775 # For security reasons, it is highly recommended that you always
11776 # use absolute paths for naming shared libraries, and exclude the
11777 # DT_RUNPATH tag from executables and libraries. But doing so
11778 # requires that you compile everything twice, which is a pain.
11779 # So that behaviour is only enabled if SCOABSPATH is set to a
11780 # non-empty value in the environment. Most likely only useful for
11781 # creating official distributions of packages.
11782 # This is a hack until libtool officially supports absolute path
11783 # names for shared libraries.
11784 no_undefined_flag_CXX='${wl}-z,text'
11785 allow_undefined_flag_CXX='${wl}-z,nodefs'
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_shlibpath_var_CXX=no
11788 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11789 hardcode_libdir_separator_CXX=':'
11790 link_all_deplibs_CXX=yes
11791 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11792 runpath_var='LD_RUN_PATH'
11794 case $cc_basename in
11796 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11806 case $cc_basename in
11808 # NonStop-UX NCC 3.20
11809 # FIXME: insert proper C++ library support
11813 # FIXME: insert proper C++ library support
11819 # FIXME: insert proper C++ library support
11823 # FIXME: insert proper C++ library support
11827 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11828 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11829 test "$ld_shlibs_CXX" = no && can_build_shared=no
11835 cat > conftest.$ac_ext <<EOF
11839 Foo (void) { a = 0; }
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846 (eval $ac_compile) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; then
11850 # Parse the compiler output and extract the necessary
11851 # objects, libraries and library flags.
11853 # Sentinel used to keep track of whether or not we are before
11854 # the conftest object file.
11855 pre_test_object_deps_done=no
11857 # The `*' in the case matches for architectures that use `case' in
11858 # $output_verbose_cmd can trigger glob expansion during the loop
11859 # eval without this substitution.
11860 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11862 for p in `eval $output_verbose_link_cmd`; do
11866 # Some compilers place space between "-{L,R}" and the path.
11867 # Remove the space.
11868 if test $p = "-L" \
11869 || test $p = "-R"; then
11876 if test "$pre_test_object_deps_done" = no; then
11879 # Internal compiler library paths should come after those
11880 # provided the user. The postdeps already come after the
11881 # user supplied libs so there is no need to process them.
11882 if test -z "$compiler_lib_search_path_CXX"; then
11883 compiler_lib_search_path_CXX="${prev}${p}"
11885 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11888 # The "-l" case would never come before the object being
11889 # linked, so don't bother handling this case.
11892 if test -z "$postdeps_CXX"; then
11893 postdeps_CXX="${prev}${p}"
11895 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11901 # This assumes that the test object file only shows up
11902 # once in the compiler output.
11903 if test "$p" = "conftest.$objext"; then
11904 pre_test_object_deps_done=yes
11908 if test "$pre_test_object_deps_done" = no; then
11909 if test -z "$predep_objects_CXX"; then
11910 predep_objects_CXX="$p"
11912 predep_objects_CXX="$predep_objects_CXX $p"
11915 if test -z "$postdep_objects_CXX"; then
11916 postdep_objects_CXX="$p"
11918 postdep_objects_CXX="$postdep_objects_CXX $p"
11923 *) ;; # Ignore the rest.
11931 echo "libtool.m4: error: problem compiling CXX test program"
11934 $rm -f confest.$objext
11936 # PORTME: override above test on systems where it is broken
11939 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11940 # hack all around it, let's just trust "g++" to DTRT.
11941 predep_objects_CXX=
11942 postdep_objects_CXX=
11947 case $cc_basename in
11949 # Adding this requires a known-good setup of shared libraries for
11950 # Sun compiler versions before 5.6, else PIC objects from an old
11951 # archive will be linked into the output, leading to subtle bugs.
11952 postdeps_CXX='-lCstd -lCrun'
11959 case " $postdeps_CXX " in
11960 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11963 lt_prog_compiler_wl_CXX=
11964 lt_prog_compiler_pic_CXX=
11965 lt_prog_compiler_static_CXX=
11967 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11970 # C++ specific cases for pic, static, wl, etc.
11971 if test "$GXX" = yes; then
11972 lt_prog_compiler_wl_CXX='-Wl,'
11973 lt_prog_compiler_static_CXX='-static'
11977 # All AIX code is PIC.
11978 if test "$host_cpu" = ia64; then
11979 # AIX 5 now supports IA64 processor
11980 lt_prog_compiler_static_CXX='-Bstatic'
11984 # FIXME: we need at least 68020 code to build shared libraries, but
11985 # adding the `-m68020' flag to GCC prevents building anything better,
11987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11990 # PIC is the default for these OSes.
11992 mingw* | os2* | pw32*)
11993 # This hack is so that the source file can tell whether it is being
11994 # built for inclusion in a dll (and should export symbols for example).
11995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11997 darwin* | rhapsody*)
11998 # PIC is the default on this platform
11999 # Common symbols not allowed in MH_DYLIB files
12000 lt_prog_compiler_pic_CXX='-fno-common'
12003 # DJGPP does not support shared libraries at all
12004 lt_prog_compiler_pic_CXX=
12007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12008 # Instead, we relocate shared libraries at runtime.
12011 if test -d /usr/nec; then
12012 lt_prog_compiler_pic_CXX=-Kconform_pic
12016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12017 # not for PA HP-UX.
12022 lt_prog_compiler_pic_CXX='-fPIC'
12027 lt_prog_compiler_pic_CXX='-fPIC'
12033 # All AIX code is PIC.
12034 if test "$host_cpu" = ia64; then
12035 # AIX 5 now supports IA64 processor
12036 lt_prog_compiler_static_CXX='-Bstatic'
12038 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12042 case $cc_basename in
12044 # Green Hills C++ Compiler
12045 # _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"
12050 # PIC is the default on this platform
12051 # Common symbols not allowed in MH_DYLIB files
12052 case $cc_basename in
12054 lt_prog_compiler_pic_CXX='-qnocommon'
12055 lt_prog_compiler_wl_CXX='-Wl,'
12060 case $cc_basename in
12062 lt_prog_compiler_pic_CXX='-KPIC'
12065 # Green Hills C++ Compiler
12066 lt_prog_compiler_pic_CXX='-pic'
12072 freebsd* | dragonfly*)
12073 # FreeBSD uses GNU C++
12075 hpux9* | hpux10* | hpux11*)
12076 case $cc_basename in
12078 lt_prog_compiler_wl_CXX='-Wl,'
12079 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12080 if test "$host_cpu" != ia64; then
12081 lt_prog_compiler_pic_CXX='+Z'
12085 lt_prog_compiler_wl_CXX='-Wl,'
12086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12092 lt_prog_compiler_pic_CXX='+Z'
12101 # This is c89, which is MS Visual C++ (no shared libs)
12102 # Anyone wants to do a port?
12104 irix5* | irix6* | nonstopux*)
12105 case $cc_basename in
12107 lt_prog_compiler_wl_CXX='-Wl,'
12108 lt_prog_compiler_static_CXX='-non_shared'
12109 # CC pic flag -KPIC is the default.
12115 linux* | k*bsd*-gnu)
12116 case $cc_basename in
12119 lt_prog_compiler_wl_CXX='--backend -Wl,'
12120 lt_prog_compiler_pic_CXX='-fPIC'
12124 lt_prog_compiler_wl_CXX='-Wl,'
12125 lt_prog_compiler_pic_CXX='-KPIC'
12126 lt_prog_compiler_static_CXX='-static'
12129 # Portland Group C++ compiler.
12130 lt_prog_compiler_wl_CXX='-Wl,'
12131 lt_prog_compiler_pic_CXX='-fpic'
12132 lt_prog_compiler_static_CXX='-Bstatic'
12136 # Make sure the PIC flag is empty. It appears that all Alpha
12137 # Linux and Compaq Tru64 Unix objects are PIC.
12138 lt_prog_compiler_pic_CXX=
12139 lt_prog_compiler_static_CXX='-non_shared'
12150 case $cc_basename in
12152 lt_prog_compiler_pic_CXX='-W c,exportall'
12158 netbsd* | netbsdelf*-gnu)
12160 osf3* | osf4* | osf5*)
12161 case $cc_basename in
12163 lt_prog_compiler_wl_CXX='--backend -Wl,'
12166 # Rational C++ 2.4.1
12167 lt_prog_compiler_pic_CXX='-pic'
12170 # Digital/Compaq C++
12171 lt_prog_compiler_wl_CXX='-Wl,'
12172 # Make sure the PIC flag is empty. It appears that all Alpha
12173 # Linux and Compaq Tru64 Unix objects are PIC.
12174 lt_prog_compiler_pic_CXX=
12175 lt_prog_compiler_static_CXX='-non_shared'
12184 case $cc_basename in
12186 # Sun C++ 4.2, 5.x and Centerline C++
12187 lt_prog_compiler_pic_CXX='-KPIC'
12188 lt_prog_compiler_static_CXX='-Bstatic'
12189 lt_prog_compiler_wl_CXX='-Qoption ld '
12192 # Green Hills C++ Compiler
12193 lt_prog_compiler_pic_CXX='-PIC'
12200 case $cc_basename in
12203 lt_prog_compiler_pic_CXX='-pic'
12204 lt_prog_compiler_static_CXX='-Bstatic'
12208 lt_prog_compiler_pic_CXX='-pic'
12215 case $cc_basename in
12217 # NonStop-UX NCC 3.20
12218 lt_prog_compiler_pic_CXX='-KPIC'
12224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12225 case $cc_basename in
12227 lt_prog_compiler_wl_CXX='-Wl,'
12228 lt_prog_compiler_pic_CXX='-KPIC'
12229 lt_prog_compiler_static_CXX='-Bstatic'
12236 lt_prog_compiler_can_build_shared_CXX=no
12241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12242 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12245 # Check to make sure the PIC flag actually works.
12247 if test -n "$lt_prog_compiler_pic_CXX"; then
12249 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12251 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 lt_prog_compiler_pic_works_CXX=no
12255 ac_outfile=conftest.$ac_objext
12256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12257 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12258 # Insert the option either (1) after the last *FLAGS variable, or
12259 # (2) before a word containing "conftest.", or (3) at the end.
12260 # Note that $ac_compile itself does not contain backslashes and begins
12261 # with a dollar sign (not a hyphen), so the echo should work correctly.
12262 # The option is referenced via a variable to avoid confusing sed.
12263 lt_compile=`echo "$ac_compile" | $SED \
12264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12266 -e 's:$: $lt_compiler_flag:'`
12267 (eval echo "\"\$as_me:12267: $lt_compile\"" >&5)
12268 (eval "$lt_compile" 2>conftest.err)
12270 cat conftest.err >&5
12271 echo "$as_me:12271: \$? = $ac_status" >&5
12272 if (exit $ac_status) && test -s "$ac_outfile"; then
12273 # The compiler can only warn and ignore the option if not recognized
12274 # So say no if there are warnings other than the usual output.
12275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12278 lt_prog_compiler_pic_works_CXX=yes
12284 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12285 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12287 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12288 case $lt_prog_compiler_pic_CXX in
12290 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12293 lt_prog_compiler_pic_CXX=
12294 lt_prog_compiler_can_build_shared_CXX=no
12299 # For platforms which do not support PIC, -DPIC is meaningless:
12301 lt_prog_compiler_pic_CXX=
12304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12309 # Check to make sure the static flag actually works.
12311 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12312 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12313 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12314 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 lt_prog_compiler_static_works_CXX=no
12318 save_LDFLAGS="$LDFLAGS"
12319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12320 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12322 # The linker can only warn and ignore the option if not recognized
12323 # So say no if there are warnings
12324 if test -s conftest.err; then
12325 # Append any errors to the config.log.
12326 cat conftest.err 1>&5
12327 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329 if diff conftest.exp conftest.er2 >/dev/null; then
12330 lt_prog_compiler_static_works_CXX=yes
12333 lt_prog_compiler_static_works_CXX=yes
12337 LDFLAGS="$save_LDFLAGS"
12340 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12341 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12343 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12346 lt_prog_compiler_static_CXX=
12350 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12351 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12352 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 lt_cv_prog_compiler_c_o_CXX=no
12356 $rm -r conftest 2>/dev/null
12360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12362 lt_compiler_flag="-o out/conftest2.$ac_objext"
12363 # Insert the option either (1) after the last *FLAGS variable, or
12364 # (2) before a word containing "conftest.", or (3) at the end.
12365 # Note that $ac_compile itself does not contain backslashes and begins
12366 # with a dollar sign (not a hyphen), so the echo should work correctly.
12367 lt_compile=`echo "$ac_compile" | $SED \
12368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12370 -e 's:$: $lt_compiler_flag:'`
12371 (eval echo "\"\$as_me:12371: $lt_compile\"" >&5)
12372 (eval "$lt_compile" 2>out/conftest.err)
12374 cat out/conftest.err >&5
12375 echo "$as_me:12375: \$? = $ac_status" >&5
12376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12378 # The compiler can only warn and ignore the option if not recognized
12379 # So say no if there are warnings
12380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12383 lt_cv_prog_compiler_c_o_CXX=yes
12388 # SGI C++ compiler will create directory out/ii_files/ for
12389 # template instantiation
12390 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12391 $rm out/* && rmdir out
12397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12398 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12401 hard_links="nottested"
12402 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12403 # do not overwrite the value of need_locks provided by the user
12404 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12405 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12410 ln conftest.a conftest.b 2>&5 || hard_links=no
12411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12412 { echo "$as_me:$LINENO: result: $hard_links" >&5
12413 echo "${ECHO_T}$hard_links" >&6; }
12414 if test "$hard_links" = no; then
12415 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12423 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12424 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12429 # If we're using GNU nm, then we don't want the "-C" option.
12430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12431 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12432 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'
12434 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'
12438 export_symbols_cmds_CXX="$ltdll_cmds"
12441 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'
12443 linux* | k*bsd*-gnu)
12444 link_all_deplibs_CXX=no
12447 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12451 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12452 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12453 test "$ld_shlibs_CXX" = no && can_build_shared=no
12456 # Do we need to explicitly link libc?
12458 case "x$archive_cmds_need_lc_CXX" in
12460 # Assume -lc should be added
12461 archive_cmds_need_lc_CXX=yes
12463 if test "$enable_shared" = yes && test "$GCC" = yes; then
12464 case $archive_cmds_CXX in
12466 # FIXME: we may have to deal with multi-command sequences.
12469 # Test whether the compiler implicitly links with -lc since on some
12470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12471 # to ld, don't add -lc before -lgcc.
12472 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12473 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } 2>conftest.err; then
12484 libobjs=conftest.$ac_objext
12486 wl=$lt_prog_compiler_wl_CXX
12487 pic_flag=$lt_prog_compiler_pic_CXX
12493 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12494 allow_undefined_flag_CXX=
12495 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12496 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }
12501 archive_cmds_need_lc_CXX=no
12503 archive_cmds_need_lc_CXX=yes
12505 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12507 cat conftest.err 1>&5
12510 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12511 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12518 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12519 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12520 library_names_spec=
12521 libname_spec='lib$name'
12525 postuninstall_cmds=
12529 shlibpath_overrides_runpath=unknown
12531 dynamic_linker="$host_os ld.so"
12532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12533 if test "$GCC" = yes; then
12534 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12535 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12536 # if the path contains ";" then we assume it to be the separator
12537 # otherwise default to the standard path separator (i.e. ":") - it is
12538 # assumed that no part of a normal pathname contains ";" but that should
12539 # okay in the real world where ";" in dirpaths is itself problematic.
12540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12547 need_lib_prefix=unknown
12548 hardcode_into_libs=no
12550 # when you set need_version to no, make sure it does not cause -set_version
12551 # flags to be left without arguments
12552 need_version=unknown
12557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12558 shlibpath_var=LIBPATH
12560 # AIX 3 has no versioning support, so we append a major version to the name.
12561 soname_spec='${libname}${release}${shared_ext}$major'
12568 hardcode_into_libs=yes
12569 if test "$host_cpu" = ia64; then
12570 # AIX 5 supports IA64
12571 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12572 shlibpath_var=LD_LIBRARY_PATH
12574 # With GCC up to 2.95.x, collect2 would create an import file
12575 # for dependence libraries. The import file would start with
12576 # the line `#! .'. This would cause the generated library to
12577 # depend on `.', always an invalid library. This was fixed in
12578 # development snapshots of GCC prior to 3.0.
12580 aix4 | aix4.[01] | aix4.[01].*)
12581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12583 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12586 can_build_shared=no
12590 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12591 # soname into executable. Probably we can add versioning support to
12592 # collect2, so additional links can be useful in future.
12593 if test "$aix_use_runtimelinking" = yes; then
12594 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12595 # instead of lib<name>.a to let people know that these are not
12596 # typical AIX shared libraries.
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599 # We preserve .a as extension for shared libraries through AIX4.2
12600 # and later when we are not doing run time linking.
12601 library_names_spec='${libname}${release}.a $libname.a'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12604 shlibpath_var=LIBPATH
12609 library_names_spec='$libname.ixlibrary $libname.a'
12610 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12611 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'
12615 library_names_spec='${libname}${shared_ext}'
12616 dynamic_linker="$host_os ld.so"
12617 shlibpath_var=LIBRARY_PATH
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12625 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12628 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12629 # the default ld.so.conf also contains /usr/contrib/lib and
12630 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12631 # libtool to hard-code these into programs
12634 cygwin* | mingw* | pw32*)
12635 version_type=windows
12640 case $GCC,$host_os in
12641 yes,cygwin* | yes,mingw* | yes,pw32*)
12642 library_names_spec='$libname.dll.a'
12643 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12644 postinstall_cmds='base_file=`basename \${file}`~
12645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12646 dldir=$destdir/`dirname \$dlpath`~
12647 test -d \$dldir || mkdir -p \$dldir~
12648 $install_prog $dir/$dlname \$dldir/$dlname~
12649 chmod a+x \$dldir/$dlname'
12650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12651 dlpath=$dir/\$dldll~
12653 shlibpath_overrides_runpath=yes
12657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12662 # MinGW DLLs use traditional 'lib' prefix
12663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12665 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12666 # It is most probably a Windows format PATH printed by
12667 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12668 # path with ; separators, and with drive letters. We can handle the
12669 # drive letters (cygwin fileutils understands them), so leave them,
12670 # especially as we might pass files found there to a mingw objdump,
12671 # which wouldn't understand a cygwinified path. Ahh.
12672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12678 # pw32 DLLs use 'pw' prefix rather than 'lib'
12679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12688 dynamic_linker='Win32 ld.exe'
12689 # FIXME: first we should search . and the directory the executable is in
12693 darwin* | rhapsody*)
12694 dynamic_linker="$host_os dyld"
12695 version_type=darwin
12698 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12699 soname_spec='${libname}${release}${major}$shared_ext'
12700 shlibpath_overrides_runpath=yes
12701 shlibpath_var=DYLD_LIBRARY_PATH
12702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12703 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12704 if test "$GCC" = yes; then
12705 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"`
12707 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12718 shlibpath_var=LD_LIBRARY_PATH
12725 freebsd* | dragonfly*)
12726 # DragonFly does not have aout. When/if they implement a new
12727 # versioning mechanism, adjust this.
12728 if test -x /usr/bin/objformat; then
12729 objformat=`/usr/bin/objformat`
12732 freebsd[123]*) objformat=aout ;;
12733 *) objformat=elf ;;
12736 version_type=freebsd-$objformat
12737 case $version_type in
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12748 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12753 freebsd3.[01]* | freebsdelf3.[01]*)
12754 shlibpath_overrides_runpath=yes
12755 hardcode_into_libs=yes
12757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12759 shlibpath_overrides_runpath=no
12760 hardcode_into_libs=yes
12762 freebsd*) # from 4.6 on
12763 shlibpath_overrides_runpath=yes
12764 hardcode_into_libs=yes
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 hardcode_into_libs=yes
12779 hpux9* | hpux10* | hpux11*)
12780 # Give a soname corresponding to the major version so that dld.sl refuses to
12781 # link against other versions.
12788 hardcode_into_libs=yes
12789 dynamic_linker="$host_os dld.so"
12790 shlibpath_var=LD_LIBRARY_PATH
12791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 if test "X$HPUX_IA64_MODE" = X32; then
12795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12803 hardcode_into_libs=yes
12804 dynamic_linker="$host_os dld.sl"
12805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12814 dynamic_linker="$host_os dld.sl"
12815 shlibpath_var=SHLIB_PATH
12816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 soname_spec='${libname}${release}${shared_ext}$major'
12821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12822 postinstall_cmds='chmod 555 $lib'
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=no
12834 hardcode_into_libs=yes
12837 irix5* | irix6* | nonstopux*)
12839 nonstopux*) version_type=nonstopux ;;
12841 if test "$lt_cv_prog_gnu_ld" = yes; then
12849 soname_spec='${libname}${release}${shared_ext}$major'
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12852 irix5* | nonstopux*)
12853 libsuff= shlibsuff=
12856 case $LD in # libtool.m4 will add one of these switches to LD
12857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12858 libsuff= shlibsuff= libmagic=32-bit;;
12859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12860 libsuff=32 shlibsuff=N32 libmagic=N32;;
12861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12863 *) libsuff= shlibsuff= libmagic=never-match;;
12867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12868 shlibpath_overrides_runpath=no
12869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12871 hardcode_into_libs=yes
12874 # No shared lib support for Linux oldld, aout, or coff.
12875 linux*oldld* | linux*aout* | linux*coff*)
12879 # This must be Linux ELF.
12880 linux* | k*bsd*-gnu)
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 shlibpath_overrides_runpath=no
12889 # This implies no fast_install, which is unacceptable.
12890 # Some rework will be needed to allow for fast_install
12891 # before this can be enabled.
12892 hardcode_into_libs=yes
12894 # Append ld.so.conf contents to the search path
12895 if test -f /etc/ld.so.conf; then
12896 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' ' '`
12897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12900 # We used to test for /lib/ld.so.1 and disable shared libraries on
12901 # powerpc, because MkLinux only supported shared libraries with the
12902 # GNU dynamic linker. Since this was broken with cross compilers,
12903 # most powerpc-linux boxes support dynamic linking these days and
12904 # people can always --disable-shared, the test was removed, and we
12905 # assume the GNU/Linux dynamic linker is in use.
12906 dynamic_linker='GNU/Linux ld.so'
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914 soname_spec='${libname}${release}${shared_ext}$major'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 dynamic_linker='NetBSD ld.elf_so'
12925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12928 dynamic_linker='NetBSD (a.out) ld.so'
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 dynamic_linker='NetBSD ld.elf_so'
12934 shlibpath_var=LD_LIBRARY_PATH
12935 shlibpath_overrides_runpath=yes
12936 hardcode_into_libs=yes
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=yes
12950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951 soname_spec='${libname}${release}${shared_ext}$major'
12952 shlibpath_var=LD_LIBRARY_PATH
12953 shlibpath_overrides_runpath=yes
12958 sys_lib_dlsearch_path_spec="/usr/lib"
12960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12963 *) need_version=no ;;
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970 openbsd2.[89] | openbsd2.[89].*)
12971 shlibpath_overrides_runpath=no
12974 shlibpath_overrides_runpath=yes
12978 shlibpath_overrides_runpath=yes
12983 libname_spec='$name'
12986 library_names_spec='$libname${shared_ext} $libname.a'
12987 dynamic_linker='OS/2 ld.exe'
12988 shlibpath_var=LIBPATH
12991 osf3* | osf4* | osf5*)
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=yes
13010 hardcode_into_libs=yes
13011 # ldd complains unless libraries are executable
13012 postinstall_cmds='chmod +x $lib'
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 if test "$with_gnu_ld" = yes; then
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 case $host_vendor in
13034 shlibpath_overrides_runpath=no
13036 export_dynamic_flag_spec='${wl}-Blargedynsym'
13037 runpath_var=LD_RUN_PATH
13045 shlibpath_overrides_runpath=no
13046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13052 if test -d /usr/nec ;then
13054 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13055 soname_spec='$libname${shared_ext}.$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13061 version_type=freebsd-elf
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 hardcode_into_libs=yes
13068 if test "$with_gnu_ld" = yes; then
13069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13070 shlibpath_overrides_runpath=no
13072 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13073 shlibpath_overrides_runpath=yes
13076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13080 sys_lib_dlsearch_path_spec='/usr/lib'
13085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 shlibpath_var=LD_LIBRARY_PATH
13094 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13095 echo "${ECHO_T}$dynamic_linker" >&6; }
13096 test "$dynamic_linker" = no && can_build_shared=no
13098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099 if test "$GCC" = yes; then
13100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13103 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13104 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13105 hardcode_action_CXX=
13106 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13107 test -n "$runpath_var_CXX" || \
13108 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13110 # We can hardcode non-existant directories.
13111 if test "$hardcode_direct_CXX" != no &&
13112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13113 # have to relink, otherwise we might link with an installed library
13114 # when we should be linking with a yet-to-be-installed one
13115 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13116 test "$hardcode_minus_L_CXX" != no; then
13117 # Linking always hardcodes the temporary library directory.
13118 hardcode_action_CXX=relink
13120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13121 hardcode_action_CXX=immediate
13124 # We cannot hardcode anything, or else we can only hardcode existing
13126 hardcode_action_CXX=unsupported
13128 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13129 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13131 if test "$hardcode_action_CXX" = relink; then
13132 # Fast installation is not supported
13133 enable_fast_install=no
13134 elif test "$shlibpath_overrides_runpath" = yes ||
13135 test "$enable_shared" = no; then
13136 # Fast installation is not necessary
13137 enable_fast_install=needless
13141 # The else clause should only fire when bootstrapping the
13142 # libtool distribution, otherwise you forgot to ship ltmain.sh
13143 # with your package, and you will get complaints that there are
13144 # no rules to generate ltmain.sh.
13145 if test -f "$ltmain"; then
13146 # See if we are running on zsh, and set the options which allow our commands through
13147 # without removal of \ escapes.
13148 if test -n "${ZSH_VERSION+set}" ; then
13149 setopt NO_GLOB_SUBST
13151 # Now quote all the things that may contain metacharacters while being
13152 # careful not to overquote the AC_SUBSTed values. We take copies of the
13153 # variables and quote the copies for generation of the libtool script.
13154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13158 deplibs_check_method reload_flag reload_cmds need_locks \
13159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13160 lt_cv_sys_global_symbol_to_c_name_address \
13161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13162 old_postinstall_cmds old_postuninstall_cmds \
13166 lt_prog_compiler_wl_CXX \
13167 lt_prog_compiler_pic_CXX \
13168 lt_prog_compiler_static_CXX \
13169 lt_prog_compiler_no_builtin_flag_CXX \
13170 export_dynamic_flag_spec_CXX \
13171 thread_safe_flag_spec_CXX \
13172 whole_archive_flag_spec_CXX \
13173 enable_shared_with_static_runtimes_CXX \
13174 old_archive_cmds_CXX \
13175 old_archive_from_new_cmds_CXX \
13176 predep_objects_CXX \
13177 postdep_objects_CXX \
13180 compiler_lib_search_path_CXX \
13182 archive_expsym_cmds_CXX \
13183 postinstall_cmds_CXX \
13184 postuninstall_cmds_CXX \
13185 old_archive_from_expsyms_cmds_CXX \
13186 allow_undefined_flag_CXX \
13187 no_undefined_flag_CXX \
13188 export_symbols_cmds_CXX \
13189 hardcode_libdir_flag_spec_CXX \
13190 hardcode_libdir_flag_spec_ld_CXX \
13191 hardcode_libdir_separator_CXX \
13192 hardcode_automatic_CXX \
13194 module_expsym_cmds_CXX \
13195 lt_cv_prog_compiler_c_o_CXX \
13196 exclude_expsyms_CXX \
13197 include_expsyms_CXX; do
13200 old_archive_cmds_CXX | \
13201 old_archive_from_new_cmds_CXX | \
13202 archive_cmds_CXX | \
13203 archive_expsym_cmds_CXX | \
13204 module_cmds_CXX | \
13205 module_expsym_cmds_CXX | \
13206 old_archive_from_expsyms_cmds_CXX | \
13207 export_symbols_cmds_CXX | \
13208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13209 postinstall_cmds | postuninstall_cmds | \
13210 old_postinstall_cmds | old_postuninstall_cmds | \
13211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13212 # Double-quote double-evaled strings.
13213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13222 *'\$0 --fallback-echo"')
13223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13229 cat <<__EOF__ >> "$cfgfile"
13230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13234 # Shell to use when invoking shell scripts.
13237 # Whether or not to build shared libraries.
13238 build_libtool_libs=$enable_shared
13240 # Whether or not to build static libraries.
13241 build_old_libs=$enable_static
13243 # Whether or not to add -lc for building shared libraries.
13244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13246 # Whether or not to disallow shared libs when runtime libs are static
13247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13249 # Whether or not to optimize for fast installation.
13250 fast_install=$enable_fast_install
13253 host_alias=$host_alias
13257 # The build system.
13258 build_alias=$build_alias
13262 # An echo program that does not interpret backslashes.
13267 AR_FLAGS=$lt_AR_FLAGS
13272 # LTCC compiler flags.
13273 LTCFLAGS=$lt_LTCFLAGS
13275 # A language-specific compiler.
13276 CC=$lt_compiler_CXX
13278 # Is the compiler the GNU C compiler?
13284 # The linker used to build libraries.
13287 # Whether we need hard or soft links.
13290 # A BSD-compatible nm program.
13293 # A symbol stripping program
13296 # Used to examine libraries when file_magic_cmd begins "file"
13297 MAGIC_CMD=$MAGIC_CMD
13299 # Used on cygwin: DLL creation program.
13302 # Used on cygwin: object dumper.
13305 # Used on cygwin: assembler.
13308 # The name of the directory that contains temporary libtool files.
13311 # How to create reloadable object files.
13312 reload_flag=$lt_reload_flag
13313 reload_cmds=$lt_reload_cmds
13315 # How to pass a linker flag through the compiler.
13316 wl=$lt_lt_prog_compiler_wl_CXX
13318 # Object file suffix (normally "o").
13319 objext="$ac_objext"
13321 # Old archive suffix (normally "a").
13324 # Shared library suffix (normally ".so").
13325 shrext_cmds='$shrext_cmds'
13327 # Executable file suffix (normally "").
13330 # Additional compiler flags for building library objects.
13331 pic_flag=$lt_lt_prog_compiler_pic_CXX
13334 # What is the maximum length of a command?
13335 max_cmd_len=$lt_cv_sys_max_cmd_len
13337 # Does compiler simultaneously support -c and -o options?
13338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13340 # Must we lock files when doing compilation?
13341 need_locks=$lt_need_locks
13343 # Do we need the lib prefix for modules?
13344 need_lib_prefix=$need_lib_prefix
13346 # Do we need a version for libraries?
13347 need_version=$need_version
13349 # Whether dlopen is supported.
13350 dlopen_support=$enable_dlopen
13352 # Whether dlopen of programs is supported.
13353 dlopen_self=$enable_dlopen_self
13355 # Whether dlopen of statically linked programs is supported.
13356 dlopen_self_static=$enable_dlopen_self_static
13358 # Compiler flag to prevent dynamic linking.
13359 link_static_flag=$lt_lt_prog_compiler_static_CXX
13361 # Compiler flag to turn off builtin functions.
13362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13364 # Compiler flag to allow reflexive dlopens.
13365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13367 # Compiler flag to generate shared objects directly from archives.
13368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13370 # Compiler flag to generate thread-safe objects.
13371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13373 # Library versioning type.
13374 version_type=$version_type
13376 # Format of library name prefix.
13377 libname_spec=$lt_libname_spec
13379 # List of archive names. First name is the real one, the rest are links.
13380 # The last name is the one that the linker finds with -lNAME.
13381 library_names_spec=$lt_library_names_spec
13383 # The coded name of the library, if different from the real name.
13384 soname_spec=$lt_soname_spec
13386 # Commands used to build and install an old-style archive.
13388 old_archive_cmds=$lt_old_archive_cmds_CXX
13389 old_postinstall_cmds=$lt_old_postinstall_cmds
13390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13392 # Create an old-style archive from a shared archive.
13393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13395 # Create a temporary old-style archive to link instead of a shared archive.
13396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13398 # Commands used to build and install a shared archive.
13399 archive_cmds=$lt_archive_cmds_CXX
13400 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13401 postinstall_cmds=$lt_postinstall_cmds
13402 postuninstall_cmds=$lt_postuninstall_cmds
13404 # Commands used to build a loadable module (assumed same as above if empty)
13405 module_cmds=$lt_module_cmds_CXX
13406 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13408 # Commands to strip libraries.
13409 old_striplib=$lt_old_striplib
13410 striplib=$lt_striplib
13412 # Dependencies to place before the objects being linked to create a
13414 predep_objects=$lt_predep_objects_CXX
13416 # Dependencies to place after the objects being linked to create a
13418 postdep_objects=$lt_postdep_objects_CXX
13420 # Dependencies to place before the objects being linked to create a
13422 predeps=$lt_predeps_CXX
13424 # Dependencies to place after the objects being linked to create a
13426 postdeps=$lt_postdeps_CXX
13428 # The library search path used internally by the compiler when linking
13429 # a shared library.
13430 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13432 # Method to check whether dependent libraries are shared objects.
13433 deplibs_check_method=$lt_deplibs_check_method
13435 # Command to use when deplibs_check_method == file_magic.
13436 file_magic_cmd=$lt_file_magic_cmd
13438 # Flag that allows shared libraries with undefined symbols to be built.
13439 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13441 # Flag that forces no undefined symbols.
13442 no_undefined_flag=$lt_no_undefined_flag_CXX
13444 # Commands used to finish a libtool library installation in a directory.
13445 finish_cmds=$lt_finish_cmds
13447 # Same as above, but a single script fragment to be evaled but not shown.
13448 finish_eval=$lt_finish_eval
13450 # Take the output of nm and produce a listing of raw symbols and C names.
13451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13453 # Transform the output of nm in a proper C declaration
13454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13456 # Transform the output of nm in a C name address pair
13457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13459 # This is the shared library runtime path variable.
13460 runpath_var=$runpath_var
13462 # This is the shared library path variable.
13463 shlibpath_var=$shlibpath_var
13465 # Is shlibpath searched before the hard-coded library search path?
13466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13468 # How to hardcode a shared library path into an executable.
13469 hardcode_action=$hardcode_action_CXX
13471 # Whether we should hardcode library paths into libraries.
13472 hardcode_into_libs=$hardcode_into_libs
13474 # Flag to hardcode \$libdir into a binary during linking.
13475 # This must work even if \$libdir does not exist.
13476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13478 # If ld is used when linking, flag to hardcode \$libdir into
13479 # a binary during linking. This must work even if \$libdir does
13481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13483 # Whether we need a single -rpath flag with a separated argument.
13484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13487 # resulting binary.
13488 hardcode_direct=$hardcode_direct_CXX
13490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13491 # resulting binary.
13492 hardcode_minus_L=$hardcode_minus_L_CXX
13494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13495 # the resulting binary.
13496 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13498 # Set to yes if building a shared library automatically hardcodes DIR into the library
13499 # and all subsequent libraries and executables linked against it.
13500 hardcode_automatic=$hardcode_automatic_CXX
13502 # Variables whose values should be saved in libtool wrapper scripts and
13503 # restored at relink time.
13504 variables_saved_for_relink="$variables_saved_for_relink"
13506 # Whether libtool must link a program against all its dependency libraries.
13507 link_all_deplibs=$link_all_deplibs_CXX
13509 # Compile-time system search path for libraries
13510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13512 # Run-time system search path for libraries
13513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13515 # Fix the shell variable \$srcfile for the compiler.
13516 fix_srcfile_path="$fix_srcfile_path_CXX"
13518 # Set to yes if exported symbols are required.
13519 always_export_symbols=$always_export_symbols_CXX
13521 # The commands to list exported symbols.
13522 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13524 # The commands to extract the exported symbol list from a shared archive.
13525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13527 # Symbols that should not be listed in the preloaded symbols.
13528 exclude_expsyms=$lt_exclude_expsyms_CXX
13530 # Symbols that must always be exported.
13531 include_expsyms=$lt_include_expsyms_CXX
13533 # ### END LIBTOOL TAG CONFIG: $tagname
13539 # If there is no Makefile yet, we rely on a make rule to execute
13540 # `config.status --recheck' to rerun these tests and create the
13541 # libtool script then.
13542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13543 if test -f "$ltmain_in"; then
13544 test -f Makefile && make "$ltmain"
13550 ac_cpp='$CPP $CPPFLAGS'
13551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13559 with_gnu_ldcxx=$with_gnu_ld
13560 with_gnu_ld=$lt_save_with_gnu_ld
13561 lt_cv_path_LDCXX=$lt_cv_path_LD
13562 lt_cv_path_LD=$lt_save_path_LD
13563 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13564 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13572 if test -n "$F77" && test "X$F77" != "Xno"; then
13575 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13576 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13577 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580 archive_cmds_need_lc_F77=no
13581 allow_undefined_flag_F77=
13582 always_export_symbols_F77=no
13583 archive_expsym_cmds_F77=
13584 export_dynamic_flag_spec_F77=
13585 hardcode_direct_F77=no
13586 hardcode_libdir_flag_spec_F77=
13587 hardcode_libdir_flag_spec_ld_F77=
13588 hardcode_libdir_separator_F77=
13589 hardcode_minus_L_F77=no
13590 hardcode_automatic_F77=no
13592 module_expsym_cmds_F77=
13593 link_all_deplibs_F77=unknown
13594 old_archive_cmds_F77=$old_archive_cmds
13595 no_undefined_flag_F77=
13596 whole_archive_flag_spec_F77=
13597 enable_shared_with_static_runtimes_F77=no
13599 # Source file extension for f77 test sources.
13602 # Object file extension for compiled f77 test sources.
13606 # Code to be used in simple compile tests
13607 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13609 # Code to be used in simple link tests
13610 lt_simple_link_test_code=" program t\n end\n"
13612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13614 # If no C compiler was specified, use CC.
13617 # If no C compiler flags were specified, use CFLAGS.
13618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13620 # Allow CC to be a program name with arguments.
13624 # save warnings/boilerplate of simple test code
13625 ac_outfile=conftest.$ac_objext
13626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13628 _lt_compiler_boilerplate=`cat conftest.err`
13631 ac_outfile=conftest.$ac_objext
13632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13634 _lt_linker_boilerplate=`cat conftest.err`
13638 # Allow CC to be a program name with arguments.
13643 for cc_temp in $compiler""; do
13645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13651 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13654 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13656 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13657 echo "${ECHO_T}$can_build_shared" >&6; }
13659 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13661 test "$can_build_shared" = "no" && enable_shared=no
13663 # On AIX, shared libraries and static libraries use the same namespace, and
13664 # are all built from PIC.
13667 test "$enable_shared" = yes && enable_static=no
13668 if test -n "$RANLIB"; then
13669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13670 postinstall_cmds='$RANLIB $lib'
13674 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13675 test "$enable_shared" = yes && enable_static=no
13679 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13680 echo "${ECHO_T}$enable_shared" >&6; }
13682 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13684 # Make sure either enable_shared or enable_static is yes.
13685 test "$enable_shared" = yes || enable_static=yes
13686 { echo "$as_me:$LINENO: result: $enable_static" >&5
13687 echo "${ECHO_T}$enable_static" >&6; }
13692 lt_prog_compiler_wl_F77=
13693 lt_prog_compiler_pic_F77=
13694 lt_prog_compiler_static_F77=
13696 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13699 if test "$GCC" = yes; then
13700 lt_prog_compiler_wl_F77='-Wl,'
13701 lt_prog_compiler_static_F77='-static'
13705 # All AIX code is PIC.
13706 if test "$host_cpu" = ia64; then
13707 # AIX 5 now supports IA64 processor
13708 lt_prog_compiler_static_F77='-Bstatic'
13713 # FIXME: we need at least 68020 code to build shared libraries, but
13714 # adding the `-m68020' flag to GCC prevents building anything better,
13716 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13719 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13720 # PIC is the default for these OSes.
13723 mingw* | pw32* | os2*)
13724 # This hack is so that the source file can tell whether it is being
13725 # built for inclusion in a dll (and should export symbols for example).
13726 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13729 darwin* | rhapsody*)
13730 # PIC is the default on this platform
13731 # Common symbols not allowed in MH_DYLIB files
13732 lt_prog_compiler_pic_F77='-fno-common'
13736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13737 # Instead, we relocate shared libraries at runtime.
13741 # Just because we use GCC doesn't mean we suddenly get shared libraries
13742 # on systems that don't support them.
13743 lt_prog_compiler_can_build_shared_F77=no
13748 if test -d /usr/nec; then
13749 lt_prog_compiler_pic_F77=-Kconform_pic
13754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755 # not for PA HP-UX.
13761 lt_prog_compiler_pic_F77='-fPIC'
13767 lt_prog_compiler_pic_F77='-fPIC'
13771 # PORTME Check for flag to pass linker flags through the system compiler.
13774 lt_prog_compiler_wl_F77='-Wl,'
13775 if test "$host_cpu" = ia64; then
13776 # AIX 5 now supports IA64 processor
13777 lt_prog_compiler_static_F77='-Bstatic'
13779 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13783 # PIC is the default on this platform
13784 # Common symbols not allowed in MH_DYLIB files
13785 case $cc_basename in
13787 lt_prog_compiler_pic_F77='-qnocommon'
13788 lt_prog_compiler_wl_F77='-Wl,'
13793 mingw* | pw32* | os2*)
13794 # This hack is so that the source file can tell whether it is being
13795 # built for inclusion in a dll (and should export symbols for example).
13796 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13799 hpux9* | hpux10* | hpux11*)
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13802 # not for PA HP-UX.
13808 lt_prog_compiler_pic_F77='+Z'
13811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13812 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13815 irix5* | irix6* | nonstopux*)
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 # PIC (with -KPIC) is the default.
13818 lt_prog_compiler_static_F77='-non_shared'
13822 lt_prog_compiler_pic_F77='-KPIC'
13823 lt_prog_compiler_static_F77='-Bstatic'
13826 linux* | k*bsd*-gnu)
13827 case $cc_basename in
13829 lt_prog_compiler_wl_F77='-Wl,'
13830 lt_prog_compiler_pic_F77='-KPIC'
13831 lt_prog_compiler_static_F77='-static'
13833 pgcc* | pgf77* | pgf90* | pgf95*)
13834 # Portland Group compilers (*not* the Pentium gcc compiler,
13835 # which looks to be a dead project)
13836 lt_prog_compiler_wl_F77='-Wl,'
13837 lt_prog_compiler_pic_F77='-fpic'
13838 lt_prog_compiler_static_F77='-Bstatic'
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 # All Alpha code is PIC.
13843 lt_prog_compiler_static_F77='-non_shared'
13848 osf3* | osf4* | osf5*)
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 # All OSF/1 code is PIC.
13851 lt_prog_compiler_static_F77='-non_shared'
13855 lt_prog_compiler_pic_F77='-KPIC'
13856 lt_prog_compiler_static_F77='-Bstatic'
13857 case $cc_basename in
13858 f77* | f90* | f95*)
13859 lt_prog_compiler_wl_F77='-Qoption ld ';;
13861 lt_prog_compiler_wl_F77='-Wl,';;
13866 lt_prog_compiler_wl_F77='-Qoption ld '
13867 lt_prog_compiler_pic_F77='-PIC'
13868 lt_prog_compiler_static_F77='-Bstatic'
13871 sysv4 | sysv4.2uw2* | sysv4.3*)
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 lt_prog_compiler_pic_F77='-KPIC'
13874 lt_prog_compiler_static_F77='-Bstatic'
13878 if test -d /usr/nec ;then
13879 lt_prog_compiler_pic_F77='-Kconform_pic'
13880 lt_prog_compiler_static_F77='-Bstatic'
13884 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13885 lt_prog_compiler_wl_F77='-Wl,'
13886 lt_prog_compiler_pic_F77='-KPIC'
13887 lt_prog_compiler_static_F77='-Bstatic'
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 lt_prog_compiler_can_build_shared_F77=no
13896 lt_prog_compiler_pic_F77='-pic'
13897 lt_prog_compiler_static_F77='-Bstatic'
13901 lt_prog_compiler_can_build_shared_F77=no
13906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13907 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13910 # Check to make sure the PIC flag actually works.
13912 if test -n "$lt_prog_compiler_pic_F77"; then
13914 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13916 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 lt_prog_compiler_pic_works_F77=no
13920 ac_outfile=conftest.$ac_objext
13921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13922 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13923 # Insert the option either (1) after the last *FLAGS variable, or
13924 # (2) before a word containing "conftest.", or (3) at the end.
13925 # Note that $ac_compile itself does not contain backslashes and begins
13926 # with a dollar sign (not a hyphen), so the echo should work correctly.
13927 # The option is referenced via a variable to avoid confusing sed.
13928 lt_compile=`echo "$ac_compile" | $SED \
13929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13931 -e 's:$: $lt_compiler_flag:'`
13932 (eval echo "\"\$as_me:13932: $lt_compile\"" >&5)
13933 (eval "$lt_compile" 2>conftest.err)
13935 cat conftest.err >&5
13936 echo "$as_me:13936: \$? = $ac_status" >&5
13937 if (exit $ac_status) && test -s "$ac_outfile"; then
13938 # The compiler can only warn and ignore the option if not recognized
13939 # So say no if there are warnings other than the usual output.
13940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13943 lt_prog_compiler_pic_works_F77=yes
13949 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13950 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13952 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13953 case $lt_prog_compiler_pic_F77 in
13955 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13958 lt_prog_compiler_pic_F77=
13959 lt_prog_compiler_can_build_shared_F77=no
13964 # For platforms which do not support PIC, -DPIC is meaningless:
13966 lt_prog_compiler_pic_F77=
13969 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13974 # Check to make sure the static flag actually works.
13976 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13977 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13979 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 lt_prog_compiler_static_works_F77=no
13983 save_LDFLAGS="$LDFLAGS"
13984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987 # The linker can only warn and ignore the option if not recognized
13988 # So say no if there are warnings
13989 if test -s conftest.err; then
13990 # Append any errors to the config.log.
13991 cat conftest.err 1>&5
13992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994 if diff conftest.exp conftest.er2 >/dev/null; then
13995 lt_prog_compiler_static_works_F77=yes
13998 lt_prog_compiler_static_works_F77=yes
14002 LDFLAGS="$save_LDFLAGS"
14005 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14006 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14008 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14011 lt_prog_compiler_static_F77=
14015 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14017 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 lt_cv_prog_compiler_c_o_F77=no
14021 $rm -r conftest 2>/dev/null
14025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="-o out/conftest2.$ac_objext"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 lt_compile=`echo "$ac_compile" | $SED \
14033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14035 -e 's:$: $lt_compiler_flag:'`
14036 (eval echo "\"\$as_me:14036: $lt_compile\"" >&5)
14037 (eval "$lt_compile" 2>out/conftest.err)
14039 cat out/conftest.err >&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings
14045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_c_o_F77=yes
14053 # SGI C++ compiler will create directory out/ii_files/ for
14054 # template instantiation
14055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14056 $rm out/* && rmdir out
14062 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14066 hard_links="nottested"
14067 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14068 # do not overwrite the value of need_locks provided by the user
14069 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14075 ln conftest.a conftest.b 2>&5 || hard_links=no
14076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077 { echo "$as_me:$LINENO: result: $hard_links" >&5
14078 echo "${ECHO_T}$hard_links" >&6; }
14079 if test "$hard_links" = no; then
14080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14088 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14092 allow_undefined_flag_F77=
14093 enable_shared_with_static_runtimes_F77=no
14095 archive_expsym_cmds_F77=
14096 old_archive_From_new_cmds_F77=
14097 old_archive_from_expsyms_cmds_F77=
14098 export_dynamic_flag_spec_F77=
14099 whole_archive_flag_spec_F77=
14100 thread_safe_flag_spec_F77=
14101 hardcode_libdir_flag_spec_F77=
14102 hardcode_libdir_flag_spec_ld_F77=
14103 hardcode_libdir_separator_F77=
14104 hardcode_direct_F77=no
14105 hardcode_minus_L_F77=no
14106 hardcode_shlibpath_var_F77=unsupported
14107 link_all_deplibs_F77=unknown
14108 hardcode_automatic_F77=no
14110 module_expsym_cmds_F77=
14111 always_export_symbols_F77=no
14112 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14113 # include_expsyms should be a list of space-separated symbols to be *always*
14114 # included in the symbol list
14115 include_expsyms_F77=
14116 # exclude_expsyms can be an extended regexp of symbols to exclude
14117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14119 # as well as any symbol that contains `d'.
14120 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14122 # platforms (ab)use it in PIC code, but their linkers get confused if
14123 # the symbol is explicitly referenced. Since portable code cannot
14124 # rely on this symbol name, it's probably fine to never include it in
14125 # preloaded symbol tables.
14126 extract_expsyms_cmds=
14127 # Just being paranoid about ensuring that cc_basename is set.
14128 for cc_temp in $compiler""; do
14130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14139 cygwin* | mingw* | pw32*)
14140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14141 # When not using gcc, we currently assume that we are using
14142 # Microsoft Visual C++.
14143 if test "$GCC" != yes; then
14148 # we just hope/assume this is gcc and not c89 (= MSVC++)
14157 if test "$with_gnu_ld" = yes; then
14158 # If archive_cmds runs LD, not CC, wlarc should be empty
14161 # Set some defaults for GNU ld with shared library support. These
14162 # are reset later if shared libraries are not supported. Putting them
14163 # here allows them to be overridden if necessary.
14164 runpath_var=LD_RUN_PATH
14165 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14166 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14167 # ancient GNU ld didn't support --whole-archive et. al.
14168 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14169 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14171 whole_archive_flag_spec_F77=
14173 supports_anon_versioning=no
14174 case `$LD -v 2>/dev/null` in
14175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14178 *\ 2.11.*) ;; # other 2.11 versions
14179 *) supports_anon_versioning=yes ;;
14182 # See if GNU ld supports shared libraries.
14184 aix3* | aix4* | aix5*)
14185 # On AIX/PPC, the GNU linker is very broken
14186 if test "$host_cpu" != ia64; then
14190 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14191 *** to be unable to reliably create shared libraries on AIX.
14192 *** Therefore, libtool is disabling shared libraries support. If you
14193 *** really care for shared libraries, you may want to modify your PATH
14194 *** so that a non-GNU linker is found, and then restart.
14201 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)'
14202 hardcode_libdir_flag_spec_F77='-L$libdir'
14203 hardcode_minus_L_F77=yes
14205 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14206 # that the semantics of dynamic libraries on AmigaOS, at least up
14207 # to version 4, is to share data among multiple programs linked
14208 # with the same dynamic library. Since this doesn't match the
14209 # behavior of shared libraries on other platforms, we can't use
14215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14216 allow_undefined_flag_F77=unsupported
14217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14218 # support --undefined. This deserves some investigation. FIXME
14219 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14225 cygwin* | mingw* | pw32*)
14226 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14227 # as there is no search path for DLLs.
14228 hardcode_libdir_flag_spec_F77='-L$libdir'
14229 allow_undefined_flag_F77=unsupported
14230 always_export_symbols_F77=no
14231 enable_shared_with_static_runtimes_F77=yes
14232 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14234 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14235 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14236 # If the export-symbols file already is a .def file (1st line
14237 # is EXPORTS), use it as is; otherwise, prepend...
14238 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14239 cp $export_symbols $output_objdir/$soname.def;
14241 echo EXPORTS > $output_objdir/$soname.def;
14242 cat $export_symbols >> $output_objdir/$soname.def;
14244 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14251 hardcode_direct_F77=no
14252 hardcode_shlibpath_var_F77=no
14253 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14254 export_dynamic_flag_spec_F77='${wl}-E'
14255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14256 # Instead, shared libraries are loaded at an image base (0x10000000 by
14257 # default) and relocated if they conflict, which is a slow very memory
14258 # consuming and fragmenting process. To avoid this, we pick a random,
14259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14261 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'
14262 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'
14265 linux* | k*bsd*-gnu)
14266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14268 case $cc_basename,$host_cpu in
14269 pgcc*) # Portland Group C compiler
14270 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'
14271 tmp_addflag=' $pic_flag'
14273 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14274 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'
14275 tmp_addflag=' $pic_flag -Mnomain' ;;
14276 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14277 tmp_addflag=' -i_dynamic' ;;
14278 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14279 tmp_addflag=' -i_dynamic -nofor_main' ;;
14280 ifc* | ifort*) # Intel Fortran compiler
14281 tmp_addflag=' -nofor_main' ;;
14283 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14285 if test $supports_anon_versioning = yes; then
14286 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14288 $echo "local: *; };" >> $output_objdir/$libname.ver~
14289 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14291 link_all_deplibs_F77=no
14297 netbsd* | netbsdelf*-gnu)
14298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14299 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14313 *** create shared libraries on Solaris systems. Therefore, libtool
14314 *** is disabling shared libraries support. We urge you to upgrade GNU
14315 *** binutils to release 2.9.1 or newer. Another option is to modify
14316 *** your PATH or compiler configuration so that the native linker is
14317 *** used, and then restart.
14320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14329 case `$LD -v 2>&1` in
14330 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14334 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14335 *** reliably create shared libraries on SCO systems. Therefore, libtool
14336 *** is disabling shared libraries support. We urge you to upgrade GNU
14337 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14338 *** your PATH or compiler configuration so that the native linker is
14339 *** used, and then restart.
14344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14345 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14346 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14347 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14356 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_direct_F77=yes
14359 hardcode_shlibpath_var_F77=no
14363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14372 if test "$ld_shlibs_F77" = no; then
14374 hardcode_libdir_flag_spec_F77=
14375 export_dynamic_flag_spec_F77=
14376 whole_archive_flag_spec_F77=
14379 # PORTME fill in a description of your system's linker (not GNU ld)
14382 allow_undefined_flag_F77=unsupported
14383 always_export_symbols_F77=yes
14384 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'
14385 # Note: this linker hardcodes the directories in LIBPATH if there
14386 # are no directories specified by -L.
14387 hardcode_minus_L_F77=yes
14388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14389 # Neither direct hardcoding nor static linking is supported with a
14391 hardcode_direct_F77=unsupported
14396 if test "$host_cpu" = ia64; then
14397 # On IA64, the linker does run time linking by default, so we don't
14398 # have to do anything special.
14399 aix_use_runtimelinking=no
14400 exp_sym_flag='-Bexport'
14403 # If we're using GNU nm, then we don't want the "-C" option.
14404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14406 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'
14408 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'
14410 aix_use_runtimelinking=no
14412 # Test if we are trying to use run time linking or normal
14413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14414 # need to do runtime linking.
14415 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14416 for ld_flag in $LDFLAGS; do
14417 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14418 aix_use_runtimelinking=yes
14425 exp_sym_flag='-bexport'
14426 no_entry_flag='-bnoentry'
14429 # When large executables or shared objects are built, AIX ld can
14430 # have problems creating the table of contents. If linking a library
14431 # or program results in "error TOC overflow" add -mminimal-toc to
14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14435 archive_cmds_F77=''
14436 hardcode_direct_F77=yes
14437 hardcode_libdir_separator_F77=':'
14438 link_all_deplibs_F77=yes
14440 if test "$GCC" = yes; then
14441 case $host_os in aix4.[012]|aix4.[012].*)
14442 # We only want to do this on AIX 4.2 and lower, the check
14443 # below for broken collect2 doesn't work under 4.3+
14444 collect2name=`${CC} -print-prog-name=collect2`
14445 if test -f "$collect2name" && \
14446 strings "$collect2name" | grep resolve_lib_name >/dev/null
14448 # We have reworked collect2
14449 hardcode_direct_F77=yes
14451 # We have old collect2
14452 hardcode_direct_F77=unsupported
14453 # It fails to find uninstalled libraries when the uninstalled
14454 # path is not listed in the libpath. Setting hardcode_minus_L
14455 # to unsupported forces relinking
14456 hardcode_minus_L_F77=yes
14457 hardcode_libdir_flag_spec_F77='-L$libdir'
14458 hardcode_libdir_separator_F77=
14462 shared_flag='-shared'
14463 if test "$aix_use_runtimelinking" = yes; then
14464 shared_flag="$shared_flag "'${wl}-G'
14468 if test "$host_cpu" = ia64; then
14469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14470 # chokes on -Wl,-G. The following line is correct:
14473 if test "$aix_use_runtimelinking" = yes; then
14474 shared_flag='${wl}-G'
14476 shared_flag='${wl}-bM:SRE'
14481 # It seems that -bexpall does not export symbols beginning with
14482 # underscore (_), so it is better to generate a list of symbols to export.
14483 always_export_symbols_F77=yes
14484 if test "$aix_use_runtimelinking" = yes; then
14485 # Warning - without using the other runtime loading flags (-brtl),
14486 # -berok will link without error, but may produce a broken library.
14487 allow_undefined_flag_F77='-berok'
14488 # Determine the default libpath from the value encoded in an empty executable.
14489 cat >conftest.$ac_ext <<_ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_f77_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest$ac_exeext &&
14511 $as_test_x conftest$ac_exeext; then
14513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14515 # Check for a 64-bit object if we didn't find anything.
14516 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; }
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526 conftest$ac_exeext conftest.$ac_ext
14527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14529 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14530 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"
14532 if test "$host_cpu" = ia64; then
14533 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14534 allow_undefined_flag_F77="-z nodefs"
14535 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"
14537 # Determine the default libpath from the value encoded in an empty executable.
14538 cat >conftest.$ac_ext <<_ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (ac_try="$ac_link"
14545 case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_link") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_f77_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest$ac_exeext &&
14560 $as_test_x conftest$ac_exeext; then
14562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14564 # Check for a 64-bit object if we didn't find anything.
14565 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; }
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14579 # Warning - without using the other run time loading flags,
14580 # -berok will link without error, but may produce a broken library.
14581 no_undefined_flag_F77=' ${wl}-bernotok'
14582 allow_undefined_flag_F77=' ${wl}-berok'
14583 # Exported symbols can be pulled into shared objects from archives
14584 whole_archive_flag_spec_F77='$convenience'
14585 archive_cmds_need_lc_F77=yes
14586 # This is similar to how AIX traditionally builds its shared libraries.
14587 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'
14593 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)'
14594 hardcode_libdir_flag_spec_F77='-L$libdir'
14595 hardcode_minus_L_F77=yes
14596 # see comment about different semantics on the GNU ld section
14601 export_dynamic_flag_spec_F77=-rdynamic
14604 cygwin* | mingw* | pw32*)
14605 # When not using gcc, we currently assume that we are using
14606 # Microsoft Visual C++.
14607 # hardcode_libdir_flag_spec is actually meaningless, as there is
14608 # no search path for DLLs.
14609 hardcode_libdir_flag_spec_F77=' '
14610 allow_undefined_flag_F77=unsupported
14611 # Tell ltmain to make .lib files, not .a files.
14613 # Tell ltmain to make .dll files, not .so files.
14615 # FIXME: Setting linknames here is a bad hack.
14616 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14617 # The linker will automatically build a .lib file if we build a DLL.
14618 old_archive_From_new_cmds_F77='true'
14619 # FIXME: Should let the user specify the lib program.
14620 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14621 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14622 enable_shared_with_static_runtimes_F77=yes
14625 darwin* | rhapsody*)
14627 rhapsody* | darwin1.[012])
14628 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14631 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14632 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14634 case ${MACOSX_DEPLOYMENT_TARGET} in
14636 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14639 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14645 archive_cmds_need_lc_F77=no
14646 hardcode_direct_F77=no
14647 hardcode_automatic_F77=yes
14648 hardcode_shlibpath_var_F77=unsupported
14649 whole_archive_flag_spec_F77=''
14650 link_all_deplibs_F77=yes
14651 if test "$GCC" = yes ; then
14652 output_verbose_link_cmd='echo'
14653 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14654 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14655 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14656 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}'
14657 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}'
14659 case $cc_basename in
14661 output_verbose_link_cmd='echo'
14662 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14663 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14664 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14665 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}'
14666 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}'
14676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_libdir_flag_spec_F77='-L$libdir'
14678 hardcode_shlibpath_var_F77=no
14685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14686 # support. Future versions do this automatically, but an explicit c++rt0.o
14687 # does not break anything, and helps significantly (at the cost of a little
14690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14691 hardcode_libdir_flag_spec_F77='-R$libdir'
14692 hardcode_direct_F77=yes
14693 hardcode_shlibpath_var_F77=no
14696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14698 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14699 hardcode_direct_F77=yes
14700 hardcode_minus_L_F77=yes
14701 hardcode_shlibpath_var_F77=no
14704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14705 freebsd* | dragonfly*)
14706 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14707 hardcode_libdir_flag_spec_F77='-R$libdir'
14708 hardcode_direct_F77=yes
14709 hardcode_shlibpath_var_F77=no
14713 if test "$GCC" = yes; then
14714 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'
14716 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'
14718 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14719 hardcode_libdir_separator_F77=:
14720 hardcode_direct_F77=yes
14722 # hardcode_minus_L: Not really in the search PATH,
14723 # but as the default location of the library.
14724 hardcode_minus_L_F77=yes
14725 export_dynamic_flag_spec_F77='${wl}-E'
14729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14730 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14734 if test "$with_gnu_ld" = no; then
14735 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14736 hardcode_libdir_separator_F77=:
14738 hardcode_direct_F77=yes
14739 export_dynamic_flag_spec_F77='${wl}-E'
14741 # hardcode_minus_L: Not really in the search PATH,
14742 # but as the default location of the library.
14743 hardcode_minus_L_F77=yes
14748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14751 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14754 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14757 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14763 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14773 if test "$with_gnu_ld" = no; then
14774 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14775 hardcode_libdir_separator_F77=:
14779 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14780 hardcode_direct_F77=no
14781 hardcode_shlibpath_var_F77=no
14784 hardcode_direct_F77=yes
14785 export_dynamic_flag_spec_F77='${wl}-E'
14787 # hardcode_minus_L: Not really in the search PATH,
14788 # but as the default location of the library.
14789 hardcode_minus_L_F77=yes
14795 irix5* | irix6* | nonstopux*)
14796 if test "$GCC" = yes; then
14797 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'
14799 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'
14800 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14804 link_all_deplibs_F77=yes
14807 netbsd* | netbsdelf*-gnu)
14808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14811 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14813 hardcode_libdir_flag_spec_F77='-R$libdir'
14814 hardcode_direct_F77=yes
14815 hardcode_shlibpath_var_F77=no
14819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14820 hardcode_direct_F77=yes
14821 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14822 hardcode_libdir_separator_F77=:
14823 hardcode_shlibpath_var_F77=no
14827 hardcode_direct_F77=yes
14828 hardcode_shlibpath_var_F77=no
14829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14831 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14832 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14833 export_dynamic_flag_spec_F77='${wl}-E'
14836 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14837 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_libdir_flag_spec_F77='-R$libdir'
14841 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14842 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14849 hardcode_libdir_flag_spec_F77='-L$libdir'
14850 hardcode_minus_L_F77=yes
14851 allow_undefined_flag_F77=unsupported
14852 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'
14853 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14857 if test "$GCC" = yes; then
14858 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14859 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'
14861 allow_undefined_flag_F77=' -expect_unresolved \*'
14862 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'
14864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14865 hardcode_libdir_separator_F77=:
14868 osf4* | osf5*) # as osf3* with the addition of -msym flag
14869 if test "$GCC" = yes; then
14870 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14871 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'
14872 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14874 allow_undefined_flag_F77=' -expect_unresolved \*'
14875 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'
14876 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~
14877 $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'
14879 # Both c and cxx compiler support -rpath directly
14880 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14882 hardcode_libdir_separator_F77=:
14886 no_undefined_flag_F77=' -z text'
14887 if test "$GCC" = yes; then
14889 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14891 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14894 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14898 hardcode_libdir_flag_spec_F77='-R$libdir'
14899 hardcode_shlibpath_var_F77=no
14901 solaris2.[0-5] | solaris2.[0-5].*) ;;
14903 # The compiler driver will combine linker options so we
14904 # cannot just pass the convience library names through
14905 # without $wl, iff we do not link with $LD.
14906 # Luckily, gcc supports the same syntax we need for Sun Studio.
14907 # Supported since Solaris 2.6 (maybe 2.5.1?)
14910 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14912 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' ;;
14915 link_all_deplibs_F77=yes
14919 if test "x$host_vendor" = xsequent; then
14920 # Use $CC to link under sequent, because it throws in some extra .o
14921 # files that make .init and .fini sections work.
14922 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_direct_F77=yes
14928 hardcode_minus_L_F77=yes
14929 hardcode_shlibpath_var_F77=no
14933 case $host_vendor in
14935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14936 hardcode_direct_F77=yes # is this really true???
14939 ## LD is ld it makes a PLAMLIB
14940 ## CC just makes a GrossModule.
14941 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14942 reload_cmds_F77='$CC -r -o $output$reload_objs'
14943 hardcode_direct_F77=no
14946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14950 runpath_var='LD_RUN_PATH'
14951 hardcode_shlibpath_var_F77=no
14955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14956 hardcode_shlibpath_var_F77=no
14957 export_dynamic_flag_spec_F77='-Bexport'
14961 if test -d /usr/nec; then
14962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963 hardcode_shlibpath_var_F77=no
14964 runpath_var=LD_RUN_PATH
14965 hardcode_runpath_var=yes
14970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14971 no_undefined_flag_F77='${wl}-z,text'
14972 archive_cmds_need_lc_F77=no
14973 hardcode_shlibpath_var_F77=no
14974 runpath_var='LD_RUN_PATH'
14976 if test "$GCC" = yes; then
14977 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 sysv5* | sco3.2v5* | sco5v6*)
14986 # Note: We can NOT use -z defs as we might desire, because we do not
14987 # link with -lc, and that would cause any symbols used from libc to
14988 # always be unresolved, which means just about no library would
14989 # ever link correctly. If we're not using GNU ld we use -z text
14990 # though, which does catch some bad symbols but isn't as heavy-handed
14992 no_undefined_flag_F77='${wl}-z,text'
14993 allow_undefined_flag_F77='${wl}-z,nodefs'
14994 archive_cmds_need_lc_F77=no
14995 hardcode_shlibpath_var_F77=no
14996 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14997 hardcode_libdir_separator_F77=':'
14998 link_all_deplibs_F77=yes
14999 export_dynamic_flag_spec_F77='${wl}-Bexport'
15000 runpath_var='LD_RUN_PATH'
15002 if test "$GCC" = yes; then
15003 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_libdir_flag_spec_F77='-L$libdir'
15014 hardcode_shlibpath_var_F77=no
15023 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15024 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15025 test "$ld_shlibs_F77" = no && can_build_shared=no
15028 # Do we need to explicitly link libc?
15030 case "x$archive_cmds_need_lc_F77" in
15032 # Assume -lc should be added
15033 archive_cmds_need_lc_F77=yes
15035 if test "$enable_shared" = yes && test "$GCC" = yes; then
15036 case $archive_cmds_F77 in
15038 # FIXME: we may have to deal with multi-command sequences.
15041 # Test whether the compiler implicitly links with -lc since on some
15042 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15043 # to ld, don't add -lc before -lgcc.
15044 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15045 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } 2>conftest.err; then
15056 libobjs=conftest.$ac_objext
15058 wl=$lt_prog_compiler_wl_F77
15059 pic_flag=$lt_prog_compiler_pic_F77
15065 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15066 allow_undefined_flag_F77=
15067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15068 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }
15073 archive_cmds_need_lc_F77=no
15075 archive_cmds_need_lc_F77=yes
15077 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15079 cat conftest.err 1>&5
15082 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15083 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15090 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15091 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15092 library_names_spec=
15093 libname_spec='lib$name'
15097 postuninstall_cmds=
15101 shlibpath_overrides_runpath=unknown
15103 dynamic_linker="$host_os ld.so"
15104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15105 if test "$GCC" = yes; then
15106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15107 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15108 # if the path contains ";" then we assume it to be the separator
15109 # otherwise default to the standard path separator (i.e. ":") - it is
15110 # assumed that no part of a normal pathname contains ";" but that should
15111 # okay in the real world where ";" in dirpaths is itself problematic.
15112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15119 need_lib_prefix=unknown
15120 hardcode_into_libs=no
15122 # when you set need_version to no, make sure it does not cause -set_version
15123 # flags to be left without arguments
15124 need_version=unknown
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15130 shlibpath_var=LIBPATH
15132 # AIX 3 has no versioning support, so we append a major version to the name.
15133 soname_spec='${libname}${release}${shared_ext}$major'
15140 hardcode_into_libs=yes
15141 if test "$host_cpu" = ia64; then
15142 # AIX 5 supports IA64
15143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15144 shlibpath_var=LD_LIBRARY_PATH
15146 # With GCC up to 2.95.x, collect2 would create an import file
15147 # for dependence libraries. The import file would start with
15148 # the line `#! .'. This would cause the generated library to
15149 # depend on `.', always an invalid library. This was fixed in
15150 # development snapshots of GCC prior to 3.0.
15152 aix4 | aix4.[01] | aix4.[01].*)
15153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15158 can_build_shared=no
15162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15163 # soname into executable. Probably we can add versioning support to
15164 # collect2, so additional links can be useful in future.
15165 if test "$aix_use_runtimelinking" = yes; then
15166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15167 # instead of lib<name>.a to let people know that these are not
15168 # typical AIX shared libraries.
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 # We preserve .a as extension for shared libraries through AIX4.2
15172 # and later when we are not doing run time linking.
15173 library_names_spec='${libname}${release}.a $libname.a'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LIBPATH
15181 library_names_spec='$libname.ixlibrary $libname.a'
15182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15183 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'
15187 library_names_spec='${libname}${shared_ext}'
15188 dynamic_linker="$host_os ld.so"
15189 shlibpath_var=LIBRARY_PATH
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15198 shlibpath_var=LD_LIBRARY_PATH
15199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15201 # the default ld.so.conf also contains /usr/contrib/lib and
15202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15203 # libtool to hard-code these into programs
15206 cygwin* | mingw* | pw32*)
15207 version_type=windows
15212 case $GCC,$host_os in
15213 yes,cygwin* | yes,mingw* | yes,pw32*)
15214 library_names_spec='$libname.dll.a'
15215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15216 postinstall_cmds='base_file=`basename \${file}`~
15217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15218 dldir=$destdir/`dirname \$dlpath`~
15219 test -d \$dldir || mkdir -p \$dldir~
15220 $install_prog $dir/$dlname \$dldir/$dlname~
15221 chmod a+x \$dldir/$dlname'
15222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15223 dlpath=$dir/\$dldll~
15225 shlibpath_overrides_runpath=yes
15229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15234 # MinGW DLLs use traditional 'lib' prefix
15235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15237 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15238 # It is most probably a Windows format PATH printed by
15239 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15240 # path with ; separators, and with drive letters. We can handle the
15241 # drive letters (cygwin fileutils understands them), so leave them,
15242 # especially as we might pass files found there to a mingw objdump,
15243 # which wouldn't understand a cygwinified path. Ahh.
15244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15250 # pw32 DLLs use 'pw' prefix rather than 'lib'
15251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15260 dynamic_linker='Win32 ld.exe'
15261 # FIXME: first we should search . and the directory the executable is in
15265 darwin* | rhapsody*)
15266 dynamic_linker="$host_os dyld"
15267 version_type=darwin
15270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15271 soname_spec='${libname}${release}${major}$shared_ext'
15272 shlibpath_overrides_runpath=yes
15273 shlibpath_var=DYLD_LIBRARY_PATH
15274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15276 if test "$GCC" = yes; then
15277 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"`
15279 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 shlibpath_var=LD_LIBRARY_PATH
15297 freebsd* | dragonfly*)
15298 # DragonFly does not have aout. When/if they implement a new
15299 # versioning mechanism, adjust this.
15300 if test -x /usr/bin/objformat; then
15301 objformat=`/usr/bin/objformat`
15304 freebsd[123]*) objformat=aout ;;
15305 *) objformat=elf ;;
15308 version_type=freebsd-$objformat
15309 case $version_type in
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15320 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15325 freebsd3.[01]* | freebsdelf3.[01]*)
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15331 shlibpath_overrides_runpath=no
15332 hardcode_into_libs=yes
15334 freebsd*) # from 4.6 on
15335 shlibpath_overrides_runpath=yes
15336 hardcode_into_libs=yes
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 hardcode_into_libs=yes
15351 hpux9* | hpux10* | hpux11*)
15352 # Give a soname corresponding to the major version so that dld.sl refuses to
15353 # link against other versions.
15360 hardcode_into_libs=yes
15361 dynamic_linker="$host_os dld.so"
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 if test "X$HPUX_IA64_MODE" = X32; then
15367 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15369 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15375 hardcode_into_libs=yes
15376 dynamic_linker="$host_os dld.sl"
15377 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386 dynamic_linker="$host_os dld.sl"
15387 shlibpath_var=SHLIB_PATH
15388 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15393 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15394 postinstall_cmds='chmod 555 $lib'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15409 irix5* | irix6* | nonstopux*)
15411 nonstopux*) version_type=nonstopux ;;
15413 if test "$lt_cv_prog_gnu_ld" = yes; then
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15424 irix5* | nonstopux*)
15425 libsuff= shlibsuff=
15428 case $LD in # libtool.m4 will add one of these switches to LD
15429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15430 libsuff= shlibsuff= libmagic=32-bit;;
15431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15432 libsuff=32 shlibsuff=N32 libmagic=N32;;
15433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15434 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15435 *) libsuff= shlibsuff= libmagic=never-match;;
15439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15440 shlibpath_overrides_runpath=no
15441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15443 hardcode_into_libs=yes
15446 # No shared lib support for Linux oldld, aout, or coff.
15447 linux*oldld* | linux*aout* | linux*coff*)
15451 # This must be Linux ELF.
15452 linux* | k*bsd*-gnu)
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=no
15461 # This implies no fast_install, which is unacceptable.
15462 # Some rework will be needed to allow for fast_install
15463 # before this can be enabled.
15464 hardcode_into_libs=yes
15466 # Append ld.so.conf contents to the search path
15467 if test -f /etc/ld.so.conf; then
15468 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' ' '`
15469 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15472 # We used to test for /lib/ld.so.1 and disable shared libraries on
15473 # powerpc, because MkLinux only supported shared libraries with the
15474 # GNU dynamic linker. Since this was broken with cross compilers,
15475 # most powerpc-linux boxes support dynamic linking these days and
15476 # people can always --disable-shared, the test was removed, and we
15477 # assume the GNU/Linux dynamic linker is in use.
15478 dynamic_linker='GNU/Linux ld.so'
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=no
15489 hardcode_into_libs=yes
15490 dynamic_linker='NetBSD ld.elf_so'
15497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15500 dynamic_linker='NetBSD (a.out) ld.so'
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 dynamic_linker='NetBSD ld.elf_so'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=yes
15508 hardcode_into_libs=yes
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=yes
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=yes
15530 sys_lib_dlsearch_path_spec="/usr/lib"
15532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15535 *) need_version=no ;;
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542 openbsd2.[89] | openbsd2.[89].*)
15543 shlibpath_overrides_runpath=no
15546 shlibpath_overrides_runpath=yes
15550 shlibpath_overrides_runpath=yes
15555 libname_spec='$name'
15558 library_names_spec='$libname${shared_ext} $libname.a'
15559 dynamic_linker='OS/2 ld.exe'
15560 shlibpath_var=LIBPATH
15563 osf3* | osf4* | osf5*)
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 shlibpath_overrides_runpath=yes
15582 hardcode_into_libs=yes
15583 # ldd complains unless libraries are executable
15584 postinstall_cmds='chmod +x $lib'
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 shlibpath_overrides_runpath=yes
15593 if test "$with_gnu_ld" = yes; then
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 case $host_vendor in
15606 shlibpath_overrides_runpath=no
15608 export_dynamic_flag_spec='${wl}-Blargedynsym'
15609 runpath_var=LD_RUN_PATH
15617 shlibpath_overrides_runpath=no
15618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15624 if test -d /usr/nec ;then
15626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15627 soname_spec='$libname${shared_ext}.$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15633 version_type=freebsd-elf
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15637 soname_spec='${libname}${release}${shared_ext}$major'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 hardcode_into_libs=yes
15640 if test "$with_gnu_ld" = yes; then
15641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15642 shlibpath_overrides_runpath=no
15644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15645 shlibpath_overrides_runpath=yes
15648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15652 sys_lib_dlsearch_path_spec='/usr/lib'
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15666 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15667 echo "${ECHO_T}$dynamic_linker" >&6; }
15668 test "$dynamic_linker" = no && can_build_shared=no
15670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15671 if test "$GCC" = yes; then
15672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15675 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15677 hardcode_action_F77=
15678 if test -n "$hardcode_libdir_flag_spec_F77" || \
15679 test -n "$runpath_var_F77" || \
15680 test "X$hardcode_automatic_F77" = "Xyes" ; then
15682 # We can hardcode non-existant directories.
15683 if test "$hardcode_direct_F77" != no &&
15684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15685 # have to relink, otherwise we might link with an installed library
15686 # when we should be linking with a yet-to-be-installed one
15687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15688 test "$hardcode_minus_L_F77" != no; then
15689 # Linking always hardcodes the temporary library directory.
15690 hardcode_action_F77=relink
15692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15693 hardcode_action_F77=immediate
15696 # We cannot hardcode anything, or else we can only hardcode existing
15698 hardcode_action_F77=unsupported
15700 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15701 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15703 if test "$hardcode_action_F77" = relink; then
15704 # Fast installation is not supported
15705 enable_fast_install=no
15706 elif test "$shlibpath_overrides_runpath" = yes ||
15707 test "$enable_shared" = no; then
15708 # Fast installation is not necessary
15709 enable_fast_install=needless
15713 # The else clause should only fire when bootstrapping the
15714 # libtool distribution, otherwise you forgot to ship ltmain.sh
15715 # with your package, and you will get complaints that there are
15716 # no rules to generate ltmain.sh.
15717 if test -f "$ltmain"; then
15718 # See if we are running on zsh, and set the options which allow our commands through
15719 # without removal of \ escapes.
15720 if test -n "${ZSH_VERSION+set}" ; then
15721 setopt NO_GLOB_SUBST
15723 # Now quote all the things that may contain metacharacters while being
15724 # careful not to overquote the AC_SUBSTed values. We take copies of the
15725 # variables and quote the copies for generation of the libtool script.
15726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15730 deplibs_check_method reload_flag reload_cmds need_locks \
15731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15732 lt_cv_sys_global_symbol_to_c_name_address \
15733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15734 old_postinstall_cmds old_postuninstall_cmds \
15738 lt_prog_compiler_wl_F77 \
15739 lt_prog_compiler_pic_F77 \
15740 lt_prog_compiler_static_F77 \
15741 lt_prog_compiler_no_builtin_flag_F77 \
15742 export_dynamic_flag_spec_F77 \
15743 thread_safe_flag_spec_F77 \
15744 whole_archive_flag_spec_F77 \
15745 enable_shared_with_static_runtimes_F77 \
15746 old_archive_cmds_F77 \
15747 old_archive_from_new_cmds_F77 \
15748 predep_objects_F77 \
15749 postdep_objects_F77 \
15752 compiler_lib_search_path_F77 \
15754 archive_expsym_cmds_F77 \
15755 postinstall_cmds_F77 \
15756 postuninstall_cmds_F77 \
15757 old_archive_from_expsyms_cmds_F77 \
15758 allow_undefined_flag_F77 \
15759 no_undefined_flag_F77 \
15760 export_symbols_cmds_F77 \
15761 hardcode_libdir_flag_spec_F77 \
15762 hardcode_libdir_flag_spec_ld_F77 \
15763 hardcode_libdir_separator_F77 \
15764 hardcode_automatic_F77 \
15766 module_expsym_cmds_F77 \
15767 lt_cv_prog_compiler_c_o_F77 \
15768 exclude_expsyms_F77 \
15769 include_expsyms_F77; do
15772 old_archive_cmds_F77 | \
15773 old_archive_from_new_cmds_F77 | \
15774 archive_cmds_F77 | \
15775 archive_expsym_cmds_F77 | \
15776 module_cmds_F77 | \
15777 module_expsym_cmds_F77 | \
15778 old_archive_from_expsyms_cmds_F77 | \
15779 export_symbols_cmds_F77 | \
15780 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15781 postinstall_cmds | postuninstall_cmds | \
15782 old_postinstall_cmds | old_postuninstall_cmds | \
15783 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15784 # Double-quote double-evaled strings.
15785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15794 *'\$0 --fallback-echo"')
15795 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15801 cat <<__EOF__ >> "$cfgfile"
15802 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15804 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15806 # Shell to use when invoking shell scripts.
15809 # Whether or not to build shared libraries.
15810 build_libtool_libs=$enable_shared
15812 # Whether or not to build static libraries.
15813 build_old_libs=$enable_static
15815 # Whether or not to add -lc for building shared libraries.
15816 build_libtool_need_lc=$archive_cmds_need_lc_F77
15818 # Whether or not to disallow shared libs when runtime libs are static
15819 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15821 # Whether or not to optimize for fast installation.
15822 fast_install=$enable_fast_install
15825 host_alias=$host_alias
15829 # The build system.
15830 build_alias=$build_alias
15834 # An echo program that does not interpret backslashes.
15839 AR_FLAGS=$lt_AR_FLAGS
15844 # LTCC compiler flags.
15845 LTCFLAGS=$lt_LTCFLAGS
15847 # A language-specific compiler.
15848 CC=$lt_compiler_F77
15850 # Is the compiler the GNU C compiler?
15856 # The linker used to build libraries.
15859 # Whether we need hard or soft links.
15862 # A BSD-compatible nm program.
15865 # A symbol stripping program
15868 # Used to examine libraries when file_magic_cmd begins "file"
15869 MAGIC_CMD=$MAGIC_CMD
15871 # Used on cygwin: DLL creation program.
15874 # Used on cygwin: object dumper.
15877 # Used on cygwin: assembler.
15880 # The name of the directory that contains temporary libtool files.
15883 # How to create reloadable object files.
15884 reload_flag=$lt_reload_flag
15885 reload_cmds=$lt_reload_cmds
15887 # How to pass a linker flag through the compiler.
15888 wl=$lt_lt_prog_compiler_wl_F77
15890 # Object file suffix (normally "o").
15891 objext="$ac_objext"
15893 # Old archive suffix (normally "a").
15896 # Shared library suffix (normally ".so").
15897 shrext_cmds='$shrext_cmds'
15899 # Executable file suffix (normally "").
15902 # Additional compiler flags for building library objects.
15903 pic_flag=$lt_lt_prog_compiler_pic_F77
15906 # What is the maximum length of a command?
15907 max_cmd_len=$lt_cv_sys_max_cmd_len
15909 # Does compiler simultaneously support -c and -o options?
15910 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15912 # Must we lock files when doing compilation?
15913 need_locks=$lt_need_locks
15915 # Do we need the lib prefix for modules?
15916 need_lib_prefix=$need_lib_prefix
15918 # Do we need a version for libraries?
15919 need_version=$need_version
15921 # Whether dlopen is supported.
15922 dlopen_support=$enable_dlopen
15924 # Whether dlopen of programs is supported.
15925 dlopen_self=$enable_dlopen_self
15927 # Whether dlopen of statically linked programs is supported.
15928 dlopen_self_static=$enable_dlopen_self_static
15930 # Compiler flag to prevent dynamic linking.
15931 link_static_flag=$lt_lt_prog_compiler_static_F77
15933 # Compiler flag to turn off builtin functions.
15934 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15936 # Compiler flag to allow reflexive dlopens.
15937 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15939 # Compiler flag to generate shared objects directly from archives.
15940 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15942 # Compiler flag to generate thread-safe objects.
15943 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15945 # Library versioning type.
15946 version_type=$version_type
15948 # Format of library name prefix.
15949 libname_spec=$lt_libname_spec
15951 # List of archive names. First name is the real one, the rest are links.
15952 # The last name is the one that the linker finds with -lNAME.
15953 library_names_spec=$lt_library_names_spec
15955 # The coded name of the library, if different from the real name.
15956 soname_spec=$lt_soname_spec
15958 # Commands used to build and install an old-style archive.
15960 old_archive_cmds=$lt_old_archive_cmds_F77
15961 old_postinstall_cmds=$lt_old_postinstall_cmds
15962 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15964 # Create an old-style archive from a shared archive.
15965 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15967 # Create a temporary old-style archive to link instead of a shared archive.
15968 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15970 # Commands used to build and install a shared archive.
15971 archive_cmds=$lt_archive_cmds_F77
15972 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15973 postinstall_cmds=$lt_postinstall_cmds
15974 postuninstall_cmds=$lt_postuninstall_cmds
15976 # Commands used to build a loadable module (assumed same as above if empty)
15977 module_cmds=$lt_module_cmds_F77
15978 module_expsym_cmds=$lt_module_expsym_cmds_F77
15980 # Commands to strip libraries.
15981 old_striplib=$lt_old_striplib
15982 striplib=$lt_striplib
15984 # Dependencies to place before the objects being linked to create a
15986 predep_objects=$lt_predep_objects_F77
15988 # Dependencies to place after the objects being linked to create a
15990 postdep_objects=$lt_postdep_objects_F77
15992 # Dependencies to place before the objects being linked to create a
15994 predeps=$lt_predeps_F77
15996 # Dependencies to place after the objects being linked to create a
15998 postdeps=$lt_postdeps_F77
16000 # The library search path used internally by the compiler when linking
16001 # a shared library.
16002 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16004 # Method to check whether dependent libraries are shared objects.
16005 deplibs_check_method=$lt_deplibs_check_method
16007 # Command to use when deplibs_check_method == file_magic.
16008 file_magic_cmd=$lt_file_magic_cmd
16010 # Flag that allows shared libraries with undefined symbols to be built.
16011 allow_undefined_flag=$lt_allow_undefined_flag_F77
16013 # Flag that forces no undefined symbols.
16014 no_undefined_flag=$lt_no_undefined_flag_F77
16016 # Commands used to finish a libtool library installation in a directory.
16017 finish_cmds=$lt_finish_cmds
16019 # Same as above, but a single script fragment to be evaled but not shown.
16020 finish_eval=$lt_finish_eval
16022 # Take the output of nm and produce a listing of raw symbols and C names.
16023 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16025 # Transform the output of nm in a proper C declaration
16026 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16028 # Transform the output of nm in a C name address pair
16029 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16031 # This is the shared library runtime path variable.
16032 runpath_var=$runpath_var
16034 # This is the shared library path variable.
16035 shlibpath_var=$shlibpath_var
16037 # Is shlibpath searched before the hard-coded library search path?
16038 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16040 # How to hardcode a shared library path into an executable.
16041 hardcode_action=$hardcode_action_F77
16043 # Whether we should hardcode library paths into libraries.
16044 hardcode_into_libs=$hardcode_into_libs
16046 # Flag to hardcode \$libdir into a binary during linking.
16047 # This must work even if \$libdir does not exist.
16048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16050 # If ld is used when linking, flag to hardcode \$libdir into
16051 # a binary during linking. This must work even if \$libdir does
16053 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16055 # Whether we need a single -rpath flag with a separated argument.
16056 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16058 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16059 # resulting binary.
16060 hardcode_direct=$hardcode_direct_F77
16062 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16063 # resulting binary.
16064 hardcode_minus_L=$hardcode_minus_L_F77
16066 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16067 # the resulting binary.
16068 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16070 # Set to yes if building a shared library automatically hardcodes DIR into the library
16071 # and all subsequent libraries and executables linked against it.
16072 hardcode_automatic=$hardcode_automatic_F77
16074 # Variables whose values should be saved in libtool wrapper scripts and
16075 # restored at relink time.
16076 variables_saved_for_relink="$variables_saved_for_relink"
16078 # Whether libtool must link a program against all its dependency libraries.
16079 link_all_deplibs=$link_all_deplibs_F77
16081 # Compile-time system search path for libraries
16082 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16084 # Run-time system search path for libraries
16085 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16087 # Fix the shell variable \$srcfile for the compiler.
16088 fix_srcfile_path="$fix_srcfile_path_F77"
16090 # Set to yes if exported symbols are required.
16091 always_export_symbols=$always_export_symbols_F77
16093 # The commands to list exported symbols.
16094 export_symbols_cmds=$lt_export_symbols_cmds_F77
16096 # The commands to extract the exported symbol list from a shared archive.
16097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16099 # Symbols that should not be listed in the preloaded symbols.
16100 exclude_expsyms=$lt_exclude_expsyms_F77
16102 # Symbols that must always be exported.
16103 include_expsyms=$lt_include_expsyms_F77
16105 # ### END LIBTOOL TAG CONFIG: $tagname
16111 # If there is no Makefile yet, we rely on a make rule to execute
16112 # `config.status --recheck' to rerun these tests and create the
16113 # libtool script then.
16114 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16115 if test -f "$ltmain_in"; then
16116 test -f Makefile && make "$ltmain"
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16135 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16138 # Source file extension for Java test sources.
16141 # Object file extension for compiled Java test sources.
16145 # Code to be used in simple compile tests
16146 lt_simple_compile_test_code="class foo {}\n"
16148 # Code to be used in simple link tests
16149 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16153 # If no C compiler was specified, use CC.
16156 # If no C compiler flags were specified, use CFLAGS.
16157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16159 # Allow CC to be a program name with arguments.
16163 # save warnings/boilerplate of simple test code
16164 ac_outfile=conftest.$ac_objext
16165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16167 _lt_compiler_boilerplate=`cat conftest.err`
16170 ac_outfile=conftest.$ac_objext
16171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16173 _lt_linker_boilerplate=`cat conftest.err`
16177 # Allow CC to be a program name with arguments.
16182 for cc_temp in $compiler""; do
16184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16190 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16193 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16194 archive_cmds_need_lc_GCJ=no
16196 old_archive_cmds_GCJ=$old_archive_cmds
16199 lt_prog_compiler_no_builtin_flag_GCJ=
16201 if test "$GCC" = yes; then
16202 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16205 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16206 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16207 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 lt_cv_prog_compiler_rtti_exceptions=no
16211 ac_outfile=conftest.$ac_objext
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213 lt_compiler_flag="-fno-rtti -fno-exceptions"
16214 # Insert the option either (1) after the last *FLAGS variable, or
16215 # (2) before a word containing "conftest.", or (3) at the end.
16216 # Note that $ac_compile itself does not contain backslashes and begins
16217 # with a dollar sign (not a hyphen), so the echo should work correctly.
16218 # The option is referenced via a variable to avoid confusing sed.
16219 lt_compile=`echo "$ac_compile" | $SED \
16220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222 -e 's:$: $lt_compiler_flag:'`
16223 (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224 (eval "$lt_compile" 2>conftest.err)
16226 cat conftest.err >&5
16227 echo "$as_me:16227: \$? = $ac_status" >&5
16228 if (exit $ac_status) && test -s "$ac_outfile"; then
16229 # The compiler can only warn and ignore the option if not recognized
16230 # So say no if there are warnings other than the usual output.
16231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16234 lt_cv_prog_compiler_rtti_exceptions=yes
16240 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16241 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16243 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16244 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16251 lt_prog_compiler_wl_GCJ=
16252 lt_prog_compiler_pic_GCJ=
16253 lt_prog_compiler_static_GCJ=
16255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16258 if test "$GCC" = yes; then
16259 lt_prog_compiler_wl_GCJ='-Wl,'
16260 lt_prog_compiler_static_GCJ='-static'
16264 # All AIX code is PIC.
16265 if test "$host_cpu" = ia64; then
16266 # AIX 5 now supports IA64 processor
16267 lt_prog_compiler_static_GCJ='-Bstatic'
16272 # FIXME: we need at least 68020 code to build shared libraries, but
16273 # adding the `-m68020' flag to GCC prevents building anything better,
16275 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16279 # PIC is the default for these OSes.
16282 mingw* | pw32* | os2*)
16283 # This hack is so that the source file can tell whether it is being
16284 # built for inclusion in a dll (and should export symbols for example).
16285 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16288 darwin* | rhapsody*)
16289 # PIC is the default on this platform
16290 # Common symbols not allowed in MH_DYLIB files
16291 lt_prog_compiler_pic_GCJ='-fno-common'
16295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16296 # Instead, we relocate shared libraries at runtime.
16300 # Just because we use GCC doesn't mean we suddenly get shared libraries
16301 # on systems that don't support them.
16302 lt_prog_compiler_can_build_shared_GCJ=no
16307 if test -d /usr/nec; then
16308 lt_prog_compiler_pic_GCJ=-Kconform_pic
16313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16314 # not for PA HP-UX.
16320 lt_prog_compiler_pic_GCJ='-fPIC'
16326 lt_prog_compiler_pic_GCJ='-fPIC'
16330 # PORTME Check for flag to pass linker flags through the system compiler.
16333 lt_prog_compiler_wl_GCJ='-Wl,'
16334 if test "$host_cpu" = ia64; then
16335 # AIX 5 now supports IA64 processor
16336 lt_prog_compiler_static_GCJ='-Bstatic'
16338 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16342 # PIC is the default on this platform
16343 # Common symbols not allowed in MH_DYLIB files
16344 case $cc_basename in
16346 lt_prog_compiler_pic_GCJ='-qnocommon'
16347 lt_prog_compiler_wl_GCJ='-Wl,'
16352 mingw* | pw32* | os2*)
16353 # This hack is so that the source file can tell whether it is being
16354 # built for inclusion in a dll (and should export symbols for example).
16355 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16358 hpux9* | hpux10* | hpux11*)
16359 lt_prog_compiler_wl_GCJ='-Wl,'
16360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16361 # not for PA HP-UX.
16367 lt_prog_compiler_pic_GCJ='+Z'
16370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16371 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16374 irix5* | irix6* | nonstopux*)
16375 lt_prog_compiler_wl_GCJ='-Wl,'
16376 # PIC (with -KPIC) is the default.
16377 lt_prog_compiler_static_GCJ='-non_shared'
16381 lt_prog_compiler_pic_GCJ='-KPIC'
16382 lt_prog_compiler_static_GCJ='-Bstatic'
16385 linux* | k*bsd*-gnu)
16386 case $cc_basename in
16388 lt_prog_compiler_wl_GCJ='-Wl,'
16389 lt_prog_compiler_pic_GCJ='-KPIC'
16390 lt_prog_compiler_static_GCJ='-static'
16392 pgcc* | pgf77* | pgf90* | pgf95*)
16393 # Portland Group compilers (*not* the Pentium gcc compiler,
16394 # which looks to be a dead project)
16395 lt_prog_compiler_wl_GCJ='-Wl,'
16396 lt_prog_compiler_pic_GCJ='-fpic'
16397 lt_prog_compiler_static_GCJ='-Bstatic'
16400 lt_prog_compiler_wl_GCJ='-Wl,'
16401 # All Alpha code is PIC.
16402 lt_prog_compiler_static_GCJ='-non_shared'
16407 osf3* | osf4* | osf5*)
16408 lt_prog_compiler_wl_GCJ='-Wl,'
16409 # All OSF/1 code is PIC.
16410 lt_prog_compiler_static_GCJ='-non_shared'
16414 lt_prog_compiler_pic_GCJ='-KPIC'
16415 lt_prog_compiler_static_GCJ='-Bstatic'
16416 case $cc_basename in
16417 f77* | f90* | f95*)
16418 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16420 lt_prog_compiler_wl_GCJ='-Wl,';;
16425 lt_prog_compiler_wl_GCJ='-Qoption ld '
16426 lt_prog_compiler_pic_GCJ='-PIC'
16427 lt_prog_compiler_static_GCJ='-Bstatic'
16430 sysv4 | sysv4.2uw2* | sysv4.3*)
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 lt_prog_compiler_pic_GCJ='-KPIC'
16433 lt_prog_compiler_static_GCJ='-Bstatic'
16437 if test -d /usr/nec ;then
16438 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16439 lt_prog_compiler_static_GCJ='-Bstatic'
16443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16444 lt_prog_compiler_wl_GCJ='-Wl,'
16445 lt_prog_compiler_pic_GCJ='-KPIC'
16446 lt_prog_compiler_static_GCJ='-Bstatic'
16450 lt_prog_compiler_wl_GCJ='-Wl,'
16451 lt_prog_compiler_can_build_shared_GCJ=no
16455 lt_prog_compiler_pic_GCJ='-pic'
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16460 lt_prog_compiler_can_build_shared_GCJ=no
16465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16466 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16469 # Check to make sure the PIC flag actually works.
16471 if test -n "$lt_prog_compiler_pic_GCJ"; then
16473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16475 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 lt_prog_compiler_pic_works_GCJ=no
16479 ac_outfile=conftest.$ac_objext
16480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16481 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16482 # Insert the option either (1) after the last *FLAGS variable, or
16483 # (2) before a word containing "conftest.", or (3) at the end.
16484 # Note that $ac_compile itself does not contain backslashes and begins
16485 # with a dollar sign (not a hyphen), so the echo should work correctly.
16486 # The option is referenced via a variable to avoid confusing sed.
16487 lt_compile=`echo "$ac_compile" | $SED \
16488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16490 -e 's:$: $lt_compiler_flag:'`
16491 (eval echo "\"\$as_me:16491: $lt_compile\"" >&5)
16492 (eval "$lt_compile" 2>conftest.err)
16494 cat conftest.err >&5
16495 echo "$as_me:16495: \$? = $ac_status" >&5
16496 if (exit $ac_status) && test -s "$ac_outfile"; then
16497 # The compiler can only warn and ignore the option if not recognized
16498 # So say no if there are warnings other than the usual output.
16499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16502 lt_prog_compiler_pic_works_GCJ=yes
16508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16509 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16511 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16512 case $lt_prog_compiler_pic_GCJ in
16514 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16517 lt_prog_compiler_pic_GCJ=
16518 lt_prog_compiler_can_build_shared_GCJ=no
16523 # For platforms which do not support PIC, -DPIC is meaningless:
16525 lt_prog_compiler_pic_GCJ=
16528 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16533 # Check to make sure the static flag actually works.
16535 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16538 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 lt_prog_compiler_static_works_GCJ=no
16542 save_LDFLAGS="$LDFLAGS"
16543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16544 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16546 # The linker can only warn and ignore the option if not recognized
16547 # So say no if there are warnings
16548 if test -s conftest.err; then
16549 # Append any errors to the config.log.
16550 cat conftest.err 1>&5
16551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16553 if diff conftest.exp conftest.er2 >/dev/null; then
16554 lt_prog_compiler_static_works_GCJ=yes
16557 lt_prog_compiler_static_works_GCJ=yes
16561 LDFLAGS="$save_LDFLAGS"
16564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16565 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16567 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16570 lt_prog_compiler_static_GCJ=
16574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16576 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 lt_cv_prog_compiler_c_o_GCJ=no
16580 $rm -r conftest 2>/dev/null
16584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16586 lt_compiler_flag="-o out/conftest2.$ac_objext"
16587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 lt_compile=`echo "$ac_compile" | $SED \
16592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16594 -e 's:$: $lt_compiler_flag:'`
16595 (eval echo "\"\$as_me:16595: $lt_compile\"" >&5)
16596 (eval "$lt_compile" 2>out/conftest.err)
16598 cat out/conftest.err >&5
16599 echo "$as_me:16599: \$? = $ac_status" >&5
16600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings
16604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16607 lt_cv_prog_compiler_c_o_GCJ=yes
16612 # SGI C++ compiler will create directory out/ii_files/ for
16613 # template instantiation
16614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16615 $rm out/* && rmdir out
16621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16625 hard_links="nottested"
16626 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16627 # do not overwrite the value of need_locks provided by the user
16628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634 ln conftest.a conftest.b 2>&5 || hard_links=no
16635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16636 { echo "$as_me:$LINENO: result: $hard_links" >&5
16637 echo "${ECHO_T}$hard_links" >&6; }
16638 if test "$hard_links" = no; then
16639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16651 allow_undefined_flag_GCJ=
16652 enable_shared_with_static_runtimes_GCJ=no
16654 archive_expsym_cmds_GCJ=
16655 old_archive_From_new_cmds_GCJ=
16656 old_archive_from_expsyms_cmds_GCJ=
16657 export_dynamic_flag_spec_GCJ=
16658 whole_archive_flag_spec_GCJ=
16659 thread_safe_flag_spec_GCJ=
16660 hardcode_libdir_flag_spec_GCJ=
16661 hardcode_libdir_flag_spec_ld_GCJ=
16662 hardcode_libdir_separator_GCJ=
16663 hardcode_direct_GCJ=no
16664 hardcode_minus_L_GCJ=no
16665 hardcode_shlibpath_var_GCJ=unsupported
16666 link_all_deplibs_GCJ=unknown
16667 hardcode_automatic_GCJ=no
16669 module_expsym_cmds_GCJ=
16670 always_export_symbols_GCJ=no
16671 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16672 # include_expsyms should be a list of space-separated symbols to be *always*
16673 # included in the symbol list
16674 include_expsyms_GCJ=
16675 # exclude_expsyms can be an extended regexp of symbols to exclude
16676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16678 # as well as any symbol that contains `d'.
16679 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16681 # platforms (ab)use it in PIC code, but their linkers get confused if
16682 # the symbol is explicitly referenced. Since portable code cannot
16683 # rely on this symbol name, it's probably fine to never include it in
16684 # preloaded symbol tables.
16685 extract_expsyms_cmds=
16686 # Just being paranoid about ensuring that cc_basename is set.
16687 for cc_temp in $compiler""; do
16689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16698 cygwin* | mingw* | pw32*)
16699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16700 # When not using gcc, we currently assume that we are using
16701 # Microsoft Visual C++.
16702 if test "$GCC" != yes; then
16707 # we just hope/assume this is gcc and not c89 (= MSVC++)
16716 if test "$with_gnu_ld" = yes; then
16717 # If archive_cmds runs LD, not CC, wlarc should be empty
16720 # Set some defaults for GNU ld with shared library support. These
16721 # are reset later if shared libraries are not supported. Putting them
16722 # here allows them to be overridden if necessary.
16723 runpath_var=LD_RUN_PATH
16724 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16725 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16726 # ancient GNU ld didn't support --whole-archive et. al.
16727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16728 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16730 whole_archive_flag_spec_GCJ=
16732 supports_anon_versioning=no
16733 case `$LD -v 2>/dev/null` in
16734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16737 *\ 2.11.*) ;; # other 2.11 versions
16738 *) supports_anon_versioning=yes ;;
16741 # See if GNU ld supports shared libraries.
16743 aix3* | aix4* | aix5*)
16744 # On AIX/PPC, the GNU linker is very broken
16745 if test "$host_cpu" != ia64; then
16749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16750 *** to be unable to reliably create shared libraries on AIX.
16751 *** Therefore, libtool is disabling shared libraries support. If you
16752 *** really care for shared libraries, you may want to modify your PATH
16753 *** so that a non-GNU linker is found, and then restart.
16760 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)'
16761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762 hardcode_minus_L_GCJ=yes
16764 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16765 # that the semantics of dynamic libraries on AmigaOS, at least up
16766 # to version 4, is to share data among multiple programs linked
16767 # with the same dynamic library. Since this doesn't match the
16768 # behavior of shared libraries on other platforms, we can't use
16774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16775 allow_undefined_flag_GCJ=unsupported
16776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16777 # support --undefined. This deserves some investigation. FIXME
16778 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784 cygwin* | mingw* | pw32*)
16785 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16786 # as there is no search path for DLLs.
16787 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16788 allow_undefined_flag_GCJ=unsupported
16789 always_export_symbols_GCJ=no
16790 enable_shared_with_static_runtimes_GCJ=yes
16791 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16793 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16794 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16795 # If the export-symbols file already is a .def file (1st line
16796 # is EXPORTS), use it as is; otherwise, prepend...
16797 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16798 cp $export_symbols $output_objdir/$soname.def;
16800 echo EXPORTS > $output_objdir/$soname.def;
16801 cat $export_symbols >> $output_objdir/$soname.def;
16803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16810 hardcode_direct_GCJ=no
16811 hardcode_shlibpath_var_GCJ=no
16812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16813 export_dynamic_flag_spec_GCJ='${wl}-E'
16814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16815 # Instead, shared libraries are loaded at an image base (0x10000000 by
16816 # default) and relocated if they conflict, which is a slow very memory
16817 # consuming and fragmenting process. To avoid this, we pick a random,
16818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16820 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'
16821 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'
16824 linux* | k*bsd*-gnu)
16825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16827 case $cc_basename,$host_cpu in
16828 pgcc*) # Portland Group C compiler
16829 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'
16830 tmp_addflag=' $pic_flag'
16832 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16833 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'
16834 tmp_addflag=' $pic_flag -Mnomain' ;;
16835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16836 tmp_addflag=' -i_dynamic' ;;
16837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16838 tmp_addflag=' -i_dynamic -nofor_main' ;;
16839 ifc* | ifort*) # Intel Fortran compiler
16840 tmp_addflag=' -nofor_main' ;;
16842 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 if test $supports_anon_versioning = yes; then
16845 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16847 $echo "local: *; };" >> $output_objdir/$libname.ver~
16848 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16850 link_all_deplibs_GCJ=no
16856 netbsd* | netbsdelf*-gnu)
16857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16858 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16867 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16871 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16872 *** create shared libraries on Solaris systems. Therefore, libtool
16873 *** is disabling shared libraries support. We urge you to upgrade GNU
16874 *** binutils to release 2.9.1 or newer. Another option is to modify
16875 *** your PATH or compiler configuration so that the native linker is
16876 *** used, and then restart.
16879 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16888 case `$LD -v 2>&1` in
16889 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16893 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16894 *** reliably create shared libraries on SCO systems. Therefore, libtool
16895 *** is disabling shared libraries support. We urge you to upgrade GNU
16896 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16897 *** your PATH or compiler configuration so that the native linker is
16898 *** used, and then restart.
16903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16904 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16906 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16915 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_direct_GCJ=yes
16918 hardcode_shlibpath_var_GCJ=no
16922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16924 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16931 if test "$ld_shlibs_GCJ" = no; then
16933 hardcode_libdir_flag_spec_GCJ=
16934 export_dynamic_flag_spec_GCJ=
16935 whole_archive_flag_spec_GCJ=
16938 # PORTME fill in a description of your system's linker (not GNU ld)
16941 allow_undefined_flag_GCJ=unsupported
16942 always_export_symbols_GCJ=yes
16943 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'
16944 # Note: this linker hardcodes the directories in LIBPATH if there
16945 # are no directories specified by -L.
16946 hardcode_minus_L_GCJ=yes
16947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16948 # Neither direct hardcoding nor static linking is supported with a
16950 hardcode_direct_GCJ=unsupported
16955 if test "$host_cpu" = ia64; then
16956 # On IA64, the linker does run time linking by default, so we don't
16957 # have to do anything special.
16958 aix_use_runtimelinking=no
16959 exp_sym_flag='-Bexport'
16962 # If we're using GNU nm, then we don't want the "-C" option.
16963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16964 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16965 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'
16967 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'
16969 aix_use_runtimelinking=no
16971 # Test if we are trying to use run time linking or normal
16972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16973 # need to do runtime linking.
16974 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16975 for ld_flag in $LDFLAGS; do
16976 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16977 aix_use_runtimelinking=yes
16984 exp_sym_flag='-bexport'
16985 no_entry_flag='-bnoentry'
16988 # When large executables or shared objects are built, AIX ld can
16989 # have problems creating the table of contents. If linking a library
16990 # or program results in "error TOC overflow" add -mminimal-toc to
16991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16994 archive_cmds_GCJ=''
16995 hardcode_direct_GCJ=yes
16996 hardcode_libdir_separator_GCJ=':'
16997 link_all_deplibs_GCJ=yes
16999 if test "$GCC" = yes; then
17000 case $host_os in aix4.[012]|aix4.[012].*)
17001 # We only want to do this on AIX 4.2 and lower, the check
17002 # below for broken collect2 doesn't work under 4.3+
17003 collect2name=`${CC} -print-prog-name=collect2`
17004 if test -f "$collect2name" && \
17005 strings "$collect2name" | grep resolve_lib_name >/dev/null
17007 # We have reworked collect2
17008 hardcode_direct_GCJ=yes
17010 # We have old collect2
17011 hardcode_direct_GCJ=unsupported
17012 # It fails to find uninstalled libraries when the uninstalled
17013 # path is not listed in the libpath. Setting hardcode_minus_L
17014 # to unsupported forces relinking
17015 hardcode_minus_L_GCJ=yes
17016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017 hardcode_libdir_separator_GCJ=
17021 shared_flag='-shared'
17022 if test "$aix_use_runtimelinking" = yes; then
17023 shared_flag="$shared_flag "'${wl}-G'
17027 if test "$host_cpu" = ia64; then
17028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17029 # chokes on -Wl,-G. The following line is correct:
17032 if test "$aix_use_runtimelinking" = yes; then
17033 shared_flag='${wl}-G'
17035 shared_flag='${wl}-bM:SRE'
17040 # It seems that -bexpall does not export symbols beginning with
17041 # underscore (_), so it is better to generate a list of symbols to export.
17042 always_export_symbols_GCJ=yes
17043 if test "$aix_use_runtimelinking" = yes; then
17044 # Warning - without using the other runtime loading flags (-brtl),
17045 # -berok will link without error, but may produce a broken library.
17046 allow_undefined_flag_GCJ='-berok'
17047 # Determine the default libpath from the value encoded in an empty executable.
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest$ac_exeext &&
17080 $as_test_x conftest$ac_exeext; then
17082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17084 # Check for a 64-bit object if we didn't find anything.
17085 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; }
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17095 conftest$ac_exeext conftest.$ac_ext
17096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17098 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17099 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"
17101 if test "$host_cpu" = ia64; then
17102 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17103 allow_undefined_flag_GCJ="-z nodefs"
17104 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"
17106 # Determine the default libpath from the value encoded in an empty executable.
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext &&
17139 $as_test_x conftest$ac_exeext; then
17141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17143 # Check for a 64-bit object if we didn't find anything.
17144 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; }
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17157 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17158 # Warning - without using the other run time loading flags,
17159 # -berok will link without error, but may produce a broken library.
17160 no_undefined_flag_GCJ=' ${wl}-bernotok'
17161 allow_undefined_flag_GCJ=' ${wl}-berok'
17162 # Exported symbols can be pulled into shared objects from archives
17163 whole_archive_flag_spec_GCJ='$convenience'
17164 archive_cmds_need_lc_GCJ=yes
17165 # This is similar to how AIX traditionally builds its shared libraries.
17166 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'
17172 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)'
17173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174 hardcode_minus_L_GCJ=yes
17175 # see comment about different semantics on the GNU ld section
17180 export_dynamic_flag_spec_GCJ=-rdynamic
17183 cygwin* | mingw* | pw32*)
17184 # When not using gcc, we currently assume that we are using
17185 # Microsoft Visual C++.
17186 # hardcode_libdir_flag_spec is actually meaningless, as there is
17187 # no search path for DLLs.
17188 hardcode_libdir_flag_spec_GCJ=' '
17189 allow_undefined_flag_GCJ=unsupported
17190 # Tell ltmain to make .lib files, not .a files.
17192 # Tell ltmain to make .dll files, not .so files.
17194 # FIXME: Setting linknames here is a bad hack.
17195 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17196 # The linker will automatically build a .lib file if we build a DLL.
17197 old_archive_From_new_cmds_GCJ='true'
17198 # FIXME: Should let the user specify the lib program.
17199 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17200 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17201 enable_shared_with_static_runtimes_GCJ=yes
17204 darwin* | rhapsody*)
17206 rhapsody* | darwin1.[012])
17207 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17211 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17213 case ${MACOSX_DEPLOYMENT_TARGET} in
17215 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17218 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17224 archive_cmds_need_lc_GCJ=no
17225 hardcode_direct_GCJ=no
17226 hardcode_automatic_GCJ=yes
17227 hardcode_shlibpath_var_GCJ=unsupported
17228 whole_archive_flag_spec_GCJ=''
17229 link_all_deplibs_GCJ=yes
17230 if test "$GCC" = yes ; then
17231 output_verbose_link_cmd='echo'
17232 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17233 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17235 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}'
17236 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}'
17238 case $cc_basename in
17240 output_verbose_link_cmd='echo'
17241 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17242 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17244 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}'
17245 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}'
17255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17257 hardcode_shlibpath_var_GCJ=no
17264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17265 # support. Future versions do this automatically, but an explicit c++rt0.o
17266 # does not break anything, and helps significantly (at the cost of a little
17269 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17270 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17271 hardcode_direct_GCJ=yes
17272 hardcode_shlibpath_var_GCJ=no
17275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17277 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278 hardcode_direct_GCJ=yes
17279 hardcode_minus_L_GCJ=yes
17280 hardcode_shlibpath_var_GCJ=no
17283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17284 freebsd* | dragonfly*)
17285 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17286 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17287 hardcode_direct_GCJ=yes
17288 hardcode_shlibpath_var_GCJ=no
17292 if test "$GCC" = yes; then
17293 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'
17295 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'
17297 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17298 hardcode_libdir_separator_GCJ=:
17299 hardcode_direct_GCJ=yes
17301 # hardcode_minus_L: Not really in the search PATH,
17302 # but as the default location of the library.
17303 hardcode_minus_L_GCJ=yes
17304 export_dynamic_flag_spec_GCJ='${wl}-E'
17308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17309 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17311 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17313 if test "$with_gnu_ld" = no; then
17314 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17315 hardcode_libdir_separator_GCJ=:
17317 hardcode_direct_GCJ=yes
17318 export_dynamic_flag_spec_GCJ='${wl}-E'
17320 # hardcode_minus_L: Not really in the search PATH,
17321 # but as the default location of the library.
17322 hardcode_minus_L_GCJ=yes
17327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17330 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17336 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17342 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17352 if test "$with_gnu_ld" = no; then
17353 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17354 hardcode_libdir_separator_GCJ=:
17358 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17359 hardcode_direct_GCJ=no
17360 hardcode_shlibpath_var_GCJ=no
17363 hardcode_direct_GCJ=yes
17364 export_dynamic_flag_spec_GCJ='${wl}-E'
17366 # hardcode_minus_L: Not really in the search PATH,
17367 # but as the default location of the library.
17368 hardcode_minus_L_GCJ=yes
17374 irix5* | irix6* | nonstopux*)
17375 if test "$GCC" = yes; then
17376 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'
17378 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'
17379 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17382 hardcode_libdir_separator_GCJ=:
17383 link_all_deplibs_GCJ=yes
17386 netbsd* | netbsdelf*-gnu)
17387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17390 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17392 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17393 hardcode_direct_GCJ=yes
17394 hardcode_shlibpath_var_GCJ=no
17398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17399 hardcode_direct_GCJ=yes
17400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17401 hardcode_libdir_separator_GCJ=:
17402 hardcode_shlibpath_var_GCJ=no
17406 hardcode_direct_GCJ=yes
17407 hardcode_shlibpath_var_GCJ=no
17408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17409 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17412 export_dynamic_flag_spec_GCJ='${wl}-E'
17415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17416 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17420 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429 hardcode_minus_L_GCJ=yes
17430 allow_undefined_flag_GCJ=unsupported
17431 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'
17432 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17436 if test "$GCC" = yes; then
17437 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17438 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'
17440 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17441 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'
17443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17444 hardcode_libdir_separator_GCJ=:
17447 osf4* | osf5*) # as osf3* with the addition of -msym flag
17448 if test "$GCC" = yes; then
17449 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17450 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'
17451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17453 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17454 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'
17455 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~
17456 $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'
17458 # Both c and cxx compiler support -rpath directly
17459 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17461 hardcode_libdir_separator_GCJ=:
17465 no_undefined_flag_GCJ=' -z text'
17466 if test "$GCC" = yes; then
17468 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17469 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17473 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17474 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17477 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17478 hardcode_shlibpath_var_GCJ=no
17480 solaris2.[0-5] | solaris2.[0-5].*) ;;
17482 # The compiler driver will combine linker options so we
17483 # cannot just pass the convience library names through
17484 # without $wl, iff we do not link with $LD.
17485 # Luckily, gcc supports the same syntax we need for Sun Studio.
17486 # Supported since Solaris 2.6 (maybe 2.5.1?)
17489 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17491 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' ;;
17494 link_all_deplibs_GCJ=yes
17498 if test "x$host_vendor" = xsequent; then
17499 # Use $CC to link under sequent, because it throws in some extra .o
17500 # files that make .init and .fini sections work.
17501 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17506 hardcode_direct_GCJ=yes
17507 hardcode_minus_L_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=no
17512 case $host_vendor in
17514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17515 hardcode_direct_GCJ=yes # is this really true???
17518 ## LD is ld it makes a PLAMLIB
17519 ## CC just makes a GrossModule.
17520 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17521 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17522 hardcode_direct_GCJ=no
17525 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17529 runpath_var='LD_RUN_PATH'
17530 hardcode_shlibpath_var_GCJ=no
17534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17535 hardcode_shlibpath_var_GCJ=no
17536 export_dynamic_flag_spec_GCJ='-Bexport'
17540 if test -d /usr/nec; then
17541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542 hardcode_shlibpath_var_GCJ=no
17543 runpath_var=LD_RUN_PATH
17544 hardcode_runpath_var=yes
17549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17550 no_undefined_flag_GCJ='${wl}-z,text'
17551 archive_cmds_need_lc_GCJ=no
17552 hardcode_shlibpath_var_GCJ=no
17553 runpath_var='LD_RUN_PATH'
17555 if test "$GCC" = yes; then
17556 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17559 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17560 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 sysv5* | sco3.2v5* | sco5v6*)
17565 # Note: We can NOT use -z defs as we might desire, because we do not
17566 # link with -lc, and that would cause any symbols used from libc to
17567 # always be unresolved, which means just about no library would
17568 # ever link correctly. If we're not using GNU ld we use -z text
17569 # though, which does catch some bad symbols but isn't as heavy-handed
17571 no_undefined_flag_GCJ='${wl}-z,text'
17572 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17573 archive_cmds_need_lc_GCJ=no
17574 hardcode_shlibpath_var_GCJ=no
17575 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17576 hardcode_libdir_separator_GCJ=':'
17577 link_all_deplibs_GCJ=yes
17578 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17579 runpath_var='LD_RUN_PATH'
17581 if test "$GCC" = yes; then
17582 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17593 hardcode_shlibpath_var_GCJ=no
17602 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17603 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17604 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17607 # Do we need to explicitly link libc?
17609 case "x$archive_cmds_need_lc_GCJ" in
17611 # Assume -lc should be added
17612 archive_cmds_need_lc_GCJ=yes
17614 if test "$enable_shared" = yes && test "$GCC" = yes; then
17615 case $archive_cmds_GCJ in
17617 # FIXME: we may have to deal with multi-command sequences.
17620 # Test whether the compiler implicitly links with -lc since on some
17621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17622 # to ld, don't add -lc before -lgcc.
17623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17629 (eval $ac_compile) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } 2>conftest.err; then
17635 libobjs=conftest.$ac_objext
17637 wl=$lt_prog_compiler_wl_GCJ
17638 pic_flag=$lt_prog_compiler_pic_GCJ
17644 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17645 allow_undefined_flag_GCJ=
17646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17647 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }
17652 archive_cmds_need_lc_GCJ=no
17654 archive_cmds_need_lc_GCJ=yes
17656 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17658 cat conftest.err 1>&5
17661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17662 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17669 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17670 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17671 library_names_spec=
17672 libname_spec='lib$name'
17676 postuninstall_cmds=
17680 shlibpath_overrides_runpath=unknown
17682 dynamic_linker="$host_os ld.so"
17683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17684 if test "$GCC" = yes; then
17685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17686 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17687 # if the path contains ";" then we assume it to be the separator
17688 # otherwise default to the standard path separator (i.e. ":") - it is
17689 # assumed that no part of a normal pathname contains ";" but that should
17690 # okay in the real world where ";" in dirpaths is itself problematic.
17691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17698 need_lib_prefix=unknown
17699 hardcode_into_libs=no
17701 # when you set need_version to no, make sure it does not cause -set_version
17702 # flags to be left without arguments
17703 need_version=unknown
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17709 shlibpath_var=LIBPATH
17711 # AIX 3 has no versioning support, so we append a major version to the name.
17712 soname_spec='${libname}${release}${shared_ext}$major'
17719 hardcode_into_libs=yes
17720 if test "$host_cpu" = ia64; then
17721 # AIX 5 supports IA64
17722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17723 shlibpath_var=LD_LIBRARY_PATH
17725 # With GCC up to 2.95.x, collect2 would create an import file
17726 # for dependence libraries. The import file would start with
17727 # the line `#! .'. This would cause the generated library to
17728 # depend on `.', always an invalid library. This was fixed in
17729 # development snapshots of GCC prior to 3.0.
17731 aix4 | aix4.[01] | aix4.[01].*)
17732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17737 can_build_shared=no
17741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17742 # soname into executable. Probably we can add versioning support to
17743 # collect2, so additional links can be useful in future.
17744 if test "$aix_use_runtimelinking" = yes; then
17745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17746 # instead of lib<name>.a to let people know that these are not
17747 # typical AIX shared libraries.
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750 # We preserve .a as extension for shared libraries through AIX4.2
17751 # and later when we are not doing run time linking.
17752 library_names_spec='${libname}${release}.a $libname.a'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17755 shlibpath_var=LIBPATH
17760 library_names_spec='$libname.ixlibrary $libname.a'
17761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17762 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'
17766 library_names_spec='${libname}${shared_ext}'
17767 dynamic_linker="$host_os ld.so"
17768 shlibpath_var=LIBRARY_PATH
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775 soname_spec='${libname}${release}${shared_ext}$major'
17776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17780 # the default ld.so.conf also contains /usr/contrib/lib and
17781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17782 # libtool to hard-code these into programs
17785 cygwin* | mingw* | pw32*)
17786 version_type=windows
17791 case $GCC,$host_os in
17792 yes,cygwin* | yes,mingw* | yes,pw32*)
17793 library_names_spec='$libname.dll.a'
17794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17795 postinstall_cmds='base_file=`basename \${file}`~
17796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17797 dldir=$destdir/`dirname \$dlpath`~
17798 test -d \$dldir || mkdir -p \$dldir~
17799 $install_prog $dir/$dlname \$dldir/$dlname~
17800 chmod a+x \$dldir/$dlname'
17801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17802 dlpath=$dir/\$dldll~
17804 shlibpath_overrides_runpath=yes
17808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17813 # MinGW DLLs use traditional 'lib' prefix
17814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17817 # It is most probably a Windows format PATH printed by
17818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17819 # path with ; separators, and with drive letters. We can handle the
17820 # drive letters (cygwin fileutils understands them), so leave them,
17821 # especially as we might pass files found there to a mingw objdump,
17822 # which wouldn't understand a cygwinified path. Ahh.
17823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17829 # pw32 DLLs use 'pw' prefix rather than 'lib'
17830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17839 dynamic_linker='Win32 ld.exe'
17840 # FIXME: first we should search . and the directory the executable is in
17844 darwin* | rhapsody*)
17845 dynamic_linker="$host_os dyld"
17846 version_type=darwin
17849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17850 soname_spec='${libname}${release}${major}$shared_ext'
17851 shlibpath_overrides_runpath=yes
17852 shlibpath_var=DYLD_LIBRARY_PATH
17853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17855 if test "$GCC" = yes; then
17856 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"`
17858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17868 soname_spec='${libname}${release}${shared_ext}$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17876 freebsd* | dragonfly*)
17877 # DragonFly does not have aout. When/if they implement a new
17878 # versioning mechanism, adjust this.
17879 if test -x /usr/bin/objformat; then
17880 objformat=`/usr/bin/objformat`
17883 freebsd[123]*) objformat=aout ;;
17884 *) objformat=elf ;;
17887 version_type=freebsd-$objformat
17888 case $version_type in
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17899 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17904 freebsd3.[01]* | freebsdelf3.[01]*)
17905 shlibpath_overrides_runpath=yes
17906 hardcode_into_libs=yes
17908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17910 shlibpath_overrides_runpath=no
17911 hardcode_into_libs=yes
17913 freebsd*) # from 4.6 on
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17925 soname_spec='${libname}${release}${shared_ext}$major'
17926 shlibpath_var=LD_LIBRARY_PATH
17927 hardcode_into_libs=yes
17930 hpux9* | hpux10* | hpux11*)
17931 # Give a soname corresponding to the major version so that dld.sl refuses to
17932 # link against other versions.
17939 hardcode_into_libs=yes
17940 dynamic_linker="$host_os dld.so"
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17944 soname_spec='${libname}${release}${shared_ext}$major'
17945 if test "X$HPUX_IA64_MODE" = X32; then
17946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17954 hardcode_into_libs=yes
17955 dynamic_linker="$host_os dld.sl"
17956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17959 soname_spec='${libname}${release}${shared_ext}$major'
17960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17965 dynamic_linker="$host_os dld.sl"
17966 shlibpath_var=SHLIB_PATH
17967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17973 postinstall_cmds='chmod 555 $lib'
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17983 shlibpath_var=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath=no
17985 hardcode_into_libs=yes
17988 irix5* | irix6* | nonstopux*)
17990 nonstopux*) version_type=nonstopux ;;
17992 if test "$lt_cv_prog_gnu_ld" = yes; then
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18003 irix5* | nonstopux*)
18004 libsuff= shlibsuff=
18007 case $LD in # libtool.m4 will add one of these switches to LD
18008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18009 libsuff= shlibsuff= libmagic=32-bit;;
18010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18011 libsuff=32 shlibsuff=N32 libmagic=N32;;
18012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18014 *) libsuff= shlibsuff= libmagic=never-match;;
18018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18019 shlibpath_overrides_runpath=no
18020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18022 hardcode_into_libs=yes
18025 # No shared lib support for Linux oldld, aout, or coff.
18026 linux*oldld* | linux*aout* | linux*coff*)
18030 # This must be Linux ELF.
18031 linux* | k*bsd*-gnu)
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 shlibpath_overrides_runpath=no
18040 # This implies no fast_install, which is unacceptable.
18041 # Some rework will be needed to allow for fast_install
18042 # before this can be enabled.
18043 hardcode_into_libs=yes
18045 # Append ld.so.conf contents to the search path
18046 if test -f /etc/ld.so.conf; then
18047 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' ' '`
18048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18051 # We used to test for /lib/ld.so.1 and disable shared libraries on
18052 # powerpc, because MkLinux only supported shared libraries with the
18053 # GNU dynamic linker. Since this was broken with cross compilers,
18054 # most powerpc-linux boxes support dynamic linking these days and
18055 # people can always --disable-shared, the test was removed, and we
18056 # assume the GNU/Linux dynamic linker is in use.
18057 dynamic_linker='GNU/Linux ld.so'
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 shlibpath_overrides_runpath=no
18068 hardcode_into_libs=yes
18069 dynamic_linker='NetBSD ld.elf_so'
18076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18079 dynamic_linker='NetBSD (a.out) ld.so'
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 dynamic_linker='NetBSD ld.elf_so'
18085 shlibpath_var=LD_LIBRARY_PATH
18086 shlibpath_overrides_runpath=yes
18087 hardcode_into_libs=yes
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 shlibpath_overrides_runpath=yes
18101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102 soname_spec='${libname}${release}${shared_ext}$major'
18103 shlibpath_var=LD_LIBRARY_PATH
18104 shlibpath_overrides_runpath=yes
18109 sys_lib_dlsearch_path_spec="/usr/lib"
18111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18114 *) need_version=no ;;
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18118 shlibpath_var=LD_LIBRARY_PATH
18119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121 openbsd2.[89] | openbsd2.[89].*)
18122 shlibpath_overrides_runpath=no
18125 shlibpath_overrides_runpath=yes
18129 shlibpath_overrides_runpath=yes
18134 libname_spec='$name'
18137 library_names_spec='$libname${shared_ext} $libname.a'
18138 dynamic_linker='OS/2 ld.exe'
18139 shlibpath_var=LIBPATH
18142 osf3* | osf4* | osf5*)
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 shlibpath_var=LD_LIBRARY_PATH
18149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158 soname_spec='${libname}${release}${shared_ext}$major'
18159 shlibpath_var=LD_LIBRARY_PATH
18160 shlibpath_overrides_runpath=yes
18161 hardcode_into_libs=yes
18162 # ldd complains unless libraries are executable
18163 postinstall_cmds='chmod +x $lib'
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18170 shlibpath_var=LD_LIBRARY_PATH
18171 shlibpath_overrides_runpath=yes
18172 if test "$with_gnu_ld" = yes; then
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 case $host_vendor in
18185 shlibpath_overrides_runpath=no
18187 export_dynamic_flag_spec='${wl}-Blargedynsym'
18188 runpath_var=LD_RUN_PATH
18196 shlibpath_overrides_runpath=no
18197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18203 if test -d /usr/nec ;then
18205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18206 soname_spec='$libname${shared_ext}.$major'
18207 shlibpath_var=LD_LIBRARY_PATH
18211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18212 version_type=freebsd-elf
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 shlibpath_var=LD_LIBRARY_PATH
18218 hardcode_into_libs=yes
18219 if test "$with_gnu_ld" = yes; then
18220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18221 shlibpath_overrides_runpath=no
18223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18224 shlibpath_overrides_runpath=yes
18227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18231 sys_lib_dlsearch_path_spec='/usr/lib'
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 shlibpath_var=LD_LIBRARY_PATH
18245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18246 echo "${ECHO_T}$dynamic_linker" >&6; }
18247 test "$dynamic_linker" = no && can_build_shared=no
18249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18250 if test "$GCC" = yes; then
18251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18256 hardcode_action_GCJ=
18257 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18258 test -n "$runpath_var_GCJ" || \
18259 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18261 # We can hardcode non-existant directories.
18262 if test "$hardcode_direct_GCJ" != no &&
18263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18264 # have to relink, otherwise we might link with an installed library
18265 # when we should be linking with a yet-to-be-installed one
18266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18267 test "$hardcode_minus_L_GCJ" != no; then
18268 # Linking always hardcodes the temporary library directory.
18269 hardcode_action_GCJ=relink
18271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18272 hardcode_action_GCJ=immediate
18275 # We cannot hardcode anything, or else we can only hardcode existing
18277 hardcode_action_GCJ=unsupported
18279 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18280 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18282 if test "$hardcode_action_GCJ" = relink; then
18283 # Fast installation is not supported
18284 enable_fast_install=no
18285 elif test "$shlibpath_overrides_runpath" = yes ||
18286 test "$enable_shared" = no; then
18287 # Fast installation is not necessary
18288 enable_fast_install=needless
18292 # The else clause should only fire when bootstrapping the
18293 # libtool distribution, otherwise you forgot to ship ltmain.sh
18294 # with your package, and you will get complaints that there are
18295 # no rules to generate ltmain.sh.
18296 if test -f "$ltmain"; then
18297 # See if we are running on zsh, and set the options which allow our commands through
18298 # without removal of \ escapes.
18299 if test -n "${ZSH_VERSION+set}" ; then
18300 setopt NO_GLOB_SUBST
18302 # Now quote all the things that may contain metacharacters while being
18303 # careful not to overquote the AC_SUBSTed values. We take copies of the
18304 # variables and quote the copies for generation of the libtool script.
18305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18309 deplibs_check_method reload_flag reload_cmds need_locks \
18310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18311 lt_cv_sys_global_symbol_to_c_name_address \
18312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18313 old_postinstall_cmds old_postuninstall_cmds \
18317 lt_prog_compiler_wl_GCJ \
18318 lt_prog_compiler_pic_GCJ \
18319 lt_prog_compiler_static_GCJ \
18320 lt_prog_compiler_no_builtin_flag_GCJ \
18321 export_dynamic_flag_spec_GCJ \
18322 thread_safe_flag_spec_GCJ \
18323 whole_archive_flag_spec_GCJ \
18324 enable_shared_with_static_runtimes_GCJ \
18325 old_archive_cmds_GCJ \
18326 old_archive_from_new_cmds_GCJ \
18327 predep_objects_GCJ \
18328 postdep_objects_GCJ \
18331 compiler_lib_search_path_GCJ \
18333 archive_expsym_cmds_GCJ \
18334 postinstall_cmds_GCJ \
18335 postuninstall_cmds_GCJ \
18336 old_archive_from_expsyms_cmds_GCJ \
18337 allow_undefined_flag_GCJ \
18338 no_undefined_flag_GCJ \
18339 export_symbols_cmds_GCJ \
18340 hardcode_libdir_flag_spec_GCJ \
18341 hardcode_libdir_flag_spec_ld_GCJ \
18342 hardcode_libdir_separator_GCJ \
18343 hardcode_automatic_GCJ \
18345 module_expsym_cmds_GCJ \
18346 lt_cv_prog_compiler_c_o_GCJ \
18347 exclude_expsyms_GCJ \
18348 include_expsyms_GCJ; do
18351 old_archive_cmds_GCJ | \
18352 old_archive_from_new_cmds_GCJ | \
18353 archive_cmds_GCJ | \
18354 archive_expsym_cmds_GCJ | \
18355 module_cmds_GCJ | \
18356 module_expsym_cmds_GCJ | \
18357 old_archive_from_expsyms_cmds_GCJ | \
18358 export_symbols_cmds_GCJ | \
18359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18360 postinstall_cmds | postuninstall_cmds | \
18361 old_postinstall_cmds | old_postuninstall_cmds | \
18362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18363 # Double-quote double-evaled strings.
18364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18373 *'\$0 --fallback-echo"')
18374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18380 cat <<__EOF__ >> "$cfgfile"
18381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18385 # Shell to use when invoking shell scripts.
18388 # Whether or not to build shared libraries.
18389 build_libtool_libs=$enable_shared
18391 # Whether or not to build static libraries.
18392 build_old_libs=$enable_static
18394 # Whether or not to add -lc for building shared libraries.
18395 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18397 # Whether or not to disallow shared libs when runtime libs are static
18398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18400 # Whether or not to optimize for fast installation.
18401 fast_install=$enable_fast_install
18404 host_alias=$host_alias
18408 # The build system.
18409 build_alias=$build_alias
18413 # An echo program that does not interpret backslashes.
18418 AR_FLAGS=$lt_AR_FLAGS
18423 # LTCC compiler flags.
18424 LTCFLAGS=$lt_LTCFLAGS
18426 # A language-specific compiler.
18427 CC=$lt_compiler_GCJ
18429 # Is the compiler the GNU C compiler?
18435 # The linker used to build libraries.
18438 # Whether we need hard or soft links.
18441 # A BSD-compatible nm program.
18444 # A symbol stripping program
18447 # Used to examine libraries when file_magic_cmd begins "file"
18448 MAGIC_CMD=$MAGIC_CMD
18450 # Used on cygwin: DLL creation program.
18453 # Used on cygwin: object dumper.
18456 # Used on cygwin: assembler.
18459 # The name of the directory that contains temporary libtool files.
18462 # How to create reloadable object files.
18463 reload_flag=$lt_reload_flag
18464 reload_cmds=$lt_reload_cmds
18466 # How to pass a linker flag through the compiler.
18467 wl=$lt_lt_prog_compiler_wl_GCJ
18469 # Object file suffix (normally "o").
18470 objext="$ac_objext"
18472 # Old archive suffix (normally "a").
18475 # Shared library suffix (normally ".so").
18476 shrext_cmds='$shrext_cmds'
18478 # Executable file suffix (normally "").
18481 # Additional compiler flags for building library objects.
18482 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18485 # What is the maximum length of a command?
18486 max_cmd_len=$lt_cv_sys_max_cmd_len
18488 # Does compiler simultaneously support -c and -o options?
18489 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18491 # Must we lock files when doing compilation?
18492 need_locks=$lt_need_locks
18494 # Do we need the lib prefix for modules?
18495 need_lib_prefix=$need_lib_prefix
18497 # Do we need a version for libraries?
18498 need_version=$need_version
18500 # Whether dlopen is supported.
18501 dlopen_support=$enable_dlopen
18503 # Whether dlopen of programs is supported.
18504 dlopen_self=$enable_dlopen_self
18506 # Whether dlopen of statically linked programs is supported.
18507 dlopen_self_static=$enable_dlopen_self_static
18509 # Compiler flag to prevent dynamic linking.
18510 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18512 # Compiler flag to turn off builtin functions.
18513 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18515 # Compiler flag to allow reflexive dlopens.
18516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18518 # Compiler flag to generate shared objects directly from archives.
18519 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18521 # Compiler flag to generate thread-safe objects.
18522 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18524 # Library versioning type.
18525 version_type=$version_type
18527 # Format of library name prefix.
18528 libname_spec=$lt_libname_spec
18530 # List of archive names. First name is the real one, the rest are links.
18531 # The last name is the one that the linker finds with -lNAME.
18532 library_names_spec=$lt_library_names_spec
18534 # The coded name of the library, if different from the real name.
18535 soname_spec=$lt_soname_spec
18537 # Commands used to build and install an old-style archive.
18539 old_archive_cmds=$lt_old_archive_cmds_GCJ
18540 old_postinstall_cmds=$lt_old_postinstall_cmds
18541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18543 # Create an old-style archive from a shared archive.
18544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18546 # Create a temporary old-style archive to link instead of a shared archive.
18547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18549 # Commands used to build and install a shared archive.
18550 archive_cmds=$lt_archive_cmds_GCJ
18551 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18552 postinstall_cmds=$lt_postinstall_cmds
18553 postuninstall_cmds=$lt_postuninstall_cmds
18555 # Commands used to build a loadable module (assumed same as above if empty)
18556 module_cmds=$lt_module_cmds_GCJ
18557 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18559 # Commands to strip libraries.
18560 old_striplib=$lt_old_striplib
18561 striplib=$lt_striplib
18563 # Dependencies to place before the objects being linked to create a
18565 predep_objects=$lt_predep_objects_GCJ
18567 # Dependencies to place after the objects being linked to create a
18569 postdep_objects=$lt_postdep_objects_GCJ
18571 # Dependencies to place before the objects being linked to create a
18573 predeps=$lt_predeps_GCJ
18575 # Dependencies to place after the objects being linked to create a
18577 postdeps=$lt_postdeps_GCJ
18579 # The library search path used internally by the compiler when linking
18580 # a shared library.
18581 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18583 # Method to check whether dependent libraries are shared objects.
18584 deplibs_check_method=$lt_deplibs_check_method
18586 # Command to use when deplibs_check_method == file_magic.
18587 file_magic_cmd=$lt_file_magic_cmd
18589 # Flag that allows shared libraries with undefined symbols to be built.
18590 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18592 # Flag that forces no undefined symbols.
18593 no_undefined_flag=$lt_no_undefined_flag_GCJ
18595 # Commands used to finish a libtool library installation in a directory.
18596 finish_cmds=$lt_finish_cmds
18598 # Same as above, but a single script fragment to be evaled but not shown.
18599 finish_eval=$lt_finish_eval
18601 # Take the output of nm and produce a listing of raw symbols and C names.
18602 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18604 # Transform the output of nm in a proper C declaration
18605 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18607 # Transform the output of nm in a C name address pair
18608 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18610 # This is the shared library runtime path variable.
18611 runpath_var=$runpath_var
18613 # This is the shared library path variable.
18614 shlibpath_var=$shlibpath_var
18616 # Is shlibpath searched before the hard-coded library search path?
18617 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18619 # How to hardcode a shared library path into an executable.
18620 hardcode_action=$hardcode_action_GCJ
18622 # Whether we should hardcode library paths into libraries.
18623 hardcode_into_libs=$hardcode_into_libs
18625 # Flag to hardcode \$libdir into a binary during linking.
18626 # This must work even if \$libdir does not exist.
18627 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18629 # If ld is used when linking, flag to hardcode \$libdir into
18630 # a binary during linking. This must work even if \$libdir does
18632 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18634 # Whether we need a single -rpath flag with a separated argument.
18635 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18637 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18638 # resulting binary.
18639 hardcode_direct=$hardcode_direct_GCJ
18641 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18642 # resulting binary.
18643 hardcode_minus_L=$hardcode_minus_L_GCJ
18645 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18646 # the resulting binary.
18647 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18649 # Set to yes if building a shared library automatically hardcodes DIR into the library
18650 # and all subsequent libraries and executables linked against it.
18651 hardcode_automatic=$hardcode_automatic_GCJ
18653 # Variables whose values should be saved in libtool wrapper scripts and
18654 # restored at relink time.
18655 variables_saved_for_relink="$variables_saved_for_relink"
18657 # Whether libtool must link a program against all its dependency libraries.
18658 link_all_deplibs=$link_all_deplibs_GCJ
18660 # Compile-time system search path for libraries
18661 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18663 # Run-time system search path for libraries
18664 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18666 # Fix the shell variable \$srcfile for the compiler.
18667 fix_srcfile_path="$fix_srcfile_path_GCJ"
18669 # Set to yes if exported symbols are required.
18670 always_export_symbols=$always_export_symbols_GCJ
18672 # The commands to list exported symbols.
18673 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18675 # The commands to extract the exported symbol list from a shared archive.
18676 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18678 # Symbols that should not be listed in the preloaded symbols.
18679 exclude_expsyms=$lt_exclude_expsyms_GCJ
18681 # Symbols that must always be exported.
18682 include_expsyms=$lt_include_expsyms_GCJ
18684 # ### END LIBTOOL TAG CONFIG: $tagname
18690 # If there is no Makefile yet, we rely on a make rule to execute
18691 # `config.status --recheck' to rerun these tests and create the
18692 # libtool script then.
18693 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18694 if test -f "$ltmain_in"; then
18695 test -f Makefile && make "$ltmain"
18701 ac_cpp='$CPP $CPPFLAGS'
18702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18716 # Source file extension for RC test sources.
18719 # Object file extension for compiled RC test sources.
18723 # Code to be used in simple compile tests
18724 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18726 # Code to be used in simple link tests
18727 lt_simple_link_test_code="$lt_simple_compile_test_code"
18729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18731 # If no C compiler was specified, use CC.
18734 # If no C compiler flags were specified, use CFLAGS.
18735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18737 # Allow CC to be a program name with arguments.
18741 # save warnings/boilerplate of simple test code
18742 ac_outfile=conftest.$ac_objext
18743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18745 _lt_compiler_boilerplate=`cat conftest.err`
18748 ac_outfile=conftest.$ac_objext
18749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18751 _lt_linker_boilerplate=`cat conftest.err`
18755 # Allow CC to be a program name with arguments.
18760 for cc_temp in $compiler""; do
18762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18770 lt_cv_prog_compiler_c_o_RC=yes
18772 # The else clause should only fire when bootstrapping the
18773 # libtool distribution, otherwise you forgot to ship ltmain.sh
18774 # with your package, and you will get complaints that there are
18775 # no rules to generate ltmain.sh.
18776 if test -f "$ltmain"; then
18777 # See if we are running on zsh, and set the options which allow our commands through
18778 # without removal of \ escapes.
18779 if test -n "${ZSH_VERSION+set}" ; then
18780 setopt NO_GLOB_SUBST
18782 # Now quote all the things that may contain metacharacters while being
18783 # careful not to overquote the AC_SUBSTed values. We take copies of the
18784 # variables and quote the copies for generation of the libtool script.
18785 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18787 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18788 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18789 deplibs_check_method reload_flag reload_cmds need_locks \
18790 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18791 lt_cv_sys_global_symbol_to_c_name_address \
18792 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18793 old_postinstall_cmds old_postuninstall_cmds \
18797 lt_prog_compiler_wl_RC \
18798 lt_prog_compiler_pic_RC \
18799 lt_prog_compiler_static_RC \
18800 lt_prog_compiler_no_builtin_flag_RC \
18801 export_dynamic_flag_spec_RC \
18802 thread_safe_flag_spec_RC \
18803 whole_archive_flag_spec_RC \
18804 enable_shared_with_static_runtimes_RC \
18805 old_archive_cmds_RC \
18806 old_archive_from_new_cmds_RC \
18807 predep_objects_RC \
18808 postdep_objects_RC \
18811 compiler_lib_search_path_RC \
18813 archive_expsym_cmds_RC \
18814 postinstall_cmds_RC \
18815 postuninstall_cmds_RC \
18816 old_archive_from_expsyms_cmds_RC \
18817 allow_undefined_flag_RC \
18818 no_undefined_flag_RC \
18819 export_symbols_cmds_RC \
18820 hardcode_libdir_flag_spec_RC \
18821 hardcode_libdir_flag_spec_ld_RC \
18822 hardcode_libdir_separator_RC \
18823 hardcode_automatic_RC \
18825 module_expsym_cmds_RC \
18826 lt_cv_prog_compiler_c_o_RC \
18827 exclude_expsyms_RC \
18828 include_expsyms_RC; do
18831 old_archive_cmds_RC | \
18832 old_archive_from_new_cmds_RC | \
18833 archive_cmds_RC | \
18834 archive_expsym_cmds_RC | \
18836 module_expsym_cmds_RC | \
18837 old_archive_from_expsyms_cmds_RC | \
18838 export_symbols_cmds_RC | \
18839 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18840 postinstall_cmds | postuninstall_cmds | \
18841 old_postinstall_cmds | old_postuninstall_cmds | \
18842 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18843 # Double-quote double-evaled strings.
18844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18853 *'\$0 --fallback-echo"')
18854 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18860 cat <<__EOF__ >> "$cfgfile"
18861 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18865 # Shell to use when invoking shell scripts.
18868 # Whether or not to build shared libraries.
18869 build_libtool_libs=$enable_shared
18871 # Whether or not to build static libraries.
18872 build_old_libs=$enable_static
18874 # Whether or not to add -lc for building shared libraries.
18875 build_libtool_need_lc=$archive_cmds_need_lc_RC
18877 # Whether or not to disallow shared libs when runtime libs are static
18878 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18880 # Whether or not to optimize for fast installation.
18881 fast_install=$enable_fast_install
18884 host_alias=$host_alias
18888 # The build system.
18889 build_alias=$build_alias
18893 # An echo program that does not interpret backslashes.
18898 AR_FLAGS=$lt_AR_FLAGS
18903 # LTCC compiler flags.
18904 LTCFLAGS=$lt_LTCFLAGS
18906 # A language-specific compiler.
18909 # Is the compiler the GNU C compiler?
18915 # The linker used to build libraries.
18918 # Whether we need hard or soft links.
18921 # A BSD-compatible nm program.
18924 # A symbol stripping program
18927 # Used to examine libraries when file_magic_cmd begins "file"
18928 MAGIC_CMD=$MAGIC_CMD
18930 # Used on cygwin: DLL creation program.
18933 # Used on cygwin: object dumper.
18936 # Used on cygwin: assembler.
18939 # The name of the directory that contains temporary libtool files.
18942 # How to create reloadable object files.
18943 reload_flag=$lt_reload_flag
18944 reload_cmds=$lt_reload_cmds
18946 # How to pass a linker flag through the compiler.
18947 wl=$lt_lt_prog_compiler_wl_RC
18949 # Object file suffix (normally "o").
18950 objext="$ac_objext"
18952 # Old archive suffix (normally "a").
18955 # Shared library suffix (normally ".so").
18956 shrext_cmds='$shrext_cmds'
18958 # Executable file suffix (normally "").
18961 # Additional compiler flags for building library objects.
18962 pic_flag=$lt_lt_prog_compiler_pic_RC
18965 # What is the maximum length of a command?
18966 max_cmd_len=$lt_cv_sys_max_cmd_len
18968 # Does compiler simultaneously support -c and -o options?
18969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18971 # Must we lock files when doing compilation?
18972 need_locks=$lt_need_locks
18974 # Do we need the lib prefix for modules?
18975 need_lib_prefix=$need_lib_prefix
18977 # Do we need a version for libraries?
18978 need_version=$need_version
18980 # Whether dlopen is supported.
18981 dlopen_support=$enable_dlopen
18983 # Whether dlopen of programs is supported.
18984 dlopen_self=$enable_dlopen_self
18986 # Whether dlopen of statically linked programs is supported.
18987 dlopen_self_static=$enable_dlopen_self_static
18989 # Compiler flag to prevent dynamic linking.
18990 link_static_flag=$lt_lt_prog_compiler_static_RC
18992 # Compiler flag to turn off builtin functions.
18993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18995 # Compiler flag to allow reflexive dlopens.
18996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18998 # Compiler flag to generate shared objects directly from archives.
18999 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19001 # Compiler flag to generate thread-safe objects.
19002 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19004 # Library versioning type.
19005 version_type=$version_type
19007 # Format of library name prefix.
19008 libname_spec=$lt_libname_spec
19010 # List of archive names. First name is the real one, the rest are links.
19011 # The last name is the one that the linker finds with -lNAME.
19012 library_names_spec=$lt_library_names_spec
19014 # The coded name of the library, if different from the real name.
19015 soname_spec=$lt_soname_spec
19017 # Commands used to build and install an old-style archive.
19019 old_archive_cmds=$lt_old_archive_cmds_RC
19020 old_postinstall_cmds=$lt_old_postinstall_cmds
19021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19023 # Create an old-style archive from a shared archive.
19024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19026 # Create a temporary old-style archive to link instead of a shared archive.
19027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19029 # Commands used to build and install a shared archive.
19030 archive_cmds=$lt_archive_cmds_RC
19031 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19032 postinstall_cmds=$lt_postinstall_cmds
19033 postuninstall_cmds=$lt_postuninstall_cmds
19035 # Commands used to build a loadable module (assumed same as above if empty)
19036 module_cmds=$lt_module_cmds_RC
19037 module_expsym_cmds=$lt_module_expsym_cmds_RC
19039 # Commands to strip libraries.
19040 old_striplib=$lt_old_striplib
19041 striplib=$lt_striplib
19043 # Dependencies to place before the objects being linked to create a
19045 predep_objects=$lt_predep_objects_RC
19047 # Dependencies to place after the objects being linked to create a
19049 postdep_objects=$lt_postdep_objects_RC
19051 # Dependencies to place before the objects being linked to create a
19053 predeps=$lt_predeps_RC
19055 # Dependencies to place after the objects being linked to create a
19057 postdeps=$lt_postdeps_RC
19059 # The library search path used internally by the compiler when linking
19060 # a shared library.
19061 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19063 # Method to check whether dependent libraries are shared objects.
19064 deplibs_check_method=$lt_deplibs_check_method
19066 # Command to use when deplibs_check_method == file_magic.
19067 file_magic_cmd=$lt_file_magic_cmd
19069 # Flag that allows shared libraries with undefined symbols to be built.
19070 allow_undefined_flag=$lt_allow_undefined_flag_RC
19072 # Flag that forces no undefined symbols.
19073 no_undefined_flag=$lt_no_undefined_flag_RC
19075 # Commands used to finish a libtool library installation in a directory.
19076 finish_cmds=$lt_finish_cmds
19078 # Same as above, but a single script fragment to be evaled but not shown.
19079 finish_eval=$lt_finish_eval
19081 # Take the output of nm and produce a listing of raw symbols and C names.
19082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19084 # Transform the output of nm in a proper C declaration
19085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19087 # Transform the output of nm in a C name address pair
19088 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19090 # This is the shared library runtime path variable.
19091 runpath_var=$runpath_var
19093 # This is the shared library path variable.
19094 shlibpath_var=$shlibpath_var
19096 # Is shlibpath searched before the hard-coded library search path?
19097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19099 # How to hardcode a shared library path into an executable.
19100 hardcode_action=$hardcode_action_RC
19102 # Whether we should hardcode library paths into libraries.
19103 hardcode_into_libs=$hardcode_into_libs
19105 # Flag to hardcode \$libdir into a binary during linking.
19106 # This must work even if \$libdir does not exist.
19107 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19109 # If ld is used when linking, flag to hardcode \$libdir into
19110 # a binary during linking. This must work even if \$libdir does
19112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19114 # Whether we need a single -rpath flag with a separated argument.
19115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19117 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19118 # resulting binary.
19119 hardcode_direct=$hardcode_direct_RC
19121 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19122 # resulting binary.
19123 hardcode_minus_L=$hardcode_minus_L_RC
19125 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19126 # the resulting binary.
19127 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19129 # Set to yes if building a shared library automatically hardcodes DIR into the library
19130 # and all subsequent libraries and executables linked against it.
19131 hardcode_automatic=$hardcode_automatic_RC
19133 # Variables whose values should be saved in libtool wrapper scripts and
19134 # restored at relink time.
19135 variables_saved_for_relink="$variables_saved_for_relink"
19137 # Whether libtool must link a program against all its dependency libraries.
19138 link_all_deplibs=$link_all_deplibs_RC
19140 # Compile-time system search path for libraries
19141 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19143 # Run-time system search path for libraries
19144 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19146 # Fix the shell variable \$srcfile for the compiler.
19147 fix_srcfile_path="$fix_srcfile_path_RC"
19149 # Set to yes if exported symbols are required.
19150 always_export_symbols=$always_export_symbols_RC
19152 # The commands to list exported symbols.
19153 export_symbols_cmds=$lt_export_symbols_cmds_RC
19155 # The commands to extract the exported symbol list from a shared archive.
19156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19158 # Symbols that should not be listed in the preloaded symbols.
19159 exclude_expsyms=$lt_exclude_expsyms_RC
19161 # Symbols that must always be exported.
19162 include_expsyms=$lt_include_expsyms_RC
19164 # ### END LIBTOOL TAG CONFIG: $tagname
19170 # If there is no Makefile yet, we rely on a make rule to execute
19171 # `config.status --recheck' to rerun these tests and create the
19172 # libtool script then.
19173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19174 if test -f "$ltmain_in"; then
19175 test -f Makefile && make "$ltmain"
19181 ac_cpp='$CPP $CPPFLAGS'
19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19191 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19192 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19193 { (exit 1); exit 1; }; }
19197 # Append the new tag name to the list of available tags.
19198 if test -n "$tagname" ; then
19199 available_tags="$available_tags $tagname"
19205 # Now substitute the updated list of available tags.
19206 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19207 mv "${ofile}T" "$ofile"
19211 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19212 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19213 { (exit 1); exit 1; }; }
19219 # This can be used to rebuild libtool when needed
19220 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19222 # Always use our own libtool.
19223 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19225 # Prevent multiple expansion
19251 { echo "$as_me:$LINENO: result: " >&5
19252 echo "${ECHO_T}" >&6; }
19253 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19254 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19257 ac_cpp='$CPP $CPPFLAGS'
19258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19261 if test -n "$ac_tool_prefix"; then
19262 for ac_prog in xlC gcc cc
19264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19268 if test "${ac_cv_prog_CC+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 if test -n "$CC"; then
19272 ac_cv_prog_CC="$CC" # Let the user override the test.
19274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19275 for as_dir in $PATH
19278 test -z "$as_dir" && as_dir=.
19279 for ac_exec_ext in '' $ac_executable_extensions; do
19280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19292 if test -n "$CC"; then
19293 { echo "$as_me:$LINENO: result: $CC" >&5
19294 echo "${ECHO_T}$CC" >&6; }
19296 { echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6; }
19301 test -n "$CC" && break
19304 if test -z "$CC"; then
19306 for ac_prog in xlC gcc cc
19308 # Extract the first word of "$ac_prog", so it can be a program name with args.
19309 set dummy $ac_prog; ac_word=$2
19310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 if test -n "$ac_ct_CC"; then
19316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19319 for as_dir in $PATH
19322 test -z "$as_dir" && as_dir=.
19323 for ac_exec_ext in '' $ac_executable_extensions; do
19324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19325 ac_cv_prog_ac_ct_CC="$ac_prog"
19326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19336 if test -n "$ac_ct_CC"; then
19337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19338 echo "${ECHO_T}$ac_ct_CC" >&6; }
19340 { echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6; }
19345 test -n "$ac_ct_CC" && break
19348 if test "x$ac_ct_CC" = x; then
19351 case $cross_compiling:$ac_tool_warned in
19353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19354 whose name does not start with the host triplet. If you think this
19355 configuration is useful to you, please write to autoconf@gnu.org." >&5
19356 echo "$as_me: 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." >&2;}
19359 ac_tool_warned=yes ;;
19366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19367 See \`config.log' for more details." >&5
19368 echo "$as_me: error: no acceptable C compiler found in \$PATH
19369 See \`config.log' for more details." >&2;}
19370 { (exit 1); exit 1; }; }
19372 # Provide some information about the compiler.
19373 echo "$as_me:$LINENO: checking for C compiler version" >&5
19374 ac_compiler=`set X $ac_compile; echo $2`
19375 { (ac_try="$ac_compiler --version >&5"
19376 case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_compiler --version >&5") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }
19385 { (ac_try="$ac_compiler -v >&5"
19386 case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_compiler -v >&5") 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }
19395 { (ac_try="$ac_compiler -V >&5"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compiler -V >&5") 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }
19406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 cat >conftest.$ac_ext <<_ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19429 rm -f conftest.$ac_objext
19430 if { (ac_try="$ac_compile"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest.$ac_objext; then
19446 ac_compiler_gnu=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19460 GCC=`test $ac_compiler_gnu = yes && echo yes`
19461 ac_test_CFLAGS=${CFLAGS+set}
19462 ac_save_CFLAGS=$CFLAGS
19463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19465 if test "${ac_cv_prog_cc_g+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_save_c_werror_flag=$ac_c_werror_flag
19469 ac_c_werror_flag=yes
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } && {
19501 test -z "$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19503 } && test -s conftest.$ac_objext; then
19504 ac_cv_prog_cc_g=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_compile") 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest.$ac_objext; then
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_c_werror_flag=$ac_save_c_werror_flag
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19564 rm -f conftest.$ac_objext
19565 if { (ac_try="$ac_compile"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_compile") 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } && {
19578 test -z "$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 } && test -s conftest.$ac_objext; then
19581 ac_cv_prog_cc_g=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596 ac_c_werror_flag=$ac_save_c_werror_flag
19598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19600 if test "$ac_test_CFLAGS" = set; then
19601 CFLAGS=$ac_save_CFLAGS
19602 elif test $ac_cv_prog_cc_g = yes; then
19603 if test "$GCC" = yes; then
19609 if test "$GCC" = yes; then
19615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19617 if test "${ac_cv_prog_cc_c89+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 ac_cv_prog_cc_c89=no
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <stdarg.h>
19630 #include <sys/types.h>
19631 #include <sys/stat.h>
19632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19633 struct buf { int x; };
19634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19635 static char *e (p, i)
19641 static char *f (char * (*g) (char **, int), char **p, ...)
19646 s = g (p, va_arg (v,int));
19651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19652 function prototypes and stuff, but not '\xHH' hex character constants.
19653 These don't provoke an error unfortunately, instead are silently treated
19654 as 'x'. The following induces an error, until -std is added to get
19655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19656 array size at least. It's necessary to write '\x00'==0 to get something
19657 that's true only with -std. */
19658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19661 inside strings and character constants. */
19663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19665 int test (int i, double x);
19666 struct s1 {int (*f) (int a);};
19667 struct s2 {int (*f) (double a);};
19668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19682 CC="$ac_save_CC $ac_arg"
19683 rm -f conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_compile") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
19700 ac_cv_prog_cc_c89=$ac_arg
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19708 rm -f core conftest.err conftest.$ac_objext
19709 test "x$ac_cv_prog_cc_c89" != "xno" && break
19711 rm -f conftest.$ac_ext
19716 case "x$ac_cv_prog_cc_c89" in
19718 { echo "$as_me:$LINENO: result: none needed" >&5
19719 echo "${ECHO_T}none needed" >&6; } ;;
19721 { echo "$as_me:$LINENO: result: unsupported" >&5
19722 echo "${ECHO_T}unsupported" >&6; } ;;
19724 CC="$CC $ac_cv_prog_cc_c89"
19725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19736 depcc="$CC" am_compiler_list=
19738 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19739 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19740 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19744 # We make a subdir and do the tests there. Otherwise we can end up
19745 # making bogus files that we don't know about and never remove. For
19746 # instance it was reported that on HP-UX the gcc test will end up
19747 # making a dummy file named `D' -- because `-MD' means `put the output
19750 # Copy depcomp to subdir because otherwise we won't find it if we're
19751 # using a relative directory.
19752 cp "$am_depcomp" conftest.dir
19754 # We will build objects and dependencies in a subdirectory because
19755 # it helps to detect inapplicable dependency modes. For instance
19756 # both Tru64's cc and ICC support -MD to output dependencies as a
19757 # side effect of compilation, but ICC will put the dependencies in
19758 # the current directory while Tru64 will put them in the object
19762 am_cv_CC_dependencies_compiler_type=none
19763 if test "$am_compiler_list" = ""; then
19764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19766 for depmode in $am_compiler_list; do
19767 # Setup a source with many dependencies, because some compilers
19768 # like to wrap large dependency lists on column 80 (with \), and
19769 # we should not choose a depcomp mode which is confused by this.
19771 # We need to recreate these files for each test, as the compiler may
19772 # overwrite some of them when testing with obscure command lines.
19773 # This happens at least with the AIX C compiler.
19775 for i in 1 2 3 4 5 6; do
19776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19777 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19778 # Solaris 8's {/usr,}/bin/sh.
19779 touch sub/conftst$i.h
19781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19785 # after this tag, mechanisms are not by side-effect, so they'll
19786 # only be used when explicitly requested
19787 if test "x$enable_dependency_tracking" = xyes; then
19795 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19796 # mode. It turns out that the SunPro C++ compiler does not properly
19797 # handle `-M -o', and we need to detect this.
19798 if depmode=$depmode \
19799 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19801 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19802 >/dev/null 2>conftest.err &&
19803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19804 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19806 # icc doesn't choke on unknown options, it will just issue warnings
19807 # or remarks (even with -Werror). So we grep stderr for any message
19808 # that says an option was ignored or not supported.
19809 # When given -MP, icc 7.0 and 7.1 complain thusly:
19810 # icc: Command line warning: ignoring option '-M'; no argument required
19811 # The diagnosis changed in icc 8.0:
19812 # icc: Command line remark: option '-MP' not supported
19813 if (grep 'ignoring option' conftest.err ||
19814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19815 am_cv_CC_dependencies_compiler_type=$depmode
19822 rm -rf conftest.dir
19824 am_cv_CC_dependencies_compiler_type=none
19828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19835 test "x$enable_dependency_tracking" != xno \
19836 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19837 am__fastdepCC_TRUE=
19838 am__fastdepCC_FALSE='#'
19840 am__fastdepCC_TRUE='#'
19841 am__fastdepCC_FALSE=
19845 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19846 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
19849 echo timestamp > conftest.file
19850 # Do `set' in a subshell so we don't clobber the current shell's
19851 # arguments. Must try -L first in case configure is actually a
19852 # symlink; some systems play weird games with the mod time of symlinks
19853 # (eg FreeBSD returns the mod time of the symlink's containing
19856 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19857 if test "$*" = "X"; then
19859 set X `ls -t $srcdir/configure conftest.file`
19861 rm -f conftest.file
19862 if test "$*" != "X $srcdir/configure conftest.file" \
19863 && test "$*" != "X conftest.file $srcdir/configure"; then
19865 # If neither matched, then we have a broken ls. This can happen
19866 # if, for instance, CONFIG_SHELL is bash and it inherits a
19867 # broken ls alias from the environment. This has actually
19868 # happened. Such a system could not be considered "sane".
19869 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19870 alias in your environment" >&5
19871 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19872 alias in your environment" >&2;}
19873 { (exit 1); exit 1; }; }
19876 test "$2" = conftest.file
19882 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19883 Check your system clock" >&5
19884 echo "$as_me: error: newly created file is older than distributed files!
19885 Check your system clock" >&2;}
19886 { (exit 1); exit 1; }; }
19888 { echo "$as_me:$LINENO: result: yes" >&5
19889 echo "${ECHO_T}yes" >&6; }
19890 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19891 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19892 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19893 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 cat >conftest.make <<\_ACEOF
19899 @echo '@@@%%%=$(MAKE)=@@@%%%'
19901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19903 *@@@%%%=?*=@@@%%%*)
19904 eval ac_cv_prog_make_${ac_make}_set=yes;;
19906 eval ac_cv_prog_make_${ac_make}_set=no;;
19908 rm -f conftest.make
19910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19911 { echo "$as_me:$LINENO: result: yes" >&5
19912 echo "${ECHO_T}yes" >&6; }
19915 { echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6; }
19917 SET_MAKE="MAKE=${MAKE-make}"
19921 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19922 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
19923 if test "$cross_compiling" = yes; then
19924 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19925 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19942 rm -f conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_link") 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19963 cat >>confdefs.h <<\_ACEOF
19964 #define PRINTF_NULL_WORKING 1
19967 { echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6; }
19970 echo "$as_me: program exited with status $ac_status" >&5
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ( exit $ac_status )
19975 { echo "$as_me:$LINENO: result: no" >&5
19976 echo "${ECHO_T}no" >&6; }
19978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19984 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
19985 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
19986 if test "${ac_cv_va_copy+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 if test ".$ac_cv_va_copy" = .; then
19995 if test "$cross_compiling" = yes; then
19996 ac_cv_va_copy="C99"
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20005 #include <stdlib.h>
20006 #include <stdarg.h>
20007 #include <string.h>
20008 #define DO_VA_COPY(d, s) va_copy((d), (s))
20009 void test(char *str, ...)
20014 DO_VA_COPY(ap2, ap);
20015 for (i = 1; i <= 9; i++) {
20016 int k = (int)va_arg(ap, int);
20020 DO_VA_COPY(ap, ap2);
20021 for (i = 1; i <= 9; i++) {
20022 int k = (int)va_arg(ap, int);
20028 int main(int argc, char *argv[])
20030 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20035 rm -f conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20046 { (case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_try") 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_va_copy="C99"
20057 echo "$as_me: program exited with status $ac_status" >&5
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20071 if test ".$ac_cv_va_copy" = .; then
20072 if test "$cross_compiling" = yes; then
20073 ac_cv_va_copy="GCM"
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20082 #include <stdlib.h>
20083 #include <stdarg.h>
20084 #include <string.h>
20085 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20086 void test(char *str, ...)
20091 DO_VA_COPY(ap2, ap);
20092 for (i = 1; i <= 9; i++) {
20093 int k = (int)va_arg(ap, int);
20097 DO_VA_COPY(ap, ap2);
20098 for (i = 1; i <= 9; i++) {
20099 int k = (int)va_arg(ap, int);
20105 int main(int argc, char *argv[])
20107 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20112 rm -f conftest$ac_exeext
20113 if { (ac_try="$ac_link"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_link") 2>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_cv_va_copy="GCM"
20134 echo "$as_me: program exited with status $ac_status" >&5
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20148 if test ".$ac_cv_va_copy" = .; then
20149 if test "$cross_compiling" = yes; then
20150 ac_cv_va_copy="GCH"
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20159 #include <stdlib.h>
20160 #include <stdarg.h>
20161 #include <string.h>
20162 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20163 void test(char *str, ...)
20168 DO_VA_COPY(ap2, ap);
20169 for (i = 1; i <= 9; i++) {
20170 int k = (int)va_arg(ap, int);
20174 DO_VA_COPY(ap, ap2);
20175 for (i = 1; i <= 9; i++) {
20176 int k = (int)va_arg(ap, int);
20182 int main(int argc, char *argv[])
20184 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20189 rm -f conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_link") 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_va_copy="GCH"
20211 echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225 if test ".$ac_cv_va_copy" = .; then
20226 if test "$cross_compiling" = yes; then
20227 ac_cv_va_copy="GCB"
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20236 #include <stdlib.h>
20237 #include <stdarg.h>
20238 #include <string.h>
20239 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20240 void test(char *str, ...)
20245 DO_VA_COPY(ap2, ap);
20246 for (i = 1; i <= 9; i++) {
20247 int k = (int)va_arg(ap, int);
20251 DO_VA_COPY(ap, ap2);
20252 for (i = 1; i <= 9; i++) {
20253 int k = (int)va_arg(ap, int);
20259 int main(int argc, char *argv[])
20261 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20266 rm -f conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_va_copy="GCB"
20288 echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20302 if test ".$ac_cv_va_copy" = .; then
20303 if test "$cross_compiling" = yes; then
20304 ac_cv_va_copy="ASS"
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 #include <stdlib.h>
20314 #include <stdarg.h>
20315 #include <string.h>
20316 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20317 void test(char *str, ...)
20322 DO_VA_COPY(ap2, ap);
20323 for (i = 1; i <= 9; i++) {
20324 int k = (int)va_arg(ap, int);
20328 DO_VA_COPY(ap, ap2);
20329 for (i = 1; i <= 9; i++) {
20330 int k = (int)va_arg(ap, int);
20336 int main(int argc, char *argv[])
20338 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20343 rm -f conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20354 { (case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_try") 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_va_copy="ASS"
20365 echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20379 if test ".$ac_cv_va_copy" = .; then
20380 if test "$cross_compiling" = yes; then
20381 ac_cv_va_copy="ASP"
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20390 #include <stdlib.h>
20391 #include <stdarg.h>
20392 #include <string.h>
20393 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20394 void test(char *str, ...)
20399 DO_VA_COPY(ap2, ap);
20400 for (i = 1; i <= 9; i++) {
20401 int k = (int)va_arg(ap, int);
20405 DO_VA_COPY(ap, ap2);
20406 for (i = 1; i <= 9; i++) {
20407 int k = (int)va_arg(ap, int);
20413 int main(int argc, char *argv[])
20415 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_link") 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_cv_va_copy="ASP"
20442 echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 if test ".$ac_cv_va_copy" = .; then
20457 if test "$cross_compiling" = yes; then
20458 ac_cv_va_copy="CPS"
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20467 #include <stdlib.h>
20468 #include <stdarg.h>
20469 #include <string.h>
20470 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20471 void test(char *str, ...)
20476 DO_VA_COPY(ap2, ap);
20477 for (i = 1; i <= 9; i++) {
20478 int k = (int)va_arg(ap, int);
20482 DO_VA_COPY(ap, ap2);
20483 for (i = 1; i <= 9; i++) {
20484 int k = (int)va_arg(ap, int);
20490 int main(int argc, char *argv[])
20492 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20497 rm -f conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_link") 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20508 { (case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_try") 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_va_copy="CPS"
20519 echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20533 if test ".$ac_cv_va_copy" = .; then
20534 if test "$cross_compiling" = yes; then
20535 ac_cv_va_copy="CPP"
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 #include <stdlib.h>
20545 #include <stdarg.h>
20546 #include <string.h>
20547 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20548 void test(char *str, ...)
20553 DO_VA_COPY(ap2, ap);
20554 for (i = 1; i <= 9; i++) {
20555 int k = (int)va_arg(ap, int);
20559 DO_VA_COPY(ap, ap2);
20560 for (i = 1; i <= 9; i++) {
20561 int k = (int)va_arg(ap, int);
20567 int main(int argc, char *argv[])
20569 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20574 rm -f conftest$ac_exeext
20575 if { (ac_try="$ac_link"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_link") 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_va_copy="CPP"
20596 echo "$as_me: program exited with status $ac_status" >&5
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20607 if test ".$ac_cv_va_copy" = .; then
20608 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20609 echo "$as_me: error: no working implementation found" >&2;}
20610 { (exit 1); exit 1; }; }
20615 if test ".$ac_cv_va_copy" = ".C99"; then
20617 cat >>confdefs.h <<\_ACEOF
20618 #define HAVE_VA_COPY 1
20623 cat >>confdefs.h <<_ACEOF
20624 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20629 if test ".$ac_cv_va_copy" = ".C99"; then
20630 { echo "$as_me:$LINENO: result: yes" >&5
20631 echo "${ECHO_T}yes" >&6; }
20633 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20634 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20638 # Checks for header files.
20639 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20640 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20641 if test "${ac_cv_header_stdc+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 #include <stdlib.h>
20651 #include <stdarg.h>
20652 #include <string.h>
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest.$ac_objext; then
20680 ac_cv_header_stdc=yes
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_cv_header_stdc=no
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 if test $ac_cv_header_stdc = yes; then
20691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <string.h>
20701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20702 $EGREP "memchr" >/dev/null 2>&1; then
20705 ac_cv_header_stdc=no
20711 if test $ac_cv_header_stdc = yes; then
20712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 #include <stdlib.h>
20722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20723 $EGREP "free" >/dev/null 2>&1; then
20726 ac_cv_header_stdc=no
20732 if test $ac_cv_header_stdc = yes; then
20733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20734 if test "$cross_compiling" = yes; then
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20744 #include <stdlib.h>
20745 #if ((' ' & 0x0FF) == 0x020)
20746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20749 # define ISLOWER(c) \
20750 (('a' <= (c) && (c) <= 'i') \
20751 || ('j' <= (c) && (c) <= 'r') \
20752 || ('s' <= (c) && (c) <= 'z'))
20753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20761 for (i = 0; i < 256; i++)
20762 if (XOR (islower (i), ISLOWER (i))
20763 || toupper (i) != TOUPPER (i))
20768 rm -f conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20779 { (case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_try") 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20790 echo "$as_me: program exited with status $ac_status" >&5
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ( exit $ac_status )
20795 ac_cv_header_stdc=no
20797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20803 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20804 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20805 if test $ac_cv_header_stdc = yes; then
20807 cat >>confdefs.h <<\_ACEOF
20808 #define STDC_HEADERS 1
20813 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20814 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20815 if test "${ac_cv_header_time+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <sys/types.h>
20825 #include <sys/time.h>
20831 if ((struct tm *) 0)
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_compile") 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && {
20851 test -z "$ac_c_werror_flag" ||
20852 test ! -s conftest.err
20853 } && test -s conftest.$ac_objext; then
20854 ac_cv_header_time=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ac_cv_header_time=no
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20865 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20866 if test $ac_cv_header_time = yes; then
20868 cat >>confdefs.h <<\_ACEOF
20869 #define TIME_WITH_SYS_TIME 1
20884 for ac_header in sys/socket.h \
20886 windows.h winsock.h winsock2.h \
20892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 ac_res=`eval echo '${'$as_ac_Header'}'`
20900 { echo "$as_me:$LINENO: result: $ac_res" >&5
20901 echo "${ECHO_T}$ac_res" >&6; }
20903 # Is the header compilable?
20904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20913 #include <$ac_header>
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 ac_header_compiler=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_header_compiler=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6; }
20944 # Is the header present?
20945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <$ac_header>
20955 if { (ac_try="$ac_cpp conftest.$ac_ext"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } >/dev/null && {
20968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20971 ac_header_preproc=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_header_preproc=no
20979 rm -f conftest.err conftest.$ac_ext
20980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20981 echo "${ECHO_T}$ac_header_preproc" >&6; }
20983 # So? What about this header?
20984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20990 ac_header_preproc=yes
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21006 ## -------------------------------------------------- ##
21007 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21008 ## -------------------------------------------------- ##
21010 ) | sed "s/^/$as_me: WARNING: /" >&2
21013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 eval "$as_ac_Header=\$ac_header_preproc"
21020 ac_res=`eval echo '${'$as_ac_Header'}'`
21021 { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21026 cat >>confdefs.h <<_ACEOF
21027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21042 for ac_func in gettimeofday usleep \
21050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21064 #define $ac_func innocuous_$ac_func
21066 /* System header to define __stub macros and hopefully few prototypes,
21067 which can conflict with char $ac_func (); below.
21068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21069 <limits.h> exists even on freestanding compilers. */
21072 # include <limits.h>
21074 # include <assert.h>
21079 /* Override any GCC internal prototype to avoid an error.
21080 Use char because int might match the return type of a GCC
21081 builtin and then its argument prototype would still apply. */
21086 /* The GNU C library defines this for functions which it implements
21087 to always fail with ENOSYS. Some functions are actually named
21088 something starting with __ and the normal name is an alias. */
21089 #if defined __stub_$ac_func || defined __stub___$ac_func
21096 return $ac_func ();
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (ac_try="$ac_link"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_link") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest$ac_exeext &&
21118 $as_test_x conftest$ac_exeext; then
21119 eval "$as_ac_var=yes"
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 eval "$as_ac_var=no"
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128 conftest$ac_exeext conftest.$ac_ext
21130 ac_res=`eval echo '${'$as_ac_var'}'`
21131 { echo "$as_me:$LINENO: result: $ac_res" >&5
21132 echo "${ECHO_T}$ac_res" >&6; }
21133 if test `eval echo '${'$as_ac_var'}'` = yes; then
21134 cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21142 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21145 for ac_func in snprintf vsnprintf
21147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 cat >conftest.$ac_ext <<_ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21161 #define $ac_func innocuous_$ac_func
21163 /* System header to define __stub macros and hopefully few prototypes,
21164 which can conflict with char $ac_func (); below.
21165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21166 <limits.h> exists even on freestanding compilers. */
21169 # include <limits.h>
21171 # include <assert.h>
21176 /* Override any GCC internal prototype to avoid an error.
21177 Use char because int might match the return type of a GCC
21178 builtin and then its argument prototype would still apply. */
21183 /* The GNU C library defines this for functions which it implements
21184 to always fail with ENOSYS. Some functions are actually named
21185 something starting with __ and the normal name is an alias. */
21186 #if defined __stub_$ac_func || defined __stub___$ac_func
21193 return $ac_func ();
21198 rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (ac_try="$ac_link"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_link") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest$ac_exeext &&
21215 $as_test_x conftest$ac_exeext; then
21216 eval "$as_ac_var=yes"
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 eval "$as_ac_var=no"
21224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21225 conftest$ac_exeext conftest.$ac_ext
21227 ac_res=`eval echo '${'$as_ac_var'}'`
21228 { echo "$as_me:$LINENO: result: $ac_res" >&5
21229 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_var'}'` = yes; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21238 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21239 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21240 if test "${ac_cv_have_working_snprintf+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 if test "$cross_compiling" = yes; then
21244 ac_cv_have_working_snprintf=cross
21246 cat >conftest.$ac_ext <<_ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21256 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21257 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21259 i = snprintf (bufs, 2, "%s", "111");
21260 if (strcmp (bufs, "1")) exit (1);
21261 if (i != 3) exit (1);
21262 i = snprintf (bufd, 2, "%d", 111);
21263 if (strcmp (bufd, "1")) exit (1);
21264 if (i != 3) exit (1);
21268 rm -f conftest$ac_exeext
21269 if { (ac_try="$ac_link"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_link") 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21279 { (case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_try") 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_have_working_snprintf=yes
21290 echo "$as_me: program exited with status $ac_status" >&5
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ( exit $ac_status )
21295 ac_cv_have_working_snprintf=no
21297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21304 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21305 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21306 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21307 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 if test "$cross_compiling" = yes; then
21311 ac_cv_have_working_vsnprintf=cross
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21320 #include <stdarg.h>
21322 int my_vsnprintf (char *buf, const char *tmpl, ...)
21326 va_start (args, tmpl);
21327 i = vsnprintf (buf, 2, tmpl, args);
21334 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21335 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21337 i = my_vsnprintf (bufs, "%s", "111");
21338 if (strcmp (bufs, "1")) exit (1);
21339 if (i != 3) exit (1);
21340 i = my_vsnprintf (bufd, "%d", 111);
21341 if (strcmp (bufd, "1")) exit (1);
21342 if (i != 3) exit (1);
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_have_working_vsnprintf=yes
21368 echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ( exit $ac_status )
21373 ac_cv_have_working_vsnprintf=no
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21381 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21382 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21383 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21384 case " $LIBOBJS " in
21385 *" snprintf.$ac_objext "* ) ;;
21386 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21390 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21391 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21393 cat >>confdefs.h <<\_ACEOF
21394 #define PREFER_PORTABLE_SNPRINTF 1
21398 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21399 { echo "$as_me:$LINENO: checking for asprintf" >&5
21400 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21401 if test "${ac_cv_func_asprintf+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 cat >conftest.$ac_ext <<_ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21412 #define asprintf innocuous_asprintf
21414 /* System header to define __stub macros and hopefully few prototypes,
21415 which can conflict with char asprintf (); below.
21416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21417 <limits.h> exists even on freestanding compilers. */
21420 # include <limits.h>
21422 # include <assert.h>
21427 /* Override any GCC internal prototype to avoid an error.
21428 Use char because int might match the return type of a GCC
21429 builtin and then its argument prototype would still apply. */
21434 /* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437 #if defined __stub_asprintf || defined __stub___asprintf
21444 return asprintf ();
21449 rm -f conftest.$ac_objext conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_link") 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } && {
21463 test -z "$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 } && test -s conftest$ac_exeext &&
21466 $as_test_x conftest$ac_exeext; then
21467 ac_cv_func_asprintf=yes
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 ac_cv_func_asprintf=no
21475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476 conftest$ac_exeext conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21479 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21480 if test $ac_cv_func_asprintf = yes; then
21484 cat >>confdefs.h <<\_ACEOF
21485 #define NEED_ASPRINTF 1
21490 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21491 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21492 if test "${ac_cv_func_vasprintf+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define vasprintf innocuous_vasprintf
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char vasprintf (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21511 # include <limits.h>
21513 # include <assert.h>
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21525 /* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528 #if defined __stub_vasprintf || defined __stub___vasprintf
21535 return vasprintf ();
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_link") 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext &&
21557 $as_test_x conftest$ac_exeext; then
21558 ac_cv_func_vasprintf=yes
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ac_cv_func_vasprintf=no
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21570 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21571 if test $ac_cv_func_vasprintf = yes; then
21575 cat >>confdefs.h <<\_ACEOF
21576 #define NEED_VASPRINTF 1
21582 # Checks for typedefs, structures, and compiler characteristics.
21583 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21584 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21585 if test "${ac_cv_c_const+set}" = set; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21598 /* FIXME: Include the comments suggested by Paul. */
21599 #ifndef __cplusplus
21600 /* Ultrix mips cc rejects this. */
21601 typedef int charset[2];
21603 /* SunOS 4.1.1 cc rejects this. */
21604 char const *const *pcpcc;
21606 /* NEC SVR4.0.2 mips cc rejects this. */
21607 struct point {int x, y;};
21608 static struct point const zero = {0,0};
21609 /* AIX XL C 1.02.0.0 rejects this.
21610 It does not let you subtract one const X* pointer from another in
21611 an arm of an if-expression whose if-part is not a constant
21613 const char *g = "string";
21614 pcpcc = &g + (g ? g-g : 0);
21615 /* HPUX 7.0 cc rejects these. */
21617 ppc = (char**) pcpcc;
21618 pcpcc = (char const *const *) ppc;
21619 { /* SCO 3.2v4 cc rejects this. */
21621 char const *s = 0 ? (char *) 0 : (char const *) 0;
21626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21627 int x[] = {25, 17};
21628 const int *foo = &x[0];
21631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21632 typedef const int *iptr;
21636 { /* AIX XL C 1.02.0.0 rejects this saying
21637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21638 struct s { int j; const int *ap[3]; };
21639 struct s *b; b->j = 5;
21641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21642 const int foo = 10;
21643 if (!foo) return 0;
21645 return !cs[0] && !zero.x;
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21680 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21681 if test $ac_cv_c_const = no; then
21683 cat >>confdefs.h <<\_ACEOF
21689 { echo "$as_me:$LINENO: checking for inline" >&5
21690 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21691 if test "${ac_cv_c_inline+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 for ac_kw in inline __inline__ __inline; do
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 #ifndef __cplusplus
21704 static $ac_kw foo_t static_foo () {return 0; }
21705 $ac_kw foo_t foo () {return 0; }
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21726 ac_cv_c_inline=$ac_kw
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 test "$ac_cv_c_inline" != no && break
21739 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21740 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21743 case $ac_cv_c_inline in
21746 case $ac_cv_c_inline in
21748 *) ac_val=$ac_cv_c_inline;;
21750 cat >>confdefs.h <<_ACEOF
21751 #ifndef __cplusplus
21752 #define inline $ac_val
21758 { echo "$as_me:$LINENO: checking for size_t" >&5
21759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21760 if test "${ac_cv_type_size_t+set}" = set; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 $ac_includes_default
21770 typedef size_t ac__type_new_;
21774 if ((ac__type_new_ *) 0)
21776 if (sizeof (ac__type_new_))
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_compile") 2>conftest.er1
21791 grep -v '^ *+' conftest.er1 >conftest.err
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest.$ac_objext; then
21799 ac_cv_type_size_t=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_type_size_t=no
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21811 if test $ac_cv_type_size_t = yes; then
21815 cat >>confdefs.h <<_ACEOF
21816 #define size_t unsigned int
21822 ###################################
21823 ## SimGrid and GRAS specific checks
21827 { echo "$as_me:$LINENO: result: " >&5
21828 echo "${ECHO_T}" >&6; }
21829 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21830 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
21832 # Check architecture signature begin
21834 # Check for the architecture
21835 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21836 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21837 if test "${ac_cv_c_bigendian+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 # See if sys/param.h defines the BYTE_ORDER macro.
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 #include <sys/types.h>
21848 #include <sys/param.h>
21853 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21854 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21855 bogus endian macros
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_compile") 2>conftest.er1
21871 grep -v '^ *+' conftest.er1 >conftest.err
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest.$ac_objext; then
21879 # It does; now see whether it defined to BIG_ENDIAN or not.
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <sys/types.h>
21887 #include <sys/param.h>
21892 #if BYTE_ORDER != BIG_ENDIAN
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 ac_cv_c_bigendian=yes
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 ac_cv_c_bigendian=no
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 # It does not; compile a test program.
21931 if test "$cross_compiling" = yes; then
21932 # try to guess the endianness by grepping values into an object file
21933 ac_cv_c_bigendian=unknown
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21941 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21942 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21943 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21944 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21945 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21949 _ascii (); _ebcdic ();
21954 rm -f conftest.$ac_objext
21955 if { (ac_try="$ac_compile"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_compile") 2>conftest.er1
21963 grep -v '^ *+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest.$ac_objext; then
21971 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21972 ac_cv_c_bigendian=yes
21974 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21975 if test "$ac_cv_c_bigendian" = unknown; then
21976 ac_cv_c_bigendian=no
21978 # finding both strings is unlikely to happen, but who knows?
21979 ac_cv_c_bigendian=unknown
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 cat >conftest.$ac_ext <<_ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 $ac_includes_default
22002 /* Are we little or big endian? From Harbison&Steele. */
22006 char c[sizeof (long int)];
22009 return u.c[sizeof (long int) - 1] == 1;
22015 rm -f conftest$ac_exeext
22016 if { (ac_try="$ac_link"
22017 case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_link") 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_cv_c_bigendian=no
22037 echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ( exit $ac_status )
22042 ac_cv_c_bigendian=yes
22044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22053 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22054 case $ac_cv_c_bigendian in
22060 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22061 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22062 { (exit 1); exit 1; }; } ;;
22066 cat >>confdefs.h <<_ACEOF
22067 #define GRAS_BIGENDIAN $endian
22071 { echo "$as_me:$LINENO: checking size of char" >&5
22072 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22073 if test "${ac_cv_sizeof_char+set}" = set; then
22074 echo $ECHO_N "(cached) $ECHO_C" >&6
22076 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 #include "confdefs.h"
22084 #include <sys/types.h>
22090 switch (0) case 0: case (sizeof (char) == $ac_size):;
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest.$ac_objext; then
22112 ac_cv_sizeof_char=$ac_size
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 if test x$ac_cv_sizeof_char != x ; then break; fi
22127 unspecif=$ac_cv_sizeof_char
22128 if test x$unspecif = x ; then
22129 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22130 echo "$as_me: error: cannot determine a size for char" >&2;}
22131 { (exit 1); exit 1; }; }
22134 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include "confdefs.h"
22145 #include <sys/types.h>
22151 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1 >conftest.err
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22173 ac_cv_sizeof_signed_char=$ac_size
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22188 signed=$ac_cv_sizeof_signed_char
22189 if test x$signed = x ; then
22190 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22191 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22192 { (exit 1); exit 1; }; }
22194 if test x$unspecif != x$signed ; then
22195 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22196 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22197 { (exit 1); exit 1; }; }
22200 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include "confdefs.h"
22211 #include <sys/types.h>
22217 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22222 rm -f conftest.$ac_objext
22223 if { (ac_try="$ac_compile"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_compile") 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } && {
22236 test -z "$ac_c_werror_flag" ||
22237 test ! -s conftest.err
22238 } && test -s conftest.$ac_objext; then
22239 ac_cv_sizeof_unsigned_char=$ac_size
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22254 unsigned=$ac_cv_sizeof_unsigned_char
22255 if test x$unsigned = x ; then
22256 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22257 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22258 { (exit 1); exit 1; }; }
22260 if test x$unsigned != x$signed ; then
22261 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22262 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22263 { (exit 1); exit 1; }; }
22266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22267 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22268 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22269 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22271 if test "${ac_cv_struct_boundary_char+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include "confdefs.h"
22282 #include <sys/types.h>
22283 struct s { char c; char i; };
22288 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_cv_struct_boundary_char=$ac_size
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22324 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22325 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22326 if test x$ac_cv_struct_boundary_char = x ; then
22327 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22328 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22329 { (exit 1); exit 1; }; }
22332 { echo "$as_me:$LINENO: checking size of short int" >&5
22333 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22334 if test "${ac_cv_sizeof_short_int+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22338 cat >conftest.$ac_ext <<_ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22344 #include "confdefs.h"
22345 #include <sys/types.h>
22351 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_compile") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest.$ac_objext; then
22373 ac_cv_sizeof_short_int=$ac_size
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22388 unspecif=$ac_cv_sizeof_short_int
22389 if test x$unspecif = x ; then
22390 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22391 echo "$as_me: error: cannot determine a size for short int" >&2;}
22392 { (exit 1); exit 1; }; }
22395 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include "confdefs.h"
22406 #include <sys/types.h>
22412 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_sizeof_signed_short_int=$ac_size
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22449 signed=$ac_cv_sizeof_signed_short_int
22450 if test x$signed = x ; then
22451 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22452 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22453 { (exit 1); exit 1; }; }
22455 if test x$unspecif != x$signed ; then
22456 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22457 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22458 { (exit 1); exit 1; }; }
22461 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22465 cat >conftest.$ac_ext <<_ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h. */
22471 #include "confdefs.h"
22472 #include <sys/types.h>
22478 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 ac_cv_sizeof_unsigned_short_int=$ac_size
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22515 unsigned=$ac_cv_sizeof_unsigned_short_int
22516 if test x$unsigned = x ; then
22517 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22518 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22519 { (exit 1); exit 1; }; }
22521 if test x$unsigned != x$signed ; then
22522 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22523 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22524 { (exit 1); exit 1; }; }
22527 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22528 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22529 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22530 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22532 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include "confdefs.h"
22543 #include <sys/types.h>
22544 struct s { char c; short int i; };
22549 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_cv_struct_boundary_short_int=$ac_size
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22585 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22586 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22587 if test x$ac_cv_struct_boundary_short_int = x ; then
22588 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22589 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22590 { (exit 1); exit 1; }; }
22593 { echo "$as_me:$LINENO: checking size of int" >&5
22594 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22595 if test "${ac_cv_sizeof_int+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 #include "confdefs.h"
22606 #include <sys/types.h>
22612 switch (0) case 0: case (sizeof (int) == $ac_size):;
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_compile") 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } && {
22631 test -z "$ac_c_werror_flag" ||
22632 test ! -s conftest.err
22633 } && test -s conftest.$ac_objext; then
22634 ac_cv_sizeof_int=$ac_size
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643 if test x$ac_cv_sizeof_int != x ; then break; fi
22649 unspecif=$ac_cv_sizeof_int
22650 if test x$unspecif = x ; then
22651 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22652 echo "$as_me: error: cannot determine a size for int" >&2;}
22653 { (exit 1); exit 1; }; }
22656 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 #include "confdefs.h"
22667 #include <sys/types.h>
22673 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_cv_sizeof_signed_int=$ac_size
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22710 signed=$ac_cv_sizeof_signed_int
22711 if test x$signed = x ; then
22712 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22713 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22714 { (exit 1); exit 1; }; }
22716 if test x$unspecif != x$signed ; then
22717 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22718 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22719 { (exit 1); exit 1; }; }
22722 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22726 cat >conftest.$ac_ext <<_ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 #include "confdefs.h"
22733 #include <sys/types.h>
22739 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22744 rm -f conftest.$ac_objext
22745 if { (ac_try="$ac_compile"
22746 case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22761 ac_cv_sizeof_unsigned_int=$ac_size
22763 echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22776 unsigned=$ac_cv_sizeof_unsigned_int
22777 if test x$unsigned = x ; then
22778 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22779 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22780 { (exit 1); exit 1; }; }
22782 if test x$unsigned != x$signed ; then
22783 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22784 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22785 { (exit 1); exit 1; }; }
22788 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22789 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22790 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22791 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22793 if test "${ac_cv_struct_boundary_int+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include "confdefs.h"
22804 #include <sys/types.h>
22805 struct s { char c; int i; };
22810 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_cv_struct_boundary_int=$ac_size
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 if test x$ac_cv_struct_boundary_int != x ; then break; fi
22846 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22847 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
22848 if test x$ac_cv_struct_boundary_int = x ; then
22849 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22850 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22851 { (exit 1); exit 1; }; }
22854 { echo "$as_me:$LINENO: checking size of long int" >&5
22855 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
22856 if test "${ac_cv_sizeof_long_int+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22859 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 #include "confdefs.h"
22867 #include <sys/types.h>
22873 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22895 ac_cv_sizeof_long_int=$ac_size
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 if test x$ac_cv_sizeof_long_int != x ; then break; fi
22910 unspecif=$ac_cv_sizeof_long_int
22911 if test x$unspecif = x ; then
22912 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22913 echo "$as_me: error: cannot determine a size for long int" >&2;}
22914 { (exit 1); exit 1; }; }
22917 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 #include "confdefs.h"
22928 #include <sys/types.h>
22934 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_compile") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && {
22953 test -z "$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22955 } && test -s conftest.$ac_objext; then
22956 ac_cv_sizeof_signed_long_int=$ac_size
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22971 signed=$ac_cv_sizeof_signed_long_int
22972 if test x$signed = x ; then
22973 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22974 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22975 { (exit 1); exit 1; }; }
22977 if test x$unspecif != x$signed ; then
22978 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22979 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22980 { (exit 1); exit 1; }; }
22983 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 #include "confdefs.h"
22994 #include <sys/types.h>
23000 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 ac_cv_sizeof_unsigned_long_int=$ac_size
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23037 unsigned=$ac_cv_sizeof_unsigned_long_int
23038 if test x$unsigned = x ; then
23039 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23040 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23041 { (exit 1); exit 1; }; }
23043 if test x$unsigned != x$signed ; then
23044 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23045 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23046 { (exit 1); exit 1; }; }
23049 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23050 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23051 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23052 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23054 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include "confdefs.h"
23065 #include <sys/types.h>
23066 struct s { char c; long int i; };
23071 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23076 rm -f conftest.$ac_objext
23077 if { (ac_try="$ac_compile"
23078 case "(($ac_try" in
23079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080 *) ac_try_echo=$ac_try;;
23082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23083 (eval "$ac_compile") 2>conftest.er1
23085 grep -v '^ *+' conftest.er1 >conftest.err
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && {
23090 test -z "$ac_c_werror_flag" ||
23091 test ! -s conftest.err
23092 } && test -s conftest.$ac_objext; then
23093 ac_cv_struct_boundary_long_int=$ac_size
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23107 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23108 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23109 if test x$ac_cv_struct_boundary_long_int = x ; then
23110 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23111 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23112 { (exit 1); exit 1; }; }
23115 { echo "$as_me:$LINENO: checking size of long long int" >&5
23116 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23117 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 #include "confdefs.h"
23128 #include <sys/types.h>
23134 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_compile") 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest.$ac_objext; then
23156 ac_cv_sizeof_long_long_int=$ac_size
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23171 unspecif=$ac_cv_sizeof_long_long_int
23172 if test x$unspecif = x ; then
23173 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23174 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23175 { (exit 1); exit 1; }; }
23178 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include "confdefs.h"
23189 #include <sys/types.h>
23195 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23200 rm -f conftest.$ac_objext
23201 if { (ac_try="$ac_compile"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_compile") 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest.$ac_objext; then
23217 ac_cv_sizeof_signed_long_long_int=$ac_size
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23232 signed=$ac_cv_sizeof_signed_long_long_int
23233 if test x$signed = x ; then
23234 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23235 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23236 { (exit 1); exit 1; }; }
23238 if test x$unspecif != x$signed ; then
23239 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23240 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23241 { (exit 1); exit 1; }; }
23244 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 #include "confdefs.h"
23255 #include <sys/types.h>
23261 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23298 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23299 if test x$unsigned = x ; then
23300 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23301 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23302 { (exit 1); exit 1; }; }
23304 if test x$unsigned != x$signed ; then
23305 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23306 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23307 { (exit 1); exit 1; }; }
23310 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23311 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23312 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23313 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23315 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include "confdefs.h"
23326 #include <sys/types.h>
23327 struct s { char c; long long int i; };
23332 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_cv_struct_boundary_long_long_int=$ac_size
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23368 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23369 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23370 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23371 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23372 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23373 { (exit 1); exit 1; }; }
23377 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23378 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23380 if test "${ac_cv_struct_boundary_float+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23384 cat >conftest.$ac_ext <<_ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 #include "confdefs.h"
23391 #include <sys/types.h>
23392 struct s { char c; float i; };
23397 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_cv_struct_boundary_float=$ac_size
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23433 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23434 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23435 if test x$ac_cv_struct_boundary_float = x ; then
23436 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23437 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23438 { (exit 1); exit 1; }; }
23440 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23441 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23443 if test "${ac_cv_struct_boundary_double+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 #include "confdefs.h"
23454 #include <sys/types.h>
23455 struct s { char c; double i; };
23460 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_cv_struct_boundary_double=$ac_size
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23496 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23497 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23498 if test x$ac_cv_struct_boundary_double = x ; then
23499 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23500 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23501 { (exit 1); exit 1; }; }
23505 { echo "$as_me:$LINENO: checking size of void *" >&5
23506 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23507 if test "${ac_cv_sizeof_void_p+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23510 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23511 cat >conftest.$ac_ext <<_ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 #include "confdefs.h"
23518 #include <sys/types.h>
23524 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536 (eval "$ac_compile") 2>conftest.er1
23538 grep -v '^ *+' conftest.er1 >conftest.err
23540 cat conftest.err >&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } && {
23543 test -z "$ac_c_werror_flag" ||
23544 test ! -s conftest.err
23545 } && test -s conftest.$ac_objext; then
23546 ac_cv_sizeof_void_p=$ac_size
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23561 if test x$ac_cv_sizeof_void_p = x ; then
23562 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23563 echo "$as_me: error: cannot determine a size for void *" >&2;}
23564 { (exit 1); exit 1; }; }
23566 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23567 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23568 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23569 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23571 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include "confdefs.h"
23582 #include <sys/types.h>
23583 struct s { char c; void * i; };
23588 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 ac_cv_struct_boundary_void_p=$ac_size
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23624 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23625 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23626 if test x$ac_cv_struct_boundary_void_p = x ; then
23627 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23628 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23629 { (exit 1); exit 1; }; }
23632 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23633 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23634 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 #include "confdefs.h"
23645 #include <sys/types.h>
23651 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_compile") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest.$ac_objext; then
23673 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23688 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23689 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23690 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23691 { (exit 1); exit 1; }; }
23693 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23694 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23698 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23699 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23700 if test x$endian = x1 ; then
23706 trace="$trace_endian"
23708 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23710 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23711 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23712 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23713 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23715 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23716 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23718 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23720 # sizeof float/double are not tested since IEEE 754 is assumed.
23721 # Check README.IEEE for rational.
23723 # The numbers after the _ in the arch name are the maximal packing boundary.
23724 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23725 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23727 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;;
23728 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;;
23729 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;;
23730 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;;
23732 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;;
23734 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;;
23735 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;;
23736 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;;
23737 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;;
23739 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;;
23740 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;;
23742 if test x$gras_arch = xunknown ; then
23743 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23744 echo "${ECHO_T}damnit ($trace)" >&6; }
23745 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23746 Please report this architecture trace ($trace) and what it corresponds to." >&5
23747 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23748 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23749 { (exit 1); exit 1; }; }
23751 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23753 cat >>confdefs.h <<_ACEOF
23754 #define GRAS_THISARCH $gras_arch
23757 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23758 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23762 if test "$gras_size" = 32; then
23763 GRAS_ARCH_32_BITS_TRUE=
23764 GRAS_ARCH_32_BITS_FALSE='#'
23766 GRAS_ARCH_32_BITS_TRUE='#'
23767 GRAS_ARCH_32_BITS_FALSE=
23771 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23772 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23774 for s in $ac_cv_sizeof_char \
23775 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23776 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23779 if test $ac_cv_sizeof_max -lt $s ; then
23780 ac_cv_sizeof_max=$s
23783 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23784 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23786 cat >>confdefs.h <<_ACEOF
23787 #define SIZEOF_MAX $ac_cv_sizeof_max
23792 # Check architecture signature end
23793 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23794 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 #include "confdefs.h"
23802 #include <sys/types.h>
23803 #include <stddef.h> /* offsetof() */
23804 struct s {char c; double d;};
23811 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23817 rm -f conftest.$ac_objext
23818 if { (ac_try="$ac_compile"
23819 case "(($ac_try" in
23820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821 *) ac_try_echo=$ac_try;;
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824 (eval "$ac_compile") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest.$ac_objext; then
23834 gras_struct_packed=yes
23836 echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23839 gras_struct_packed=no
23842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23845 echo "${ECHO_T}$gras_struct_packed" >&6; }
23846 if test x$gras_struct_packed = "xyes" ; then
23847 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23848 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23849 { (exit 1); exit 1; }; }
23852 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23853 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
23854 cat >conftest.$ac_ext <<_ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include "confdefs.h"
23861 #include <sys/types.h>
23862 #include <stddef.h> /* offsetof() */
23863 struct s {double d; int i; char c;};
23870 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23876 rm -f conftest.$ac_objext
23877 if { (ac_try="$ac_compile"
23878 case "(($ac_try" in
23879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23880 *) ac_try_echo=$ac_try;;
23882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23883 (eval "$ac_compile") 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } && {
23890 test -z "$ac_c_werror_flag" ||
23891 test ! -s conftest.err
23892 } && test -s conftest.$ac_objext; then
23893 gras_struct_compact=yes
23895 echo "$as_me: failed program was:" >&5
23896 sed 's/^/| /' conftest.$ac_ext >&5
23898 gras_struct_compact=no
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23903 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23904 echo "${ECHO_T}$gras_struct_compact" >&6; }
23906 if test x$gras_struct_compact != xyes ; then
23907 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23908 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23909 { (exit 1); exit 1; }; }
23912 cat >>confdefs.h <<_ACEOF
23913 #define GRAS_STRUCT_COMPACT 1
23916 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23917 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
23919 cat >conftest.$ac_ext <<_ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 #include "confdefs.h"
23926 #include <sys/types.h>
23927 #include <stddef.h> /* offsetof() */
23928 struct s { double d; int i; char c[6]; };
23935 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_compile") 2>conftest.er1
23950 grep -v '^ *+' conftest.er1 >conftest.err
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } && {
23955 test -z "$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 } && test -s conftest.$ac_objext; then
23958 gras_array_straddle_struct=yes
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23963 gras_array_straddle_struct=no
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23968 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23969 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
23971 if test x$gras_array_straddle_struct = xyes ; then
23973 cat >>confdefs.h <<_ACEOF
23974 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23978 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23979 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23980 { (exit 1); exit 1; }; }
23987 { echo "$as_me:$LINENO: result: " >&5
23988 echo "${ECHO_T}" >&6; }
23989 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23990 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
23995 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23996 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
23997 if test "${ac_cv_check_mcsc+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
24001 if test "$cross_compiling" = yes; then
24002 ac_cv_check_mcsc=no
24005 cat >conftest.$ac_ext <<_ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24014 #include <stdlib.h>
24015 #include <ucontext.h>
24017 ucontext_t uc_child;
24018 ucontext_t uc_main;
24020 void child(void *arg)
24022 if (arg != (void *)12345)
24024 if (swapcontext(&uc_child, &uc_main) != 0)
24028 int main(int argc, char *argv[])
24033 /* the default is that it fails */
24034 if ((fp = fopen("conftestval", "w")) == NULL)
24036 fprintf(fp, "no\n");
24039 /* configure a child user-space context */
24040 if ((stack = malloc(64*1024)) == NULL)
24042 if (getcontext(&uc_child) != 0)
24044 uc_child.uc_link = NULL;
24045 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24046 uc_child.uc_stack.ss_size = 32*1024;
24047 uc_child.uc_stack.ss_flags = 0;
24048 makecontext(&uc_child, child, 2, (void *)12345);
24050 /* switch into the user context */
24051 if (swapcontext(&uc_main, &uc_child) != 0)
24054 /* Fine, child came home */
24055 if ((fp = fopen("conftestval", "w")) == NULL)
24057 fprintf(fp, "yes\n");
24060 /* die successfully */
24065 rm -f conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_link") 2>&5
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24076 { (case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_try") 2>&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085 ac_cv_check_mcsc=`cat conftestval`
24087 echo "$as_me: program exited with status $ac_status" >&5
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 ( exit $ac_status )
24092 ac_cv_check_mcsc=no
24094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24099 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24100 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24101 if test ".$ac_cv_check_mcsc" = .yes; then
24109 for ac_header in pthread.h
24111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 ac_res=`eval echo '${'$as_ac_Header'}'`
24119 { echo "$as_me:$LINENO: result: $ac_res" >&5
24120 echo "${ECHO_T}$ac_res" >&6; }
24122 # Is the header compilable?
24123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24125 cat >conftest.$ac_ext <<_ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 $ac_includes_default
24132 #include <$ac_header>
24134 rm -f conftest.$ac_objext
24135 if { (ac_try="$ac_compile"
24136 case "(($ac_try" in
24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138 *) ac_try_echo=$ac_try;;
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141 (eval "$ac_compile") 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } && {
24148 test -z "$ac_c_werror_flag" ||
24149 test ! -s conftest.err
24150 } && test -s conftest.$ac_objext; then
24151 ac_header_compiler=yes
24153 echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24156 ac_header_compiler=no
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24161 echo "${ECHO_T}$ac_header_compiler" >&6; }
24163 # Is the header present?
24164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24166 cat >conftest.$ac_ext <<_ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 #include <$ac_header>
24174 if { (ac_try="$ac_cpp conftest.$ac_ext"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } >/dev/null && {
24187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24190 ac_header_preproc=yes
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_header_preproc=no
24198 rm -f conftest.err conftest.$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24200 echo "${ECHO_T}$ac_header_preproc" >&6; }
24202 # So? What about this header?
24203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24209 ac_header_preproc=yes
24212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24225 ## -------------------------------------------------- ##
24226 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24227 ## -------------------------------------------------- ##
24229 ) | sed "s/^/$as_me: WARNING: /" >&2
24232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 eval "$as_ac_Header=\$ac_header_preproc"
24239 ac_res=`eval echo '${'$as_ac_Header'}'`
24240 { echo "$as_me:$LINENO: result: $ac_res" >&5
24241 echo "${ECHO_T}$ac_res" >&6; }
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245 cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24253 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24254 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24255 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24256 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 ac_check_lib_save_LIBS=$LIBS
24259 LIBS="-lpthread $LIBS"
24260 cat >conftest.$ac_ext <<_ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24267 /* Override any GCC internal prototype to avoid an error.
24268 Use char because int might match the return type of a GCC
24269 builtin and then its argument prototype would still apply. */
24273 char pthread_create ();
24277 return pthread_create ();
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (ac_try="$ac_link"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_link") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest$ac_exeext &&
24299 $as_test_x conftest$ac_exeext; then
24300 ac_cv_lib_pthread_pthread_create=yes
24302 echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24305 ac_cv_lib_pthread_pthread_create=no
24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24309 conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24312 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24313 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24314 if test $ac_cv_lib_pthread_pthread_create = yes; then
24322 if test ".$mcsc" = .yes; then
24324 elif test ".$pthread" = .yes; then
24327 ac_header=windows.h
24328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24330 windows_context=yes
24332 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24333 echo "$as_me: error: no appropriate backend found" >&2;}
24334 { (exit 1); exit 1; }; }
24339 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24340 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24343 # Check whether --with-pthread was given.
24344 if test "${with_pthread+set}" = set; then
24345 withval=$with_pthread; with_context=pthread
24349 # Check whether --with-pthread was given.
24350 if test "${with_pthread+set}" = set; then
24351 withval=$with_pthread; with_context=pthread
24356 # Check whether --with-context was given.
24357 if test "${with_context+set}" = set; then
24358 withval=$with_context;
24364 if test "x$with_context$mcsc" = "xucontextno" ; then
24365 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24366 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24367 { (exit 77); exit 77; }; }
24370 case $with_context in
24375 auto) with_context=ucontext;;
24376 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24377 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24378 { (exit 1); exit 1; }; } ;;
24381 if test "x$with_context" = "xucontext" ; then
24382 if test ".$mcsc" = .yes; then
24383 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24384 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24386 cat >>confdefs.h <<\_ACEOF
24387 #define CONTEXT_UCONTEXT 1
24391 if test ".$windows_context" = .yes ; then
24392 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24393 echo "${ECHO_T}use windows context portability layer." >&6; }
24394 with_context=windows
24396 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24397 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24398 with_context=pthread
24403 if test "x$with_context" = "xpthreads"; then
24404 with_context=pthread
24406 if test "x$with_context" = "xpthread"; then
24408 for ac_header in pthread.h
24410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418 { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24421 # Is the header compilable?
24422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <$ac_header>
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_compile") 2>conftest.er1
24442 grep -v '^ *+' conftest.er1 >conftest.err
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest.$ac_objext; then
24450 ac_header_compiler=yes
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24455 ac_header_compiler=no
24458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24460 echo "${ECHO_T}$ac_header_compiler" >&6; }
24462 # Is the header present?
24463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 #include <$ac_header>
24473 if { (ac_try="$ac_cpp conftest.$ac_ext"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } >/dev/null && {
24486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24489 ac_header_preproc=yes
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_header_preproc=no
24497 rm -f conftest.err conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499 echo "${ECHO_T}$ac_header_preproc" >&6; }
24501 # So? What about this header?
24502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24508 ac_header_preproc=yes
24511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24524 ## -------------------------------------------------- ##
24525 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24526 ## -------------------------------------------------- ##
24528 ) | sed "s/^/$as_me: WARNING: /" >&2
24531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24536 eval "$as_ac_Header=\$ac_header_preproc"
24538 ac_res=`eval echo '${'$as_ac_Header'}'`
24539 { echo "$as_me:$LINENO: result: $ac_res" >&5
24540 echo "${ECHO_T}$ac_res" >&6; }
24543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24544 cat >>confdefs.h <<_ACEOF
24545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24553 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24554 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24555 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24556 echo $ECHO_N "(cached) $ECHO_C" >&6
24558 ac_check_lib_save_LIBS=$LIBS
24559 LIBS="-lpthread $LIBS"
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24567 /* Override any GCC internal prototype to avoid an error.
24568 Use char because int might match the return type of a GCC
24569 builtin and then its argument prototype would still apply. */
24573 char pthread_create ();
24577 return pthread_create ();
24582 rm -f conftest.$ac_objext conftest$ac_exeext
24583 if { (ac_try="$ac_link"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_link") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest$ac_exeext &&
24599 $as_test_x conftest$ac_exeext; then
24600 ac_cv_lib_pthread_pthread_create=yes
24602 echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24605 ac_cv_lib_pthread_pthread_create=no
24608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24609 conftest$ac_exeext conftest.$ac_ext
24610 LIBS=$ac_check_lib_save_LIBS
24612 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24613 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24614 if test $ac_cv_lib_pthread_pthread_create = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LIBPTHREAD 1
24619 LIBS="-lpthread $LIBS"
24622 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24623 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24624 { (exit 1); exit 1; }; }
24628 cat >>confdefs.h <<\_ACEOF
24629 #define CONTEXT_THREADS 1
24632 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24633 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24637 if test "x$with_context" = "xucontext" ; then
24638 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24639 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24640 if test "${ac_cv_check_stackgrowth+set}" = set; then
24641 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 if test "$cross_compiling" = yes; then
24646 ac_cv_check_stackgrowth=down
24649 cat >conftest.$ac_ext <<_ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24657 #include <stdlib.h>
24658 static int iterate = 10;
24659 static int growsdown(int *x)
24669 int main(int argc, char *argv[])
24673 if ((f = fopen("conftestval", "w")) == NULL)
24675 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24682 rm -f conftest$ac_exeext
24683 if { (ac_try="$ac_link"
24684 case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689 (eval "$ac_link") 2>&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24693 { (case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_try") 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24702 ac_cv_check_stackgrowth=`cat conftestval`
24704 echo "$as_me: program exited with status $ac_status" >&5
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ( exit $ac_status )
24709 ac_cv_check_stackgrowth=down
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24716 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24717 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24718 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24724 cat >>confdefs.h <<_ACEOF
24725 #define PTH_STACKGROWTH $val
24729 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24730 PTH_STACK_GROWTH="down"
24732 PTH_STACK_GROWTH="up"
24740 for ac_func in makecontext
24742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24756 #define $ac_func innocuous_$ac_func
24758 /* System header to define __stub macros and hopefully few prototypes,
24759 which can conflict with char $ac_func (); below.
24760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24761 <limits.h> exists even on freestanding compilers. */
24764 # include <limits.h>
24766 # include <assert.h>
24771 /* Override any GCC internal prototype to avoid an error.
24772 Use char because int might match the return type of a GCC
24773 builtin and then its argument prototype would still apply. */
24778 /* The GNU C library defines this for functions which it implements
24779 to always fail with ENOSYS. Some functions are actually named
24780 something starting with __ and the normal name is an alias. */
24781 #if defined __stub_$ac_func || defined __stub___$ac_func
24788 return $ac_func ();
24793 rm -f conftest.$ac_objext conftest$ac_exeext
24794 if { (ac_try="$ac_link"
24795 case "(($ac_try" in
24796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24797 *) ac_try_echo=$ac_try;;
24799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24800 (eval "$ac_link") 2>conftest.er1
24802 grep -v '^ *+' conftest.er1 >conftest.err
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } && {
24807 test -z "$ac_c_werror_flag" ||
24808 test ! -s conftest.err
24809 } && test -s conftest$ac_exeext &&
24810 $as_test_x conftest$ac_exeext; then
24811 eval "$as_ac_var=yes"
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 eval "$as_ac_var=no"
24819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24820 conftest$ac_exeext conftest.$ac_ext
24822 ac_res=`eval echo '${'$as_ac_var'}'`
24823 { echo "$as_me:$LINENO: result: $ac_res" >&5
24824 echo "${ECHO_T}$ac_res" >&6; }
24825 if test `eval echo '${'$as_ac_var'}'` = yes; then
24826 cat >>confdefs.h <<_ACEOF
24827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24834 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24835 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
24836 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24840 if test ".$ac_cv_func_makecontext" = .no; then
24841 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24844 CFLAGS="$CFLAGS -DTEST_makecontext"
24846 if test "$cross_compiling" = yes; then
24848 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24859 #include <stdlib.h>
24860 #include <string.h>
24861 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24862 #include <sys/types.h>
24863 #include <signal.h>
24864 #include <unistd.h>
24866 #if defined(TEST_makecontext)
24867 #include <ucontext.h>
24876 static volatile char *handler_addr = (char *)0xDEAD;
24877 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24878 static volatile int handler_done = 0;
24879 void handler(int sig)
24881 char garbage[1024];
24884 for (i = 0; i < 1024; i++)
24886 handler_addr = (char *)&dummy;
24891 #if defined(TEST_makecontext)
24892 static ucontext_t uc_handler;
24893 static ucontext_t uc_main;
24896 char garbage[1024];
24899 for (i = 0; i < 1024; i++)
24901 handler_addr = (char *)&dummy;
24902 swapcontext(&uc_handler, &uc_main);
24906 int main(int argc, char *argv[])
24915 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24918 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24920 skaddr = skbuf+sizeof(union alltypes);
24921 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24923 struct sigaction sa;
24924 #if defined(TEST_sigstack)
24925 struct sigstack ss;
24926 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24929 struct sigaltstack ss;
24931 #if defined(TEST_sigstack)
24932 ss.ss_sp = (void *)(skaddr + sksize);
24934 if (sigstack(&ss, NULL) < 0)
24936 #elif defined(TEST_sigaltstack)
24937 ss.ss_sp = (void *)(skaddr + sksize);
24938 ss.ss_size = sksize;
24940 if (sigaltstack(&ss, NULL) < 0)
24943 memset((void *)&sa, 0, sizeof(struct sigaction));
24944 sa.sa_handler = handler;
24945 sa.sa_flags = SA_ONSTACK;
24946 sigemptyset(&sa.sa_mask);
24947 sigaction(SIGUSR1, &sa, NULL);
24948 kill(getpid(), SIGUSR1);
24949 while (!handler_done)
24953 #if defined(TEST_makecontext)
24955 if (getcontext(&uc_handler) != 0)
24957 uc_handler.uc_link = NULL;
24958 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
24959 uc_handler.uc_stack.ss_size = sksize;
24960 uc_handler.uc_stack.ss_flags = 0;
24961 makecontext(&uc_handler, handler, 1);
24962 swapcontext(&uc_main, &uc_handler);
24965 if (handler_addr == (char *)0xDEAD)
24967 if (handler_addr < skaddr+sksize) {
24968 /* stack was placed into lower area */
24969 if (*(skaddr+sksize) != 'A')
24970 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24971 sizeof(union alltypes), sizeof(union alltypes));
24973 strcpy(result, "(skaddr)+(sksize),(sksize)");
24976 /* stack was placed into higher area */
24977 if (*(skaddr+sksize*2) != 'A')
24978 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24980 strcpy(result, "(skaddr),(sksize)");
24982 if ((f = fopen("conftestval", "w")) == NULL)
24984 fprintf(f, "%s\n", result);
24990 rm -f conftest$ac_exeext
24991 if { (ac_try="$ac_link"
24992 case "(($ac_try" in
24993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994 *) ac_try_echo=$ac_try;;
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_link") 2>&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25001 { (case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; }; then
25011 ac_cv_stacksetup_makecontext=`cat conftestval`
25012 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25015 echo "$as_me: program exited with status $ac_status" >&5
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25019 ( exit $ac_status )
25021 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25032 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25033 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25034 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25035 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25036 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25037 { echo "$as_me:$LINENO: result: $type" >&5
25038 echo "${ECHO_T}$type" >&6; }
25039 if test ".$verbose" = .yes; then
25040 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25041 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25044 if test ".$verbose" = .yes; then
25045 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25046 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25052 #########################################
25053 ## Check for libraries extra-dependencies
25057 { echo "$as_me:$LINENO: result: " >&5
25058 echo "${ECHO_T}" >&6; }
25059 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25060 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25066 #########################################
25067 ## Build optional modules (gtnets)
25070 # Check whether --with-gtnets was given.
25071 if test "${with_gtnets+set}" = set; then
25072 withval=$with_gtnets; gtnets_path="$withval"
25077 if test "x$gtnets_path" = "xNO" ; then
25078 { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25079 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25081 { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25082 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25084 cat >>confdefs.h <<\_ACEOF
25085 #define USE_GTNETS 1
25088 if ! test -e $gtnets_path ; then
25089 { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25090 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25091 { (exit 1); exit 1; }; }
25093 GTNETS_CFLAGS=-I$gtnets_path/include
25095 GTNETS_LDFLAGS=-L$gtnets_path/lib
25097 SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25101 if test "x$gtnets_path" != xNO; then
25103 USE_GTNETS_FALSE='#'
25105 USE_GTNETS_TRUE='#'
25110 if test xpthread=xyes ; then
25111 # if the pthreads are usable
25112 if test "x$with_context" = "xpthread" ; then
25113 # if we use them to implement the xbt_context
25114 SIMGRID_DEP="-lpthread"
25116 # we need them in any case for the gras lib (which is multithreaded)
25117 GRAS_DEP="-lpthread"
25120 { echo "$as_me:$LINENO: checking for csdp" >&5
25121 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25123 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25124 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25125 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 ac_check_lib_save_LIBS=$LIBS
25129 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25137 /* Override any GCC internal prototype to avoid an error.
25138 Use char because int might match the return type of a GCC
25139 builtin and then its argument prototype would still apply. */
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest$ac_exeext &&
25169 $as_test_x conftest$ac_exeext; then
25170 ac_cv_lib_sdp_sdp=yes
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 ac_cv_lib_sdp_sdp=no
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179 conftest$ac_exeext conftest.$ac_ext
25180 LIBS=$ac_check_lib_save_LIBS
25182 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25183 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25184 if test $ac_cv_lib_sdp_sdp = yes; then
25190 if test "x$csdp" = xyes; then
25191 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25192 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25193 echo "${ECHO_T}Found working sdp library." >&6; }
25195 cat >>confdefs.h <<\_ACEOF
25200 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25201 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25205 if test x$csdp != xno; then
25216 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25217 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25218 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25221 ac_check_lib_save_LIBS=$LIBS
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25230 /* Override any GCC internal prototype to avoid an error.
25231 Use char because int might match the return type of a GCC
25232 builtin and then its argument prototype would still apply. */
25236 char gethostbyname ();
25240 return gethostbyname ();
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249 *) ac_try_echo=$ac_try;;
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252 (eval "$ac_link") 2>conftest.er1
25254 grep -v '^ *+' conftest.er1 >conftest.err
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } && {
25259 test -z "$ac_c_werror_flag" ||
25260 test ! -s conftest.err
25261 } && test -s conftest$ac_exeext &&
25262 $as_test_x conftest$ac_exeext; then
25263 ac_cv_lib_nsl_gethostbyname=yes
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ac_cv_lib_nsl_gethostbyname=no
25271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25272 conftest$ac_exeext conftest.$ac_ext
25273 LIBS=$ac_check_lib_save_LIBS
25275 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25276 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25277 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25278 GRAS_DEP="$GRAS_DEP -lnsl"
25281 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25282 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25283 if test "${ac_cv_lib_socket_connect+set}" = set; then
25284 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 ac_check_lib_save_LIBS=$LIBS
25287 LIBS="-lsocket $LIBS"
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25295 /* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25310 rm -f conftest.$ac_objext conftest$ac_exeext
25311 if { (ac_try="$ac_link"
25312 case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317 (eval "$ac_link") 2>conftest.er1
25319 grep -v '^ *+' conftest.er1 >conftest.err
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest$ac_exeext &&
25327 $as_test_x conftest$ac_exeext; then
25328 ac_cv_lib_socket_connect=yes
25330 echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25333 ac_cv_lib_socket_connect=no
25336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25337 conftest$ac_exeext conftest.$ac_ext
25338 LIBS=$ac_check_lib_save_LIBS
25340 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25341 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25342 if test $ac_cv_lib_socket_connect = yes; then
25343 GRAS_DEP="$GRAS_DEP -lsocket"
25347 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25348 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25350 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25351 AM_CFLAGS=-DDLL_EXPORT
25353 cat >>confdefs.h <<\_ACEOF
25354 #define CONTEXT_THREADS 1
25359 if test "x$GRAS_DEP" = x; then
25360 { echo "$as_me:$LINENO: result: none" >&5
25361 echo "${ECHO_T}none" >&6; }
25363 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25364 echo "${ECHO_T}$GRAS_DEP" >&6; }
25369 ##############################################
25370 ## Enhance maintainer mode and SUBST variables
25371 ## (must be placed after any compilation tests since our overprotective flags
25372 ## let some tests fail)
25374 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25375 # Next line is modified by sed when building gramine source tree
25377 if test x$gramine_mode = xyes
25379 USE_MAINTAINER_MODE=no
25383 if test x$gramine_mode != xno; then
25385 GRAMINE_MODE_FALSE='#'
25387 GRAMINE_MODE_TRUE='#'
25388 GRAMINE_MODE_FALSE=
25393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25395 # Check whether --enable-maintainer-mode was given.
25396 if test "${enable_maintainer_mode+set}" = set; then
25397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25399 USE_MAINTAINER_MODE=no
25402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25406 if test $USE_MAINTAINER_MODE = yes; then
25407 MAINTAINER_MODE_TRUE=
25408 MAINTAINER_MODE_FALSE='#'
25410 MAINTAINER_MODE_TRUE='#'
25411 MAINTAINER_MODE_FALSE=
25414 MAINT=$MAINTAINER_MODE_TRUE
25417 if test x$USE_MAINTAINER_MODE = xyes
25419 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25420 enable_compile_warnings=yes
25423 # Check whether --enable-compile-warnings was given.
25424 if test "${enable_compile_warnings+set}" = set; then
25425 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25427 enable_compile_warnings=no
25431 # Check whether --enable-compile-optimizations was given.
25432 if test "${enable_compile_optimizations+set}" = set; then
25433 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25435 enable_compile_optimizations=auto
25439 if test "x$cflags_set" != "xyes" ; then
25440 # if user didn't specify CFLAGS explicitely
25442 # AC PROG CC tests whether -g is accepted.
25443 # Cool, but it also tries to set -O2. I don't want it with gcc
25444 saveCFLAGS="$CFLAGS"
25446 case " $saveCFLAGS " in
25447 *-g*) CFLAGS="-g" ;;
25449 case " $saveCFLAGS " in
25450 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25453 # damn AC PROG CC, why did you set -O??
25457 if test "x$enable_compile_warnings" = "xyes" ; then
25458 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25459 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25461 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25462 case " $CFLAGS " in
25464 *) warnCFLAGS="-Wall -Wunused" ;;
25467 ## -W is not all that useful. And it cannot be controlled
25468 ## with individual -Wno-xxx flags, unlike -Wall
25470 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25471 ## -Wshadow chokes on try{ try{} } constructs
25472 if test "x$enable_compile_warnings" = "xyes"; then
25473 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25474 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25475 -Wno-unused-function \
25478 # -Wno-unused-variable -Wno-unused-label
25481 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25482 echo "${ECHO_T}$warnCFLAGS" >&6; }
25483 # placed before since gcc remembers the last one on conflict
25484 CFLAGS="$warnCFLAGS $CFLAGS"
25487 if test "x$enable_compile_optimizations" = "xyes" ||
25488 test "x$enable_compile_optimizations" = "xauto" ; then
25489 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25490 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25492 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25493 case " $CFLAGS " in
25495 *) optCFLAGS="$optCFLAGS -O3" ;;
25497 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25499 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25500 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25501 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25502 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25503 # isn't propagated enough to desserve an extra check
25505 # Note that the flag didn't exist before gcc 3.0
25506 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25509 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25510 echo "${ECHO_T}$optCFLAGS" >&6; }
25511 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25512 if test "x$cflags_set" != "xyes" ; then
25513 CFLAGS="$optCFLAGS $CFLAGS"
25517 if test x$lt_cv_prog_gnu_ld = xyes ; then
25518 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25534 #####################
25535 ## Check for programs
25539 { echo "$as_me:$LINENO: result: " >&5
25540 echo "${ECHO_T}" >&6; }
25541 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25542 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25544 # Extract the first word of "bash", so it can be a program name with args.
25545 set dummy bash; ac_word=$2
25546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25548 if test "${ac_cv_prog_BASH+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 if test -n "$BASH"; then
25552 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25555 for as_dir in $PATH
25558 test -z "$as_dir" && as_dir=.
25559 for ac_exec_ext in '' $ac_executable_extensions; do
25560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25561 ac_cv_prog_BASH="`which bash`"
25562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25569 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25572 BASH=$ac_cv_prog_BASH
25573 if test -n "$BASH"; then
25574 { echo "$as_me:$LINENO: result: $BASH" >&5
25575 echo "${ECHO_T}$BASH" >&6; }
25577 { echo "$as_me:$LINENO: result: no" >&5
25578 echo "${ECHO_T}no" >&6; }
25582 WARNING="This file is generated, do not edit"
25586 # Can we rebuild the parsers?
25587 # We really want flex and refuse other lex. So, the parser is portable and
25588 # does not induce extra lib dependency
25589 for ac_prog in flex lex
25591 # Extract the first word of "$ac_prog", so it can be a program name with args.
25592 set dummy $ac_prog; ac_word=$2
25593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25595 if test "${ac_cv_prog_LEX+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 if test -n "$LEX"; then
25599 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25605 test -z "$as_dir" && as_dir=.
25606 for ac_exec_ext in '' $ac_executable_extensions; do
25607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25608 ac_cv_prog_LEX="$ac_prog"
25609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618 LEX=$ac_cv_prog_LEX
25619 if test -n "$LEX"; then
25620 { echo "$as_me:$LINENO: result: $LEX" >&5
25621 echo "${ECHO_T}$LEX" >&6; }
25623 { echo "$as_me:$LINENO: result: no" >&5
25624 echo "${ECHO_T}no" >&6; }
25628 test -n "$LEX" && break
25630 test -n "$LEX" || LEX=":"
25632 if test "x$LEX" != "x:"; then
25633 cat >conftest.l <<_ACEOF
25639 e { yyless (input () != 0); }
25640 f { unput (yytext[0]); }
25641 . { BEGIN INITIAL; }
25643 #ifdef YYTEXT_POINTER
25644 extern char *yytext;
25649 return ! yylex () + ! yywrap ();
25652 { (ac_try="$LEX conftest.l"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$LEX conftest.l") 2>&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }
25662 { echo "$as_me:$LINENO: checking lex output file root" >&5
25663 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25664 if test "${ac_cv_prog_lex_root+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 if test -f lex.yy.c; then
25669 ac_cv_prog_lex_root=lex.yy
25670 elif test -f lexyy.c; then
25671 ac_cv_prog_lex_root=lexyy
25673 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25674 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25675 { (exit 1); exit 1; }; }
25678 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25679 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25680 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25682 if test -z "${LEXLIB+set}"; then
25683 { echo "$as_me:$LINENO: checking lex library" >&5
25684 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25685 if test "${ac_cv_lib_lex+set}" = set; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 ac_cv_lib_lex='none needed'
25691 for ac_lib in '' -lfl -ll; do
25692 LIBS="$ac_lib $ac_save_LIBS"
25693 cat >conftest.$ac_ext <<_ACEOF
25694 `cat $LEX_OUTPUT_ROOT.c`
25696 rm -f conftest.$ac_objext conftest$ac_exeext
25697 if { (ac_try="$ac_link"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703 (eval "$ac_link") 2>conftest.er1
25705 grep -v '^ *+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && {
25710 test -z "$ac_c_werror_flag" ||
25711 test ! -s conftest.err
25712 } && test -s conftest$ac_exeext &&
25713 $as_test_x conftest$ac_exeext; then
25714 ac_cv_lib_lex=$ac_lib
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25723 conftest$ac_exeext conftest.$ac_ext
25724 test "$ac_cv_lib_lex" != 'none needed' && break
25729 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25730 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25731 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25735 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25736 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25737 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 # POSIX says lex can declare yytext either as a pointer or an array; the
25741 # default is implementation-dependent. Figure out which it is, since
25742 # not all implementations provide the %pointer and %array declarations.
25743 ac_cv_prog_lex_yytext_pointer=no
25745 LIBS="$LEXLIB $ac_save_LIBS"
25746 cat >conftest.$ac_ext <<_ACEOF
25747 #define YYTEXT_POINTER 1
25748 `cat $LEX_OUTPUT_ROOT.c`
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (ac_try="$ac_link"
25752 case "(($ac_try" in
25753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754 *) ac_try_echo=$ac_try;;
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757 (eval "$ac_link") 2>conftest.er1
25759 grep -v '^ *+' conftest.er1 >conftest.err
25761 cat conftest.err >&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } && {
25764 test -z "$ac_c_werror_flag" ||
25765 test ! -s conftest.err
25766 } && test -s conftest$ac_exeext &&
25767 $as_test_x conftest$ac_exeext; then
25768 ac_cv_prog_lex_yytext_pointer=yes
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777 conftest$ac_exeext conftest.$ac_ext
25781 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25782 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25785 cat >>confdefs.h <<\_ACEOF
25786 #define YYTEXT_POINTER 1
25790 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25794 if test "$LEX" != flex; then
25795 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25796 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25797 LEX=${am_missing_run}flex
25801 if test "x2.5.30" != "x" ; then
25802 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25804 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25805 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25806 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25808 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25809 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25810 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25812 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25813 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25814 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25816 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25817 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25818 LEX=${am_missing_run}flex
25822 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25823 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25829 # Can we rebuild the xml-lexers from the XML specification?
25830 # if not, simply touch the flex source files (which are distributed in
25831 # tarballs even if generated by flexml) and hope for the best.
25832 # Extract the first word of "flexml", so it can be a program name with args.
25833 set dummy flexml; ac_word=$2
25834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25836 if test "${ac_cv_prog_FLEXML+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 if test -n "$FLEXML"; then
25840 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25843 for as_dir in $PATH
25846 test -z "$as_dir" && as_dir=.
25847 for ac_exec_ext in '' $ac_executable_extensions; do
25848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25849 ac_cv_prog_FLEXML="`which flexml`"
25850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25857 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25860 FLEXML=$ac_cv_prog_FLEXML
25861 if test -n "$FLEXML"; then
25862 { echo "$as_me:$LINENO: result: $FLEXML" >&5
25863 echo "${ECHO_T}$FLEXML" >&6; }
25865 { echo "$as_me:$LINENO: result: no" >&5
25866 echo "${ECHO_T}no" >&6; }
25872 if test x$FLEXML != xNOTFOUND; then
25874 HAVE_FLEXML_FALSE='#'
25876 HAVE_FLEXML_TRUE='#'
25881 if test x$USE_MAINTAINER_MODE = xyes
25883 # Check for doxygen when in maintainer mode since dist* targets fail
25885 # Extract the first word of "doxygen", so it can be a program name with args.
25886 set dummy doxygen; ac_word=$2
25887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25889 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25890 echo $ECHO_N "(cached) $ECHO_C" >&6
25894 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25898 for as_dir in $PATH
25901 test -z "$as_dir" && as_dir=.
25902 for ac_exec_ext in '' $ac_executable_extensions; do
25903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25904 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25912 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25916 DOXYGEN=$ac_cv_path_DOXYGEN
25917 if test -n "$DOXYGEN"; then
25918 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25919 echo "${ECHO_T}$DOXYGEN" >&6; }
25921 { echo "$as_me:$LINENO: result: no" >&5
25922 echo "${ECHO_T}no" >&6; }
25926 if test x$DOXYGEN = x ; then
25927 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25928 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25929 { (exit 1); exit 1; }; }
25933 # Can we extract really usable backtraces? (also need the popen function)
25934 # Extract the first word of "addr2line", so it can be a program name with args.
25935 set dummy addr2line; ac_word=$2
25936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25938 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25943 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25947 for as_dir in $PATH
25950 test -z "$as_dir" && as_dir=.
25951 for ac_exec_ext in '' $ac_executable_extensions; do
25952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25953 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25964 ADDR2LINE=$ac_cv_path_ADDR2LINE
25965 if test -n "$ADDR2LINE"; then
25966 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25967 echo "${ECHO_T}$ADDR2LINE" >&6; }
25969 { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25974 if test x$ADDR2LINE != x ; then
25976 cat >>confdefs.h <<_ACEOF
25977 #define ADDR2LINE "$ADDR2LINE"
25983 # Can we make status line about the compilation result?
25984 # Extract the first word of "md5sum", so it can be a program name with args.
25985 set dummy md5sum; ac_word=$2
25986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25988 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 if test -n "$MD5SUM"; then
25992 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in $PATH
25998 test -z "$as_dir" && as_dir=.
25999 for ac_exec_ext in '' $ac_executable_extensions; do
26000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26001 ac_cv_prog_MD5SUM="`which md5sum`"
26002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26011 MD5SUM=$ac_cv_prog_MD5SUM
26012 if test -n "$MD5SUM"; then
26013 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26014 echo "${ECHO_T}$MD5SUM" >&6; }
26016 { echo "$as_me:$LINENO: result: no" >&5
26017 echo "${ECHO_T}no" >&6; }
26021 if test x$MD5SUM != xno ; then
26022 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26023 xargs cat| $MD5SUM | sed 's/ .*$//'`
26025 build_version="no_md5sum_binary"
26027 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26030 ###################
26031 ## Makes the output
26036 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26037 # src/amok/Makefile
26040 { echo "$as_me:$LINENO: result: " >&5
26041 echo "${ECHO_T}" >&6; }
26042 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26043 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26046 # Core of the libraries
26048 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26051 # Tools being embeeded in gramine (stub generator)
26052 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26056 # GRAMINE_CUT_BEGIN
26058 # Tools NOT being embeeded in gramine
26059 ac_config_files="$ac_config_files tools/graspe-slave"
26064 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26068 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26073 # examples/gras/p2p/Makefile
26074 # examples/gras/p2p/chord/Makefile
26075 # examples/gras/p2p/can/Makefile
26077 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"
26083 cat >confcache <<\_ACEOF
26084 # This file is a shell script that caches the results of configure
26085 # tests run on this system so they can be shared between configure
26086 # scripts and configure runs, see configure's option --config-cache.
26087 # It is not useful on other systems. If it contains results you don't
26088 # want to keep, you may remove or edit it.
26090 # config.status only pays attention to the cache file if you give it
26091 # the --recheck option to rerun configure.
26093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26095 # following values.
26099 # The following way of writing the cache mishandles newlines in values,
26100 # but we know of no workaround that is simple, portable, and efficient.
26101 # So, we kill variables containing newlines.
26102 # Ultrix sh set writes to stderr and can't be redirected directly,
26103 # and sets the high bit in the cache file unless we assign to the vars.
26105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26106 eval ac_val=\$$ac_var
26110 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26111 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26114 _ | IFS | as_nl) ;; #(
26115 *) $as_unset $ac_var ;;
26121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26122 *${as_nl}ac_space=\ *)
26123 # `set' does not quote correctly, so add quotes (double-quote
26124 # substitution turns \\\\ into \\, and sed turns \\ into \).
26127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26130 # `set' quotes correctly as required by POSIX, so do not add quotes.
26131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26145 if test -w "$cache_file"; then
26146 test "x$cache_file" != "x/dev/null" &&
26147 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26148 echo "$as_me: updating cache $cache_file" >&6;}
26149 cat confcache >$cache_file
26151 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26152 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26158 # Let make expand exec_prefix.
26159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26161 DEFS=-DHAVE_CONFIG_H
26165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26166 # 1. Remove the extension, and $U if already installed.
26167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26168 ac_i=`echo "$ac_i" | sed "$ac_script"`
26169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26170 # will be set to the directory where LIBOBJS objects are built.
26171 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26172 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26174 LIBOBJS=$ac_libobjs
26176 LTLIBOBJS=$ac_ltlibobjs
26179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26180 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26181 Usually this means the macro was only invoked conditionally." >&5
26182 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26183 Usually this means the macro was only invoked conditionally." >&2;}
26184 { (exit 1); exit 1; }; }
26186 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26187 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26188 Usually this means the macro was only invoked conditionally." >&5
26189 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26190 Usually this means the macro was only invoked conditionally." >&2;}
26191 { (exit 1); exit 1; }; }
26193 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26194 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26195 Usually this means the macro was only invoked conditionally." >&5
26196 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26197 Usually this means the macro was only invoked conditionally." >&2;}
26198 { (exit 1); exit 1; }; }
26200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26201 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26202 Usually this means the macro was only invoked conditionally." >&5
26203 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26204 Usually this means the macro was only invoked conditionally." >&2;}
26205 { (exit 1); exit 1; }; }
26207 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26208 { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26209 Usually this means the macro was only invoked conditionally." >&5
26210 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26211 Usually this means the macro was only invoked conditionally." >&2;}
26212 { (exit 1); exit 1; }; }
26214 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26215 { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26216 Usually this means the macro was only invoked conditionally." >&5
26217 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26218 Usually this means the macro was only invoked conditionally." >&2;}
26219 { (exit 1); exit 1; }; }
26221 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26222 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26223 Usually this means the macro was only invoked conditionally." >&5
26224 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26225 Usually this means the macro was only invoked conditionally." >&2;}
26226 { (exit 1); exit 1; }; }
26228 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26229 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26230 Usually this means the macro was only invoked conditionally." >&5
26231 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26232 Usually this means the macro was only invoked conditionally." >&2;}
26233 { (exit 1); exit 1; }; }
26235 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26236 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26237 Usually this means the macro was only invoked conditionally." >&5
26238 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26239 Usually this means the macro was only invoked conditionally." >&2;}
26240 { (exit 1); exit 1; }; }
26242 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26243 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26244 Usually this means the macro was only invoked conditionally." >&5
26245 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26246 Usually this means the macro was only invoked conditionally." >&2;}
26247 { (exit 1); exit 1; }; }
26250 : ${CONFIG_STATUS=./config.status}
26251 ac_clean_files_save=$ac_clean_files
26252 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26253 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26254 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26255 cat >$CONFIG_STATUS <<_ACEOF
26257 # Generated by $as_me.
26258 # Run this file to recreate the current configuration.
26259 # Compiler output produced by configure, useful for debugging
26260 # configure, is in config.log if it exists.
26263 ac_cs_recheck=false
26265 SHELL=\${CONFIG_SHELL-$SHELL}
26268 cat >>$CONFIG_STATUS <<\_ACEOF
26269 ## --------------------- ##
26270 ## M4sh Initialization. ##
26271 ## --------------------- ##
26273 # Be more Bourne compatible
26274 DUALCASE=1; export DUALCASE # for MKS sh
26275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26279 # is contrary to our usage. Disable this feature.
26280 alias -g '${1+"$@"}'='"$@"'
26281 setopt NO_GLOB_SUBST
26283 case `(set -o) 2>/dev/null` in
26284 *posix*) set -o posix ;;
26293 # Avoid depending upon Character Ranges.
26294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26297 as_cr_digits='0123456789'
26298 as_cr_alnum=$as_cr_Letters$as_cr_digits
26300 # The user is always right.
26301 if test "${PATH_SEPARATOR+set}" != set; then
26302 echo "#! /bin/sh" >conf$$.sh
26303 echo "exit 0" >>conf$$.sh
26305 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26313 # Support unset when possible.
26314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26322 # We need space, tab and new line, in precisely that order. Quoting is
26323 # there to prevent editors from complaining about space-tab.
26324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26325 # splitting by setting IFS to empty value.)
26330 # Find who we are. Look in the path if we contain no directory separator.
26332 *[\\/]* ) as_myself=$0 ;;
26333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26334 for as_dir in $PATH
26337 test -z "$as_dir" && as_dir=.
26338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26344 # We did not find ourselves, most probably we were run as `sh COMMAND'
26345 # in which case we are not to be found in the path.
26346 if test "x$as_myself" = x; then
26349 if test ! -f "$as_myself"; then
26350 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26351 { (exit 1); exit 1; }
26354 # Work around bugs in pre-3.0 UWIN ksh.
26355 for as_var in ENV MAIL MAILPATH
26356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26364 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26365 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26366 LC_TELEPHONE LC_TIME
26368 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26369 eval $as_var=C; export $as_var
26371 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26375 # Required to use basename.
26376 if expr a : '\(a\)' >/dev/null 2>&1 &&
26377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26384 as_basename=basename
26390 # Name of the executable.
26391 as_me=`$as_basename -- "$0" ||
26392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26393 X"$0" : 'X\(//\)$' \| \
26394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26396 sed '/^.*\/\([^/][^/]*\)\/*$/{
26415 as_lineno_1=$LINENO
26416 as_lineno_2=$LINENO
26417 test "x$as_lineno_1" != "x$as_lineno_2" &&
26418 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26420 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26421 # uniformly replaced by the line number. The first 'sed' inserts a
26422 # line-number line after each line using $LINENO; the second 'sed'
26423 # does the real work. The second script uses 'N' to pair each
26424 # line-number line with the line containing $LINENO, and appends
26425 # trailing '-' during substitution so that $LINENO is not a special
26426 # case at line end.
26427 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26428 # scripts with optimization help from Paolo Bonzini. Blame Lee
26429 # E. McMahon (1931-1989) for sed's syntax. :-)
26441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26444 ' >$as_me.lineno &&
26445 chmod +x "$as_me.lineno" ||
26446 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26447 { (exit 1); exit 1; }; }
26449 # Don't try to exec as it changes $[0], causing all sort of problems
26450 # (the dirname of $[0] is not the place where we might find the
26451 # original and so on. Autoconf is especially sensitive to this).
26452 . "./$as_me.lineno"
26453 # Exit status is that of the last command.
26458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26464 ECHO_C= ECHO_N= ECHO_T=
26465 case `echo -n x` in
26467 case `echo 'x\c'` in
26468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26475 if expr a : '\(a\)' >/dev/null 2>&1 &&
26476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26482 rm -f conf$$ conf$$.exe conf$$.file
26483 if test -d conf$$.dir; then
26484 rm -f conf$$.dir/conf$$.file
26490 if ln -s conf$$.file conf$$ 2>/dev/null; then
26492 # ... but there are two gotchas:
26493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26495 # In both cases, we have to default to `cp -p'.
26496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26498 elif ln conf$$.file conf$$ 2>/dev/null; then
26503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26504 rmdir conf$$.dir 2>/dev/null
26506 if mkdir -p . 2>/dev/null; then
26509 test -d ./-p && rmdir ./-p
26513 if test -x / >/dev/null 2>&1; then
26514 as_test_x='test -x'
26516 if ls -dL / >/dev/null 2>&1; then
26523 if test -d "$1"; then
26529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26530 ???[sx]*):;;*)false;;esac;fi
26534 as_executable_p=$as_test_x
26536 # Sed expression to map a string onto a valid CPP name.
26537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26539 # Sed expression to map a string onto a valid variable name.
26540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26545 # Save the log message, to keep $[0] and so on meaningful, and to
26546 # report actual input values of CONFIG_FILES etc. instead of their
26547 # values after options handling.
26549 This file was extended by simgrid $as_me 3.3-cvs, which was
26550 generated by GNU Autoconf 2.61. Invocation command line was
26552 CONFIG_FILES = $CONFIG_FILES
26553 CONFIG_HEADERS = $CONFIG_HEADERS
26554 CONFIG_LINKS = $CONFIG_LINKS
26555 CONFIG_COMMANDS = $CONFIG_COMMANDS
26558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26563 cat >>$CONFIG_STATUS <<_ACEOF
26564 # Files that config.status was made for.
26565 config_files="$ac_config_files"
26566 config_headers="$ac_config_headers"
26567 config_commands="$ac_config_commands"
26571 cat >>$CONFIG_STATUS <<\_ACEOF
26573 \`$as_me' instantiates files from templates according to the
26574 current configuration.
26576 Usage: $0 [OPTIONS] [FILE]...
26578 -h, --help print this help, then exit
26579 -V, --version print version number and configuration settings, then exit
26580 -q, --quiet do not print progress messages
26581 -d, --debug don't remove temporary files
26582 --recheck update $as_me by reconfiguring in the same conditions
26583 --file=FILE[:TEMPLATE]
26584 instantiate the configuration file FILE
26585 --header=FILE[:TEMPLATE]
26586 instantiate the configuration header FILE
26588 Configuration files:
26591 Configuration headers:
26594 Configuration commands:
26597 Report bugs to <bug-autoconf@gnu.org>."
26600 cat >>$CONFIG_STATUS <<_ACEOF
26602 simgrid config.status 3.3-cvs
26603 configured by $0, generated by GNU Autoconf 2.61,
26604 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26606 Copyright (C) 2006 Free Software Foundation, Inc.
26607 This config.status script is free software; the Free Software Foundation
26608 gives unlimited permission to copy, distribute and modify it."
26615 cat >>$CONFIG_STATUS <<\_ACEOF
26616 # If no file are specified by the user, then we need to provide default
26617 # value. By we need to know if files were specified by the user.
26623 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26624 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26635 # Handling of the options.
26636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26638 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26639 echo "$ac_cs_version"; exit ;;
26640 --debug | --debu | --deb | --de | --d | -d )
26642 --file | --fil | --fi | --f )
26644 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26645 ac_need_defaults=false;;
26646 --header | --heade | --head | --hea )
26648 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26649 ac_need_defaults=false;;
26651 # Conflict between --help and --header
26652 { echo "$as_me: error: ambiguous option: $1
26653 Try \`$0 --help' for more information." >&2
26654 { (exit 1); exit 1; }; };;
26655 --help | --hel | -h )
26656 echo "$ac_cs_usage"; exit ;;
26657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26661 # This is an error.
26662 -*) { echo "$as_me: error: unrecognized option: $1
26663 Try \`$0 --help' for more information." >&2
26664 { (exit 1); exit 1; }; } ;;
26666 *) ac_config_targets="$ac_config_targets $1"
26667 ac_need_defaults=false ;;
26673 ac_configure_extra_args=
26675 if $ac_cs_silent; then
26677 ac_configure_extra_args="$ac_configure_extra_args --silent"
26681 cat >>$CONFIG_STATUS <<_ACEOF
26682 if \$ac_cs_recheck; then
26683 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26684 CONFIG_SHELL=$SHELL
26685 export CONFIG_SHELL
26686 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26690 cat >>$CONFIG_STATUS <<\_ACEOF
26694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26695 ## Running $as_me. ##
26701 cat >>$CONFIG_STATUS <<_ACEOF
26705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26709 cat >>$CONFIG_STATUS <<\_ACEOF
26711 # Handling of arguments.
26712 for ac_config_target in $ac_config_targets
26714 case $ac_config_target in
26715 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26718 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26719 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26720 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26721 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26722 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26723 "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
26724 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26725 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26726 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26727 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26728 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26729 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26730 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26731 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26732 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26733 "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
26734 "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
26735 "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
26736 "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
26737 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26738 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26739 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26740 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26741 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26742 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26743 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26744 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26745 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26746 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26747 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26748 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26749 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26750 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26751 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26752 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26753 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26754 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26756 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26757 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26758 { (exit 1); exit 1; }; };;
26763 # If the user did not use the arguments to specify the items to instantiate,
26764 # then the envvar interface is used. Set only those that are not.
26765 # We use the long form for the default assignment because of an extremely
26766 # bizarre bug on SunOS 4.1.3.
26767 if $ac_need_defaults; then
26768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26773 # Have a temporary directory for convenience. Make it in the build tree
26774 # simply because there is no reason against having it here, and in addition,
26775 # creating and moving files from /tmp can sometimes cause problems.
26776 # Hook for its removal unless debugging.
26777 # Note that there is a small window in which the directory will not be cleaned:
26778 # after its creation but before its name has been assigned to `$tmp'.
26782 trap 'exit_status=$?
26783 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26785 trap '{ (exit 1); exit 1; }' 1 2 13 15
26787 # Create a (secure) tmp directory for tmp files.
26790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26791 test -n "$tmp" && test -d "$tmp"
26794 tmp=./conf$$-$RANDOM
26795 (umask 077 && mkdir "$tmp")
26798 echo "$me: cannot create a temporary directory in ." >&2
26799 { (exit 1); exit 1; }
26803 # Set up the sed scripts for CONFIG_FILES section.
26806 # No need to generate the scripts if there are no CONFIG_FILES.
26807 # This happens for instance when ./config.status config.h
26808 if test -n "$CONFIG_FILES"; then
26815 for ac_last_try in false false false false false :; do
26816 cat >conf$$subs.sed <<_ACEOF
26817 SHELL!$SHELL$ac_delim
26818 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26819 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26820 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26821 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26822 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26823 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26824 exec_prefix!$exec_prefix$ac_delim
26825 prefix!$prefix$ac_delim
26826 program_transform_name!$program_transform_name$ac_delim
26827 bindir!$bindir$ac_delim
26828 sbindir!$sbindir$ac_delim
26829 libexecdir!$libexecdir$ac_delim
26830 datarootdir!$datarootdir$ac_delim
26831 datadir!$datadir$ac_delim
26832 sysconfdir!$sysconfdir$ac_delim
26833 sharedstatedir!$sharedstatedir$ac_delim
26834 localstatedir!$localstatedir$ac_delim
26835 includedir!$includedir$ac_delim
26836 oldincludedir!$oldincludedir$ac_delim
26837 docdir!$docdir$ac_delim
26838 infodir!$infodir$ac_delim
26839 htmldir!$htmldir$ac_delim
26840 dvidir!$dvidir$ac_delim
26841 pdfdir!$pdfdir$ac_delim
26842 psdir!$psdir$ac_delim
26843 libdir!$libdir$ac_delim
26844 localedir!$localedir$ac_delim
26845 mandir!$mandir$ac_delim
26846 DEFS!$DEFS$ac_delim
26847 ECHO_C!$ECHO_C$ac_delim
26848 ECHO_N!$ECHO_N$ac_delim
26849 ECHO_T!$ECHO_T$ac_delim
26850 LIBS!$LIBS$ac_delim
26851 build_alias!$build_alias$ac_delim
26852 host_alias!$host_alias$ac_delim
26853 target_alias!$target_alias$ac_delim
26854 build!$build$ac_delim
26855 build_cpu!$build_cpu$ac_delim
26856 build_vendor!$build_vendor$ac_delim
26857 build_os!$build_os$ac_delim
26858 host!$host$ac_delim
26859 host_cpu!$host_cpu$ac_delim
26860 host_vendor!$host_vendor$ac_delim
26861 host_os!$host_os$ac_delim
26862 target!$target$ac_delim
26863 target_cpu!$target_cpu$ac_delim
26864 target_vendor!$target_vendor$ac_delim
26865 target_os!$target_os$ac_delim
26866 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26867 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26868 INSTALL_DATA!$INSTALL_DATA$ac_delim
26869 CYGPATH_W!$CYGPATH_W$ac_delim
26870 PACKAGE!$PACKAGE$ac_delim
26871 VERSION!$VERSION$ac_delim
26872 ACLOCAL!$ACLOCAL$ac_delim
26873 AUTOCONF!$AUTOCONF$ac_delim
26874 AUTOMAKE!$AUTOMAKE$ac_delim
26875 AUTOHEADER!$AUTOHEADER$ac_delim
26876 MAKEINFO!$MAKEINFO$ac_delim
26877 install_sh!$install_sh$ac_delim
26878 STRIP!$STRIP$ac_delim
26879 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26880 mkdir_p!$mkdir_p$ac_delim
26882 SET_MAKE!$SET_MAKE$ac_delim
26883 am__leading_dot!$am__leading_dot$ac_delim
26884 AMTAR!$AMTAR$ac_delim
26885 am__tar!$am__tar$ac_delim
26886 am__untar!$am__untar$ac_delim
26888 CFLAGS!$CFLAGS$ac_delim
26889 LDFLAGS!$LDFLAGS$ac_delim
26890 CPPFLAGS!$CPPFLAGS$ac_delim
26891 ac_ct_CC!$ac_ct_CC$ac_delim
26892 EXEEXT!$EXEEXT$ac_delim
26893 OBJEXT!$OBJEXT$ac_delim
26894 DEPDIR!$DEPDIR$ac_delim
26895 am__include!$am__include$ac_delim
26896 am__quote!$am__quote$ac_delim
26897 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26898 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26899 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26900 CCDEPMODE!$CCDEPMODE$ac_delim
26901 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26902 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26903 GREP!$GREP$ac_delim
26904 EGREP!$EGREP$ac_delim
26905 LN_S!$LN_S$ac_delim
26906 ECHO!$ECHO$ac_delim
26908 RANLIB!$RANLIB$ac_delim
26909 DLLTOOL!$DLLTOOL$ac_delim
26911 OBJDUMP!$OBJDUMP$ac_delim
26916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26918 elif $ac_last_try; then
26919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26921 { (exit 1); exit 1; }; }
26923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26928 if test -n "$ac_eof"; then
26929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26930 ac_eof=`expr $ac_eof + 1`
26933 cat >>$CONFIG_STATUS <<_ACEOF
26934 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26939 s/^/s,@/; s/!/@,|#_!!_#|/
26942 s/'"$ac_delim"'$/,g/; t
26944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26945 ' >>$CONFIG_STATUS <conf$$subs.sed
26946 rm -f conf$$subs.sed
26947 cat >>$CONFIG_STATUS <<_ACEOF
26953 for ac_last_try in false false false false false :; do
26954 cat >conf$$subs.sed <<_ACEOF
26955 CXXFLAGS!$CXXFLAGS$ac_delim
26956 ac_ct_CXX!$ac_ct_CXX$ac_delim
26957 CXXDEPMODE!$CXXDEPMODE$ac_delim
26958 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26959 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26960 CXXCPP!$CXXCPP$ac_delim
26961 LIBTOOL!$LIBTOOL$ac_delim
26962 LIBOBJS!$LIBOBJS$ac_delim
26963 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
26964 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
26965 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
26966 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
26967 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
26968 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
26969 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
26970 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
26971 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
26972 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
26973 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
26974 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
26975 AM_CFLAGS!$AM_CFLAGS$ac_delim
26976 GRAS_DEP!$GRAS_DEP$ac_delim
26977 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
26978 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
26979 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26980 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26981 MAINT!$MAINT$ac_delim
26982 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
26983 abs_builddir!$abs_builddir$ac_delim
26984 abs_srcdir!$abs_srcdir$ac_delim
26985 abs_top_builddir!$abs_top_builddir$ac_delim
26986 abs_top_srcdir!$abs_top_srcdir$ac_delim
26987 BASH!$BASH$ac_delim
26988 WARNING!$WARNING$ac_delim
26990 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26991 LEXLIB!$LEXLIB$ac_delim
26992 FLEXML!$FLEXML$ac_delim
26993 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
26994 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
26995 DOXYGEN!$DOXYGEN$ac_delim
26996 ADDR2LINE!$ADDR2LINE$ac_delim
26997 ac_configure_args!$ac_configure_args$ac_delim
26998 MD5SUM!$MD5SUM$ac_delim
26999 build_id!$build_id$ac_delim
27000 LTLIBOBJS!$LTLIBOBJS$ac_delim
27003 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
27005 elif $ac_last_try; then
27006 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27007 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27008 { (exit 1); exit 1; }; }
27010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27014 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27015 if test -n "$ac_eof"; then
27016 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27017 ac_eof=`expr $ac_eof + 1`
27020 cat >>$CONFIG_STATUS <<_ACEOF
27021 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27025 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27026 s/^/s,@/; s/!/@,|#_!!_#|/
27029 s/'"$ac_delim"'$/,g/; t
27031 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27032 ' >>$CONFIG_STATUS <conf$$subs.sed
27033 rm -f conf$$subs.sed
27034 cat >>$CONFIG_STATUS <<_ACEOF
27041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27043 # trailing colons and then remove the whole line if VPATH becomes empty
27044 # (actually we leave an empty line to preserve line numbers).
27045 if test "x$srcdir" = x.; then
27046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27047 s/:*\$(srcdir):*/:/
27048 s/:*\${srcdir}:*/:/
27050 s/^\([^=]*=[ ]*\):*/\1/
27056 cat >>$CONFIG_STATUS <<\_ACEOF
27057 fi # test -n "$CONFIG_FILES"
27060 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27063 :[FHLC]) ac_mode=$ac_tag; continue;;
27065 case $ac_mode$ac_tag in
27067 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27068 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27069 { (exit 1); exit 1; }; };;
27070 :[FH]-) ac_tag=-:-;;
27071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27088 -) ac_f="$tmp/stdin";;
27089 *) # Look for the file first in the build tree, then in the source tree
27090 # (if the path is not absolute). The absolute path cannot be DOS-style,
27091 # because $ac_f cannot contain `:'.
27095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27097 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27098 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27099 { (exit 1); exit 1; }; };;
27101 ac_file_inputs="$ac_file_inputs $ac_f"
27104 # Let's still pretend it is `configure' which instantiates (i.e., don't
27105 # use $as_me), people would be surprised to read:
27106 # /* config.h. Generated by config.status. */
27107 configure_input="Generated from "`IFS=:
27108 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27109 if test x"$ac_file" != x-; then
27110 configure_input="$ac_file. $configure_input"
27111 { echo "$as_me:$LINENO: creating $ac_file" >&5
27112 echo "$as_me: creating $ac_file" >&6;}
27116 *:-:* | *:-) cat >"$tmp/stdin";;
27121 ac_dir=`$as_dirname -- "$ac_file" ||
27122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27123 X"$ac_file" : 'X\(//\)[^/]' \| \
27124 X"$ac_file" : 'X\(//\)$' \| \
27125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27131 /^X\(\/\/\)[^/].*/{
27146 -*) as_dir=./$as_dir;;
27148 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27152 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27153 *) as_qdir=$as_dir;;
27155 as_dirs="'$as_qdir' $as_dirs"
27156 as_dir=`$as_dirname -- "$as_dir" ||
27157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27158 X"$as_dir" : 'X\(//\)[^/]' \| \
27159 X"$as_dir" : 'X\(//\)$' \| \
27160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27166 /^X\(\/\/\)[^/].*/{
27179 test -d "$as_dir" && break
27181 test -z "$as_dirs" || eval "mkdir $as_dirs"
27182 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27183 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27184 { (exit 1); exit 1; }; }; }
27188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27191 # A ".." for each directory in $ac_dir_suffix.
27192 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27193 case $ac_top_builddir_sub in
27194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27198 ac_abs_top_builddir=$ac_pwd
27199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27200 # for backward compatibility:
27201 ac_top_builddir=$ac_top_build_prefix
27204 .) # We are building in place.
27206 ac_top_srcdir=$ac_top_builddir_sub
27207 ac_abs_top_srcdir=$ac_pwd ;;
27208 [\\/]* | ?:[\\/]* ) # Absolute name.
27209 ac_srcdir=$srcdir$ac_dir_suffix;
27210 ac_top_srcdir=$srcdir
27211 ac_abs_top_srcdir=$srcdir ;;
27212 *) # Relative name.
27213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27214 ac_top_srcdir=$ac_top_build_prefix$srcdir
27215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27232 cat >>$CONFIG_STATUS <<\_ACEOF
27233 # If the template does not know about datarootdir, expand it.
27234 # FIXME: This hack should be removed a few years after 2.60.
27235 ac_datarootdir_hack=; ac_datarootdir_seen=
27237 case `sed -n '/datarootdir/ {
27246 ' $ac_file_inputs` in
27247 *datarootdir*) ac_datarootdir_seen=yes;;
27248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27249 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27252 cat >>$CONFIG_STATUS <<_ACEOF
27253 ac_datarootdir_hack='
27254 s&@datadir@&$datadir&g
27255 s&@docdir@&$docdir&g
27256 s&@infodir@&$infodir&g
27257 s&@localedir@&$localedir&g
27258 s&@mandir@&$mandir&g
27259 s&\\\${datarootdir}&$datarootdir&g' ;;
27263 # Neutralize VPATH when `$srcdir' = `.'.
27264 # Shell code in configure.ac might set extrasub.
27265 # FIXME: do we really want to maintain this feature?
27266 cat >>$CONFIG_STATUS <<_ACEOF
27270 cat >>$CONFIG_STATUS <<\_ACEOF
27272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27273 s&@configure_input@&$configure_input&;t t
27274 s&@top_builddir@&$ac_top_builddir_sub&;t t
27275 s&@srcdir@&$ac_srcdir&;t t
27276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27277 s&@top_srcdir@&$ac_top_srcdir&;t t
27278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27279 s&@builddir@&$ac_builddir&;t t
27280 s&@abs_builddir@&$ac_abs_builddir&;t t
27281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27282 s&@INSTALL@&$ac_INSTALL&;t t
27283 $ac_datarootdir_hack
27284 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27287 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27289 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27290 which seems to be undefined. Please make sure it is defined." >&5
27291 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27292 which seems to be undefined. Please make sure it is defined." >&2;}
27296 -) cat "$tmp/out"; rm -f "$tmp/out";;
27297 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27306 # Transform confdefs.h into a sed script `conftest.defines', that
27307 # substitutes the proper values into config.h.in to produce config.h.
27308 rm -f conftest.defines conftest.tail
27309 # First, append a space to every undef/define line, to ease matching.
27310 echo 's/$/ /' >conftest.defines
27311 # Then, protect against being on the right side of a sed subst, or in
27312 # an unquoted here document, in config.status. If some macros were
27313 # called several times there might be several #defines for the same
27314 # symbol, which is useless. But do not sort them, since the last
27315 # AC_DEFINE must be honored.
27316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27317 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27318 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27319 # PARAMS is the parameter list in the macro definition--in most cases, it's
27320 # just an empty string.
27321 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27322 ac_dB='\\)[ (].*,\\1define\\2'
27330 s/^[ ]*#[ ]*define[ ][ ]*//
27335 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27336 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27337 ' >>conftest.defines
27339 # Remove the space that was appended to ease matching.
27340 # Then replace #undef with comments. This is necessary, for
27341 # example, in the case of _POSIX_SOURCE, which is predefined and required
27342 # on some systems where configure will not decide to define it.
27343 # (The regexp can be short, since the line contains either #define or #undef.)
27345 s,^[ #]*u.*,/* & */,' >>conftest.defines
27347 # Break up conftest.defines:
27348 ac_max_sed_lines=50
27350 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27351 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27352 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27354 ac_in='$ac_file_inputs'
27355 ac_out='"$tmp/out1"'
27356 ac_nxt='"$tmp/out2"'
27360 # Write a here document:
27361 cat >>$CONFIG_STATUS <<_ACEOF
27362 # First, check the format of the line:
27363 cat >"\$tmp/defines.sed" <<\\CEOF
27364 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27365 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27369 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27371 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27372 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27373 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27374 grep . conftest.tail >/dev/null || break
27375 rm -f conftest.defines
27376 mv conftest.tail conftest.defines
27378 rm -f conftest.defines conftest.tail
27380 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27381 cat >>$CONFIG_STATUS <<\_ACEOF
27382 if test x"$ac_file" != x-; then
27383 echo "/* $configure_input */" >"$tmp/config.h"
27384 cat "$ac_result" >>"$tmp/config.h"
27385 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27386 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27387 echo "$as_me: $ac_file is unchanged" >&6;}
27390 mv "$tmp/config.h" $ac_file
27393 echo "/* $configure_input */"
27397 # Compute $ac_file's index in $config_headers.
27399 for _am_header in $config_headers :; do
27400 case $_am_header in
27401 $ac_file | $ac_file:* )
27404 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27407 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27408 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27409 X$ac_file : 'X\(//\)[^/]' \| \
27410 X$ac_file : 'X\(//\)$' \| \
27411 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27417 /^X\(\/\/\)[^/].*/{
27429 s/.*/./; q'`/stamp-h$_am_stamp_count
27432 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27433 echo "$as_me: executing $ac_file commands" >&6;}
27438 case $ac_file$ac_mode in
27439 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27440 # Strip MF so we end up with the name of the file.
27441 mf=`echo "$mf" | sed -e 's/:.*$//'`
27442 # Check whether this is an Automake generated Makefile or not.
27443 # We used to match only the files named `Makefile.in', but
27444 # some people rename them; so instead we look at the file content.
27445 # Grep'ing the first line is not enough: some people post-process
27446 # each Makefile.in and add a new line on top of each file to say so.
27447 # So let's grep whole file.
27448 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27449 dirpart=`$as_dirname -- "$mf" ||
27450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27451 X"$mf" : 'X\(//\)[^/]' \| \
27452 X"$mf" : 'X\(//\)$' \| \
27453 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27459 /^X\(\/\/\)[^/].*/{
27475 # Extract the definition of DEPDIR, am__include, and am__quote
27476 # from the Makefile without running `make'.
27477 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27478 test -z "$DEPDIR" && continue
27479 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27480 test -z "am__include" && continue
27481 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27482 # When using ansi2knr, U may be empty or an underscore; expand it
27483 U=`sed -n 's/^U = //p' < "$mf"`
27484 # Find all dependency output files, they are included files with
27485 # $(DEPDIR) in their names. We invoke sed twice because it is the
27486 # simplest approach to changing $(DEPDIR) to its actual value in the
27488 for file in `sed -n "
27489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27491 # Make sure the directory exists.
27492 test -f "$dirpart/$file" && continue
27493 fdir=`$as_dirname -- "$file" ||
27494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27495 X"$file" : 'X\(//\)[^/]' \| \
27496 X"$file" : 'X\(//\)$' \| \
27497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27503 /^X\(\/\/\)[^/].*/{
27516 { as_dir=$dirpart/$fdir
27518 -*) as_dir=./$as_dir;;
27520 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27524 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27525 *) as_qdir=$as_dir;;
27527 as_dirs="'$as_qdir' $as_dirs"
27528 as_dir=`$as_dirname -- "$as_dir" ||
27529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27530 X"$as_dir" : 'X\(//\)[^/]' \| \
27531 X"$as_dir" : 'X\(//\)$' \| \
27532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27538 /^X\(\/\/\)[^/].*/{
27551 test -d "$as_dir" && break
27553 test -z "$as_dirs" || eval "mkdir $as_dirs"
27554 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27556 { (exit 1); exit 1; }; }; }
27557 # echo "creating $dirpart/$file"
27558 echo '# dummy' > "$dirpart/$file"
27562 "tools/graspe-slave":F)
27564 tools/graspe-slave tools/graspe-master \
27566 test -e $file && chmod +x $file; \
27569 "testsuite/Makefile":F)
27571 testsuite/run_tests \
27572 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27574 test -e $file && chmod +x $file; \
27577 "testsuite/run_tests":F)
27579 testsuite/run_tests \
27580 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27582 test -e $file && chmod +x $file; \
27585 "testsuite/gras/trp_tcp_usage":F)
27587 testsuite/run_tests \
27588 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27590 test -e $file && chmod +x $file; \
27593 "testsuite/gras/trp_file_usage":F)
27595 testsuite/run_tests \
27596 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27598 test -e $file && chmod +x $file; \
27601 "examples/Makefile":F)
27604 examples/msg/run_msg_test \
27605 examples/simdag/test_simdag \
27607 test -e $file && chmod +x $file; \
27610 "examples/msg/Makefile":F)
27613 examples/msg/run_msg_test \
27614 examples/simdag/test_simdag \
27616 test -e $file && chmod +x $file; \
27619 "examples/msg/basic.tesh":F)
27622 examples/msg/run_msg_test \
27623 examples/simdag/test_simdag \
27625 test -e $file && chmod +x $file; \
27628 "examples/msg/small_plat.tesh":F)
27631 examples/msg/run_msg_test \
27632 examples/simdag/test_simdag \
27634 test -e $file && chmod +x $file; \
27637 "examples/msg/suspend.tesh":F)
27640 examples/msg/run_msg_test \
27641 examples/simdag/test_simdag \
27643 test -e $file && chmod +x $file; \
27646 "examples/msg/flexml_bypass.tesh":F)
27649 examples/msg/run_msg_test \
27650 examples/simdag/test_simdag \
27652 test -e $file && chmod +x $file; \
27655 "examples/simdag/Makefile":F)
27658 examples/msg/run_msg_test \
27659 examples/simdag/test_simdag \
27661 test -e $file && chmod +x $file; \
27664 "examples/simdag/test_simdag":F)
27667 examples/msg/run_msg_test \
27668 examples/simdag/test_simdag \
27670 test -e $file && chmod +x $file; \
27673 "examples/gras/Makefile":F)
27676 examples/msg/run_msg_test \
27677 examples/simdag/test_simdag \
27679 test -e $file && chmod +x $file; \
27682 "examples/gras/ping/Makefile":F)
27685 examples/msg/run_msg_test \
27686 examples/simdag/test_simdag \
27688 test -e $file && chmod +x $file; \
27691 "examples/gras/rpc/Makefile":F)
27694 examples/msg/run_msg_test \
27695 examples/simdag/test_simdag \
27697 test -e $file && chmod +x $file; \
27700 "examples/gras/timer/Makefile":F)
27703 examples/msg/run_msg_test \
27704 examples/simdag/test_simdag \
27706 test -e $file && chmod +x $file; \
27709 "examples/gras/chrono/Makefile":F)
27712 examples/msg/run_msg_test \
27713 examples/simdag/test_simdag \
27715 test -e $file && chmod +x $file; \
27718 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
27721 examples/msg/run_msg_test \
27722 examples/simdag/test_simdag \
27724 test -e $file && chmod +x $file; \
27727 "examples/gras/mmrpc/Makefile":F)
27730 examples/msg/run_msg_test \
27731 examples/simdag/test_simdag \
27733 test -e $file && chmod +x $file; \
27736 "examples/gras/pmm/Makefile":F)
27739 examples/msg/run_msg_test \
27740 examples/simdag/test_simdag \
27742 test -e $file && chmod +x $file; \
27745 "examples/gras/all2all/Makefile":F)
27748 examples/msg/run_msg_test \
27749 examples/simdag/test_simdag \
27751 test -e $file && chmod +x $file; \
27754 "examples/amok/Makefile":F)
27757 examples/msg/run_msg_test \
27758 examples/simdag/test_simdag \
27760 test -e $file && chmod +x $file; \
27763 "examples/amok/bandwidth/Makefile":F)
27766 examples/msg/run_msg_test \
27767 examples/simdag/test_simdag \
27769 test -e $file && chmod +x $file; \
27772 "examples/amok/bandwidth/test_sg":F)
27775 examples/msg/run_msg_test \
27776 examples/simdag/test_simdag \
27778 test -e $file && chmod +x $file; \
27781 "examples/amok/bandwidth/test_rl":F)
27784 examples/msg/run_msg_test \
27785 examples/simdag/test_simdag \
27787 test -e $file && chmod +x $file; \
27790 "examples/amok/saturate/Makefile":F)
27793 examples/msg/run_msg_test \
27794 examples/simdag/test_simdag \
27796 test -e $file && chmod +x $file; \
27799 "examples/amok/saturate/test_sg":F)
27802 examples/msg/run_msg_test \
27803 examples/simdag/test_simdag \
27805 test -e $file && chmod +x $file; \
27808 "examples/amok/saturate/test_rl":F)
27811 examples/msg/run_msg_test \
27812 examples/simdag/test_simdag \
27814 test -e $file && chmod +x $file; \
27822 { (exit 0); exit 0; }
27824 chmod +x $CONFIG_STATUS
27825 ac_clean_files=$ac_clean_files_save
27828 # configure is writing to config.log, and then calls config.status.
27829 # config.status does its own redirection, appending to config.log.
27830 # Unfortunately, on DOS this fails, as config.log is still kept open
27831 # by configure, so config.status won't be able to write to it; its
27832 # output is simply discarded. So we exec the FD to /dev/null,
27833 # effectively closing config.log, so it can be properly (re)opened and
27834 # appended to by config.status. When coming back to configure, we
27835 # need to make the FD available again.
27836 if test "$no_create" != yes; then
27838 ac_config_status_args=
27839 test "$silent" = yes &&
27840 ac_config_status_args="$ac_config_status_args --quiet"
27842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27845 # would make configure fail if this is the last instruction.
27846 $ac_cs_success || { (exit 1); exit 1; }
27852 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
27854 Compiler: ${CC} (version: ${GCC_VERSION})
27857 CPPFlags: ${CPPFLAGS}
27858 LDFlags: ${LDFLAGS}
27860 Context backend: ${with_context}
27863 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
27865 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
27866 echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
27867 echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
27869 echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
27872 echo $build_id > stamp.configure