2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
723 # include <sys/types.h>
726 # include <sys/stat.h>
737 # if !STDC_HEADERS && HAVE_MEMORY_H
743 # include <strings.h>
746 # include <inttypes.h>
764 program_transform_name
817 INSTALL_STRIP_PROGRAM
890 OMNITHREAD_POSIX_TRUE
891 OMNITHREAD_POSIX_FALSE
898 LIBGNURADIO_CORE_EXTRA_LDFLAGS
899 HAVE_CREATEFILEMAPPING_TRUE
900 HAVE_CREATEFILEMAPPING_FALSE
919 MD_SUBCPU_x86_64_TRUE
920 MD_SUBCPU_x86_64_FALSE
931 FUSB_TECH_darwin_TRUE
932 FUSB_TECH_darwin_FALSE
934 FUSB_TECH_win32_FALSE
935 FUSB_TECH_generic_TRUE
936 FUSB_TECH_generic_FALSE
938 FUSB_TECH_linux_FALSE
940 FUSB_TECH_ra_wb_FALSE
961 ac_precious_vars='build_alias
977 # Initialize some variables set by options.
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
989 program_transform_name=s,x,x,
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE}'
1014 infodir='${datarootdir}/info'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1065 -datadir | --datadir | --datadi | --datad)
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084 eval enable_$ac_feature=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1103 eval enable_$ac_feature=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1267 -site=* | --site=* | --sit=*)
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_package=`echo $ac_package| sed 's/-/_/g'`
1300 eval with_$ac_package=\$ac_optarg ;;
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
1308 ac_package=`echo $ac_package | sed 's/-/_/g'`
1309 eval with_$ac_package=no ;;
1312 # Obsolete; use --with-x.
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1360 # Be sure to have absolute directory names.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
1417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures this package to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1535 --program-prefix=PREFIX prepend PREFIX to installed program names
1536 --program-suffix=SUFFIX append SUFFIX to installed program names
1537 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 --target=TARGET configure for building compilers for TARGET [HOST]
1546 if test -n "$ac_init_help"; then
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --disable-dependency-tracking speeds up one-time build
1554 --enable-dependency-tracking do not reject slow dependency extractors
1555 --disable-assert don't use cpp.h assert
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=no]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --enable-fortran enable fortran (no)
1562 --enable-doxygen enable documentation generation with doxygen (no)
1563 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1564 --enable-html-docs enable HTML generation with doxygen (yes)
1565 --enable-latex-docs enable LaTeX doc generation with doxygen (no)
1566 --enable-all-components Build all components or stop on failed dependencies
1568 --enable-gnuradio-core Fail build if gnuradio-core fails configuration
1569 --enable-gnuradio-examples Fail build if gnuradio-examples fails configuration
1570 --enable-usrp Fail build if usrp fails configuration
1571 --enable-gr-usrp Fail build if gr-usrp fails configuration
1572 --enable-gr-audio-alsa Fail build if gr-audio-alsa fails configuration
1573 --enable-gr-audio-jack Fail build if gr-audio-jack fails configuration
1574 --enable-gr-audio-oss Fail build if gr-audio-oss fails configuration
1575 --enable-gr-audio-osx Fail build if gr-audio-osx fails configuration
1576 --enable-gr-audio-portaudio Fail build if gr-audio-portaudio fails configuration
1577 --enable-gr-audio-windows Fail build if gr-audio-windows fails configuration
1578 --enable-gr-gsm-fr-vocoder Fail build if gr-gsm-fr-vocoder fails configuration
1579 --enable-gr-radio-astronomy Fail build if gr-radio-astronomy fails configuration
1580 --enable-gr-trellis Fail build if gr-trellis fails configuration
1581 --enable-gr-video-sdl Fail build if gr-video-sdl fails configuration
1582 --disable-sdltest Do not try to compile and run a test SDL program
1583 --enable-gr-wxgui Fail build if gr-wxgui fails configuration
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-warnings Turn on warnings
1589 --with-gprof Turn on gprof profiling
1590 --with-prof Turn on prof profiling
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-pic try to use only PIC/non-PIC objects [default=use
1594 --with-tags[=TAGS] include additional configurations [automatic]
1595 --with-md-cpu=ARCH set machine dependent speedups (auto)
1596 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1597 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1598 --with-boost-include-dir=<path>
1599 path to boost c++ include files
1600 --with-fusb-tech=OS set fast usb technique (auto)
1601 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1602 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CXXCPP C++ preprocessor
1615 F77 Fortran 77 compiler command
1616 FFLAGS Fortran 77 compiler flags
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1682 generated by GNU Autoconf 2.60
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1695 It was created by $as_me, which was
1696 generated by GNU Autoconf 2.60. Invocation command line was
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_must_keep_next=false
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 -* ) ac_must_keep_next=true ;;
1788 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1812 # The following way of writing the cache mishandles newlines in values,
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1849 for ac_var in $ac_subst_vars
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1859 if test -n "$ac_subst_files"; then
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1866 for ac_var in $ac_subst_files
1868 eval ac_val=\$$ac_var
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 echo "$ac_var='\''$ac_val'\''"
1877 if test -s confdefs.h; then
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1903 # Predefined preprocessor variables.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
1943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1991 echo "$as_me: former value: $ac_old_val" >&2;}
1992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1993 echo "$as_me: current value: $ac_new_val" >&2;}
1994 ac_cache_corrupted=:
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
2000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041 ac_config_headers="$ac_config_headers config.h"
2044 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2045 if test -f "$ac_dir/install-sh"; then
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 elif test -f "$ac_dir/install.sh"; then
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 elif test -f "$ac_dir/shtool"; then
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 if test -z "$ac_aux_dir"; then
2060 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2061 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2062 { (exit 1); exit 1; }; }
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2074 # Make sure we can run config.sub.
2075 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2076 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2077 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2078 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: checking build system type" >&5
2081 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_build+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 ac_build_alias=$build_alias
2086 test "x$ac_build_alias" = x &&
2087 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2088 test "x$ac_build_alias" = x &&
2089 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2090 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2091 { (exit 1); exit 1; }; }
2092 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2093 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2095 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2099 echo "${ECHO_T}$ac_cv_build" >&6; }
2100 case $ac_cv_build in
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2103 echo "$as_me: error: invalid value of canonical build" >&2;}
2104 { (exit 1); exit 1; }; };;
2107 ac_save_IFS=$IFS; IFS='-'
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2120 { echo "$as_me:$LINENO: checking host system type" >&5
2121 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2122 if test "${ac_cv_host+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test "x$host_alias" = x; then
2126 ac_cv_host=$ac_cv_build
2128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2129 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2131 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2136 echo "${ECHO_T}$ac_cv_host" >&6; }
2139 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2140 echo "$as_me: error: invalid value of canonical host" >&2;}
2141 { (exit 1); exit 1; }; };;
2144 ac_save_IFS=$IFS; IFS='-'
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2154 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2157 { echo "$as_me:$LINENO: checking target system type" >&5
2158 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2159 if test "${ac_cv_target+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test "x$target_alias" = x; then
2163 ac_cv_target=$ac_cv_host
2165 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2166 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2167 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2172 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2173 echo "${ECHO_T}$ac_cv_target" >&6; }
2174 case $ac_cv_target in
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2177 echo "$as_me: error: invalid value of canonical target" >&2;}
2178 { (exit 1); exit 1; }; };;
2180 target=$ac_cv_target
2181 ac_save_IFS=$IFS; IFS='-'
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2191 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2194 # The aliases save the names the user supplied, while $host etc.
2195 # will get canonicalized.
2196 test -n "$target_alias" &&
2197 test "$program_prefix$program_suffix$program_transform_name" = \
2199 program_prefix=${target_alias}-
2200 am__api_version="1.9"
2201 # Find a good install program. We prefer a C program (faster),
2202 # so one script is as good as another. But avoid the broken or
2203 # incompatible versions:
2204 # SysV /etc/install, /usr/sbin/install
2205 # SunOS /usr/etc/install
2206 # IRIX /sbin/install
2208 # AmigaOS /C/install, which installs bootblocks on floppy discs
2209 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2210 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2211 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2212 # OS/2's system install, which has a completely different semantic
2213 # ./install, which can be erroneously created by make from ./install.sh.
2214 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2215 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2216 if test -z "$INSTALL"; then
2217 if test "${ac_cv_path_install+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 # Account for people who put trailing slashes in PATH elements.
2227 ./ | .// | /cC/* | \
2228 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2229 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2232 # OSF1 and SCO ODT 3.0 have their own names for install.
2233 # Don't use installbsd from OSF since it installs stuff as root
2235 for ac_prog in ginstall scoinst install; do
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2238 if test $ac_prog = install &&
2239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2240 # AIX install. It has an incompatible calling convention.
2242 elif test $ac_prog = install &&
2243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # program-specific install script used by HP pwplus--don't use.
2247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260 if test "${ac_cv_path_install+set}" = set; then
2261 INSTALL=$ac_cv_path_install
2263 # As a last resort, use the slow shell script. Don't cache a
2264 # value for INSTALL within a source directory, because that will
2265 # break other packages using the cache if that directory is
2266 # removed, or if the value is a relative name.
2267 INSTALL=$ac_install_sh
2270 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2271 echo "${ECHO_T}$INSTALL" >&6; }
2273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2274 # It thinks the first close brace ends the variable substitution.
2275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2281 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2282 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2285 echo timestamp > conftest.file
2286 # Do `set' in a subshell so we don't clobber the current shell's
2287 # arguments. Must try -L first in case configure is actually a
2288 # symlink; some systems play weird games with the mod time of symlinks
2289 # (eg FreeBSD returns the mod time of the symlink's containing
2292 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2293 if test "$*" = "X"; then
2295 set X `ls -t $srcdir/configure conftest.file`
2298 if test "$*" != "X $srcdir/configure conftest.file" \
2299 && test "$*" != "X conftest.file $srcdir/configure"; then
2301 # If neither matched, then we have a broken ls. This can happen
2302 # if, for instance, CONFIG_SHELL is bash and it inherits a
2303 # broken ls alias from the environment. This has actually
2304 # happened. Such a system could not be considered "sane".
2305 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2306 alias in your environment" >&5
2307 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2308 alias in your environment" >&2;}
2309 { (exit 1); exit 1; }; }
2312 test "$2" = conftest.file
2318 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2319 Check your system clock" >&5
2320 echo "$as_me: error: newly created file is older than distributed files!
2321 Check your system clock" >&2;}
2322 { (exit 1); exit 1; }; }
2324 { echo "$as_me:$LINENO: result: yes" >&5
2325 echo "${ECHO_T}yes" >&6; }
2326 test "$program_prefix" != NONE &&
2327 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2328 # Use a double $ so make ignores it.
2329 test "$program_suffix" != NONE &&
2330 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2331 # Double any \ or $. echo might interpret backslashes.
2332 # By default was `s,x,x', remove it if useless.
2333 cat <<\_ACEOF >conftest.sed
2334 s/[\\$]/&&/g;s/;s,x,x,$//
2336 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2339 # expand $ac_aux_dir to an absolute path
2340 am_aux_dir=`cd $ac_aux_dir && pwd`
2342 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2343 # Use eval to expand $SHELL
2344 if eval "$MISSING --run true"; then
2345 am_missing_run="$MISSING --run "
2348 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2349 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2352 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2353 # We used to keeping the `.' as first argument, in order to
2354 # allow $(mkdir_p) to be used without argument. As in
2355 # $(mkdir_p) $(somedir)
2356 # where $(somedir) is conditionally defined. However this is wrong
2358 # 1. if the package is installed by a user who cannot write `.'
2359 # make install will fail,
2360 # 2. the above comment should most certainly read
2361 # $(mkdir_p) $(DESTDIR)$(somedir)
2362 # so it does not work when $(somedir) is undefined and
2363 # $(DESTDIR) is not.
2364 # To support the latter case, we have to write
2365 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2366 # so the `.' trick is pointless.
2367 mkdir_p='mkdir -p --'
2369 # On NextStep and OpenStep, the `mkdir' command does not
2370 # recognize any option. It will interpret all options as
2371 # directories to create, and then abort because `.' already
2373 for d in ./-p ./--version;
2375 test -d $d && rmdir $d
2377 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2378 if test -f "$ac_aux_dir/mkinstalldirs"; then
2379 mkdir_p='$(mkinstalldirs)'
2381 mkdir_p='$(install_sh) -d'
2385 for ac_prog in gawk mawk nawk awk
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_AWK+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$AWK"; then
2395 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_AWK="$ac_prog"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$AWK"; then
2416 { echo "$as_me:$LINENO: result: $AWK" >&5
2417 echo "${ECHO_T}$AWK" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2424 test -n "$AWK" && break
2427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 cat >conftest.make <<\_ACEOF
2436 @echo '@@@%%%=$(MAKE)=@@@%%%'
2438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2441 eval ac_cv_prog_make_${ac_make}_set=yes;;
2443 eval ac_cv_prog_make_${ac_make}_set=no;;
2447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2448 { echo "$as_me:$LINENO: result: yes" >&5
2449 echo "${ECHO_T}yes" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454 SET_MAKE="MAKE=${MAKE-make}"
2457 rm -rf .tst 2>/dev/null
2458 mkdir .tst 2>/dev/null
2459 if test -d .tst; then
2464 rmdir .tst 2>/dev/null
2466 # test to see if srcdir already configured
2467 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2468 test -f $srcdir/config.status; then
2469 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2470 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2471 { (exit 1); exit 1; }; }
2474 # test whether we have cygpath
2475 if test -z "$CYGPATH_W"; then
2476 if (cygpath --version) >/dev/null 2>/dev/null; then
2477 CYGPATH_W='cygpath -w'
2484 # Define the identity of the package.
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE "$PACKAGE"
2494 cat >>confdefs.h <<_ACEOF
2495 #define VERSION "$VERSION"
2498 # Some tools Automake needs.
2500 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2503 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2506 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2509 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2512 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2514 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2516 # Installed binaries are usually stripped using `strip' when the user
2517 # run `make install-strip'. However `strip' might not be the right
2518 # tool to use in cross-compilation environments, therefore Automake
2519 # will honor the `STRIP' environment variable to overrule this program.
2520 if test "$cross_compiling" != no; then
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}strip; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_STRIP+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$STRIP"; then
2530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 STRIP=$ac_cv_prog_STRIP
2550 if test -n "$STRIP"; then
2551 { echo "$as_me:$LINENO: result: $STRIP" >&5
2552 echo "${ECHO_T}$STRIP" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2560 if test -z "$ac_cv_prog_STRIP"; then
2562 # Extract the first word of "strip", so it can be a program name with args.
2563 set dummy strip; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$ac_ct_STRIP"; then
2570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_STRIP="strip"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2590 if test -n "$ac_ct_STRIP"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2592 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2598 if test "x$ac_ct_STRIP" = x; then
2601 case $cross_compiling:$ac_tool_warned in
2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&5
2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609 ac_tool_warned=yes ;;
2614 STRIP="$ac_cv_prog_STRIP"
2618 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2620 # We need awk for the "check" target. The system "awk" is bad on
2622 # Always define AMTAR for backward compatibility.
2624 AMTAR=${AMTAR-"${am_missing_run}tar"}
2626 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2636 if test "$host_cpu" = "x86_64"; then
2637 { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2638 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2640 if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2642 { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2643 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2645 { echo "$as_me:$LINENO: result: yes" >&5
2646 echo "${ECHO_T}yes" >&6; }
2649 DEPDIR="${am__leading_dot}deps"
2651 ac_config_commands="$ac_config_commands depfiles"
2654 am_make=${MAKE-make}
2655 cat > confinc << 'END'
2660 # If we don't find an include directive, just comment out the code.
2661 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2662 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2666 # First try GNU make style include.
2667 echo "include confinc" > confmf
2668 # We grep out `Entering directory' and `Leaving directory'
2669 # messages which can occur if `w' ends up in MAKEFLAGS.
2670 # In particular we don't look at `^make:' because GNU make might
2671 # be invoked under some other name (usually "gmake"), in which
2672 # case it prints its new name instead of `make'.
2673 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2678 # Now try BSD make style include.
2679 if test "$am__include" = "#"; then
2680 echo '.include "confinc"' > confmf
2681 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2682 am__include=.include
2689 { echo "$as_me:$LINENO: result: $_am_result" >&5
2690 echo "${ECHO_T}$_am_result" >&6; }
2691 rm -f confinc confmf
2693 # Check whether --enable-dependency-tracking was given.
2694 if test "${enable_dependency_tracking+set}" = set; then
2695 enableval=$enable_dependency_tracking;
2698 if test "x$enable_dependency_tracking" != xno; then
2699 am_depcomp="$ac_aux_dir/depcomp"
2704 if test "x$enable_dependency_tracking" != xno; then
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="gcc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2796 if test "x$ac_ct_CC" = x; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&5
2804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807 ac_tool_warned=yes ;;
2815 if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}cc; ac_word=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_CC="${ac_tool_prefix}cc"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 if test -n "$CC"; then
2846 { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2856 if test -z "$CC"; then
2857 # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876 ac_prog_rejected=yes
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test $ac_prog_rejected = yes; then
2888 # We found a bogon in the path, so make sure we never use it.
2889 set dummy $ac_cv_prog_CC
2891 if test $# != 0; then
2892 # We chose a different compiler from the bogus one.
2893 # However, it has the same basename, so the bogon will be chosen
2894 # first if we set CC to just the basename; use the full file name.
2896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2902 if test -n "$CC"; then
2903 { echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6; }
2906 { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog in cl.exe
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_CC+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$CC"; then
2945 { echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6; }
2948 { echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6; }
2953 test -n "$CC" && break
2956 if test -z "$CC"; then
2958 for ac_prog in cl.exe
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="$ac_prog"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2997 test -n "$ac_ct_CC" && break
3000 if test "x$ac_ct_CC" = x; then
3003 case $cross_compiling:$ac_tool_warned in
3005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3006 whose name does not start with the host triplet. If you think this
3007 configuration is useful to you, please write to autoconf@gnu.org." >&5
3008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3011 ac_tool_warned=yes ;;
3020 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3026 # Provide some information about the compiler.
3027 echo "$as_me:$LINENO: checking for C compiler version" >&5
3028 ac_compiler=`set X $ac_compile; echo $2`
3029 { (ac_try="$ac_compiler --version >&5"
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compiler --version >&5") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3039 { (ac_try="$ac_compiler -v >&5"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compiler -v >&5") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049 { (ac_try="$ac_compiler -V >&5"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler -V >&5") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3080 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3081 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3082 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084 # List of possible output files, starting from the most likely.
3085 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3086 # only as a last resort. b.out is created by i960 compilers.
3087 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3089 # The IRIX 6 linker writes into existing files which may not be
3090 # executable, retaining their permissions. Remove them first so a
3091 # subsequent execution test works.
3093 for ac_file in $ac_files
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 if { (ac_try="$ac_link_default"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_link_default") 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3117 for ac_file in $ac_files
3119 test -f "$ac_file" || continue
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3124 # We found the default executable, but exeext='' is most
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: C compiler cannot create executables
3151 See \`config.log' for more details." >&2;}
3152 { (exit 77); exit 77; }; }
3155 ac_exeext=$ac_cv_exeext
3156 { echo "$as_me:$LINENO: result: $ac_file" >&5
3157 echo "${ECHO_T}$ac_file" >&6; }
3159 # Check that the compiler produces executables we can run. If not, either
3160 # the compiler is broken, or we cross compile.
3161 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3162 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3163 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166 if { ac_try='./$ac_file'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3178 if test "$cross_compiling" = maybe; then
3181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3191 { echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6; }
3194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3195 ac_clean_files=$ac_clean_files_save
3196 # Check that the compiler produces executables we can run. If not, either
3197 # the compiler is broken, or we cross compile.
3198 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3200 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3201 echo "${ECHO_T}$cross_compiling" >&6; }
3203 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3205 if { (ac_try="$ac_link"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_link") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; then
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3219 for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3236 rm -f conftest$ac_cv_exeext
3237 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3238 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3243 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3244 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3245 if test "${ac_cv_objext+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 cat >conftest.$ac_ext <<_ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3263 rm -f conftest.o conftest.obj
3264 if { (ac_try="$ac_compile"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_compile") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296 echo "${ECHO_T}$ac_cv_objext" >&6; }
3297 OBJEXT=$ac_cv_objext
3299 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_try") 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_try") 2>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
3461 grep -v '^ *+' conftest.er1 >conftest.err
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3467 { (case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_try") 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest.$ac_objext'
3477 { (case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_try") 2>&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3517 grep -v '^ *+' conftest.er1 >conftest.err
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3523 { (case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_try") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_try") 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562 CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564 if test "$GCC" = yes; then
3570 if test "$GCC" = yes; then
3576 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3577 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3578 if test "${ac_cv_prog_cc_c89+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 ac_cv_prog_cc_c89=no
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3591 #include <sys/types.h>
3592 #include <sys/stat.h>
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3607 s = g (p, va_arg (v,int));
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
3615 as 'x'. The following induces an error, until -std is added to get
3616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
3618 that's true only with -std. */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 CC="$ac_save_CC $ac_arg"
3644 rm -f conftest.$ac_objext
3645 if { (ac_try="$ac_compile"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3659 { (case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_try") 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_prog_cc_c89=$ac_arg
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f core conftest.err conftest.$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3689 rm -f conftest.$ac_ext
3694 case "x$ac_cv_prog_cc_c89" in
3696 { echo "$as_me:$LINENO: result: none needed" >&5
3697 echo "${ECHO_T}none needed" >&6; } ;;
3699 { echo "$as_me:$LINENO: result: unsupported" >&5
3700 echo "${ECHO_T}unsupported" >&6; } ;;
3702 CC="$CC $ac_cv_prog_cc_c89"
3703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3704 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 depcc="$CC" am_compiler_list=
3716 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3717 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3718 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3722 # We make a subdir and do the tests there. Otherwise we can end up
3723 # making bogus files that we don't know about and never remove. For
3724 # instance it was reported that on HP-UX the gcc test will end up
3725 # making a dummy file named `D' -- because `-MD' means `put the output
3728 # Copy depcomp to subdir because otherwise we won't find it if we're
3729 # using a relative directory.
3730 cp "$am_depcomp" conftest.dir
3732 # We will build objects and dependencies in a subdirectory because
3733 # it helps to detect inapplicable dependency modes. For instance
3734 # both Tru64's cc and ICC support -MD to output dependencies as a
3735 # side effect of compilation, but ICC will put the dependencies in
3736 # the current directory while Tru64 will put them in the object
3740 am_cv_CC_dependencies_compiler_type=none
3741 if test "$am_compiler_list" = ""; then
3742 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744 for depmode in $am_compiler_list; do
3745 # Setup a source with many dependencies, because some compilers
3746 # like to wrap large dependency lists on column 80 (with \), and
3747 # we should not choose a depcomp mode which is confused by this.
3749 # We need to recreate these files for each test, as the compiler may
3750 # overwrite some of them when testing with obscure command lines.
3751 # This happens at least with the AIX C compiler.
3753 for i in 1 2 3 4 5 6; do
3754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3755 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3756 # Solaris 8's {/usr,}/bin/sh.
3757 touch sub/conftst$i.h
3759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763 # after this tag, mechanisms are not by side-effect, so they'll
3764 # only be used when explicitly requested
3765 if test "x$enable_dependency_tracking" = xyes; then
3773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3774 # mode. It turns out that the SunPro C++ compiler does not properly
3775 # handle `-M -o', and we need to detect this.
3776 if depmode=$depmode \
3777 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3780 >/dev/null 2>conftest.err &&
3781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3782 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3784 # icc doesn't choke on unknown options, it will just issue warnings
3785 # or remarks (even with -Werror). So we grep stderr for any message
3786 # that says an option was ignored or not supported.
3787 # When given -MP, icc 7.0 and 7.1 complain thusly:
3788 # icc: Command line warning: ignoring option '-M'; no argument required
3789 # The diagnosis changed in icc 8.0:
3790 # icc: Command line remark: option '-MP' not supported
3791 if (grep 'ignoring option' conftest.err ||
3792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3793 am_cv_CC_dependencies_compiler_type=$depmode
3802 am_cv_CC_dependencies_compiler_type=none
3806 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3813 test "x$enable_dependency_tracking" != xno \
3814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816 am__fastdepCC_FALSE='#'
3818 am__fastdepCC_TRUE='#'
3819 am__fastdepCC_FALSE=
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3830 # On Suns, sometimes $CPP names a directory.
3831 if test -n "$CPP" && test -d "$CPP"; then
3834 if test -z "$CPP"; then
3835 if test "${ac_cv_prog_CPP+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 # Double quotes because CPP needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3842 for ac_c_preproc_warn_flag in '' yes
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
3848 # On the NeXT, cc -E runs the code through the compiler's parser,
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3857 # include <limits.h>
3859 # include <assert.h>
3863 if { (ac_try="$ac_cpp conftest.$ac_ext"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3885 if test -z "$ac_cpp_err"; then
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev/null; then
3920 if test -s conftest.err; then
3921 ac_cpp_err=$ac_c_preproc_warn_flag
3922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3929 if test -z "$ac_cpp_err"; then
3930 # Broken: success on invalid input.
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 # Passes both tests.
3941 rm -f conftest.err conftest.$ac_ext
3944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3945 rm -f conftest.err conftest.$ac_ext
3946 if $ac_preproc_ok; then
3958 { echo "$as_me:$LINENO: result: $CPP" >&5
3959 echo "${ECHO_T}$CPP" >&6; }
3961 for ac_c_preproc_warn_flag in '' yes
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3976 # include <limits.h>
3978 # include <assert.h>
3982 if { (ac_try="$ac_cpp conftest.$ac_ext"
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null; then
3995 if test -s conftest.err; then
3996 ac_cpp_err=$ac_c_preproc_warn_flag
3997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4004 if test -z "$ac_cpp_err"; then
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Broken: fails on valid input.
4014 rm -f conftest.err conftest.$ac_ext
4016 # OK, works on sane cases. Now check whether nonexistent headers
4017 # can be detected and how.
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <ac_nonexistent.h>
4026 if { (ac_try="$ac_cpp conftest.$ac_ext"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } >/dev/null; then
4039 if test -s conftest.err; then
4040 ac_cpp_err=$ac_c_preproc_warn_flag
4041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4048 if test -z "$ac_cpp_err"; then
4049 # Broken: success on invalid input.
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 # Passes both tests.
4060 rm -f conftest.err conftest.$ac_ext
4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064 rm -f conftest.err conftest.$ac_ext
4065 if $ac_preproc_ok; then
4068 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4069 See \`config.log' for more details." >&5
4070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4071 See \`config.log' for more details." >&2;}
4072 { (exit 1); exit 1; }; }
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4084 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 # Extract the first word of "grep ggrep" to use in msg output
4089 if test -z "$GREP"; then
4090 set dummy grep ggrep; ac_prog_name=$2
4091 if test "${ac_cv_path_GREP+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 ac_path_GREP_found=false
4095 # Loop through the user's path and test for each of PROGNAME-LIST
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 test -z "$as_dir" && as_dir=.
4101 for ac_prog in grep ggrep; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4105 # Check for GNU ac_path_GREP and select it if it is found.
4106 # Check for GNU $ac_path_GREP
4107 case `"$ac_path_GREP" --version 2>&1` in
4109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4115 cat "conftest.in" "conftest.in" >"conftest.tmp"
4116 mv "conftest.tmp" "conftest.in"
4117 cp "conftest.in" "conftest.nl"
4118 echo 'GREP' >> "conftest.nl"
4119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121 ac_count=`expr $ac_count + 1`
4122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123 # Best one so far, save it but keep looking for a better one
4124 ac_cv_path_GREP="$ac_path_GREP"
4125 ac_path_GREP_max=$ac_count
4127 # 10*(2^10) chars as input seems more than enough
4128 test $ac_count -gt 10 && break
4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 $ac_path_GREP_found && break 3
4144 GREP="$ac_cv_path_GREP"
4145 if test -z "$GREP"; then
4146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4147 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4148 { (exit 1); exit 1; }; }
4152 ac_cv_path_GREP=$GREP
4157 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4158 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4159 GREP="$ac_cv_path_GREP"
4162 { echo "$as_me:$LINENO: checking for egrep" >&5
4163 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_EGREP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4168 then ac_cv_path_EGREP="$GREP -E"
4170 # Extract the first word of "egrep" to use in msg output
4171 if test -z "$EGREP"; then
4172 set dummy egrep; ac_prog_name=$2
4173 if test "${ac_cv_path_EGREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 ac_path_EGREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in egrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188 # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 echo 'EGREP' >> "conftest.nl"
4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 ac_count=`expr $ac_count + 1`
4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_EGREP="$ac_path_EGREP"
4207 ac_path_EGREP_max=$ac_count
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 $ac_path_EGREP_found && break 3
4226 EGREP="$ac_cv_path_EGREP"
4227 if test -z "$EGREP"; then
4228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4229 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4230 { (exit 1); exit 1; }; }
4234 ac_cv_path_EGREP=$EGREP
4240 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4241 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4242 EGREP="$ac_cv_path_EGREP"
4246 { echo "$as_me:$LINENO: checking for AIX" >&5
4247 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "yes" >/dev/null 2>&1; then
4261 { echo "$as_me:$LINENO: result: yes" >&5
4262 echo "${ECHO_T}yes" >&6; }
4263 cat >>confdefs.h <<\_ACEOF
4264 #define _ALL_SOURCE 1
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4274 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4275 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4276 if test "${ac_cv_search_strerror+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 ac_func_search_save_LIBS=$LIBS
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4287 /* Override any GCC internal prototype to avoid an error.
4288 Use char because int might match the return type of a GCC
4289 builtin and then its argument prototype would still apply. */
4302 for ac_lib in '' cposix; do
4303 if test -z "$ac_lib"; then
4304 ac_res="none required"
4307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_search_strerror=$ac_res
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4351 rm -f core conftest.err conftest.$ac_objext \
4353 if test "${ac_cv_search_strerror+set}" = set; then
4357 if test "${ac_cv_search_strerror+set}" = set; then
4360 ac_cv_search_strerror=no
4363 LIBS=$ac_func_search_save_LIBS
4365 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4366 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4367 ac_res=$ac_cv_search_strerror
4368 if test "$ac_res" != no; then
4369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4373 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4374 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4375 if test "${ac_cv_header_stdc+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_header_stdc=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_header_stdc=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 if test $ac_cv_header_stdc = yes; then
4442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 $EGREP "memchr" >/dev/null 2>&1; then
4456 ac_cv_header_stdc=no
4462 if test $ac_cv_header_stdc = yes; then
4463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "free" >/dev/null 2>&1; then
4477 ac_cv_header_stdc=no
4483 if test $ac_cv_header_stdc = yes; then
4484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4485 if test "$cross_compiling" = yes; then
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4496 #if ((' ' & 0x0FF) == 0x020)
4497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4500 # define ISLOWER(c) \
4501 (('a' <= (c) && (c) <= 'i') \
4502 || ('j' <= (c) && (c) <= 'r') \
4503 || ('s' <= (c) && (c) <= 'z'))
4504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 for (i = 0; i < 256; i++)
4513 if (XOR (islower (i), ISLOWER (i))
4514 || toupper (i) != TOUPPER (i))
4519 rm -f conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_link") 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530 { (case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_try") 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4541 echo "$as_me: program exited with status $ac_status" >&5
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_cv_header_stdc=no
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4554 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4556 if test $ac_cv_header_stdc = yes; then
4558 cat >>confdefs.h <<\_ACEOF
4559 #define STDC_HEADERS 1
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4591 #include <$ac_header>
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_try") 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 eval "$as_ac_Header=yes"
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 eval "$as_ac_Header=no"
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_res=`eval echo '${'$as_ac_Header'}'`
4638 { echo "$as_me:$LINENO: result: $ac_res" >&5
4639 echo "${ECHO_T}$ac_res" >&6; }
4640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 if test "${ac_cv_header_minix_config_h+set}" = set; then
4651 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4652 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4657 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4659 # Is the header compilable?
4660 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4661 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4662 cat >conftest.$ac_ext <<_ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4669 #include <minix/config.h>
4671 rm -f conftest.$ac_objext
4672 if { (ac_try="$ac_compile"
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_compile") 2>conftest.er1
4680 grep -v '^ *+' conftest.er1 >conftest.err
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4686 { (case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_try") 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_try") 2>&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_header_compiler=yes
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_header_compiler=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 echo "${ECHO_T}$ac_header_compiler" >&6; }
4717 # Is the header present?
4718 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <minix/config.h>
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null; then
4741 if test -s conftest.err; then
4742 ac_cpp_err=$ac_c_preproc_warn_flag
4743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4750 if test -z "$ac_cpp_err"; then
4751 ac_header_preproc=yes
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 ac_header_preproc=no
4759 rm -f conftest.err conftest.$ac_ext
4760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 echo "${ECHO_T}$ac_header_preproc" >&6; }
4763 # So? What about this header?
4764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4766 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4767 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4769 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4770 ac_header_preproc=yes
4773 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4774 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4776 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4778 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4780 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4782 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4784 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4788 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4789 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4790 if test "${ac_cv_header_minix_config_h+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 ac_cv_header_minix_config_h=$ac_header_preproc
4795 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4796 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4799 if test $ac_cv_header_minix_config_h = yes; then
4806 if test "$MINIX" = yes; then
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _POSIX_SOURCE 1
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _POSIX_1_SOURCE 2
4818 cat >>confdefs.h <<\_ACEOF
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 if test -z "$CXX"; then
4832 if test -n "$CCC"; then
4835 if test -n "$ac_tool_prefix"; then
4836 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_CXX+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 if test -n "$CXX"; then
4846 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 if test -n "$CXX"; then
4867 { echo "$as_me:$LINENO: result: $CXX" >&5
4868 echo "${ECHO_T}$CXX" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4875 test -n "$CXX" && break
4878 if test -z "$CXX"; then
4880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$ac_ct_CXX"; then
4890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_ac_ct_CXX="$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4910 if test -n "$ac_ct_CXX"; then
4911 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4912 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4919 test -n "$ac_ct_CXX" && break
4922 if test "x$ac_ct_CXX" = x; then
4925 case $cross_compiling:$ac_tool_warned in
4927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4928 whose name does not start with the host triplet. If you think this
4929 configuration is useful to you, please write to autoconf@gnu.org." >&5
4930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4931 whose name does not start with the host triplet. If you think this
4932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4933 ac_tool_warned=yes ;;
4941 # Provide some information about the compiler.
4942 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4943 ac_compiler=`set X $ac_compile; echo $2`
4944 { (ac_try="$ac_compiler --version >&5"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_compiler --version >&5") 2>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }
4954 { (ac_try="$ac_compiler -v >&5"
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compiler -v >&5") 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }
4964 { (ac_try="$ac_compiler -V >&5"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compiler -V >&5") 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }
4975 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4976 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4977 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_compile") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5013 { (case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_try") 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_try") 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5044 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5045 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5046 GXX=`test $ac_compiler_gnu = yes && echo yes`
5047 ac_test_CXXFLAGS=${CXXFLAGS+set}
5048 ac_save_CXXFLAGS=$CXXFLAGS
5049 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5050 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_cxx_g+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5055 ac_cxx_werror_flag=yes
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5088 { (case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_try") 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest.$ac_objext'
5098 { (case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_try") 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_prog_cxx_g=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5143 { (case "(($ac_try" in
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_try") 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_try") 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_try") 2>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_prog_cxx_g=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5236 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238 CXXFLAGS=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240 if test "$GXX" = yes; then
5246 if test "$GXX" = yes; then
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 depcc="$CXX" am_compiler_list=
5260 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5261 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5262 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266 # We make a subdir and do the tests there. Otherwise we can end up
5267 # making bogus files that we don't know about and never remove. For
5268 # instance it was reported that on HP-UX the gcc test will end up
5269 # making a dummy file named `D' -- because `-MD' means `put the output
5272 # Copy depcomp to subdir because otherwise we won't find it if we're
5273 # using a relative directory.
5274 cp "$am_depcomp" conftest.dir
5276 # We will build objects and dependencies in a subdirectory because
5277 # it helps to detect inapplicable dependency modes. For instance
5278 # both Tru64's cc and ICC support -MD to output dependencies as a
5279 # side effect of compilation, but ICC will put the dependencies in
5280 # the current directory while Tru64 will put them in the object
5284 am_cv_CXX_dependencies_compiler_type=none
5285 if test "$am_compiler_list" = ""; then
5286 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5288 for depmode in $am_compiler_list; do
5289 # Setup a source with many dependencies, because some compilers
5290 # like to wrap large dependency lists on column 80 (with \), and
5291 # we should not choose a depcomp mode which is confused by this.
5293 # We need to recreate these files for each test, as the compiler may
5294 # overwrite some of them when testing with obscure command lines.
5295 # This happens at least with the AIX C compiler.
5297 for i in 1 2 3 4 5 6; do
5298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5300 # Solaris 8's {/usr,}/bin/sh.
5301 touch sub/conftst$i.h
5303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5307 # after this tag, mechanisms are not by side-effect, so they'll
5308 # only be used when explicitly requested
5309 if test "x$enable_dependency_tracking" = xyes; then
5317 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5318 # mode. It turns out that the SunPro C++ compiler does not properly
5319 # handle `-M -o', and we need to detect this.
5320 if depmode=$depmode \
5321 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5323 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5324 >/dev/null 2>conftest.err &&
5325 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5326 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5328 # icc doesn't choke on unknown options, it will just issue warnings
5329 # or remarks (even with -Werror). So we grep stderr for any message
5330 # that says an option was ignored or not supported.
5331 # When given -MP, icc 7.0 and 7.1 complain thusly:
5332 # icc: Command line warning: ignoring option '-M'; no argument required
5333 # The diagnosis changed in icc 8.0:
5334 # icc: Command line remark: option '-MP' not supported
5335 if (grep 'ignoring option' conftest.err ||
5336 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5337 am_cv_CXX_dependencies_compiler_type=$depmode
5346 am_cv_CXX_dependencies_compiler_type=none
5350 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5351 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5352 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5357 test "x$enable_dependency_tracking" != xno \
5358 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5359 am__fastdepCXX_TRUE=
5360 am__fastdepCXX_FALSE='#'
5362 am__fastdepCXX_TRUE='#'
5363 am__fastdepCXX_FALSE=
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5373 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5374 if test -z "$CXXCPP"; then
5375 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 # Double quotes because CXXCPP needs to be expanded
5379 for CXXCPP in "$CXX -E" "/lib/cpp"
5382 for ac_cxx_preproc_warn_flag in '' yes
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5397 # include <limits.h>
5399 # include <assert.h>
5403 if { (ac_try="$ac_cpp conftest.$ac_ext"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411 grep -v '^ *+' conftest.er1 >conftest.err
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } >/dev/null; then
5416 if test -s conftest.err; then
5417 ac_cpp_err=$ac_cxx_preproc_warn_flag
5418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5425 if test -z "$ac_cpp_err"; then
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 # Broken: fails on valid input.
5435 rm -f conftest.err conftest.$ac_ext
5437 # OK, works on sane cases. Now check whether nonexistent headers
5438 # can be detected and how.
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <ac_nonexistent.h>
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null; then
5460 if test -s conftest.err; then
5461 ac_cpp_err=$ac_cxx_preproc_warn_flag
5462 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5469 if test -z "$ac_cpp_err"; then
5470 # Broken: success on invalid input.
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 # Passes both tests.
5481 rm -f conftest.err conftest.$ac_ext
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then
5491 ac_cv_prog_CXXCPP=$CXXCPP
5494 CXXCPP=$ac_cv_prog_CXXCPP
5496 ac_cv_prog_CXXCPP=$CXXCPP
5498 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5499 echo "${ECHO_T}$CXXCPP" >&6; }
5501 for ac_cxx_preproc_warn_flag in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5516 # include <limits.h>
5518 # include <assert.h>
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_cxx_preproc_warn_flag
5537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5544 if test -z "$ac_cpp_err"; then
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 # Broken: fails on valid input.
5554 rm -f conftest.err conftest.$ac_ext
5556 # OK, works on sane cases. Now check whether nonexistent headers
5557 # can be detected and how.
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #include <ac_nonexistent.h>
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } >/dev/null; then
5579 if test -s conftest.err; then
5580 ac_cpp_err=$ac_cxx_preproc_warn_flag
5581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5588 if test -z "$ac_cpp_err"; then
5589 # Broken: success on invalid input.
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 # Passes both tests.
5600 rm -f conftest.err conftest.$ac_ext
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then
5608 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5609 See \`config.log' for more details." >&5
5610 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5611 See \`config.log' for more details." >&2;}
5612 { (exit 1); exit 1; }; }
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5634 { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5635 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5636 if test "$cross_compiling" = yes; then
5637 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5638 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 main() { bool b1=true; bool b2=false; }
5649 rm -f conftest$ac_exeext
5650 if { (ac_try="$ac_link"
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_link") 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5660 { (case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_try") 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 { echo "$as_me:$LINENO: result: yes" >&5
5670 echo "${ECHO_T}yes" >&6; }
5672 echo "$as_me: program exited with status $ac_status" >&5
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5677 { echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6; }
5680 cat >>confdefs.h <<\_ACEOF
5681 #define CXX_HAS_NO_BOOL
5685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5690 { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5691 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <iostream.h>
5703 for (int i=0;i<10;i++) { }
5704 for (int i=0;i<10;i++) { }
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_try") 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 { echo "$as_me:$LINENO: result: yes" >&5
5751 echo "${ECHO_T}yes" >&6; }
5753 cat >>confdefs.h <<\_ACEOF
5754 #define CXX_HAS_BUGGY_FOR_LOOPS
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5762 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5763 # Check whether --enable-assert was given.
5764 if test "${enable_assert+set}" = set; then
5765 enableval=$enable_assert;
5766 cat >>confdefs.h <<\_ACEOF
5770 { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5773 { echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6; }
5778 { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5779 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 { echo "$as_me:$LINENO: result: yes" >&5
5832 echo "${ECHO_T}yes" >&6; }
5834 cat >>confdefs.h <<\_ACEOF
5835 #define CXX_HAS_STD_ISNAN
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857 { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5858 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5860 # Check whether --with-warnings was given.
5861 if test "${with_warnings+set}" = set; then
5862 withval=$with_warnings; lf_warnings=yes
5867 lf_warnings=yes # hard code for now -eb
5868 { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5869 echo "${ECHO_T}$lf_warnings" >&6; }
5871 cc_warning_flags="-Wall"
5872 cxx_warning_flags="-Wall -Woverloaded-virtual"
5873 if test $lf_warnings = yes
5878 echo 'void f(){}' > conftest.c
5879 for i in $cc_warning_flags
5881 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5882 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5883 if test -z "`${CC} $i -c conftest.c 2>&1`"
5885 CFLAGS="${CFLAGS} $i"
5886 { echo "$as_me:$LINENO: result: yes" >&5
5887 echo "${ECHO_T}yes" >&6; }
5889 { echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6; }
5893 rm -f conftest.c conftest.o
5899 echo 'void f(){}' > conftest.cc
5900 for i in $cxx_warning_flags
5902 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5903 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5904 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5906 CXXFLAGS="${CXXFLAGS} $i"
5907 { echo "$as_me:$LINENO: result: yes" >&5
5908 echo "${ECHO_T}yes" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5914 rm -f conftest.cc conftest.o
5920 { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5921 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5923 # Check whether --with-gprof was given.
5924 if test "${with_gprof+set}" = set; then
5925 withval=$with_gprof;
5930 { echo "$as_me:$LINENO: result: $with_gprof" >&5
5931 echo "${ECHO_T}$with_gprof" >&6; }
5933 cc_profiling_flags="-pg"
5934 cxx_profiling_flags="-pg"
5935 ld_profiling_flags="-pg"
5936 if test $with_gprof = yes
5941 echo 'void f(){}' > conftest.c
5942 for i in $cc_profiling_flags
5944 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5945 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5946 if test -z "`${CC} $i -c conftest.c 2>&1`"
5948 CFLAGS="${CFLAGS} $i"
5949 { echo "$as_me:$LINENO: result: yes" >&5
5950 echo "${ECHO_T}yes" >&6; }
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5956 rm -f conftest.c conftest.o
5962 echo 'void f(){}' > conftest.cc
5963 for i in $cxx_profiling_flags
5965 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5966 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5967 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5969 CXXFLAGS="${CXXFLAGS} $i"
5970 { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 rm -f conftest.cc conftest.o
5983 { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5984 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5986 # Check whether --with-prof was given.
5987 if test "${with_prof+set}" = set; then
5993 { echo "$as_me:$LINENO: result: $with_prof" >&5
5994 echo "${ECHO_T}$with_prof" >&6; }
5996 cc_profiling_flags="-p"
5997 cxx_profiling_flags="-p"
5998 ld_profiling_flags="-p"
5999 if test $with_prof = yes
6004 echo 'void f(){}' > conftest.c
6005 for i in $cc_profiling_flags
6007 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6008 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
6009 if test -z "`${CC} $i -c conftest.c 2>&1`"
6011 CFLAGS="${CFLAGS} $i"
6012 { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6019 rm -f conftest.c conftest.o
6025 echo 'void f(){}' > conftest.cc
6026 for i in $cxx_profiling_flags
6028 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6029 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
6030 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6032 CXXFLAGS="${CXXFLAGS} $i"
6033 { echo "$as_me:$LINENO: result: yes" >&5
6034 echo "${ECHO_T}yes" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6040 rm -f conftest.cc conftest.o
6045 # By default we simply use the C compiler to build assembly code.
6048 # Set ASFLAGS if not already set.
6049 : ${CCASFLAGS='$(CFLAGS)'}
6052 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6055 if test "$LN_S" = "ln -s"; then
6056 { echo "$as_me:$LINENO: result: yes" >&5
6057 echo "${ECHO_T}yes" >&6; }
6059 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6060 echo "${ECHO_T}no, using $LN_S" >&6; }
6063 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6064 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6065 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6066 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 cat >conftest.make <<\_ACEOF
6072 @echo '@@@%%%=$(MAKE)=@@@%%%'
6074 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6077 eval ac_cv_prog_make_${ac_make}_set=yes;;
6079 eval ac_cv_prog_make_${ac_make}_set=no;;
6083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6084 { echo "$as_me:$LINENO: result: yes" >&5
6085 echo "${ECHO_T}yes" >&6; }
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 SET_MAKE="MAKE=${MAKE-make}"
6093 # Find a good install program. We prefer a C program (faster),
6094 # so one script is as good as another. But avoid the broken or
6095 # incompatible versions:
6096 # SysV /etc/install, /usr/sbin/install
6097 # SunOS /usr/etc/install
6098 # IRIX /sbin/install
6100 # AmigaOS /C/install, which installs bootblocks on floppy discs
6101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6104 # OS/2's system install, which has a completely different semantic
6105 # ./install, which can be erroneously created by make from ./install.sh.
6106 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6107 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6108 if test -z "$INSTALL"; then
6109 if test "${ac_cv_path_install+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 # Account for people who put trailing slashes in PATH elements.
6119 ./ | .// | /cC/* | \
6120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6124 # OSF1 and SCO ODT 3.0 have their own names for install.
6125 # Don't use installbsd from OSF since it installs stuff as root
6127 for ac_prog in ginstall scoinst install; do
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6130 if test $ac_prog = install &&
6131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6132 # AIX install. It has an incompatible calling convention.
6134 elif test $ac_prog = install &&
6135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6136 # program-specific install script used by HP pwplus--don't use.
6139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6152 if test "${ac_cv_path_install+set}" = set; then
6153 INSTALL=$ac_cv_path_install
6155 # As a last resort, use the slow shell script. Don't cache a
6156 # value for INSTALL within a source directory, because that will
6157 # break other packages using the cache if that directory is
6158 # removed, or if the value is a relative name.
6159 INSTALL=$ac_install_sh
6162 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6163 echo "${ECHO_T}$INSTALL" >&6; }
6165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6166 # It thinks the first close brace ends the variable substitution.
6167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6173 # Extract the first word of "rm", so it can be a program name with args.
6174 set dummy rm; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_RM_PROG+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 RM_PROG=$ac_cv_path_RM_PROG
6204 if test -n "$RM_PROG"; then
6205 { echo "$as_me:$LINENO: result: $RM_PROG" >&5
6206 echo "${ECHO_T}$RM_PROG" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6216 # Check whether --enable-shared was given.
6217 if test "${enable_shared+set}" = set; then
6218 enableval=$enable_shared; p=${PACKAGE-default}
6220 yes) enable_shared=yes ;;
6221 no) enable_shared=no ;;
6224 # Look at the argument we got. We use all the common list separators.
6225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6226 for pkg in $enableval; do
6228 if test "X$pkg" = "X$p"; then
6239 # Check whether --enable-static was given.
6240 if test "${enable_static+set}" = set; then
6241 enableval=$enable_static; p=${PACKAGE-default}
6243 yes) enable_static=yes ;;
6244 no) enable_static=no ;;
6247 # Look at the argument we got. We use all the common list separators.
6248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6249 for pkg in $enableval; do
6251 if test "X$pkg" = "X$p"; then
6263 # Check whether --enable-fast-install was given.
6264 if test "${enable_fast_install+set}" = set; then
6265 enableval=$enable_fast_install; p=${PACKAGE-default}
6267 yes) enable_fast_install=yes ;;
6268 no) enable_fast_install=no ;;
6270 enable_fast_install=no
6271 # Look at the argument we got. We use all the common list separators.
6272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6273 for pkg in $enableval; do
6275 if test "X$pkg" = "X$p"; then
6276 enable_fast_install=yes
6283 enable_fast_install=yes
6287 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6288 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6289 if test "${lt_cv_path_SED+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 # Loop through the user's path and test for sed and gsed.
6293 # Then use that list of sed's as ones to test for truncation.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for lt_ac_prog in sed gsed; do
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6302 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6309 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6310 # along with /bin/sed that truncates output.
6311 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6312 test ! -f $lt_ac_sed && continue
6313 cat /dev/null > conftest.in
6315 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6316 # Check for GNU sed and select it if it is found.
6317 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6318 lt_cv_path_SED=$lt_ac_sed
6322 cat conftest.in conftest.in >conftest.tmp
6323 mv conftest.tmp conftest.in
6324 cp conftest.in conftest.nl
6326 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6327 cmp -s conftest.out conftest.nl || break
6328 # 10000 chars as input seems more than enough
6329 test $lt_ac_count -gt 10 && break
6330 lt_ac_count=`expr $lt_ac_count + 1`
6331 if test $lt_ac_count -gt $lt_ac_max; then
6332 lt_ac_max=$lt_ac_count
6333 lt_cv_path_SED=$lt_ac_sed
6341 { echo "$as_me:$LINENO: result: $SED" >&5
6342 echo "${ECHO_T}$SED" >&6; }
6345 # Check whether --with-gnu-ld was given.
6346 if test "${with_gnu_ld+set}" = set; then
6347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6353 if test "$GCC" = yes; then
6354 # Check if gcc -print-prog-name=ld gives a path.
6355 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6356 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6359 # gcc leaves a trailing carriage return which upsets mingw
6360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6365 # Accept absolute paths.
6367 re_direlt='/[^/][^/]*/\.\./'
6368 # Canonicalize the pathname of ld
6369 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6370 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6371 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6373 test -z "$LD" && LD="$ac_prog"
6376 # If it fails, then pretend we aren't using GCC.
6380 # If it is relative, then search for the first ld in PATH.
6384 elif test "$with_gnu_ld" = yes; then
6385 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6386 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6388 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6389 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6391 if test "${lt_cv_path_LD+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 if test -z "$LD"; then
6395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6396 for ac_dir in $PATH; do
6398 test -z "$ac_dir" && ac_dir=.
6399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6400 lt_cv_path_LD="$ac_dir/$ac_prog"
6401 # Check to see if the program is GNU ld. I'd rather use --version,
6402 # but apparently some variants of GNU ld only accept -v.
6403 # Break only if it was the GNU/non-GNU ld that we prefer.
6404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6405 *GNU* | *'with BFD'*)
6406 test "$with_gnu_ld" != no && break
6409 test "$with_gnu_ld" != yes && break
6416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6421 if test -n "$LD"; then
6422 { echo "$as_me:$LINENO: result: $LD" >&5
6423 echo "${ECHO_T}$LD" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6428 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6429 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6430 { (exit 1); exit 1; }; }
6431 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6432 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6433 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6437 case `$LD -v 2>&1 </dev/null` in
6438 *GNU* | *'with BFD'*)
6439 lt_cv_prog_gnu_ld=yes
6442 lt_cv_prog_gnu_ld=no
6446 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6447 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6448 with_gnu_ld=$lt_cv_prog_gnu_ld
6451 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6452 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6453 if test "${lt_cv_ld_reload_flag+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 lt_cv_ld_reload_flag='-r'
6458 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6459 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6460 reload_flag=$lt_cv_ld_reload_flag
6461 case $reload_flag in
6463 *) reload_flag=" $reload_flag" ;;
6465 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6468 if test "$GCC" = yes; then
6469 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6477 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6478 if test "${lt_cv_path_NM+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$NM"; then
6482 # Let the user override the test.
6485 lt_nm_to_check="${ac_tool_prefix}nm"
6486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6487 lt_nm_to_check="$lt_nm_to_check nm"
6489 for lt_tmp_nm in $lt_nm_to_check; do
6490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6493 test -z "$ac_dir" && ac_dir=.
6494 tmp_nm="$ac_dir/$lt_tmp_nm"
6495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6496 # Check to see if the nm accepts a BSD-compat flag.
6497 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6498 # nm: unknown option "B" ignored
6499 # Tru64's nm complains that /dev/null is an invalid object file
6500 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6501 */dev/null* | *'Invalid file or object type'*)
6502 lt_cv_path_NM="$tmp_nm -B"
6506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6508 lt_cv_path_NM="$tmp_nm -p"
6512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6513 continue # so that we can try to find one that supports BSD flags
6522 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6525 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6526 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6529 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6530 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6531 if test "${lt_cv_deplibs_check_method+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 lt_cv_file_magic_cmd='$MAGIC_CMD'
6535 lt_cv_file_magic_test_file=
6536 lt_cv_deplibs_check_method='unknown'
6537 # Need to set the preceding variable on all platforms that support
6538 # interlibrary dependencies.
6539 # 'none' -- dependencies not supported.
6540 # `unknown' -- same as none, but documents that we really don't know.
6541 # 'pass_all' -- all dependencies passed with no checks.
6542 # 'test_compile' -- check by making test program.
6543 # 'file_magic [[regex]]' -- check by looking for files in library path
6544 # which responds to the $file_magic_cmd with a given extended regex.
6545 # If you have `file' or equivalent on your system and you're not sure
6546 # whether `pass_all' will *always* work, you probably want this one.
6550 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6559 lt_cv_file_magic_cmd='/usr/bin/file -L'
6560 lt_cv_file_magic_test_file=/shlib/libc.so
6564 # func_win32_libid is a shell function defined in ltmain.sh
6565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6566 lt_cv_file_magic_cmd='func_win32_libid'
6570 # Base MSYS/MinGW do not provide the 'file' command needed by
6571 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6573 lt_cv_file_magic_cmd='$OBJDUMP -f'
6576 darwin* | rhapsody*)
6577 lt_cv_deplibs_check_method=pass_all
6580 freebsd* | dragonfly*)
6581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6584 # Not sure whether the presence of OpenBSD here was a mistake.
6585 # Let's accept both of them until this is cleared up.
6586 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6587 lt_cv_file_magic_cmd=/usr/bin/file
6588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6592 lt_cv_deplibs_check_method=pass_all
6597 lt_cv_deplibs_check_method=pass_all
6600 hpux10.20* | hpux11*)
6601 lt_cv_file_magic_cmd=/usr/bin/file
6604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6605 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6608 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]'
6609 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6613 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6619 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6623 irix5* | irix6* | nonstopux*)
6625 *-32|*"-32 ") libmagic=32-bit;;
6626 *-n32|*"-n32 ") libmagic=N32;;
6627 *-64|*"-64 ") libmagic=64-bit;;
6628 *) libmagic=never-match;;
6630 lt_cv_deplibs_check_method=pass_all
6633 # This must be Linux ELF.
6634 linux* | k*bsd*-gnu)
6635 lt_cv_deplibs_check_method=pass_all
6638 netbsd* | netbsdelf*-gnu)
6639 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6648 lt_cv_file_magic_cmd=/usr/bin/file
6649 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6653 lt_cv_deplibs_check_method=unknown
6657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6664 osf3* | osf4* | osf5*)
6665 lt_cv_deplibs_check_method=pass_all
6669 lt_cv_deplibs_check_method=pass_all
6673 case $host_vendor in
6675 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]'
6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6679 lt_cv_deplibs_check_method=pass_all
6682 lt_cv_file_magic_cmd='/bin/file'
6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6686 lt_cv_file_magic_cmd='/bin/file'
6687 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6688 lt_cv_file_magic_test_file=/lib/libc.so
6691 lt_cv_deplibs_check_method=pass_all
6694 lt_cv_deplibs_check_method=pass_all
6699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6700 lt_cv_deplibs_check_method=pass_all
6705 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6706 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6707 file_magic_cmd=$lt_cv_file_magic_cmd
6708 deplibs_check_method=$lt_cv_deplibs_check_method
6709 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6714 # If no C compiler was specified, use CC.
6717 # If no C compiler flags were specified, use CFLAGS.
6718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6720 # Allow CC to be a program name with arguments.
6723 # Check whether --enable-libtool-lock was given.
6724 if test "${enable_libtool_lock+set}" = set; then
6725 enableval=$enable_libtool_lock;
6728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6730 # Some flags need to be propagated to the compiler or linker for good
6734 # Find out which ABI we are using.
6735 echo 'int i;' > conftest.$ac_ext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; then
6741 case `/usr/bin/file conftest.$ac_objext` in
6753 # Find out which ABI we are using.
6754 echo '#line 6754 "configure"' > conftest.$ac_ext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; then
6760 if test "$lt_cv_prog_gnu_ld" = yes; then
6761 case `/usr/bin/file conftest.$ac_objext` in
6763 LD="${LD-ld} -melf32bsmip"
6766 LD="${LD-ld} -melf32bmipn32"
6769 LD="${LD-ld} -melf64bmip"
6773 case `/usr/bin/file conftest.$ac_objext` in
6789 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6790 # Find out which ABI we are using.
6791 echo 'int i;' > conftest.$ac_ext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6793 (eval $ac_compile) 2>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; then
6797 case `/usr/bin/file conftest.o` in
6801 LD="${LD-ld} -m elf_i386"
6803 ppc64-*linux*|powerpc64-*linux*)
6804 LD="${LD-ld} -m elf32ppclinux"
6807 LD="${LD-ld} -m elf_s390"
6810 LD="${LD-ld} -m elf32_sparc"
6817 LD="${LD-ld} -m elf_x86_64"
6819 ppc*-*linux*|powerpc*-*linux*)
6820 LD="${LD-ld} -m elf64ppc"
6823 LD="${LD-ld} -m elf64_s390"
6826 LD="${LD-ld} -m elf64_sparc"
6836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837 SAVE_CFLAGS="$CFLAGS"
6838 CFLAGS="$CFLAGS -belf"
6839 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6840 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6841 if test "${lt_cv_cc_needs_belf+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (ac_try="$ac_link"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_link") 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_try") 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 lt_cv_cc_needs_belf=yes
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 lt_cv_cc_needs_belf=no
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6917 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6920 CFLAGS="$SAVE_CFLAGS"
6924 # Find out which ABI we are using.
6925 echo 'int i;' > conftest.$ac_ext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; then
6931 case `/usr/bin/file conftest.o` in
6933 case $lt_cv_prog_gnu_ld in
6934 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6935 *) LD="${LD-ld} -64" ;;
6943 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 if test -n "$DLLTOOL"; then
6953 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 DLLTOOL=$ac_cv_prog_DLLTOOL
6973 if test -n "$DLLTOOL"; then
6974 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6975 echo "${ECHO_T}$DLLTOOL" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6983 if test -z "$ac_cv_prog_DLLTOOL"; then
6984 ac_ct_DLLTOOL=$DLLTOOL
6985 # Extract the first word of "dlltool", so it can be a program name with args.
6986 set dummy dlltool; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$ac_ct_DLLTOOL"; then
6993 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7013 if test -n "$ac_ct_DLLTOOL"; then
7014 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7015 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7021 if test "x$ac_ct_DLLTOOL" = x; then
7024 case $cross_compiling:$ac_tool_warned in
7026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet. If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&5
7029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet. If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7032 ac_tool_warned=yes ;;
7034 DLLTOOL=$ac_ct_DLLTOOL
7037 DLLTOOL="$ac_cv_prog_DLLTOOL"
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}as; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_AS+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 if test -n "$AS"; then
7049 ac_cv_prog_AS="$AS" # Let the user override the test.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_AS="${ac_tool_prefix}as"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 if test -n "$AS"; then
7070 { echo "$as_me:$LINENO: result: $AS" >&5
7071 echo "${ECHO_T}$AS" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7079 if test -z "$ac_cv_prog_AS"; then
7081 # Extract the first word of "as", so it can be a program name with args.
7082 set dummy as; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 if test -n "$ac_ct_AS"; then
7089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_prog_ac_ct_AS="as"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7109 if test -n "$ac_ct_AS"; then
7110 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7111 echo "${ECHO_T}$ac_ct_AS" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7117 if test "x$ac_ct_AS" = x; then
7120 case $cross_compiling:$ac_tool_warned in
7122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet. If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&5
7125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7126 whose name does not start with the host triplet. If you think this
7127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7128 ac_tool_warned=yes ;;
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 if test -n "$OBJDUMP"; then
7145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 OBJDUMP=$ac_cv_prog_OBJDUMP
7165 if test -n "$OBJDUMP"; then
7166 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7167 echo "${ECHO_T}$OBJDUMP" >&6; }
7169 { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7175 if test -z "$ac_cv_prog_OBJDUMP"; then
7176 ac_ct_OBJDUMP=$OBJDUMP
7177 # Extract the first word of "objdump", so it can be a program name with args.
7178 set dummy objdump; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 if test -n "$ac_ct_OBJDUMP"; then
7185 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7205 if test -n "$ac_ct_OBJDUMP"; then
7206 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7207 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7209 { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7213 if test "x$ac_ct_OBJDUMP" = x; then
7216 case $cross_compiling:$ac_tool_warned in
7218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet. If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&5
7221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7222 whose name does not start with the host triplet. If you think this
7223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7224 ac_tool_warned=yes ;;
7226 OBJDUMP=$ac_ct_OBJDUMP
7229 OBJDUMP="$ac_cv_prog_OBJDUMP"
7236 need_locks="$enable_libtool_lock"
7240 for ac_header in dlfcn.h
7242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_res=`eval echo '${'$as_ac_Header'}'`
7250 { echo "$as_me:$LINENO: result: $ac_res" >&5
7251 echo "${ECHO_T}$ac_res" >&6; }
7253 # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 #include <$ac_header>
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280 { (case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_try") 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_try") 2>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_header_compiler=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_header_compiler=no
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7309 echo "${ECHO_T}$ac_header_compiler" >&6; }
7311 # Is the header present?
7312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 #include <$ac_header>
7322 if { (ac_try="$ac_cpp conftest.$ac_ext"
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7344 if test -z "$ac_cpp_err"; then
7345 ac_header_preproc=yes
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 ac_header_preproc=no
7353 rm -f conftest.err conftest.$ac_ext
7354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7355 echo "${ECHO_T}$ac_header_preproc" >&6; }
7357 # So? What about this header?
7358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7364 ac_header_preproc=yes
7367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 eval "$as_ac_Header=\$ac_header_preproc"
7389 ac_res=`eval echo '${'$as_ac_Header'}'`
7390 { echo "$as_me:$LINENO: result: $ac_res" >&5
7391 echo "${ECHO_T}$ac_res" >&6; }
7394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7395 cat >>confdefs.h <<_ACEOF
7396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7406 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7407 (test "X$CXX" != "Xg++"))) ; then
7409 ac_cpp='$CXXCPP $CPPFLAGS'
7410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7413 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7414 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7415 if test -z "$CXXCPP"; then
7416 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 # Double quotes because CXXCPP needs to be expanded
7420 for CXXCPP in "$CXX -E" "/lib/cpp"
7423 for ac_cxx_preproc_warn_flag in '' yes
7425 # Use a header file that comes with gcc, so configuring glibc
7426 # with a fresh cross-compiler works.
7427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7428 # <limits.h> exists even on freestanding compilers.
7429 # On the NeXT, cc -E runs the code through the compiler's parser,
7430 # not just through cpp. "Syntax error" is here to catch this case.
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 # include <limits.h>
7440 # include <assert.h>
7444 if { (ac_try="$ac_cpp conftest.$ac_ext"
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null; then
7457 if test -s conftest.err; then
7458 ac_cpp_err=$ac_cxx_preproc_warn_flag
7459 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7466 if test -z "$ac_cpp_err"; then
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 # Broken: fails on valid input.
7476 rm -f conftest.err conftest.$ac_ext
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <ac_nonexistent.h>
7488 if { (ac_try="$ac_cpp conftest.$ac_ext"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } >/dev/null; then
7501 if test -s conftest.err; then
7502 ac_cpp_err=$ac_cxx_preproc_warn_flag
7503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7510 if test -z "$ac_cpp_err"; then
7511 # Broken: success on invalid input.
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 # Passes both tests.
7522 rm -f conftest.err conftest.$ac_ext
7525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7526 rm -f conftest.err conftest.$ac_ext
7527 if $ac_preproc_ok; then
7532 ac_cv_prog_CXXCPP=$CXXCPP
7535 CXXCPP=$ac_cv_prog_CXXCPP
7537 ac_cv_prog_CXXCPP=$CXXCPP
7539 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7540 echo "${ECHO_T}$CXXCPP" >&6; }
7542 for ac_cxx_preproc_warn_flag in '' yes
7544 # Use a header file that comes with gcc, so configuring glibc
7545 # with a fresh cross-compiler works.
7546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547 # <limits.h> exists even on freestanding compilers.
7548 # On the NeXT, cc -E runs the code through the compiler's parser,
7549 # not just through cpp. "Syntax error" is here to catch this case.
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7557 # include <limits.h>
7559 # include <assert.h>
7563 if { (ac_try="$ac_cpp conftest.$ac_ext"
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } >/dev/null; then
7576 if test -s conftest.err; then
7577 ac_cpp_err=$ac_cxx_preproc_warn_flag
7578 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7585 if test -z "$ac_cpp_err"; then
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 # Broken: fails on valid input.
7595 rm -f conftest.err conftest.$ac_ext
7597 # OK, works on sane cases. Now check whether nonexistent headers
7598 # can be detected and how.
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <ac_nonexistent.h>
7607 if { (ac_try="$ac_cpp conftest.$ac_ext"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } >/dev/null; then
7620 if test -s conftest.err; then
7621 ac_cpp_err=$ac_cxx_preproc_warn_flag
7622 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7629 if test -z "$ac_cpp_err"; then
7630 # Broken: success on invalid input.
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 # Passes both tests.
7641 rm -f conftest.err conftest.$ac_ext
7644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7645 rm -f conftest.err conftest.$ac_ext
7646 if $ac_preproc_ok; then
7649 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7650 See \`config.log' for more details." >&5
7651 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7652 See \`config.log' for more details." >&2;}
7653 { (exit 1); exit 1; }; }
7657 ac_cpp='$CXXCPP $CPPFLAGS'
7658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7665 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7666 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7668 if test -n "$ac_tool_prefix"; then
7669 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_prog_F77+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 if test -n "$F77"; then
7679 ac_cv_prog_F77="$F77" # Let the user override the test.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 if test -n "$F77"; then
7700 { echo "$as_me:$LINENO: result: $F77" >&5
7701 echo "${ECHO_T}$F77" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7708 test -n "$F77" && break
7711 if test -z "$F77"; then
7713 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 if test -n "$ac_ct_F77"; then
7723 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_ac_ct_F77="$ac_prog"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7743 if test -n "$ac_ct_F77"; then
7744 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7745 echo "${ECHO_T}$ac_ct_F77" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 test -n "$ac_ct_F77" && break
7755 if test "x$ac_ct_F77" = x; then
7758 case $cross_compiling:$ac_tool_warned in
7760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7761 whose name does not start with the host triplet. If you think this
7762 configuration is useful to you, please write to autoconf@gnu.org." >&5
7763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7764 whose name does not start with the host triplet. If you think this
7765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7766 ac_tool_warned=yes ;;
7773 # Provide some information about the compiler.
7774 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7775 ac_compiler=`set X $ac_compile; echo $2`
7776 { (ac_try="$ac_compiler --version >&5"
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_compiler --version >&5") 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }
7786 { (ac_try="$ac_compiler -v >&5"
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_compiler -v >&5") 2>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }
7796 { (ac_try="$ac_compiler -V >&5"
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_compiler -V >&5") 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }
7808 # If we don't use `.F' as extension, the preprocessor is not run on the
7809 # input file. (Note that this only needs to work for GNU compilers.)
7812 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7813 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7814 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_compile") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_try") 2>&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7871 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7872 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7874 ac_test_FFLAGS=${FFLAGS+set}
7875 ac_save_FFLAGS=$FFLAGS
7877 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7878 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7879 if test "${ac_cv_prog_f77_g+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_try") 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_prog_f77_g=yes
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7934 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7935 if test "$ac_test_FFLAGS" = set; then
7936 FFLAGS=$ac_save_FFLAGS
7937 elif test $ac_cv_prog_f77_g = yes; then
7938 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7944 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7951 G77=`test $ac_compiler_gnu = yes && echo yes`
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7962 # find the maximum length of command line arguments
7963 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7964 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7965 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 # On DJGPP, this test can blow up pretty badly due to problems in libc
7974 # (any single argument exceeding 2000 bytes causes a buffer overrun
7975 # during glob expansion). Even if it were fixed, the result of this
7976 # check would be larger than it should be.
7977 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7981 # Under GNU Hurd, this test is not required because there is
7982 # no limit to the length of command line arguments.
7983 # Libtool will interpret -1 as no limit whatsoever
7984 lt_cv_sys_max_cmd_len=-1;
7988 # On Win9x/ME, this test blows up -- it succeeds, but takes
7989 # about 5 minutes as the teststring grows exponentially.
7990 # Worse, since 9x/ME are not pre-emptively multitasking,
7991 # you end up with a "frozen" computer, even though with patience
7992 # the test eventually succeeds (with a max line length of 256k).
7993 # Instead, let's just punt: use the minimum linelength reported by
7994 # all of the supported platforms: 8192 (on NT/2K/XP).
7995 lt_cv_sys_max_cmd_len=8192;
7999 # On AmigaOS with pdksh, this test takes hours, literally.
8000 # So we just punt and use a minimum line length of 8192.
8001 lt_cv_sys_max_cmd_len=8192;
8004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8005 # This has been around since 386BSD, at least. Likely further.
8006 if test -x /sbin/sysctl; then
8007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8008 elif test -x /usr/sbin/sysctl; then
8009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8013 # And add a safety zone
8014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8020 lt_cv_sys_max_cmd_len=196608
8024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8026 # nice to cause kernel panics so lets avoid the loop below.
8027 # First set a reasonable default.
8028 lt_cv_sys_max_cmd_len=16384
8030 if test -x /sbin/sysconfig; then
8031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8037 lt_cv_sys_max_cmd_len=102400
8039 sysv5* | sco5v6* | sysv4.2uw2*)
8040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8041 if test -n "$kargmax"; then
8042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8044 lt_cv_sys_max_cmd_len=32768
8048 # If test is not a shell built-in, we'll probably end up computing a
8049 # maximum length that is only half of the actual maximum length, but
8051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8052 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8053 = "XX$teststring") >/dev/null 2>&1 &&
8054 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8055 lt_cv_sys_max_cmd_len=$new_result &&
8056 test $i != 17 # 1/2 MB should be enough
8059 teststring=$teststring$teststring
8062 # Add a significant safety factor because C++ compilers can tack on massive
8063 # amounts of additional arguments before passing them to the linker.
8064 # It appears as though 1/2 is a usable value.
8065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8071 if test -n $lt_cv_sys_max_cmd_len ; then
8072 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8075 { echo "$as_me:$LINENO: result: none" >&5
8076 echo "${ECHO_T}none" >&6; }
8082 # Check for command to grab the raw symbol name followed by C symbol from nm.
8083 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 # These are sane defaults that work on at least a few old systems.
8090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8092 # Character class describing NM global symbol codes.
8093 symcode='[BCDEGRST]'
8095 # Regexp to match symbols that can be accessed directly from C.
8096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8098 # Transform an extracted symbol line into a proper C declaration
8099 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8101 # Transform an extracted symbol line into symbol name and symbol address
8102 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'"
8104 # Define system-specific variables.
8109 cygwin* | mingw* | pw32*)
8110 symcode='[ABCDGISTW]'
8112 hpux*) # Its linker distinguishes data from code symbols
8113 if test "$host_cpu" = ia64; then
8114 symcode='[ABCDEGRST]'
8116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8117 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'"
8119 linux* | k*bsd*-gnu)
8120 if test "$host_cpu" = ia64; then
8121 symcode='[ABCDGIRSTW]'
8122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8123 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'"
8127 symcode='[BCDEGRST]'
8130 symcode='[BCDEGQRST]'
8141 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8149 # Handle CRLF in mingw tool chain
8153 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8157 # If we're using GNU nm, then use its standard symbol codes.
8158 case `$NM -V 2>&1` in
8159 *GNU* | *'with BFD'*)
8160 symcode='[ABCDGIRSTW]' ;;
8163 # Try without a prefix undercore, then with it.
8164 for ac_symprfx in "" "_"; do
8166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8167 symxfrm="\\1 $ac_symprfx\\2 \\2"
8169 # Write the raw and C identifiers.
8170 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8172 # Check to see that the pipe works correctly.
8176 cat > conftest.$ac_ext <<EOF
8181 void nm_test_func(){}
8185 int main(){nm_test_var='a';nm_test_func();return(0);}
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; then
8193 # Now try to grab the symbols.
8195 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8196 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && test -s "$nlist"; then
8200 # Try sorting and uniquifying the output.
8201 if sort "$nlist" | uniq > "$nlist"T; then
8202 mv -f "$nlist"T "$nlist"
8207 # Make sure that we snagged all the symbols we need.
8208 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8209 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8210 cat <<EOF > conftest.$ac_ext
8216 # Now generate the symbol file.
8217 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8219 cat <<EOF >> conftest.$ac_ext
8220 #if defined (__STDC__) && __STDC__
8221 # define lt_ptr_t void *
8223 # define lt_ptr_t char *
8227 /* The mapping between symbol names and symbols. */
8232 lt_preloaded_symbols[] =
8235 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8236 cat <<\EOF >> conftest.$ac_ext
8244 # Now try linking the two files.
8245 mv conftest.$ac_objext conftstm.$ac_objext
8246 lt_save_LIBS="$LIBS"
8247 lt_save_CFLAGS="$CFLAGS"
8248 LIBS="conftstm.$ac_objext"
8249 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8257 LIBS="$lt_save_LIBS"
8258 CFLAGS="$lt_save_CFLAGS"
8260 echo "cannot find nm_test_func in $nlist" >&5
8263 echo "cannot find nm_test_var in $nlist" >&5
8266 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8269 echo "$progname: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8272 rm -f conftest* conftst*
8274 # Do not use the global_symbol_pipe unless it works.
8275 if test "$pipe_works" = yes; then
8278 lt_cv_sys_global_symbol_pipe=
8284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8285 lt_cv_sys_global_symbol_to_cdecl=
8287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8288 { echo "$as_me:$LINENO: result: failed" >&5
8289 echo "${ECHO_T}failed" >&6; }
8291 { echo "$as_me:$LINENO: result: ok" >&5
8292 echo "${ECHO_T}ok" >&6; }
8295 { echo "$as_me:$LINENO: checking for objdir" >&5
8296 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8297 if test "${lt_cv_objdir+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 rm -f .libs 2>/dev/null
8301 mkdir .libs 2>/dev/null
8302 if test -d .libs; then
8305 # MS-DOS does not allow filenames that begin with a dot.
8308 rmdir .libs 2>/dev/null
8310 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8311 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8312 objdir=$lt_cv_objdir
8320 # AIX sometimes has problems with the GCC collect2 program. For some
8321 # reason, if we set the COLLECT_NAMES environment variable, the problems
8322 # vanish in a puff of smoke.
8323 if test "X${COLLECT_NAMES+set}" != Xset; then
8325 export COLLECT_NAMES
8330 # Sed substitution that helps us do robust quoting. It backslashifies
8331 # metacharacters that are still active within double-quoted strings.
8332 Xsed='sed -e 1s/^X//'
8333 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8335 # Same as above, but do not quote variable references.
8336 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8338 # Sed substitution to delay expansion of an escaped shell variable in a
8339 # double_quote_subst'ed string.
8340 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8342 # Sed substitution to avoid accidental globbing in evaled expressions
8343 no_glob_subst='s/\*/\\\*/g'
8349 default_ofile=libtool
8350 can_build_shared=yes
8352 # All known linkers require a `.a' archive for static linking (except MSVC,
8353 # which needs '.lib').
8355 ltmain="$ac_aux_dir/ltmain.sh"
8356 ofile="$default_ofile"
8357 with_gnu_ld="$lt_cv_prog_gnu_ld"
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}ar; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_prog_AR+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 if test -n "$AR"; then
8368 ac_cv_prog_AR="$AR" # Let the user override the test.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_AR="${ac_tool_prefix}ar"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 if test -n "$AR"; then
8389 { echo "$as_me:$LINENO: result: $AR" >&5
8390 echo "${ECHO_T}$AR" >&6; }
8392 { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8398 if test -z "$ac_cv_prog_AR"; then
8400 # Extract the first word of "ar", so it can be a program name with args.
8401 set dummy ar; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 if test -n "$ac_ct_AR"; then
8408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_AR="ar"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8428 if test -n "$ac_ct_AR"; then
8429 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8430 echo "${ECHO_T}$ac_ct_AR" >&6; }
8432 { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8436 if test "x$ac_ct_AR" = x; then
8439 case $cross_compiling:$ac_tool_warned in
8441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8442 whose name does not start with the host triplet. If you think this
8443 configuration is useful to you, please write to autoconf@gnu.org." >&5
8444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8445 whose name does not start with the host triplet. If you think this
8446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8447 ac_tool_warned=yes ;;
8455 if test -n "$ac_tool_prefix"; then
8456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8460 if test "${ac_cv_prog_RANLIB+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 if test -n "$RANLIB"; then
8464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 RANLIB=$ac_cv_prog_RANLIB
8484 if test -n "$RANLIB"; then
8485 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8486 echo "${ECHO_T}$RANLIB" >&6; }
8488 { echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6; }
8494 if test -z "$ac_cv_prog_RANLIB"; then
8495 ac_ct_RANLIB=$RANLIB
8496 # Extract the first word of "ranlib", so it can be a program name with args.
8497 set dummy ranlib; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 if test -n "$ac_ct_RANLIB"; then
8504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_prog_ac_ct_RANLIB="ranlib"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8524 if test -n "$ac_ct_RANLIB"; then
8525 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8528 { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8532 if test "x$ac_ct_RANLIB" = x; then
8535 case $cross_compiling:$ac_tool_warned in
8537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8538 whose name does not start with the host triplet. If you think this
8539 configuration is useful to you, please write to autoconf@gnu.org." >&5
8540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8541 whose name does not start with the host triplet. If you think this
8542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8543 ac_tool_warned=yes ;;
8545 RANLIB=$ac_ct_RANLIB
8548 RANLIB="$ac_cv_prog_RANLIB"
8551 if test -n "$ac_tool_prefix"; then
8552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}strip; ac_word=$2
8554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_STRIP+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 if test -n "$STRIP"; then
8560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 STRIP=$ac_cv_prog_STRIP
8580 if test -n "$STRIP"; then
8581 { echo "$as_me:$LINENO: result: $STRIP" >&5
8582 echo "${ECHO_T}$STRIP" >&6; }
8584 { echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6; }
8590 if test -z "$ac_cv_prog_STRIP"; then
8592 # Extract the first word of "strip", so it can be a program name with args.
8593 set dummy strip; ac_word=$2
8594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 if test -n "$ac_ct_STRIP"; then
8600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_ac_ct_STRIP="strip"
8610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8620 if test -n "$ac_ct_STRIP"; then
8621 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8622 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8624 { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8628 if test "x$ac_ct_STRIP" = x; then
8631 case $cross_compiling:$ac_tool_warned in
8633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8634 whose name does not start with the host triplet. If you think this
8635 configuration is useful to you, please write to autoconf@gnu.org." >&5
8636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8637 whose name does not start with the host triplet. If you think this
8638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8639 ac_tool_warned=yes ;;
8644 STRIP="$ac_cv_prog_STRIP"
8649 old_CFLAGS="$CFLAGS"
8651 # Set sane defaults for various variables
8652 test -z "$AR" && AR=ar
8653 test -z "$AR_FLAGS" && AR_FLAGS=cru
8654 test -z "$AS" && AS=as
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$DLLTOOL" && DLLTOOL=dlltool
8659 test -z "$LD" && LD=ld
8660 test -z "$LN_S" && LN_S="ln -s"
8661 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8662 test -z "$NM" && NM=nm
8663 test -z "$SED" && SED=sed
8664 test -z "$OBJDUMP" && OBJDUMP=objdump
8665 test -z "$RANLIB" && RANLIB=:
8666 test -z "$STRIP" && STRIP=:
8667 test -z "$ac_objext" && ac_objext=o
8669 # Determine commands to create old-style static archives.
8670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8671 old_postinstall_cmds='chmod 644 $oldlib'
8672 old_postuninstall_cmds=
8674 if test -n "$RANLIB"; then
8677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8686 for cc_temp in $compiler""; do
8688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8697 # Only perform the check for file, if the check method requires it
8698 case $deplibs_check_method in
8700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8701 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8702 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8711 lt_save_MAGIC_CMD="$MAGIC_CMD"
8712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8714 for ac_dir in $ac_dummy; do
8716 test -z "$ac_dir" && ac_dir=.
8717 if test -f $ac_dir/${ac_tool_prefix}file; then
8718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8719 if test -n "$file_magic_test_file"; then
8720 case $deplibs_check_method in
8722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8725 $EGREP "$file_magic_regex" > /dev/null; then
8730 *** Warning: the command libtool uses to detect shared libraries,
8731 *** $file_magic_cmd, produces output that libtool cannot recognize.
8732 *** The result is that libtool may fail to recognize shared libraries
8733 *** as such. This will affect the creation of libtool libraries that
8734 *** depend on shared libraries, but programs linked with such libtool
8735 *** libraries will work regardless of this problem. Nevertheless, you
8736 *** may want to report the problem to your system manager and/or to
8737 *** bug-libtool@gnu.org
8747 MAGIC_CMD="$lt_save_MAGIC_CMD"
8752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8753 if test -n "$MAGIC_CMD"; then
8754 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8755 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8757 { echo "$as_me:$LINENO: result: no" >&5
8758 echo "${ECHO_T}no" >&6; }
8761 if test -z "$lt_cv_path_MAGIC_CMD"; then
8762 if test -n "$ac_tool_prefix"; then
8763 { echo "$as_me:$LINENO: checking for file" >&5
8764 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8773 lt_save_MAGIC_CMD="$MAGIC_CMD"
8774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8776 for ac_dir in $ac_dummy; do
8778 test -z "$ac_dir" && ac_dir=.
8779 if test -f $ac_dir/file; then
8780 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8781 if test -n "$file_magic_test_file"; then
8782 case $deplibs_check_method in
8784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8787 $EGREP "$file_magic_regex" > /dev/null; then
8792 *** Warning: the command libtool uses to detect shared libraries,
8793 *** $file_magic_cmd, produces output that libtool cannot recognize.
8794 *** The result is that libtool may fail to recognize shared libraries
8795 *** as such. This will affect the creation of libtool libraries that
8796 *** depend on shared libraries, but programs linked with such libtool
8797 *** libraries will work regardless of this problem. Nevertheless, you
8798 *** may want to report the problem to your system manager and/or to
8799 *** bug-libtool@gnu.org
8809 MAGIC_CMD="$lt_save_MAGIC_CMD"
8814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8815 if test -n "$MAGIC_CMD"; then
8816 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8817 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8819 { echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6; }
8833 enable_win32_dll=yes
8835 # Check whether --enable-libtool-lock was given.
8836 if test "${enable_libtool_lock+set}" = set; then
8837 enableval=$enable_libtool_lock;
8840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8843 # Check whether --with-pic was given.
8844 if test "${with_pic+set}" = set; then
8845 withval=$with_pic; pic_mode="$withval"
8850 test -z "$pic_mode" && pic_mode=default
8852 # Use C for the default configuration in the libtool script
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862 # Source file extension for C test sources.
8865 # Object file extension for compiled C test sources.
8869 # Code to be used in simple compile tests
8870 lt_simple_compile_test_code="int some_variable = 0;\n"
8872 # Code to be used in simple link tests
8873 lt_simple_link_test_code='int main(){return(0);}\n'
8876 # If no C compiler was specified, use CC.
8879 # If no C compiler flags were specified, use CFLAGS.
8880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8882 # Allow CC to be a program name with arguments.
8886 # save warnings/boilerplate of simple test code
8887 ac_outfile=conftest.$ac_objext
8888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890 _lt_compiler_boilerplate=`cat conftest.err`
8893 ac_outfile=conftest.$ac_objext
8894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896 _lt_linker_boilerplate=`cat conftest.err`
8901 lt_prog_compiler_no_builtin_flag=
8903 if test "$GCC" = yes; then
8904 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8907 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8908 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 lt_cv_prog_compiler_rtti_exceptions=no
8913 ac_outfile=conftest.$ac_objext
8914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="-fno-rtti -fno-exceptions"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>conftest.err)
8928 cat conftest.err >&5
8929 echo "$as_me:8929: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
8933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_rtti_exceptions=yes
8942 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8943 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8953 lt_prog_compiler_wl=
8954 lt_prog_compiler_pic=
8955 lt_prog_compiler_static=
8957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8960 if test "$GCC" = yes; then
8961 lt_prog_compiler_wl='-Wl,'
8962 lt_prog_compiler_static='-static'
8966 # All AIX code is PIC.
8967 if test "$host_cpu" = ia64; then
8968 # AIX 5 now supports IA64 processor
8969 lt_prog_compiler_static='-Bstatic'
8974 # FIXME: we need at least 68020 code to build shared libraries, but
8975 # adding the `-m68020' flag to GCC prevents building anything better,
8977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8981 # PIC is the default for these OSes.
8984 mingw* | pw32* | os2*)
8985 # This hack is so that the source file can tell whether it is being
8986 # built for inclusion in a dll (and should export symbols for example).
8987 lt_prog_compiler_pic='-DDLL_EXPORT'
8990 darwin* | rhapsody*)
8991 # PIC is the default on this platform
8992 # Common symbols not allowed in MH_DYLIB files
8993 lt_prog_compiler_pic='-fno-common'
8997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8998 # Instead, we relocate shared libraries at runtime.
9002 # Just because we use GCC doesn't mean we suddenly get shared libraries
9003 # on systems that don't support them.
9004 lt_prog_compiler_can_build_shared=no
9009 if test -d /usr/nec; then
9010 lt_prog_compiler_pic=-Kconform_pic
9015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9022 lt_prog_compiler_pic='-fPIC'
9028 lt_prog_compiler_pic='-fPIC'
9032 # PORTME Check for flag to pass linker flags through the system compiler.
9035 lt_prog_compiler_wl='-Wl,'
9036 if test "$host_cpu" = ia64; then
9037 # AIX 5 now supports IA64 processor
9038 lt_prog_compiler_static='-Bstatic'
9040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9044 # PIC is the default on this platform
9045 # Common symbols not allowed in MH_DYLIB files
9046 case $cc_basename in
9048 lt_prog_compiler_pic='-qnocommon'
9049 lt_prog_compiler_wl='-Wl,'
9054 mingw* | pw32* | os2*)
9055 # This hack is so that the source file can tell whether it is being
9056 # built for inclusion in a dll (and should export symbols for example).
9057 lt_prog_compiler_pic='-DDLL_EXPORT'
9060 hpux9* | hpux10* | hpux11*)
9061 lt_prog_compiler_wl='-Wl,'
9062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9069 lt_prog_compiler_pic='+Z'
9072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9073 lt_prog_compiler_static='${wl}-a ${wl}archive'
9076 irix5* | irix6* | nonstopux*)
9077 lt_prog_compiler_wl='-Wl,'
9078 # PIC (with -KPIC) is the default.
9079 lt_prog_compiler_static='-non_shared'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9087 linux* | k*bsd*-gnu)
9088 case $cc_basename in
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-static'
9094 pgcc* | pgf77* | pgf90* | pgf95*)
9095 # Portland Group compilers (*not* the Pentium gcc compiler,
9096 # which looks to be a dead project)
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_pic='-fpic'
9099 lt_prog_compiler_static='-Bstatic'
9102 lt_prog_compiler_wl='-Wl,'
9103 # All Alpha code is PIC.
9104 lt_prog_compiler_static='-non_shared'
9109 osf3* | osf4* | osf5*)
9110 lt_prog_compiler_wl='-Wl,'
9111 # All OSF/1 code is PIC.
9112 lt_prog_compiler_static='-non_shared'
9116 lt_prog_compiler_pic='-KPIC'
9117 lt_prog_compiler_static='-Bstatic'
9118 case $cc_basename in
9120 lt_prog_compiler_wl='-Qoption ld ';;
9122 lt_prog_compiler_wl='-Wl,';;
9127 lt_prog_compiler_wl='-Qoption ld '
9128 lt_prog_compiler_pic='-PIC'
9129 lt_prog_compiler_static='-Bstatic'
9132 sysv4 | sysv4.2uw2* | sysv4.3*)
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-KPIC'
9135 lt_prog_compiler_static='-Bstatic'
9139 if test -d /usr/nec ;then
9140 lt_prog_compiler_pic='-Kconform_pic'
9141 lt_prog_compiler_static='-Bstatic'
9145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-Bstatic'
9152 lt_prog_compiler_wl='-Wl,'
9153 lt_prog_compiler_can_build_shared=no
9157 lt_prog_compiler_pic='-pic'
9158 lt_prog_compiler_static='-Bstatic'
9162 lt_prog_compiler_can_build_shared=no
9167 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9168 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9171 # Check to make sure the PIC flag actually works.
9173 if test -n "$lt_prog_compiler_pic"; then
9175 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9176 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9177 if test "${lt_prog_compiler_pic_works+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 lt_prog_compiler_pic_works=no
9181 ac_outfile=conftest.$ac_objext
9182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:9193: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9196 cat conftest.err >&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_prog_compiler_pic_works=yes
9210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9211 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9213 if test x"$lt_prog_compiler_pic_works" = xyes; then
9214 case $lt_prog_compiler_pic in
9216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9219 lt_prog_compiler_pic=
9220 lt_prog_compiler_can_build_shared=no
9225 # For platforms which do not support PIC, -DPIC is meaningless:
9227 lt_prog_compiler_pic=
9230 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9235 # Check to make sure the static flag actually works.
9237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9238 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9239 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9240 if test "${lt_prog_compiler_static_works+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 lt_prog_compiler_static_works=no
9244 save_LDFLAGS="$LDFLAGS"
9245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9248 # The linker can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
9250 if test -s conftest.err; then
9251 # Append any errors to the config.log.
9252 cat conftest.err 1>&5
9253 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9255 if diff conftest.exp conftest.er2 >/dev/null; then
9256 lt_prog_compiler_static_works=yes
9259 lt_prog_compiler_static_works=yes
9263 LDFLAGS="$save_LDFLAGS"
9266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9267 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9269 if test x"$lt_prog_compiler_static_works" = xyes; then
9272 lt_prog_compiler_static=
9276 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 lt_cv_prog_compiler_c_o=no
9282 $rm -r conftest 2>/dev/null
9286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9288 lt_compiler_flag="-o out/conftest2.$ac_objext"
9289 # Insert the option either (1) after the last *FLAGS variable, or
9290 # (2) before a word containing "conftest.", or (3) at the end.
9291 # Note that $ac_compile itself does not contain backslashes and begins
9292 # with a dollar sign (not a hyphen), so the echo should work correctly.
9293 lt_compile=`echo "$ac_compile" | $SED \
9294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296 -e 's:$: $lt_compiler_flag:'`
9297 (eval echo "\"\$as_me:9297: $lt_compile\"" >&5)
9298 (eval "$lt_compile" 2>out/conftest.err)
9300 cat out/conftest.err >&5
9301 echo "$as_me:9301: \$? = $ac_status" >&5
9302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9304 # The compiler can only warn and ignore the option if not recognized
9305 # So say no if there are warnings
9306 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler_c_o=yes
9314 # SGI C++ compiler will create directory out/ii_files/ for
9315 # template instantiation
9316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9317 $rm out/* && rmdir out
9323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9327 hard_links="nottested"
9328 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329 # do not overwrite the value of need_locks provided by the user
9330 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9336 ln conftest.a conftest.b 2>&5 || hard_links=no
9337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338 { echo "$as_me:$LINENO: result: $hard_links" >&5
9339 echo "${ECHO_T}$hard_links" >&6; }
9340 if test "$hard_links" = no; then
9341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9349 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9353 allow_undefined_flag=
9354 enable_shared_with_static_runtimes=no
9356 archive_expsym_cmds=
9357 old_archive_From_new_cmds=
9358 old_archive_from_expsyms_cmds=
9359 export_dynamic_flag_spec=
9360 whole_archive_flag_spec=
9361 thread_safe_flag_spec=
9362 hardcode_libdir_flag_spec=
9363 hardcode_libdir_flag_spec_ld=
9364 hardcode_libdir_separator=
9367 hardcode_shlibpath_var=unsupported
9368 link_all_deplibs=unknown
9369 hardcode_automatic=no
9372 always_export_symbols=no
9373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374 # include_expsyms should be a list of space-separated symbols to be *always*
9375 # included in the symbol list
9377 # exclude_expsyms can be an extended regexp of symbols to exclude
9378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9380 # as well as any symbol that contains `d'.
9381 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9383 # platforms (ab)use it in PIC code, but their linkers get confused if
9384 # the symbol is explicitly referenced. Since portable code cannot
9385 # rely on this symbol name, it's probably fine to never include it in
9386 # preloaded symbol tables.
9387 extract_expsyms_cmds=
9388 # Just being paranoid about ensuring that cc_basename is set.
9389 for cc_temp in $compiler""; do
9391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9400 cygwin* | mingw* | pw32*)
9401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9402 # When not using gcc, we currently assume that we are using
9403 # Microsoft Visual C++.
9404 if test "$GCC" != yes; then
9409 # we just hope/assume this is gcc and not c89 (= MSVC++)
9418 if test "$with_gnu_ld" = yes; then
9419 # If archive_cmds runs LD, not CC, wlarc should be empty
9422 # Set some defaults for GNU ld with shared library support. These
9423 # are reset later if shared libraries are not supported. Putting them
9424 # here allows them to be overridden if necessary.
9425 runpath_var=LD_RUN_PATH
9426 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9427 export_dynamic_flag_spec='${wl}--export-dynamic'
9428 # ancient GNU ld didn't support --whole-archive et. al.
9429 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9430 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9432 whole_archive_flag_spec=
9434 supports_anon_versioning=no
9435 case `$LD -v 2>/dev/null` in
9436 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9439 *\ 2.11.*) ;; # other 2.11 versions
9440 *) supports_anon_versioning=yes ;;
9443 # See if GNU ld supports shared libraries.
9445 aix3* | aix4* | aix5*)
9446 # On AIX/PPC, the GNU linker is very broken
9447 if test "$host_cpu" != ia64; then
9451 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9452 *** to be unable to reliably create shared libraries on AIX.
9453 *** Therefore, libtool is disabling shared libraries support. If you
9454 *** really care for shared libraries, you may want to modify your PATH
9455 *** so that a non-GNU linker is found, and then restart.
9462 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)'
9463 hardcode_libdir_flag_spec='-L$libdir'
9464 hardcode_minus_L=yes
9466 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9467 # that the semantics of dynamic libraries on AmigaOS, at least up
9468 # to version 4, is to share data among multiple programs linked
9469 # with the same dynamic library. Since this doesn't match the
9470 # behavior of shared libraries on other platforms, we can't use
9476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9477 allow_undefined_flag=unsupported
9478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9479 # support --undefined. This deserves some investigation. FIXME
9480 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 cygwin* | mingw* | pw32*)
9487 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9488 # as there is no search path for DLLs.
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 allow_undefined_flag=unsupported
9491 always_export_symbols=no
9492 enable_shared_with_static_runtimes=yes
9493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9495 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497 # If the export-symbols file already is a .def file (1st line
9498 # is EXPORTS), use it as is; otherwise, prepend...
9499 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9500 cp $export_symbols $output_objdir/$soname.def;
9502 echo EXPORTS > $output_objdir/$soname.def;
9503 cat $export_symbols >> $output_objdir/$soname.def;
9505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9513 hardcode_shlibpath_var=no
9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515 export_dynamic_flag_spec='${wl}-E'
9516 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9517 # Instead, shared libraries are loaded at an image base (0x10000000 by
9518 # default) and relocated if they conflict, which is a slow very memory
9519 # consuming and fragmenting process. To avoid this, we pick a random,
9520 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9521 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9523 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'
9526 linux* | k*bsd*-gnu)
9527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9529 case $cc_basename,$host_cpu in
9530 pgcc*) # Portland Group C compiler
9531 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'
9532 tmp_addflag=' $pic_flag'
9534 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9535 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'
9536 tmp_addflag=' $pic_flag -Mnomain' ;;
9537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9538 tmp_addflag=' -i_dynamic' ;;
9539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9540 tmp_addflag=' -i_dynamic -nofor_main' ;;
9541 ifc* | ifort*) # Intel Fortran compiler
9542 tmp_addflag=' -nofor_main' ;;
9544 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 if test $supports_anon_versioning = yes; then
9547 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549 $echo "local: *; };" >> $output_objdir/$libname.ver~
9550 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9558 netbsd* | netbsdelf*-gnu)
9559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9560 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9574 *** create shared libraries on Solaris systems. Therefore, libtool
9575 *** is disabling shared libraries support. We urge you to upgrade GNU
9576 *** binutils to release 2.9.1 or newer. Another option is to modify
9577 *** your PATH or compiler configuration so that the native linker is
9578 *** used, and then restart.
9581 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9590 case `$LD -v 2>&1` in
9591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9596 *** reliably create shared libraries on SCO systems. Therefore, libtool
9597 *** is disabling shared libraries support. We urge you to upgrade GNU
9598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9599 *** your PATH or compiler configuration so that the native linker is
9600 *** used, and then restart.
9605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9606 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_shlibpath_var=no
9624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 if test "$ld_shlibs" = no; then
9635 hardcode_libdir_flag_spec=
9636 export_dynamic_flag_spec=
9637 whole_archive_flag_spec=
9640 # PORTME fill in a description of your system's linker (not GNU ld)
9643 allow_undefined_flag=unsupported
9644 always_export_symbols=yes
9645 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'
9646 # Note: this linker hardcodes the directories in LIBPATH if there
9647 # are no directories specified by -L.
9648 hardcode_minus_L=yes
9649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9650 # Neither direct hardcoding nor static linking is supported with a
9652 hardcode_direct=unsupported
9657 if test "$host_cpu" = ia64; then
9658 # On IA64, the linker does run time linking by default, so we don't
9659 # have to do anything special.
9660 aix_use_runtimelinking=no
9661 exp_sym_flag='-Bexport'
9664 # If we're using GNU nm, then we don't want the "-C" option.
9665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9666 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9667 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'
9669 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'
9671 aix_use_runtimelinking=no
9673 # Test if we are trying to use run time linking or normal
9674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9675 # need to do runtime linking.
9676 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9677 for ld_flag in $LDFLAGS; do
9678 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9679 aix_use_runtimelinking=yes
9686 exp_sym_flag='-bexport'
9687 no_entry_flag='-bnoentry'
9690 # When large executables or shared objects are built, AIX ld can
9691 # have problems creating the table of contents. If linking a library
9692 # or program results in "error TOC overflow" add -mminimal-toc to
9693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9698 hardcode_libdir_separator=':'
9699 link_all_deplibs=yes
9701 if test "$GCC" = yes; then
9702 case $host_os in aix4.[012]|aix4.[012].*)
9703 # We only want to do this on AIX 4.2 and lower, the check
9704 # below for broken collect2 doesn't work under 4.3+
9705 collect2name=`${CC} -print-prog-name=collect2`
9706 if test -f "$collect2name" && \
9707 strings "$collect2name" | grep resolve_lib_name >/dev/null
9709 # We have reworked collect2
9712 # We have old collect2
9713 hardcode_direct=unsupported
9714 # It fails to find uninstalled libraries when the uninstalled
9715 # path is not listed in the libpath. Setting hardcode_minus_L
9716 # to unsupported forces relinking
9717 hardcode_minus_L=yes
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_libdir_separator=
9723 shared_flag='-shared'
9724 if test "$aix_use_runtimelinking" = yes; then
9725 shared_flag="$shared_flag "'${wl}-G'
9729 if test "$host_cpu" = ia64; then
9730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9731 # chokes on -Wl,-G. The following line is correct:
9734 if test "$aix_use_runtimelinking" = yes; then
9735 shared_flag='${wl}-G'
9737 shared_flag='${wl}-bM:SRE'
9742 # It seems that -bexpall does not export symbols beginning with
9743 # underscore (_), so it is better to generate a list of symbols to export.
9744 always_export_symbols=yes
9745 if test "$aix_use_runtimelinking" = yes; then
9746 # Warning - without using the other runtime loading flags (-brtl),
9747 # -berok will link without error, but may produce a broken library.
9748 allow_undefined_flag='-berok'
9749 # Determine the default libpath from the value encoded in an empty executable.
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9802 # Check for a 64-bit object if we didn't find anything.
9803 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; }
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9816 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9817 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"
9819 if test "$host_cpu" = ia64; then
9820 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9821 allow_undefined_flag="-z nodefs"
9822 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"
9824 # Determine the default libpath from the value encoded in an empty executable.
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9849 grep -v '^ *+' conftest.er1 >conftest.err
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_try") 2>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9877 # Check for a 64-bit object if we didn't find anything.
9878 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; }
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9892 # Warning - without using the other run time loading flags,
9893 # -berok will link without error, but may produce a broken library.
9894 no_undefined_flag=' ${wl}-bernotok'
9895 allow_undefined_flag=' ${wl}-berok'
9896 # Exported symbols can be pulled into shared objects from archives
9897 whole_archive_flag_spec='$convenience'
9898 archive_cmds_need_lc=yes
9899 # This is similar to how AIX traditionally builds its shared libraries.
9900 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'
9906 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)'
9907 hardcode_libdir_flag_spec='-L$libdir'
9908 hardcode_minus_L=yes
9909 # see comment about different semantics on the GNU ld section
9914 export_dynamic_flag_spec=-rdynamic
9917 cygwin* | mingw* | pw32*)
9918 # When not using gcc, we currently assume that we are using
9919 # Microsoft Visual C++.
9920 # hardcode_libdir_flag_spec is actually meaningless, as there is
9921 # no search path for DLLs.
9922 hardcode_libdir_flag_spec=' '
9923 allow_undefined_flag=unsupported
9924 # Tell ltmain to make .lib files, not .a files.
9926 # Tell ltmain to make .dll files, not .so files.
9928 # FIXME: Setting linknames here is a bad hack.
9929 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9930 # The linker will automatically build a .lib file if we build a DLL.
9931 old_archive_From_new_cmds='true'
9932 # FIXME: Should let the user specify the lib program.
9933 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9934 fix_srcfile_path='`cygpath -w "$srcfile"`'
9935 enable_shared_with_static_runtimes=yes
9938 darwin* | rhapsody*)
9940 rhapsody* | darwin1.[012])
9941 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9944 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9945 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9947 case ${MACOSX_DEPLOYMENT_TARGET} in
9949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9952 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9958 archive_cmds_need_lc=no
9960 hardcode_automatic=yes
9961 hardcode_shlibpath_var=unsupported
9962 whole_archive_flag_spec=''
9963 link_all_deplibs=yes
9964 if test "$GCC" = yes ; then
9965 output_verbose_link_cmd='echo'
9966 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9969 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}'
9970 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}'
9972 case $cc_basename in
9974 output_verbose_link_cmd='echo'
9975 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9976 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9977 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9978 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}'
9979 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}'
9989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_shlibpath_var=no
9998 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9999 # support. Future versions do this automatically, but an explicit c++rt0.o
10000 # does not break anything, and helps significantly (at the cost of a little
10003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10004 hardcode_libdir_flag_spec='-R$libdir'
10005 hardcode_direct=yes
10006 hardcode_shlibpath_var=no
10009 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_direct=yes
10013 hardcode_minus_L=yes
10014 hardcode_shlibpath_var=no
10017 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10018 freebsd* | dragonfly*)
10019 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10020 hardcode_libdir_flag_spec='-R$libdir'
10021 hardcode_direct=yes
10022 hardcode_shlibpath_var=no
10026 if test "$GCC" = yes; then
10027 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'
10029 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'
10031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10032 hardcode_libdir_separator=:
10033 hardcode_direct=yes
10035 # hardcode_minus_L: Not really in the search PATH,
10036 # but as the default location of the library.
10037 hardcode_minus_L=yes
10038 export_dynamic_flag_spec='${wl}-E'
10042 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10047 if test "$with_gnu_ld" = no; then
10048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10049 hardcode_libdir_separator=:
10051 hardcode_direct=yes
10052 export_dynamic_flag_spec='${wl}-E'
10054 # hardcode_minus_L: Not really in the search PATH,
10055 # but as the default location of the library.
10056 hardcode_minus_L=yes
10061 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10064 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10086 if test "$with_gnu_ld" = no; then
10087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10088 hardcode_libdir_separator=:
10092 hardcode_libdir_flag_spec_ld='+b $libdir'
10094 hardcode_shlibpath_var=no
10097 hardcode_direct=yes
10098 export_dynamic_flag_spec='${wl}-E'
10100 # hardcode_minus_L: Not really in the search PATH,
10101 # but as the default location of the library.
10102 hardcode_minus_L=yes
10108 irix5* | irix6* | nonstopux*)
10109 if test "$GCC" = yes; then
10110 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'
10112 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'
10113 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 link_all_deplibs=yes
10120 netbsd* | netbsdelf*-gnu)
10121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10126 hardcode_libdir_flag_spec='-R$libdir'
10127 hardcode_direct=yes
10128 hardcode_shlibpath_var=no
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=yes
10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 hardcode_libdir_separator=:
10136 hardcode_shlibpath_var=no
10140 hardcode_direct=yes
10141 hardcode_shlibpath_var=no
10142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10146 export_dynamic_flag_spec='${wl}-E'
10149 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_libdir_flag_spec='-R$libdir'
10154 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_minus_L=yes
10164 allow_undefined_flag=unsupported
10165 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'
10166 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10170 if test "$GCC" = yes; then
10171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10172 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'
10174 allow_undefined_flag=' -expect_unresolved \*'
10175 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'
10177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178 hardcode_libdir_separator=:
10181 osf4* | osf5*) # as osf3* with the addition of -msym flag
10182 if test "$GCC" = yes; then
10183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10184 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'
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187 allow_undefined_flag=' -expect_unresolved \*'
10188 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'
10189 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10190 $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'
10192 # Both c and cxx compiler support -rpath directly
10193 hardcode_libdir_flag_spec='-rpath $libdir'
10195 hardcode_libdir_separator=:
10199 no_undefined_flag=' -z text'
10200 if test "$GCC" = yes; then
10202 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10204 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10207 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10209 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10211 hardcode_libdir_flag_spec='-R$libdir'
10212 hardcode_shlibpath_var=no
10214 solaris2.[0-5] | solaris2.[0-5].*) ;;
10216 # The compiler driver will combine linker options so we
10217 # cannot just pass the convience library names through
10218 # without $wl, iff we do not link with $LD.
10219 # Luckily, gcc supports the same syntax we need for Sun Studio.
10220 # Supported since Solaris 2.6 (maybe 2.5.1?)
10223 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10225 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' ;;
10228 link_all_deplibs=yes
10232 if test "x$host_vendor" = xsequent; then
10233 # Use $CC to link under sequent, because it throws in some extra .o
10234 # files that make .init and .fini sections work.
10235 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-L$libdir'
10240 hardcode_direct=yes
10241 hardcode_minus_L=yes
10242 hardcode_shlibpath_var=no
10246 case $host_vendor in
10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_direct=yes # is this really true???
10252 ## LD is ld it makes a PLAMLIB
10253 ## CC just makes a GrossModule.
10254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10255 reload_cmds='$CC -r -o $output$reload_objs'
10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10263 runpath_var='LD_RUN_PATH'
10264 hardcode_shlibpath_var=no
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_shlibpath_var=no
10270 export_dynamic_flag_spec='-Bexport'
10274 if test -d /usr/nec; then
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_shlibpath_var=no
10277 runpath_var=LD_RUN_PATH
10278 hardcode_runpath_var=yes
10283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10284 no_undefined_flag='${wl}-z,text'
10285 archive_cmds_need_lc=no
10286 hardcode_shlibpath_var=no
10287 runpath_var='LD_RUN_PATH'
10289 if test "$GCC" = yes; then
10290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 sysv5* | sco3.2v5* | sco5v6*)
10299 # Note: We can NOT use -z defs as we might desire, because we do not
10300 # link with -lc, and that would cause any symbols used from libc to
10301 # always be unresolved, which means just about no library would
10302 # ever link correctly. If we're not using GNU ld we use -z text
10303 # though, which does catch some bad symbols but isn't as heavy-handed
10305 no_undefined_flag='${wl}-z,text'
10306 allow_undefined_flag='${wl}-z,nodefs'
10307 archive_cmds_need_lc=no
10308 hardcode_shlibpath_var=no
10309 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10310 hardcode_libdir_separator=':'
10311 link_all_deplibs=yes
10312 export_dynamic_flag_spec='${wl}-Bexport'
10313 runpath_var='LD_RUN_PATH'
10315 if test "$GCC" = yes; then
10316 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_libdir_flag_spec='-L$libdir'
10327 hardcode_shlibpath_var=no
10336 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10337 echo "${ECHO_T}$ld_shlibs" >&6; }
10338 test "$ld_shlibs" = no && can_build_shared=no
10341 # Do we need to explicitly link libc?
10343 case "x$archive_cmds_need_lc" in
10345 # Assume -lc should be added
10346 archive_cmds_need_lc=yes
10348 if test "$enable_shared" = yes && test "$GCC" = yes; then
10349 case $archive_cmds in
10351 # FIXME: we may have to deal with multi-command sequences.
10354 # Test whether the compiler implicitly links with -lc since on some
10355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10356 # to ld, don't add -lc before -lgcc.
10357 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10358 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } 2>conftest.err; then
10369 libobjs=conftest.$ac_objext
10371 wl=$lt_prog_compiler_wl
10372 pic_flag=$lt_prog_compiler_pic
10378 lt_save_allow_undefined_flag=$allow_undefined_flag
10379 allow_undefined_flag=
10380 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10381 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }
10386 archive_cmds_need_lc=no
10388 archive_cmds_need_lc=yes
10390 allow_undefined_flag=$lt_save_allow_undefined_flag
10392 cat conftest.err 1>&5
10395 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10396 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10403 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10404 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10405 library_names_spec=
10406 libname_spec='lib$name'
10410 postuninstall_cmds=
10414 shlibpath_overrides_runpath=unknown
10416 dynamic_linker="$host_os ld.so"
10417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10418 if test "$GCC" = yes; then
10419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10420 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10421 # if the path contains ";" then we assume it to be the separator
10422 # otherwise default to the standard path separator (i.e. ":") - it is
10423 # assumed that no part of a normal pathname contains ";" but that should
10424 # okay in the real world where ";" in dirpaths is itself problematic.
10425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10432 need_lib_prefix=unknown
10433 hardcode_into_libs=no
10435 # when you set need_version to no, make sure it does not cause -set_version
10436 # flags to be left without arguments
10437 need_version=unknown
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10443 shlibpath_var=LIBPATH
10445 # AIX 3 has no versioning support, so we append a major version to the name.
10446 soname_spec='${libname}${release}${shared_ext}$major'
10453 hardcode_into_libs=yes
10454 if test "$host_cpu" = ia64; then
10455 # AIX 5 supports IA64
10456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10457 shlibpath_var=LD_LIBRARY_PATH
10459 # With GCC up to 2.95.x, collect2 would create an import file
10460 # for dependence libraries. The import file would start with
10461 # the line `#! .'. This would cause the generated library to
10462 # depend on `.', always an invalid library. This was fixed in
10463 # development snapshots of GCC prior to 3.0.
10465 aix4 | aix4.[01] | aix4.[01].*)
10466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10468 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10471 can_build_shared=no
10475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10476 # soname into executable. Probably we can add versioning support to
10477 # collect2, so additional links can be useful in future.
10478 if test "$aix_use_runtimelinking" = yes; then
10479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10480 # instead of lib<name>.a to let people know that these are not
10481 # typical AIX shared libraries.
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 # We preserve .a as extension for shared libraries through AIX4.2
10485 # and later when we are not doing run time linking.
10486 library_names_spec='${libname}${release}.a $libname.a'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LIBPATH
10494 library_names_spec='$libname.ixlibrary $libname.a'
10495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10496 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'
10500 library_names_spec='${libname}${shared_ext}'
10501 dynamic_linker="$host_os ld.so"
10502 shlibpath_var=LIBRARY_PATH
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10513 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10514 # the default ld.so.conf also contains /usr/contrib/lib and
10515 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10516 # libtool to hard-code these into programs
10519 cygwin* | mingw* | pw32*)
10520 version_type=windows
10525 case $GCC,$host_os in
10526 yes,cygwin* | yes,mingw* | yes,pw32*)
10527 library_names_spec='$libname.dll.a'
10528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10529 postinstall_cmds='base_file=`basename \${file}`~
10530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10531 dldir=$destdir/`dirname \$dlpath`~
10532 test -d \$dldir || mkdir -p \$dldir~
10533 $install_prog $dir/$dlname \$dldir/$dlname~
10534 chmod a+x \$dldir/$dlname'
10535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10536 dlpath=$dir/\$dldll~
10538 shlibpath_overrides_runpath=yes
10542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10543 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10547 # MinGW DLLs use traditional 'lib' prefix
10548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10550 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10551 # It is most probably a Windows format PATH printed by
10552 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10553 # path with ; separators, and with drive letters. We can handle the
10554 # drive letters (cygwin fileutils understands them), so leave them,
10555 # especially as we might pass files found there to a mingw objdump,
10556 # which wouldn't understand a cygwinified path. Ahh.
10557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10563 # pw32 DLLs use 'pw' prefix rather than 'lib'
10564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10573 dynamic_linker='Win32 ld.exe'
10574 # FIXME: first we should search . and the directory the executable is in
10578 darwin* | rhapsody*)
10579 dynamic_linker="$host_os dyld"
10580 version_type=darwin
10583 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10584 soname_spec='${libname}${release}${major}$shared_ext'
10585 shlibpath_overrides_runpath=yes
10586 shlibpath_var=DYLD_LIBRARY_PATH
10587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10588 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10589 if test "$GCC" = yes; then
10590 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"`
10592 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10610 freebsd* | dragonfly*)
10611 # DragonFly does not have aout. When/if they implement a new
10612 # versioning mechanism, adjust this.
10613 if test -x /usr/bin/objformat; then
10614 objformat=`/usr/bin/objformat`
10617 freebsd[123]*) objformat=aout ;;
10618 *) objformat=elf ;;
10621 version_type=freebsd-$objformat
10622 case $version_type in
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10633 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10638 freebsd3.[01]* | freebsdelf3.[01]*)
10639 shlibpath_overrides_runpath=yes
10640 hardcode_into_libs=yes
10642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10644 shlibpath_overrides_runpath=no
10645 hardcode_into_libs=yes
10647 freebsd*) # from 4.6 on
10648 shlibpath_overrides_runpath=yes
10649 hardcode_into_libs=yes
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 hardcode_into_libs=yes
10664 hpux9* | hpux10* | hpux11*)
10665 # Give a soname corresponding to the major version so that dld.sl refuses to
10666 # link against other versions.
10673 hardcode_into_libs=yes
10674 dynamic_linker="$host_os dld.so"
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 if test "X$HPUX_IA64_MODE" = X32; then
10680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10688 hardcode_into_libs=yes
10689 dynamic_linker="$host_os dld.sl"
10690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10699 dynamic_linker="$host_os dld.sl"
10700 shlibpath_var=SHLIB_PATH
10701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10706 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10707 postinstall_cmds='chmod 555 $lib'
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=no
10719 hardcode_into_libs=yes
10722 irix5* | irix6* | nonstopux*)
10724 nonstopux*) version_type=nonstopux ;;
10726 if test "$lt_cv_prog_gnu_ld" = yes; then
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10737 irix5* | nonstopux*)
10738 libsuff= shlibsuff=
10741 case $LD in # libtool.m4 will add one of these switches to LD
10742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10743 libsuff= shlibsuff= libmagic=32-bit;;
10744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10745 libsuff=32 shlibsuff=N32 libmagic=N32;;
10746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10747 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10748 *) libsuff= shlibsuff= libmagic=never-match;;
10752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10753 shlibpath_overrides_runpath=no
10754 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10755 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10756 hardcode_into_libs=yes
10759 # No shared lib support for Linux oldld, aout, or coff.
10760 linux*oldld* | linux*aout* | linux*coff*)
10764 # This must be Linux ELF.
10765 linux* | k*bsd*-gnu)
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=no
10774 # This implies no fast_install, which is unacceptable.
10775 # Some rework will be needed to allow for fast_install
10776 # before this can be enabled.
10777 hardcode_into_libs=yes
10779 # Append ld.so.conf contents to the search path
10780 if test -f /etc/ld.so.conf; then
10781 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' ' '`
10782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10785 # We used to test for /lib/ld.so.1 and disable shared libraries on
10786 # powerpc, because MkLinux only supported shared libraries with the
10787 # GNU dynamic linker. Since this was broken with cross compilers,
10788 # most powerpc-linux boxes support dynamic linking these days and
10789 # people can always --disable-shared, the test was removed, and we
10790 # assume the GNU/Linux dynamic linker is in use.
10791 dynamic_linker='GNU/Linux ld.so'
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath=no
10802 hardcode_into_libs=yes
10803 dynamic_linker='NetBSD ld.elf_so'
10810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10813 dynamic_linker='NetBSD (a.out) ld.so'
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 dynamic_linker='NetBSD ld.elf_so'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=yes
10821 hardcode_into_libs=yes
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes
10843 sys_lib_dlsearch_path_spec="/usr/lib"
10845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10848 *) need_version=no ;;
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10855 openbsd2.[89] | openbsd2.[89].*)
10856 shlibpath_overrides_runpath=no
10859 shlibpath_overrides_runpath=yes
10863 shlibpath_overrides_runpath=yes
10868 libname_spec='$name'
10871 library_names_spec='$libname${shared_ext} $libname.a'
10872 dynamic_linker='OS/2 ld.exe'
10873 shlibpath_var=LIBPATH
10876 osf3* | osf4* | osf5*)
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10896 # ldd complains unless libraries are executable
10897 postinstall_cmds='chmod +x $lib'
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 if test "$with_gnu_ld" = yes; then
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 case $host_vendor in
10919 shlibpath_overrides_runpath=no
10921 export_dynamic_flag_spec='${wl}-Blargedynsym'
10922 runpath_var=LD_RUN_PATH
10930 shlibpath_overrides_runpath=no
10931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10937 if test -d /usr/nec ;then
10939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10940 soname_spec='$libname${shared_ext}.$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10946 version_type=freebsd-elf
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 hardcode_into_libs=yes
10953 if test "$with_gnu_ld" = yes; then
10954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10955 shlibpath_overrides_runpath=no
10957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10958 shlibpath_overrides_runpath=yes
10961 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10965 sys_lib_dlsearch_path_spec='/usr/lib'
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 shlibpath_var=LD_LIBRARY_PATH
10979 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10980 echo "${ECHO_T}$dynamic_linker" >&6; }
10981 test "$dynamic_linker" = no && can_build_shared=no
10983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10984 if test "$GCC" = yes; then
10985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10988 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10989 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10991 if test -n "$hardcode_libdir_flag_spec" || \
10992 test -n "$runpath_var" || \
10993 test "X$hardcode_automatic" = "Xyes" ; then
10995 # We can hardcode non-existant directories.
10996 if test "$hardcode_direct" != no &&
10997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10998 # have to relink, otherwise we might link with an installed library
10999 # when we should be linking with a yet-to-be-installed one
11000 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11001 test "$hardcode_minus_L" != no; then
11002 # Linking always hardcodes the temporary library directory.
11003 hardcode_action=relink
11005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11006 hardcode_action=immediate
11009 # We cannot hardcode anything, or else we can only hardcode existing
11011 hardcode_action=unsupported
11013 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11014 echo "${ECHO_T}$hardcode_action" >&6; }
11016 if test "$hardcode_action" = relink; then
11017 # Fast installation is not supported
11018 enable_fast_install=no
11019 elif test "$shlibpath_overrides_runpath" = yes ||
11020 test "$enable_shared" = no; then
11021 # Fast installation is not necessary
11022 enable_fast_install=needless
11027 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11028 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11029 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11030 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11031 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11032 { echo "$as_me:$LINENO: result: yes" >&5
11033 echo "${ECHO_T}yes" >&6; }
11035 # FIXME - insert some real tests, host_os isn't really good enough
11038 if test -n "$STRIP" ; then
11039 striplib="$STRIP -x"
11040 { echo "$as_me:$LINENO: result: yes" >&5
11041 echo "${ECHO_T}yes" >&6; }
11043 { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11048 { echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6; }
11054 if test "x$enable_dlopen" != xyes; then
11055 enable_dlopen=unknown
11056 enable_dlopen_self=unknown
11057 enable_dlopen_self_static=unknown
11064 lt_cv_dlopen="load_add_on"
11066 lt_cv_dlopen_self=yes
11070 lt_cv_dlopen="LoadLibrary"
11075 lt_cv_dlopen="dlopen"
11080 # if libdl is installed we need to link against it
11081 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11082 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 ac_check_lib_save_LIBS=$LIBS
11088 cat >conftest.$ac_ext <<_ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_dl_dlopen=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_lib_dl_dlopen=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11158 if test $ac_cv_lib_dl_dlopen = yes; then
11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162 lt_cv_dlopen="dyld"
11164 lt_cv_dlopen_self=yes
11171 { echo "$as_me:$LINENO: checking for shl_load" >&5
11172 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11173 if test "${ac_cv_func_shl_load+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11184 #define shl_load innocuous_shl_load
11186 /* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char shl_load (); below.
11188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11189 <limits.h> exists even on freestanding compilers. */
11192 # include <limits.h>
11194 # include <assert.h>
11199 /* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
11206 /* The GNU C library defines this for functions which it implements
11207 to always fail with ENOSYS. Some functions are actually named
11208 something starting with __ and the normal name is an alias. */
11209 #if defined __stub_shl_load || defined __stub___shl_load
11216 return shl_load ();
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (ac_try="$ac_link"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_link") 2>conftest.er1
11230 grep -v '^ *+' conftest.er1 >conftest.err
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest$ac_exeext'
11246 { (case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_try") 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_cv_func_shl_load=yes
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ac_cv_func_shl_load=no
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11268 if test $ac_cv_func_shl_load = yes; then
11269 lt_cv_dlopen="shl_load"
11271 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11295 return shl_load ();
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_link") 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest$ac_exeext'
11325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_cv_lib_dld_shl_load=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_cv_lib_dld_shl_load=no
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11347 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11348 if test $ac_cv_lib_dld_shl_load = yes; then
11349 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11351 { echo "$as_me:$LINENO: checking for dlopen" >&5
11352 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11353 if test "${ac_cv_func_dlopen+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11364 #define dlopen innocuous_dlopen
11366 /* System header to define __stub macros and hopefully few prototypes,
11367 which can conflict with char dlopen (); below.
11368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11369 <limits.h> exists even on freestanding compilers. */
11372 # include <limits.h>
11374 # include <assert.h>
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11386 /* The GNU C library defines this for functions which it implements
11387 to always fail with ENOSYS. Some functions are actually named
11388 something starting with __ and the normal name is an alias. */
11389 #if defined __stub_dlopen || defined __stub___dlopen
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_link") 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_func_dlopen=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_func_dlopen=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11446 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11447 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11448 if test $ac_cv_func_dlopen = yes; then
11449 lt_cv_dlopen="dlopen"
11451 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 ac_check_lib_save_LIBS=$LIBS
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (ac_try="$ac_link"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_link") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_lib_dl_dlopen=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_dl_dlopen=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11528 if test $ac_cv_lib_dl_dlopen = yes; then
11529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11532 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lsvld $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11569 grep -v '^ *+' conftest.er1 >conftest.err
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_svld_dlopen=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_cv_lib_svld_dlopen=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11607 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11608 if test $ac_cv_lib_svld_dlopen = yes; then
11609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11611 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11612 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11613 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 ac_check_lib_save_LIBS=$LIBS
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11635 return dld_link ();
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (ac_try="$ac_link"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_link") 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_lib_dld_dld_link=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_cv_lib_dld_dld_link=no
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11688 if test $ac_cv_lib_dld_dld_link = yes; then
11689 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11710 if test "x$lt_cv_dlopen" != xno; then
11716 case $lt_cv_dlopen in
11718 save_CPPFLAGS="$CPPFLAGS"
11719 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11721 save_LDFLAGS="$LDFLAGS"
11722 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725 LIBS="$lt_cv_dlopen_libs $LIBS"
11727 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11728 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11729 if test "${lt_cv_dlopen_self+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 if test "$cross_compiling" = yes; then :
11733 lt_cv_dlopen_self=cross
11735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11736 lt_status=$lt_dlunknown
11737 cat > conftest.$ac_ext <<EOF
11738 #line 11738 "configure"
11739 #include "confdefs.h"
11748 # define LT_DLGLOBAL RTLD_GLOBAL
11751 # define LT_DLGLOBAL DL_GLOBAL
11753 # define LT_DLGLOBAL 0
11757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11758 find out it does not work in some platform. */
11759 #ifndef LT_DLLAZY_OR_NOW
11761 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11764 # define LT_DLLAZY_OR_NOW DL_LAZY
11767 # define LT_DLLAZY_OR_NOW RTLD_NOW
11770 # define LT_DLLAZY_OR_NOW DL_NOW
11772 # define LT_DLLAZY_OR_NOW 0
11780 extern "C" void exit (int);
11783 void fnord() { int i=42;}
11786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11787 int status = $lt_dlunknown;
11791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11793 /* dlclose (self); */
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) >&5 2>/dev/null
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11814 # compilation failed
11815 lt_cv_dlopen_self=no
11822 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11825 if test "x$lt_cv_dlopen_self" = xyes; then
11826 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11827 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11829 if test "${lt_cv_dlopen_self_static+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 if test "$cross_compiling" = yes; then :
11833 lt_cv_dlopen_self_static=cross
11835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836 lt_status=$lt_dlunknown
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11838 "configure"
11839 #include "confdefs.h"
11848 # define LT_DLGLOBAL RTLD_GLOBAL
11851 # define LT_DLGLOBAL DL_GLOBAL
11853 # define LT_DLGLOBAL 0
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858 find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11864 # define LT_DLLAZY_OR_NOW DL_LAZY
11867 # define LT_DLLAZY_OR_NOW RTLD_NOW
11870 # define LT_DLLAZY_OR_NOW DL_NOW
11872 # define LT_DLLAZY_OR_NOW 0
11880 extern "C" void exit (int);
11883 void fnord() { int i=42;}
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893 /* dlclose (self); */
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11906 (./conftest; exit; ) >&5 2>/dev/null
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11922 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11923 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11926 CPPFLAGS="$save_CPPFLAGS"
11927 LDFLAGS="$save_LDFLAGS"
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11944 # Report which library types will actually be built
11945 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11946 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11947 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11948 echo "${ECHO_T}$can_build_shared" >&6; }
11950 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11951 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11952 test "$can_build_shared" = "no" && enable_shared=no
11954 # On AIX, shared libraries and static libraries use the same namespace, and
11955 # are all built from PIC.
11958 test "$enable_shared" = yes && enable_static=no
11959 if test -n "$RANLIB"; then
11960 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11961 postinstall_cmds='$RANLIB $lib'
11966 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11967 test "$enable_shared" = yes && enable_static=no
11971 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11972 echo "${ECHO_T}$enable_shared" >&6; }
11974 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11975 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11976 # Make sure either enable_shared or enable_static is yes.
11977 test "$enable_shared" = yes || enable_static=yes
11978 { echo "$as_me:$LINENO: result: $enable_static" >&5
11979 echo "${ECHO_T}$enable_static" >&6; }
11981 # The else clause should only fire when bootstrapping the
11982 # libtool distribution, otherwise you forgot to ship ltmain.sh
11983 # with your package, and you will get complaints that there are
11984 # no rules to generate ltmain.sh.
11985 if test -f "$ltmain"; then
11986 # See if we are running on zsh, and set the options which allow our commands through
11987 # without removal of \ escapes.
11988 if test -n "${ZSH_VERSION+set}" ; then
11989 setopt NO_GLOB_SUBST
11991 # Now quote all the things that may contain metacharacters while being
11992 # careful not to overquote the AC_SUBSTed values. We take copies of the
11993 # variables and quote the copies for generation of the libtool script.
11994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11998 deplibs_check_method reload_flag reload_cmds need_locks \
11999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12000 lt_cv_sys_global_symbol_to_c_name_address \
12001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12002 old_postinstall_cmds old_postuninstall_cmds \
12006 lt_prog_compiler_wl \
12007 lt_prog_compiler_pic \
12008 lt_prog_compiler_static \
12009 lt_prog_compiler_no_builtin_flag \
12010 export_dynamic_flag_spec \
12011 thread_safe_flag_spec \
12012 whole_archive_flag_spec \
12013 enable_shared_with_static_runtimes \
12015 old_archive_from_new_cmds \
12020 compiler_lib_search_path \
12022 archive_expsym_cmds \
12024 postuninstall_cmds \
12025 old_archive_from_expsyms_cmds \
12026 allow_undefined_flag \
12027 no_undefined_flag \
12028 export_symbols_cmds \
12029 hardcode_libdir_flag_spec \
12030 hardcode_libdir_flag_spec_ld \
12031 hardcode_libdir_separator \
12032 hardcode_automatic \
12034 module_expsym_cmds \
12035 lt_cv_prog_compiler_c_o \
12037 include_expsyms; do
12040 old_archive_cmds | \
12041 old_archive_from_new_cmds | \
12043 archive_expsym_cmds | \
12045 module_expsym_cmds | \
12046 old_archive_from_expsyms_cmds | \
12047 export_symbols_cmds | \
12048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12049 postinstall_cmds | postuninstall_cmds | \
12050 old_postinstall_cmds | old_postuninstall_cmds | \
12051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12052 # Double-quote double-evaled strings.
12053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12062 *'\$0 --fallback-echo"')
12063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12067 cfgfile="${ofile}T"
12068 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12070 { echo "$as_me:$LINENO: creating $ofile" >&5
12071 echo "$as_me: creating $ofile" >&6;}
12073 cat <<__EOF__ >> "$cfgfile"
12076 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12077 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12081 # Free Software Foundation, Inc.
12083 # This file is part of GNU Libtool:
12084 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12086 # This program is free software; you can redistribute it and/or modify
12087 # it under the terms of the GNU General Public License as published by
12088 # the Free Software Foundation; either version 2 of the License, or
12089 # (at your option) any later version.
12091 # This program is distributed in the hope that it will be useful, but
12092 # WITHOUT ANY WARRANTY; without even the implied warranty of
12093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12094 # General Public License for more details.
12096 # You should have received a copy of the GNU General Public License
12097 # along with this program; if not, write to the Free Software
12098 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12100 # As a special exception to the GNU General Public License, if you
12101 # distribute this file as part of a program that contains a
12102 # configuration script generated by Autoconf, you may include it under
12103 # the same distribution terms that you use for the rest of that program.
12105 # A sed program that does not truncate output.
12108 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12109 Xsed="$SED -e 1s/^X//"
12111 # The HP-UX ksh and POSIX shell print the target directory to stdout
12112 # if CDPATH is set.
12113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12115 # The names of the tagged configurations supported by this script.
12118 # ### BEGIN LIBTOOL CONFIG
12120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12122 # Shell to use when invoking shell scripts.
12125 # Whether or not to build shared libraries.
12126 build_libtool_libs=$enable_shared
12128 # Whether or not to build static libraries.
12129 build_old_libs=$enable_static
12131 # Whether or not to add -lc for building shared libraries.
12132 build_libtool_need_lc=$archive_cmds_need_lc
12134 # Whether or not to disallow shared libs when runtime libs are static
12135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12137 # Whether or not to optimize for fast installation.
12138 fast_install=$enable_fast_install
12141 host_alias=$host_alias
12145 # The build system.
12146 build_alias=$build_alias
12150 # An echo program that does not interpret backslashes.
12155 AR_FLAGS=$lt_AR_FLAGS
12160 # LTCC compiler flags.
12161 LTCFLAGS=$lt_LTCFLAGS
12163 # A language-specific compiler.
12166 # Is the compiler the GNU C compiler?
12172 # The linker used to build libraries.
12175 # Whether we need hard or soft links.
12178 # A BSD-compatible nm program.
12181 # A symbol stripping program
12184 # Used to examine libraries when file_magic_cmd begins "file"
12185 MAGIC_CMD=$MAGIC_CMD
12187 # Used on cygwin: DLL creation program.
12190 # Used on cygwin: object dumper.
12193 # Used on cygwin: assembler.
12196 # The name of the directory that contains temporary libtool files.
12199 # How to create reloadable object files.
12200 reload_flag=$lt_reload_flag
12201 reload_cmds=$lt_reload_cmds
12203 # How to pass a linker flag through the compiler.
12204 wl=$lt_lt_prog_compiler_wl
12206 # Object file suffix (normally "o").
12207 objext="$ac_objext"
12209 # Old archive suffix (normally "a").
12212 # Shared library suffix (normally ".so").
12213 shrext_cmds='$shrext_cmds'
12215 # Executable file suffix (normally "").
12218 # Additional compiler flags for building library objects.
12219 pic_flag=$lt_lt_prog_compiler_pic
12222 # What is the maximum length of a command?
12223 max_cmd_len=$lt_cv_sys_max_cmd_len
12225 # Does compiler simultaneously support -c and -o options?
12226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12228 # Must we lock files when doing compilation?
12229 need_locks=$lt_need_locks
12231 # Do we need the lib prefix for modules?
12232 need_lib_prefix=$need_lib_prefix
12234 # Do we need a version for libraries?
12235 need_version=$need_version
12237 # Whether dlopen is supported.
12238 dlopen_support=$enable_dlopen
12240 # Whether dlopen of programs is supported.
12241 dlopen_self=$enable_dlopen_self
12243 # Whether dlopen of statically linked programs is supported.
12244 dlopen_self_static=$enable_dlopen_self_static
12246 # Compiler flag to prevent dynamic linking.
12247 link_static_flag=$lt_lt_prog_compiler_static
12249 # Compiler flag to turn off builtin functions.
12250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12252 # Compiler flag to allow reflexive dlopens.
12253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12255 # Compiler flag to generate shared objects directly from archives.
12256 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12258 # Compiler flag to generate thread-safe objects.
12259 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12261 # Library versioning type.
12262 version_type=$version_type
12264 # Format of library name prefix.
12265 libname_spec=$lt_libname_spec
12267 # List of archive names. First name is the real one, the rest are links.
12268 # The last name is the one that the linker finds with -lNAME.
12269 library_names_spec=$lt_library_names_spec
12271 # The coded name of the library, if different from the real name.
12272 soname_spec=$lt_soname_spec
12274 # Commands used to build and install an old-style archive.
12276 old_archive_cmds=$lt_old_archive_cmds
12277 old_postinstall_cmds=$lt_old_postinstall_cmds
12278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12280 # Create an old-style archive from a shared archive.
12281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12283 # Create a temporary old-style archive to link instead of a shared archive.
12284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12286 # Commands used to build and install a shared archive.
12287 archive_cmds=$lt_archive_cmds
12288 archive_expsym_cmds=$lt_archive_expsym_cmds
12289 postinstall_cmds=$lt_postinstall_cmds
12290 postuninstall_cmds=$lt_postuninstall_cmds
12292 # Commands used to build a loadable module (assumed same as above if empty)
12293 module_cmds=$lt_module_cmds
12294 module_expsym_cmds=$lt_module_expsym_cmds
12296 # Commands to strip libraries.
12297 old_striplib=$lt_old_striplib
12298 striplib=$lt_striplib
12300 # Dependencies to place before the objects being linked to create a
12302 predep_objects=$lt_predep_objects
12304 # Dependencies to place after the objects being linked to create a
12306 postdep_objects=$lt_postdep_objects
12308 # Dependencies to place before the objects being linked to create a
12310 predeps=$lt_predeps
12312 # Dependencies to place after the objects being linked to create a
12314 postdeps=$lt_postdeps
12316 # The library search path used internally by the compiler when linking
12317 # a shared library.
12318 compiler_lib_search_path=$lt_compiler_lib_search_path
12320 # Method to check whether dependent libraries are shared objects.
12321 deplibs_check_method=$lt_deplibs_check_method
12323 # Command to use when deplibs_check_method == file_magic.
12324 file_magic_cmd=$lt_file_magic_cmd
12326 # Flag that allows shared libraries with undefined symbols to be built.
12327 allow_undefined_flag=$lt_allow_undefined_flag
12329 # Flag that forces no undefined symbols.
12330 no_undefined_flag=$lt_no_undefined_flag
12332 # Commands used to finish a libtool library installation in a directory.
12333 finish_cmds=$lt_finish_cmds
12335 # Same as above, but a single script fragment to be evaled but not shown.
12336 finish_eval=$lt_finish_eval
12338 # Take the output of nm and produce a listing of raw symbols and C names.
12339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12341 # Transform the output of nm in a proper C declaration
12342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12344 # Transform the output of nm in a C name address pair
12345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12347 # This is the shared library runtime path variable.
12348 runpath_var=$runpath_var
12350 # This is the shared library path variable.
12351 shlibpath_var=$shlibpath_var
12353 # Is shlibpath searched before the hard-coded library search path?
12354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12356 # How to hardcode a shared library path into an executable.
12357 hardcode_action=$hardcode_action
12359 # Whether we should hardcode library paths into libraries.
12360 hardcode_into_libs=$hardcode_into_libs
12362 # Flag to hardcode \$libdir into a binary during linking.
12363 # This must work even if \$libdir does not exist.
12364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12366 # If ld is used when linking, flag to hardcode \$libdir into
12367 # a binary during linking. This must work even if \$libdir does
12369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12371 # Whether we need a single -rpath flag with a separated argument.
12372 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12375 # resulting binary.
12376 hardcode_direct=$hardcode_direct
12378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12379 # resulting binary.
12380 hardcode_minus_L=$hardcode_minus_L
12382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12383 # the resulting binary.
12384 hardcode_shlibpath_var=$hardcode_shlibpath_var
12386 # Set to yes if building a shared library automatically hardcodes DIR into the library
12387 # and all subsequent libraries and executables linked against it.
12388 hardcode_automatic=$hardcode_automatic
12390 # Variables whose values should be saved in libtool wrapper scripts and
12391 # restored at relink time.
12392 variables_saved_for_relink="$variables_saved_for_relink"
12394 # Whether libtool must link a program against all its dependency libraries.
12395 link_all_deplibs=$link_all_deplibs
12397 # Compile-time system search path for libraries
12398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12400 # Run-time system search path for libraries
12401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12403 # Fix the shell variable \$srcfile for the compiler.
12404 fix_srcfile_path="$fix_srcfile_path"
12406 # Set to yes if exported symbols are required.
12407 always_export_symbols=$always_export_symbols
12409 # The commands to list exported symbols.
12410 export_symbols_cmds=$lt_export_symbols_cmds
12412 # The commands to extract the exported symbol list from a shared archive.
12413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12415 # Symbols that should not be listed in the preloaded symbols.
12416 exclude_expsyms=$lt_exclude_expsyms
12418 # Symbols that must always be exported.
12419 include_expsyms=$lt_include_expsyms
12421 # ### END LIBTOOL CONFIG
12428 cat <<\EOF >> "$cfgfile"
12430 # AIX sometimes has problems with the GCC collect2 program. For some
12431 # reason, if we set the COLLECT_NAMES environment variable, the problems
12432 # vanish in a puff of smoke.
12433 if test "X${COLLECT_NAMES+set}" != Xset; then
12435 export COLLECT_NAMES
12441 # We use sed instead of cat because bash on DJGPP gets confused if
12442 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12443 # text mode, it properly converts lines to CR/LF. This bash problem
12444 # is reportedly fixed, but why not run on old versions too?
12445 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12447 mv -f "$cfgfile" "$ofile" || \
12448 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12452 # If there is no Makefile yet, we rely on a make rule to execute
12453 # `config.status --recheck' to rerun these tests and create the
12454 # libtool script then.
12455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12456 if test -f "$ltmain_in"; then
12457 test -f Makefile && make "$ltmain"
12463 ac_cpp='$CPP $CPPFLAGS'
12464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12471 # Check whether --with-tags was given.
12472 if test "${with_tags+set}" = set; then
12473 withval=$with_tags; tagnames="$withval"
12477 if test -f "$ltmain" && test -n "$tagnames"; then
12478 if test ! -f "${ofile}"; then
12479 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12480 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12483 if test -z "$LTCC"; then
12484 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12485 if test -z "$LTCC"; then
12486 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12487 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12490 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12493 if test -z "$LTCFLAGS"; then
12494 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12497 # Extract list of available tagged configurations in $ofile.
12498 # Note that this assumes the entire list is on one line.
12499 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12502 for tagname in $tagnames; do
12504 # Check whether tagname contains only valid characters
12505 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12507 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12508 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12509 { (exit 1); exit 1; }; }
12513 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12515 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12516 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12517 { (exit 1); exit 1; }; }
12520 # Update the list of available tags.
12521 if test -n "$tagname"; then
12522 echo appending configuration tag \"$tagname\" to $ofile
12526 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12527 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12528 (test "X$CXX" != "Xg++"))) ; then
12530 ac_cpp='$CXXCPP $CPPFLAGS'
12531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538 archive_cmds_need_lc_CXX=no
12539 allow_undefined_flag_CXX=
12540 always_export_symbols_CXX=no
12541 archive_expsym_cmds_CXX=
12542 export_dynamic_flag_spec_CXX=
12543 hardcode_direct_CXX=no
12544 hardcode_libdir_flag_spec_CXX=
12545 hardcode_libdir_flag_spec_ld_CXX=
12546 hardcode_libdir_separator_CXX=
12547 hardcode_minus_L_CXX=no
12548 hardcode_shlibpath_var_CXX=unsupported
12549 hardcode_automatic_CXX=no
12551 module_expsym_cmds_CXX=
12552 link_all_deplibs_CXX=unknown
12553 old_archive_cmds_CXX=$old_archive_cmds
12554 no_undefined_flag_CXX=
12555 whole_archive_flag_spec_CXX=
12556 enable_shared_with_static_runtimes_CXX=no
12558 # Dependencies to place before and after the object being linked:
12559 predep_objects_CXX=
12560 postdep_objects_CXX=
12563 compiler_lib_search_path_CXX=
12565 # Source file extension for C++ test sources.
12568 # Object file extension for compiled C++ test sources.
12572 # Code to be used in simple compile tests
12573 lt_simple_compile_test_code="int some_variable = 0;\n"
12575 # Code to be used in simple link tests
12576 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12580 # If no C compiler was specified, use CC.
12583 # If no C compiler flags were specified, use CFLAGS.
12584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12586 # Allow CC to be a program name with arguments.
12590 # save warnings/boilerplate of simple test code
12591 ac_outfile=conftest.$ac_objext
12592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12594 _lt_compiler_boilerplate=`cat conftest.err`
12597 ac_outfile=conftest.$ac_objext
12598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_linker_boilerplate=`cat conftest.err`
12604 # Allow CC to be a program name with arguments.
12609 lt_save_with_gnu_ld=$with_gnu_ld
12610 lt_save_path_LD=$lt_cv_path_LD
12611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12612 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12614 $as_unset lt_cv_prog_gnu_ld
12616 if test -n "${lt_cv_path_LDCXX+set}"; then
12617 lt_cv_path_LD=$lt_cv_path_LDCXX
12619 $as_unset lt_cv_path_LD
12621 test -z "${LDCXX+set}" || LD=$LDCXX
12625 for cc_temp in $compiler""; do
12627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12636 # We don't want -fno-exception wen compiling C++ code, so set the
12637 # no_builtin_flag separately
12638 if test "$GXX" = yes; then
12639 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12641 lt_prog_compiler_no_builtin_flag_CXX=
12644 if test "$GXX" = yes; then
12645 # Set up default GNU C++ configuration
12648 # Check whether --with-gnu-ld was given.
12649 if test "${with_gnu_ld+set}" = set; then
12650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12656 if test "$GCC" = yes; then
12657 # Check if gcc -print-prog-name=ld gives a path.
12658 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12662 # gcc leaves a trailing carriage return which upsets mingw
12663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12668 # Accept absolute paths.
12670 re_direlt='/[^/][^/]*/\.\./'
12671 # Canonicalize the pathname of ld
12672 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12673 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12674 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12676 test -z "$LD" && LD="$ac_prog"
12679 # If it fails, then pretend we aren't using GCC.
12683 # If it is relative, then search for the first ld in PATH.
12684 with_gnu_ld=unknown
12687 elif test "$with_gnu_ld" = yes; then
12688 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12691 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12694 if test "${lt_cv_path_LD+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 if test -z "$LD"; then
12698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12699 for ac_dir in $PATH; do
12701 test -z "$ac_dir" && ac_dir=.
12702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12703 lt_cv_path_LD="$ac_dir/$ac_prog"
12704 # Check to see if the program is GNU ld. I'd rather use --version,
12705 # but apparently some variants of GNU ld only accept -v.
12706 # Break only if it was the GNU/non-GNU ld that we prefer.
12707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12708 *GNU* | *'with BFD'*)
12709 test "$with_gnu_ld" != no && break
12712 test "$with_gnu_ld" != yes && break
12719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12723 LD="$lt_cv_path_LD"
12724 if test -n "$LD"; then
12725 { echo "$as_me:$LINENO: result: $LD" >&5
12726 echo "${ECHO_T}$LD" >&6; }
12728 { echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6; }
12731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12733 { (exit 1); exit 1; }; }
12734 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12740 case `$LD -v 2>&1 </dev/null` in
12741 *GNU* | *'with BFD'*)
12742 lt_cv_prog_gnu_ld=yes
12745 lt_cv_prog_gnu_ld=no
12749 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12751 with_gnu_ld=$lt_cv_prog_gnu_ld
12755 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12756 # archiving commands below assume that GNU ld is being used.
12757 if test "$with_gnu_ld" = yes; then
12758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 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'
12761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12764 # If archive_cmds runs LD, not CC, wlarc should be empty
12765 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12766 # investigate it a little bit more. (MM)
12769 # ancient GNU ld didn't support --whole-archive et. al.
12770 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12771 grep 'no-whole-archive' > /dev/null; then
12772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12774 whole_archive_flag_spec_CXX=
12780 # A generic and very simple default shared library creation
12781 # command for GNU C++ for the case where it uses the native
12782 # linker, instead of GNU ld. If possible, this setting should
12783 # overridden to take advantage of the native linker features on
12784 # the platform it is being used on.
12785 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12788 # Commands to make compiler produce verbose output that lists
12789 # what "hidden" libraries, object files and flags are used when
12790 # linking a shared library.
12791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12799 # PORTME: fill in a description of your system's C++ link characteristics
12800 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12805 # FIXME: insert proper C++ library support
12809 if test "$host_cpu" = ia64; then
12810 # On IA64, the linker does run time linking by default, so we don't
12811 # have to do anything special.
12812 aix_use_runtimelinking=no
12813 exp_sym_flag='-Bexport'
12816 aix_use_runtimelinking=no
12818 # Test if we are trying to use run time linking or normal
12819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12820 # need to do runtime linking.
12821 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12822 for ld_flag in $LDFLAGS; do
12825 aix_use_runtimelinking=yes
12833 exp_sym_flag='-bexport'
12834 no_entry_flag='-bnoentry'
12837 # When large executables or shared objects are built, AIX ld can
12838 # have problems creating the table of contents. If linking a library
12839 # or program results in "error TOC overflow" add -mminimal-toc to
12840 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12841 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12843 archive_cmds_CXX=''
12844 hardcode_direct_CXX=yes
12845 hardcode_libdir_separator_CXX=':'
12846 link_all_deplibs_CXX=yes
12848 if test "$GXX" = yes; then
12849 case $host_os in aix4.[012]|aix4.[012].*)
12850 # We only want to do this on AIX 4.2 and lower, the check
12851 # below for broken collect2 doesn't work under 4.3+
12852 collect2name=`${CC} -print-prog-name=collect2`
12853 if test -f "$collect2name" && \
12854 strings "$collect2name" | grep resolve_lib_name >/dev/null
12856 # We have reworked collect2
12857 hardcode_direct_CXX=yes
12859 # We have old collect2
12860 hardcode_direct_CXX=unsupported
12861 # It fails to find uninstalled libraries when the uninstalled
12862 # path is not listed in the libpath. Setting hardcode_minus_L
12863 # to unsupported forces relinking
12864 hardcode_minus_L_CXX=yes
12865 hardcode_libdir_flag_spec_CXX='-L$libdir'
12866 hardcode_libdir_separator_CXX=
12870 shared_flag='-shared'
12871 if test "$aix_use_runtimelinking" = yes; then
12872 shared_flag="$shared_flag "'${wl}-G'
12876 if test "$host_cpu" = ia64; then
12877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12878 # chokes on -Wl,-G. The following line is correct:
12881 if test "$aix_use_runtimelinking" = yes; then
12882 shared_flag='${wl}-G'
12884 shared_flag='${wl}-bM:SRE'
12889 # It seems that -bexpall does not export symbols beginning with
12890 # underscore (_), so it is better to generate a list of symbols to export.
12891 always_export_symbols_CXX=yes
12892 if test "$aix_use_runtimelinking" = yes; then
12893 # Warning - without using the other runtime loading flags (-brtl),
12894 # -berok will link without error, but may produce a broken library.
12895 allow_undefined_flag_CXX='-berok'
12896 # Determine the default libpath from the value encoded in an empty executable.
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } &&
12926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12927 { (case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_try") 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest$ac_exeext'
12937 { (case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942 (eval "$ac_try") 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12949 # Check for a 64-bit object if we didn't find anything.
12950 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; }
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12965 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"
12967 if test "$host_cpu" = ia64; then
12968 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12969 allow_undefined_flag_CXX="-z nodefs"
12970 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"
12972 # Determine the default libpath from the value encoded in an empty executable.
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13025 # Check for a 64-bit object if we didn't find anything.
13026 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; }
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 # Warning - without using the other run time loading flags,
13041 # -berok will link without error, but may produce a broken library.
13042 no_undefined_flag_CXX=' ${wl}-bernotok'
13043 allow_undefined_flag_CXX=' ${wl}-berok'
13044 # Exported symbols can be pulled into shared objects from archives
13045 whole_archive_flag_spec_CXX='$convenience'
13046 archive_cmds_need_lc_CXX=yes
13047 # This is similar to how AIX traditionally builds its shared libraries.
13048 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'
13054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13055 allow_undefined_flag_CXX=unsupported
13056 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13057 # support --undefined. This deserves some investigation. FIXME
13058 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13065 case $cc_basename in
13067 # FIXME: insert proper C++ library support
13073 cygwin* | mingw* | pw32*)
13074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13075 # as there is no search path for DLLs.
13076 hardcode_libdir_flag_spec_CXX='-L$libdir'
13077 allow_undefined_flag_CXX=unsupported
13078 always_export_symbols_CXX=no
13079 enable_shared_with_static_runtimes_CXX=yes
13081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13082 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'
13083 # If the export-symbols file already is a .def file (1st line
13084 # is EXPORTS), use it as is; otherwise, prepend...
13085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13086 cp $export_symbols $output_objdir/$soname.def;
13088 echo EXPORTS > $output_objdir/$soname.def;
13089 cat $export_symbols >> $output_objdir/$soname.def;
13091 $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'
13096 darwin* | rhapsody*)
13098 rhapsody* | darwin1.[012])
13099 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13105 case ${MACOSX_DEPLOYMENT_TARGET} in
13107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13110 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13116 archive_cmds_need_lc_CXX=no
13117 hardcode_direct_CXX=no
13118 hardcode_automatic_CXX=yes
13119 hardcode_shlibpath_var_CXX=unsupported
13120 whole_archive_flag_spec_CXX=''
13121 link_all_deplibs_CXX=yes
13123 if test "$GXX" = yes ; then
13124 lt_int_apple_cc_single_mod=no
13125 output_verbose_link_cmd='echo'
13126 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13127 lt_int_apple_cc_single_mod=yes
13129 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13132 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'
13134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13137 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}'
13139 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}'
13141 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}'
13143 case $cc_basename in
13145 output_verbose_link_cmd='echo'
13146 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'
13147 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13149 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}'
13150 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}'
13160 case $cc_basename in
13162 # FIXME: insert proper C++ library support
13166 # Green Hills C++ Compiler
13167 # FIXME: insert proper C++ library support
13171 # FIXME: insert proper C++ library support
13177 # C++ shared libraries reported to be fairly broken before switch to ELF
13181 archive_cmds_need_lc_CXX=no
13183 freebsd* | dragonfly*)
13184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13192 hardcode_libdir_separator_CXX=:
13193 export_dynamic_flag_spec_CXX='${wl}-E'
13194 hardcode_direct_CXX=yes
13195 hardcode_minus_L_CXX=yes # Not in the search PATH,
13196 # but as the default
13197 # location of the library.
13199 case $cc_basename in
13201 # FIXME: insert proper C++ library support
13205 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'
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13210 # There doesn't appear to be a way to prevent this compiler from
13211 # explicitly linking system object files so we need to strip them
13212 # from the output so that they don't get included in the library
13214 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'
13217 if test "$GXX" = yes; then
13218 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'
13220 # FIXME: insert proper C++ library support
13227 if test $with_gnu_ld = no; then
13228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13229 hardcode_libdir_separator_CXX=:
13233 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13236 export_dynamic_flag_spec_CXX='${wl}-E'
13242 hardcode_direct_CXX=no
13243 hardcode_shlibpath_var_CXX=no
13246 hardcode_direct_CXX=yes
13247 hardcode_minus_L_CXX=yes # Not in the search PATH,
13248 # but as the default
13249 # location of the library.
13253 case $cc_basename in
13255 # FIXME: insert proper C++ library support
13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13274 # There doesn't appear to be a way to prevent this compiler from
13275 # explicitly linking system object files so we need to strip them
13276 # from the output so that they don't get included in the library
13278 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'
13281 if test "$GXX" = yes; then
13282 if test $with_gnu_ld = no; then
13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291 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'
13296 # FIXME: insert proper C++ library support
13303 hardcode_direct_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306 export_dynamic_flag_spec_CXX='${wl}-E'
13307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308 # Instead, shared libraries are loaded at an image base (0x10000000 by
13309 # default) and relocated if they conflict, which is a slow very memory
13310 # consuming and fragmenting process. To avoid this, we pick a random,
13311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13313 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'
13314 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'
13317 case $cc_basename in
13320 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'
13322 # Archives containing C++ object files must be created using
13323 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13324 # necessary to make sure instantiated templates are included
13326 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13329 if test "$GXX" = yes; then
13330 if test "$with_gnu_ld" = no; then
13331 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'
13333 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'
13336 link_all_deplibs_CXX=yes
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_CXX=:
13342 linux* | k*bsd*-gnu)
13343 case $cc_basename in
13345 # Kuck and Associates, Inc. (KAI) C++ Compiler
13347 # KCC will only create a shared library if the output file
13348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13349 # to its proper name (with version) after linking.
13350 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'
13351 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'
13352 # Commands to make compiler produce verbose output that lists
13353 # what "hidden" libraries, object files and flags are used when
13354 # linking a shared library.
13356 # There doesn't appear to be a way to prevent this compiler from
13357 # explicitly linking system object files so we need to strip them
13358 # from the output so that they don't get included in the library
13360 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'
13362 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13365 # Archives containing C++ object files must be created using
13366 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13372 # version 8.0 and above of icpc choke on multiply defined symbols
13373 # if we add $predep_objects and $postdep_objects, however 7.1 and
13374 # earlier do not add the objects themselves.
13375 case `$CC -V 2>&1` in
13377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378 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'
13380 *) # Version 8.0 or newer
13383 ia64*) tmp_idyn=' -i_dynamic';;
13385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13389 archive_cmds_need_lc_CXX=no
13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13395 # Portland Group C++ compiler
13396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13397 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'
13399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13401 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'
13405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13406 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'
13408 runpath_var=LD_RUN_PATH
13409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13410 hardcode_libdir_separator_CXX=:
13412 # Commands to make compiler produce verbose output that lists
13413 # what "hidden" libraries, object files and flags are used when
13414 # linking a shared library.
13416 # There doesn't appear to be a way to prevent this compiler from
13417 # explicitly linking system object files so we need to strip them
13418 # from the output so that they don't get included in the library
13420 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'
13425 # FIXME: insert proper C++ library support
13429 # FIXME: insert proper C++ library support
13433 case $cc_basename in
13435 # FIXME: insert proper C++ library support
13439 # FIXME: insert proper C++ library support
13444 netbsd* | netbsdelf*-gnu)
13445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13448 hardcode_libdir_flag_spec_CXX='-R$libdir'
13449 hardcode_direct_CXX=yes
13450 hardcode_shlibpath_var_CXX=no
13452 # Workaround some broken pre-1.5 toolchains
13453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13456 # C++ shared libraries are fairly broken
13460 hardcode_direct_CXX=yes
13461 hardcode_shlibpath_var_CXX=no
13462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13466 export_dynamic_flag_spec_CXX='${wl}-E'
13467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13469 output_verbose_link_cmd='echo'
13472 case $cc_basename in
13474 # Kuck and Associates, Inc. (KAI) C++ Compiler
13476 # KCC will only create a shared library if the output file
13477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13478 # to its proper name (with version) after linking.
13479 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'
13481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13482 hardcode_libdir_separator_CXX=:
13484 # Archives containing C++ object files must be created using
13485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13490 # Rational C++ 2.4.1
13491 # FIXME: insert proper C++ library support
13495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13496 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'
13498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13499 hardcode_libdir_separator_CXX=:
13501 # Commands to make compiler produce verbose output that lists
13502 # what "hidden" libraries, object files and flags are used when
13503 # linking a shared library.
13505 # There doesn't appear to be a way to prevent this compiler from
13506 # explicitly linking system object files so we need to strip them
13507 # from the output so that they don't get included in the library
13509 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'
13512 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13514 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'
13516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13517 hardcode_libdir_separator_CXX=:
13519 # Commands to make compiler produce verbose output that lists
13520 # what "hidden" libraries, object files and flags are used when
13521 # linking a shared library.
13522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13525 # FIXME: insert proper C++ library support
13532 case $cc_basename in
13534 # Kuck and Associates, Inc. (KAI) C++ Compiler
13536 # KCC will only create a shared library if the output file
13537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538 # to its proper name (with version) after linking.
13539 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'
13541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13542 hardcode_libdir_separator_CXX=:
13544 # Archives containing C++ object files must be created using
13545 # the KAI C++ compiler.
13546 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13549 # Rational C++ 2.4.1
13550 # FIXME: insert proper C++ library support
13554 allow_undefined_flag_CXX=' -expect_unresolved \*'
13555 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'
13556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13557 echo "-hidden">> $lib.exp~
13558 $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~
13561 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13562 hardcode_libdir_separator_CXX=:
13564 # Commands to make compiler produce verbose output that lists
13565 # what "hidden" libraries, object files and flags are used when
13566 # linking a shared library.
13568 # There doesn't appear to be a way to prevent this compiler from
13569 # explicitly linking system object files so we need to strip them
13570 # from the output so that they don't get included in the library
13572 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'
13575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577 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'
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13580 hardcode_libdir_separator_CXX=:
13582 # Commands to make compiler produce verbose output that lists
13583 # what "hidden" libraries, object files and flags are used when
13584 # linking a shared library.
13585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13588 # FIXME: insert proper C++ library support
13595 # FIXME: insert proper C++ library support
13599 case $cc_basename in
13602 # FIXME: insert proper C++ library support
13607 # FIXME: insert proper C++ library support
13611 # FIXME: insert proper C++ library support
13617 case $cc_basename in
13619 # Sun C++ 4.2, 5.x and Centerline C++
13620 archive_cmds_need_lc_CXX=yes
13621 no_undefined_flag_CXX=' -zdefs'
13622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13624 $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'
13626 hardcode_libdir_flag_spec_CXX='-R$libdir'
13627 hardcode_shlibpath_var_CXX=no
13629 solaris2.[0-5] | solaris2.[0-5].*) ;;
13631 # The C++ compiler is used as linker so we must use $wl
13632 # flag to pass the commands to the underlying system
13633 # linker. We must also pass each convience library through
13634 # to the system linker between allextract/defaultextract.
13635 # The C++ compiler will combine linker options so we
13636 # cannot just pass the convience library names through
13638 # Supported since Solaris 2.6 (maybe 2.5.1?)
13639 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'
13642 link_all_deplibs_CXX=yes
13644 output_verbose_link_cmd='echo'
13646 # Archives containing C++ object files must be created using
13647 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13648 # necessary to make sure instantiated templates are included
13650 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13653 # Green Hills C++ Compiler
13654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13656 # The C++ compiler must be used to create the archive.
13657 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13660 # GNU C++ compiler with Solaris linker
13661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13662 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13663 if $CC --version | grep -v '^2\.7' > /dev/null; then
13664 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13665 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13666 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13668 # Commands to make compiler produce verbose output that lists
13669 # what "hidden" libraries, object files and flags are used when
13670 # linking a shared library.
13671 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13673 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13675 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13676 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13677 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13679 # Commands to make compiler produce verbose output that lists
13680 # what "hidden" libraries, object files and flags are used when
13681 # linking a shared library.
13682 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13685 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13691 no_undefined_flag_CXX='${wl}-z,text'
13692 archive_cmds_need_lc_CXX=no
13693 hardcode_shlibpath_var_CXX=no
13694 runpath_var='LD_RUN_PATH'
13696 case $cc_basename in
13698 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13702 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 sysv5* | sco3.2v5* | sco5v6*)
13708 # Note: We can NOT use -z defs as we might desire, because we do not
13709 # link with -lc, and that would cause any symbols used from libc to
13710 # always be unresolved, which means just about no library would
13711 # ever link correctly. If we're not using GNU ld we use -z text
13712 # though, which does catch some bad symbols but isn't as heavy-handed
13714 # For security reasons, it is highly recommended that you always
13715 # use absolute paths for naming shared libraries, and exclude the
13716 # DT_RUNPATH tag from executables and libraries. But doing so
13717 # requires that you compile everything twice, which is a pain.
13718 # So that behaviour is only enabled if SCOABSPATH is set to a
13719 # non-empty value in the environment. Most likely only useful for
13720 # creating official distributions of packages.
13721 # This is a hack until libtool officially supports absolute path
13722 # names for shared libraries.
13723 no_undefined_flag_CXX='${wl}-z,text'
13724 allow_undefined_flag_CXX='${wl}-z,nodefs'
13725 archive_cmds_need_lc_CXX=no
13726 hardcode_shlibpath_var_CXX=no
13727 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13728 hardcode_libdir_separator_CXX=':'
13729 link_all_deplibs_CXX=yes
13730 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13731 runpath_var='LD_RUN_PATH'
13733 case $cc_basename in
13735 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 case $cc_basename in
13747 # NonStop-UX NCC 3.20
13748 # FIXME: insert proper C++ library support
13752 # FIXME: insert proper C++ library support
13758 # FIXME: insert proper C++ library support
13762 # FIXME: insert proper C++ library support
13766 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13767 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13768 test "$ld_shlibs_CXX" = no && can_build_shared=no
13774 cat > conftest.$ac_ext <<EOF
13778 Foo (void) { a = 0; }
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; then
13789 # Parse the compiler output and extract the necessary
13790 # objects, libraries and library flags.
13792 # Sentinel used to keep track of whether or not we are before
13793 # the conftest object file.
13794 pre_test_object_deps_done=no
13796 # The `*' in the case matches for architectures that use `case' in
13797 # $output_verbose_cmd can trigger glob expansion during the loop
13798 # eval without this substitution.
13799 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13801 for p in `eval $output_verbose_link_cmd`; do
13805 # Some compilers place space between "-{L,R}" and the path.
13806 # Remove the space.
13807 if test $p = "-L" \
13808 || test $p = "-R"; then
13815 if test "$pre_test_object_deps_done" = no; then
13818 # Internal compiler library paths should come after those
13819 # provided the user. The postdeps already come after the
13820 # user supplied libs so there is no need to process them.
13821 if test -z "$compiler_lib_search_path_CXX"; then
13822 compiler_lib_search_path_CXX="${prev}${p}"
13824 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13827 # The "-l" case would never come before the object being
13828 # linked, so don't bother handling this case.
13831 if test -z "$postdeps_CXX"; then
13832 postdeps_CXX="${prev}${p}"
13834 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13840 # This assumes that the test object file only shows up
13841 # once in the compiler output.
13842 if test "$p" = "conftest.$objext"; then
13843 pre_test_object_deps_done=yes
13847 if test "$pre_test_object_deps_done" = no; then
13848 if test -z "$predep_objects_CXX"; then
13849 predep_objects_CXX="$p"
13851 predep_objects_CXX="$predep_objects_CXX $p"
13854 if test -z "$postdep_objects_CXX"; then
13855 postdep_objects_CXX="$p"
13857 postdep_objects_CXX="$postdep_objects_CXX $p"
13862 *) ;; # Ignore the rest.
13870 echo "libtool.m4: error: problem compiling CXX test program"
13873 $rm -f confest.$objext
13875 # PORTME: override above test on systems where it is broken
13878 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13879 # hack all around it, let's just trust "g++" to DTRT.
13880 predep_objects_CXX=
13881 postdep_objects_CXX=
13886 case $cc_basename in
13888 # Adding this requires a known-good setup of shared libraries for
13889 # Sun compiler versions before 5.6, else PIC objects from an old
13890 # archive will be linked into the output, leading to subtle bugs.
13891 postdeps_CXX='-lCstd -lCrun'
13898 case " $postdeps_CXX " in
13899 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13902 lt_prog_compiler_wl_CXX=
13903 lt_prog_compiler_pic_CXX=
13904 lt_prog_compiler_static_CXX=
13906 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13909 # C++ specific cases for pic, static, wl, etc.
13910 if test "$GXX" = yes; then
13911 lt_prog_compiler_wl_CXX='-Wl,'
13912 lt_prog_compiler_static_CXX='-static'
13916 # All AIX code is PIC.
13917 if test "$host_cpu" = ia64; then
13918 # AIX 5 now supports IA64 processor
13919 lt_prog_compiler_static_CXX='-Bstatic'
13923 # FIXME: we need at least 68020 code to build shared libraries, but
13924 # adding the `-m68020' flag to GCC prevents building anything better,
13926 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13928 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929 # PIC is the default for these OSes.
13931 mingw* | os2* | pw32*)
13932 # This hack is so that the source file can tell whether it is being
13933 # built for inclusion in a dll (and should export symbols for example).
13934 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13936 darwin* | rhapsody*)
13937 # PIC is the default on this platform
13938 # Common symbols not allowed in MH_DYLIB files
13939 lt_prog_compiler_pic_CXX='-fno-common'
13942 # DJGPP does not support shared libraries at all
13943 lt_prog_compiler_pic_CXX=
13946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13947 # Instead, we relocate shared libraries at runtime.
13950 if test -d /usr/nec; then
13951 lt_prog_compiler_pic_CXX=-Kconform_pic
13955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13956 # not for PA HP-UX.
13961 lt_prog_compiler_pic_CXX='-fPIC'
13966 lt_prog_compiler_pic_CXX='-fPIC'
13972 # All AIX code is PIC.
13973 if test "$host_cpu" = ia64; then
13974 # AIX 5 now supports IA64 processor
13975 lt_prog_compiler_static_CXX='-Bstatic'
13977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13981 case $cc_basename in
13983 # Green Hills C++ Compiler
13984 # _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"
13989 # PIC is the default on this platform
13990 # Common symbols not allowed in MH_DYLIB files
13991 case $cc_basename in
13993 lt_prog_compiler_pic_CXX='-qnocommon'
13994 lt_prog_compiler_wl_CXX='-Wl,'
13999 case $cc_basename in
14001 lt_prog_compiler_pic_CXX='-KPIC'
14004 # Green Hills C++ Compiler
14005 lt_prog_compiler_pic_CXX='-pic'
14011 freebsd* | dragonfly*)
14012 # FreeBSD uses GNU C++
14014 hpux9* | hpux10* | hpux11*)
14015 case $cc_basename in
14017 lt_prog_compiler_wl_CXX='-Wl,'
14018 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14019 if test "$host_cpu" != ia64; then
14020 lt_prog_compiler_pic_CXX='+Z'
14024 lt_prog_compiler_wl_CXX='-Wl,'
14025 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14031 lt_prog_compiler_pic_CXX='+Z'
14040 # This is c89, which is MS Visual C++ (no shared libs)
14041 # Anyone wants to do a port?
14043 irix5* | irix6* | nonstopux*)
14044 case $cc_basename in
14046 lt_prog_compiler_wl_CXX='-Wl,'
14047 lt_prog_compiler_static_CXX='-non_shared'
14048 # CC pic flag -KPIC is the default.
14054 linux* | k*bsd*-gnu)
14055 case $cc_basename in
14058 lt_prog_compiler_wl_CXX='--backend -Wl,'
14059 lt_prog_compiler_pic_CXX='-fPIC'
14063 lt_prog_compiler_wl_CXX='-Wl,'
14064 lt_prog_compiler_pic_CXX='-KPIC'
14065 lt_prog_compiler_static_CXX='-static'
14068 # Portland Group C++ compiler.
14069 lt_prog_compiler_wl_CXX='-Wl,'
14070 lt_prog_compiler_pic_CXX='-fpic'
14071 lt_prog_compiler_static_CXX='-Bstatic'
14075 # Make sure the PIC flag is empty. It appears that all Alpha
14076 # Linux and Compaq Tru64 Unix objects are PIC.
14077 lt_prog_compiler_pic_CXX=
14078 lt_prog_compiler_static_CXX='-non_shared'
14089 case $cc_basename in
14091 lt_prog_compiler_pic_CXX='-W c,exportall'
14097 netbsd* | netbsdelf*-gnu)
14099 osf3* | osf4* | osf5*)
14100 case $cc_basename in
14102 lt_prog_compiler_wl_CXX='--backend -Wl,'
14105 # Rational C++ 2.4.1
14106 lt_prog_compiler_pic_CXX='-pic'
14109 # Digital/Compaq C++
14110 lt_prog_compiler_wl_CXX='-Wl,'
14111 # Make sure the PIC flag is empty. It appears that all Alpha
14112 # Linux and Compaq Tru64 Unix objects are PIC.
14113 lt_prog_compiler_pic_CXX=
14114 lt_prog_compiler_static_CXX='-non_shared'
14123 case $cc_basename in
14125 # Sun C++ 4.2, 5.x and Centerline C++
14126 lt_prog_compiler_pic_CXX='-KPIC'
14127 lt_prog_compiler_static_CXX='-Bstatic'
14128 lt_prog_compiler_wl_CXX='-Qoption ld '
14131 # Green Hills C++ Compiler
14132 lt_prog_compiler_pic_CXX='-PIC'
14139 case $cc_basename in
14142 lt_prog_compiler_pic_CXX='-pic'
14143 lt_prog_compiler_static_CXX='-Bstatic'
14147 lt_prog_compiler_pic_CXX='-pic'
14154 case $cc_basename in
14156 # NonStop-UX NCC 3.20
14157 lt_prog_compiler_pic_CXX='-KPIC'
14163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14164 case $cc_basename in
14166 lt_prog_compiler_wl_CXX='-Wl,'
14167 lt_prog_compiler_pic_CXX='-KPIC'
14168 lt_prog_compiler_static_CXX='-Bstatic'
14175 lt_prog_compiler_can_build_shared_CXX=no
14180 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14181 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14184 # Check to make sure the PIC flag actually works.
14186 if test -n "$lt_prog_compiler_pic_CXX"; then
14188 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14189 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14190 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 lt_prog_compiler_pic_works_CXX=no
14194 ac_outfile=conftest.$ac_objext
14195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14196 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14197 # Insert the option either (1) after the last *FLAGS variable, or
14198 # (2) before a word containing "conftest.", or (3) at the end.
14199 # Note that $ac_compile itself does not contain backslashes and begins
14200 # with a dollar sign (not a hyphen), so the echo should work correctly.
14201 # The option is referenced via a variable to avoid confusing sed.
14202 lt_compile=`echo "$ac_compile" | $SED \
14203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14205 -e 's:$: $lt_compiler_flag:'`
14206 (eval echo "\"\$as_me:14206: $lt_compile\"" >&5)
14207 (eval "$lt_compile" 2>conftest.err)
14209 cat conftest.err >&5
14210 echo "$as_me:14210: \$? = $ac_status" >&5
14211 if (exit $ac_status) && test -s "$ac_outfile"; then
14212 # The compiler can only warn and ignore the option if not recognized
14213 # So say no if there are warnings other than the usual output.
14214 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14217 lt_prog_compiler_pic_works_CXX=yes
14223 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14224 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14226 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14227 case $lt_prog_compiler_pic_CXX in
14229 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14232 lt_prog_compiler_pic_CXX=
14233 lt_prog_compiler_can_build_shared_CXX=no
14238 # For platforms which do not support PIC, -DPIC is meaningless:
14240 lt_prog_compiler_pic_CXX=
14243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14248 # Check to make sure the static flag actually works.
14250 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14251 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14252 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14253 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 lt_prog_compiler_static_works_CXX=no
14257 save_LDFLAGS="$LDFLAGS"
14258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14259 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14261 # The linker can only warn and ignore the option if not recognized
14262 # So say no if there are warnings
14263 if test -s conftest.err; then
14264 # Append any errors to the config.log.
14265 cat conftest.err 1>&5
14266 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14268 if diff conftest.exp conftest.er2 >/dev/null; then
14269 lt_prog_compiler_static_works_CXX=yes
14272 lt_prog_compiler_static_works_CXX=yes
14276 LDFLAGS="$save_LDFLAGS"
14279 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14280 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14282 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14285 lt_prog_compiler_static_CXX=
14289 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14290 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14291 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 lt_cv_prog_compiler_c_o_CXX=no
14295 $rm -r conftest 2>/dev/null
14299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14301 lt_compiler_flag="-o out/conftest2.$ac_objext"
14302 # Insert the option either (1) after the last *FLAGS variable, or
14303 # (2) before a word containing "conftest.", or (3) at the end.
14304 # Note that $ac_compile itself does not contain backslashes and begins
14305 # with a dollar sign (not a hyphen), so the echo should work correctly.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:14310: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>out/conftest.err)
14313 cat out/conftest.err >&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14317 # The compiler can only warn and ignore the option if not recognized
14318 # So say no if there are warnings
14319 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14322 lt_cv_prog_compiler_c_o_CXX=yes
14327 # SGI C++ compiler will create directory out/ii_files/ for
14328 # template instantiation
14329 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14330 $rm out/* && rmdir out
14336 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14340 hard_links="nottested"
14341 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14342 # do not overwrite the value of need_locks provided by the user
14343 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14349 ln conftest.a conftest.b 2>&5 || hard_links=no
14350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14351 { echo "$as_me:$LINENO: result: $hard_links" >&5
14352 echo "${ECHO_T}$hard_links" >&6; }
14353 if test "$hard_links" = no; then
14354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14362 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14368 # If we're using GNU nm, then we don't want the "-C" option.
14369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14370 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14371 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'
14373 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'
14377 export_symbols_cmds_CXX="$ltdll_cmds"
14380 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'
14382 linux* | k*bsd*-gnu)
14383 link_all_deplibs_CXX=no
14386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14390 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14391 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14392 test "$ld_shlibs_CXX" = no && can_build_shared=no
14395 # Do we need to explicitly link libc?
14397 case "x$archive_cmds_need_lc_CXX" in
14399 # Assume -lc should be added
14400 archive_cmds_need_lc_CXX=yes
14402 if test "$enable_shared" = yes && test "$GCC" = yes; then
14403 case $archive_cmds_CXX in
14405 # FIXME: we may have to deal with multi-command sequences.
14408 # Test whether the compiler implicitly links with -lc since on some
14409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14410 # to ld, don't add -lc before -lgcc.
14411 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } 2>conftest.err; then
14423 libobjs=conftest.$ac_objext
14425 wl=$lt_prog_compiler_wl_CXX
14426 pic_flag=$lt_prog_compiler_pic_CXX
14432 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14433 allow_undefined_flag_CXX=
14434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14435 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }
14440 archive_cmds_need_lc_CXX=no
14442 archive_cmds_need_lc_CXX=yes
14444 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14446 cat conftest.err 1>&5
14449 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14450 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14457 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14459 library_names_spec=
14460 libname_spec='lib$name'
14464 postuninstall_cmds=
14468 shlibpath_overrides_runpath=unknown
14470 dynamic_linker="$host_os ld.so"
14471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14472 if test "$GCC" = yes; then
14473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14474 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14475 # if the path contains ";" then we assume it to be the separator
14476 # otherwise default to the standard path separator (i.e. ":") - it is
14477 # assumed that no part of a normal pathname contains ";" but that should
14478 # okay in the real world where ";" in dirpaths is itself problematic.
14479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14484 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14486 need_lib_prefix=unknown
14487 hardcode_into_libs=no
14489 # when you set need_version to no, make sure it does not cause -set_version
14490 # flags to be left without arguments
14491 need_version=unknown
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14497 shlibpath_var=LIBPATH
14499 # AIX 3 has no versioning support, so we append a major version to the name.
14500 soname_spec='${libname}${release}${shared_ext}$major'
14507 hardcode_into_libs=yes
14508 if test "$host_cpu" = ia64; then
14509 # AIX 5 supports IA64
14510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14511 shlibpath_var=LD_LIBRARY_PATH
14513 # With GCC up to 2.95.x, collect2 would create an import file
14514 # for dependence libraries. The import file would start with
14515 # the line `#! .'. This would cause the generated library to
14516 # depend on `.', always an invalid library. This was fixed in
14517 # development snapshots of GCC prior to 3.0.
14519 aix4 | aix4.[01] | aix4.[01].*)
14520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14522 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14525 can_build_shared=no
14529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14530 # soname into executable. Probably we can add versioning support to
14531 # collect2, so additional links can be useful in future.
14532 if test "$aix_use_runtimelinking" = yes; then
14533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14534 # instead of lib<name>.a to let people know that these are not
14535 # typical AIX shared libraries.
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 # We preserve .a as extension for shared libraries through AIX4.2
14539 # and later when we are not doing run time linking.
14540 library_names_spec='${libname}${release}.a $libname.a'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14543 shlibpath_var=LIBPATH
14548 library_names_spec='$libname.ixlibrary $libname.a'
14549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14550 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'
14554 library_names_spec='${libname}${shared_ext}'
14555 dynamic_linker="$host_os ld.so"
14556 shlibpath_var=LIBRARY_PATH
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14568 # the default ld.so.conf also contains /usr/contrib/lib and
14569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14570 # libtool to hard-code these into programs
14573 cygwin* | mingw* | pw32*)
14574 version_type=windows
14579 case $GCC,$host_os in
14580 yes,cygwin* | yes,mingw* | yes,pw32*)
14581 library_names_spec='$libname.dll.a'
14582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14583 postinstall_cmds='base_file=`basename \${file}`~
14584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14585 dldir=$destdir/`dirname \$dlpath`~
14586 test -d \$dldir || mkdir -p \$dldir~
14587 $install_prog $dir/$dlname \$dldir/$dlname~
14588 chmod a+x \$dldir/$dlname'
14589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14590 dlpath=$dir/\$dldll~
14592 shlibpath_overrides_runpath=yes
14596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14601 # MinGW DLLs use traditional 'lib' prefix
14602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14605 # It is most probably a Windows format PATH printed by
14606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14607 # path with ; separators, and with drive letters. We can handle the
14608 # drive letters (cygwin fileutils understands them), so leave them,
14609 # especially as we might pass files found there to a mingw objdump,
14610 # which wouldn't understand a cygwinified path. Ahh.
14611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14617 # pw32 DLLs use 'pw' prefix rather than 'lib'
14618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14627 dynamic_linker='Win32 ld.exe'
14628 # FIXME: first we should search . and the directory the executable is in
14632 darwin* | rhapsody*)
14633 dynamic_linker="$host_os dyld"
14634 version_type=darwin
14637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14638 soname_spec='${libname}${release}${major}$shared_ext'
14639 shlibpath_overrides_runpath=yes
14640 shlibpath_var=DYLD_LIBRARY_PATH
14641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14643 if test "$GCC" = yes; then
14644 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"`
14646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 shlibpath_var=LD_LIBRARY_PATH
14664 freebsd* | dragonfly*)
14665 # DragonFly does not have aout. When/if they implement a new
14666 # versioning mechanism, adjust this.
14667 if test -x /usr/bin/objformat; then
14668 objformat=`/usr/bin/objformat`
14671 freebsd[123]*) objformat=aout ;;
14672 *) objformat=elf ;;
14675 version_type=freebsd-$objformat
14676 case $version_type in
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14687 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes
14692 freebsd3.[01]* | freebsdelf3.[01]*)
14693 shlibpath_overrides_runpath=yes
14694 hardcode_into_libs=yes
14696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14698 shlibpath_overrides_runpath=no
14699 hardcode_into_libs=yes
14701 freebsd*) # from 4.6 on
14702 shlibpath_overrides_runpath=yes
14703 hardcode_into_libs=yes
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 hardcode_into_libs=yes
14718 hpux9* | hpux10* | hpux11*)
14719 # Give a soname corresponding to the major version so that dld.sl refuses to
14720 # link against other versions.
14727 hardcode_into_libs=yes
14728 dynamic_linker="$host_os dld.so"
14729 shlibpath_var=LD_LIBRARY_PATH
14730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 if test "X$HPUX_IA64_MODE" = X32; then
14734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14742 hardcode_into_libs=yes
14743 dynamic_linker="$host_os dld.sl"
14744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14753 dynamic_linker="$host_os dld.sl"
14754 shlibpath_var=SHLIB_PATH
14755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14761 postinstall_cmds='chmod 555 $lib'
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
14773 hardcode_into_libs=yes
14776 irix5* | irix6* | nonstopux*)
14778 nonstopux*) version_type=nonstopux ;;
14780 if test "$lt_cv_prog_gnu_ld" = yes; then
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14791 irix5* | nonstopux*)
14792 libsuff= shlibsuff=
14795 case $LD in # libtool.m4 will add one of these switches to LD
14796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14797 libsuff= shlibsuff= libmagic=32-bit;;
14798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14799 libsuff=32 shlibsuff=N32 libmagic=N32;;
14800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14802 *) libsuff= shlibsuff= libmagic=never-match;;
14806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14807 shlibpath_overrides_runpath=no
14808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14810 hardcode_into_libs=yes
14813 # No shared lib support for Linux oldld, aout, or coff.
14814 linux*oldld* | linux*aout* | linux*coff*)
14818 # This must be Linux ELF.
14819 linux* | k*bsd*-gnu)
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 soname_spec='${libname}${release}${shared_ext}$major'
14825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=no
14828 # This implies no fast_install, which is unacceptable.
14829 # Some rework will be needed to allow for fast_install
14830 # before this can be enabled.
14831 hardcode_into_libs=yes
14833 # Append ld.so.conf contents to the search path
14834 if test -f /etc/ld.so.conf; then
14835 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' ' '`
14836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14839 # We used to test for /lib/ld.so.1 and disable shared libraries on
14840 # powerpc, because MkLinux only supported shared libraries with the
14841 # GNU dynamic linker. Since this was broken with cross compilers,
14842 # most powerpc-linux boxes support dynamic linking these days and
14843 # people can always --disable-shared, the test was removed, and we
14844 # assume the GNU/Linux dynamic linker is in use.
14845 dynamic_linker='GNU/Linux ld.so'
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=no
14856 hardcode_into_libs=yes
14857 dynamic_linker='NetBSD ld.elf_so'
14864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14867 dynamic_linker='NetBSD (a.out) ld.so'
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 dynamic_linker='NetBSD ld.elf_so'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 shlibpath_overrides_runpath=yes
14897 sys_lib_dlsearch_path_spec="/usr/lib"
14899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14902 *) need_version=no ;;
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 openbsd2.[89] | openbsd2.[89].*)
14910 shlibpath_overrides_runpath=no
14913 shlibpath_overrides_runpath=yes
14917 shlibpath_overrides_runpath=yes
14922 libname_spec='$name'
14925 library_names_spec='$libname${shared_ext} $libname.a'
14926 dynamic_linker='OS/2 ld.exe'
14927 shlibpath_var=LIBPATH
14930 osf3* | osf4* | osf5*)
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14950 # ldd complains unless libraries are executable
14951 postinstall_cmds='chmod +x $lib'
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=yes
14960 if test "$with_gnu_ld" = yes; then
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 case $host_vendor in
14973 shlibpath_overrides_runpath=no
14975 export_dynamic_flag_spec='${wl}-Blargedynsym'
14976 runpath_var=LD_RUN_PATH
14984 shlibpath_overrides_runpath=no
14985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14991 if test -d /usr/nec ;then
14993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14994 soname_spec='$libname${shared_ext}.$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15000 version_type=freebsd-elf
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 hardcode_into_libs=yes
15007 if test "$with_gnu_ld" = yes; then
15008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15009 shlibpath_overrides_runpath=no
15011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15012 shlibpath_overrides_runpath=yes
15015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15019 sys_lib_dlsearch_path_spec='/usr/lib'
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15033 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15034 echo "${ECHO_T}$dynamic_linker" >&6; }
15035 test "$dynamic_linker" = no && can_build_shared=no
15037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15038 if test "$GCC" = yes; then
15039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15042 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15044 hardcode_action_CXX=
15045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15046 test -n "$runpath_var_CXX" || \
15047 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15049 # We can hardcode non-existant directories.
15050 if test "$hardcode_direct_CXX" != no &&
15051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15052 # have to relink, otherwise we might link with an installed library
15053 # when we should be linking with a yet-to-be-installed one
15054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15055 test "$hardcode_minus_L_CXX" != no; then
15056 # Linking always hardcodes the temporary library directory.
15057 hardcode_action_CXX=relink
15059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15060 hardcode_action_CXX=immediate
15063 # We cannot hardcode anything, or else we can only hardcode existing
15065 hardcode_action_CXX=unsupported
15067 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15068 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15070 if test "$hardcode_action_CXX" = relink; then
15071 # Fast installation is not supported
15072 enable_fast_install=no
15073 elif test "$shlibpath_overrides_runpath" = yes ||
15074 test "$enable_shared" = no; then
15075 # Fast installation is not necessary
15076 enable_fast_install=needless
15080 # The else clause should only fire when bootstrapping the
15081 # libtool distribution, otherwise you forgot to ship ltmain.sh
15082 # with your package, and you will get complaints that there are
15083 # no rules to generate ltmain.sh.
15084 if test -f "$ltmain"; then
15085 # See if we are running on zsh, and set the options which allow our commands through
15086 # without removal of \ escapes.
15087 if test -n "${ZSH_VERSION+set}" ; then
15088 setopt NO_GLOB_SUBST
15090 # Now quote all the things that may contain metacharacters while being
15091 # careful not to overquote the AC_SUBSTed values. We take copies of the
15092 # variables and quote the copies for generation of the libtool script.
15093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15097 deplibs_check_method reload_flag reload_cmds need_locks \
15098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15099 lt_cv_sys_global_symbol_to_c_name_address \
15100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15101 old_postinstall_cmds old_postuninstall_cmds \
15105 lt_prog_compiler_wl_CXX \
15106 lt_prog_compiler_pic_CXX \
15107 lt_prog_compiler_static_CXX \
15108 lt_prog_compiler_no_builtin_flag_CXX \
15109 export_dynamic_flag_spec_CXX \
15110 thread_safe_flag_spec_CXX \
15111 whole_archive_flag_spec_CXX \
15112 enable_shared_with_static_runtimes_CXX \
15113 old_archive_cmds_CXX \
15114 old_archive_from_new_cmds_CXX \
15115 predep_objects_CXX \
15116 postdep_objects_CXX \
15119 compiler_lib_search_path_CXX \
15121 archive_expsym_cmds_CXX \
15122 postinstall_cmds_CXX \
15123 postuninstall_cmds_CXX \
15124 old_archive_from_expsyms_cmds_CXX \
15125 allow_undefined_flag_CXX \
15126 no_undefined_flag_CXX \
15127 export_symbols_cmds_CXX \
15128 hardcode_libdir_flag_spec_CXX \
15129 hardcode_libdir_flag_spec_ld_CXX \
15130 hardcode_libdir_separator_CXX \
15131 hardcode_automatic_CXX \
15133 module_expsym_cmds_CXX \
15134 lt_cv_prog_compiler_c_o_CXX \
15135 exclude_expsyms_CXX \
15136 include_expsyms_CXX; do
15139 old_archive_cmds_CXX | \
15140 old_archive_from_new_cmds_CXX | \
15141 archive_cmds_CXX | \
15142 archive_expsym_cmds_CXX | \
15143 module_cmds_CXX | \
15144 module_expsym_cmds_CXX | \
15145 old_archive_from_expsyms_cmds_CXX | \
15146 export_symbols_cmds_CXX | \
15147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15148 postinstall_cmds | postuninstall_cmds | \
15149 old_postinstall_cmds | old_postuninstall_cmds | \
15150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15151 # Double-quote double-evaled strings.
15152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15161 *'\$0 --fallback-echo"')
15162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15168 cat <<__EOF__ >> "$cfgfile"
15169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15173 # Shell to use when invoking shell scripts.
15176 # Whether or not to build shared libraries.
15177 build_libtool_libs=$enable_shared
15179 # Whether or not to build static libraries.
15180 build_old_libs=$enable_static
15182 # Whether or not to add -lc for building shared libraries.
15183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15185 # Whether or not to disallow shared libs when runtime libs are static
15186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15188 # Whether or not to optimize for fast installation.
15189 fast_install=$enable_fast_install
15192 host_alias=$host_alias
15196 # The build system.
15197 build_alias=$build_alias
15201 # An echo program that does not interpret backslashes.
15206 AR_FLAGS=$lt_AR_FLAGS
15211 # LTCC compiler flags.
15212 LTCFLAGS=$lt_LTCFLAGS
15214 # A language-specific compiler.
15215 CC=$lt_compiler_CXX
15217 # Is the compiler the GNU C compiler?
15223 # The linker used to build libraries.
15226 # Whether we need hard or soft links.
15229 # A BSD-compatible nm program.
15232 # A symbol stripping program
15235 # Used to examine libraries when file_magic_cmd begins "file"
15236 MAGIC_CMD=$MAGIC_CMD
15238 # Used on cygwin: DLL creation program.
15241 # Used on cygwin: object dumper.
15244 # Used on cygwin: assembler.
15247 # The name of the directory that contains temporary libtool files.
15250 # How to create reloadable object files.
15251 reload_flag=$lt_reload_flag
15252 reload_cmds=$lt_reload_cmds
15254 # How to pass a linker flag through the compiler.
15255 wl=$lt_lt_prog_compiler_wl_CXX
15257 # Object file suffix (normally "o").
15258 objext="$ac_objext"
15260 # Old archive suffix (normally "a").
15263 # Shared library suffix (normally ".so").
15264 shrext_cmds='$shrext_cmds'
15266 # Executable file suffix (normally "").
15269 # Additional compiler flags for building library objects.
15270 pic_flag=$lt_lt_prog_compiler_pic_CXX
15273 # What is the maximum length of a command?
15274 max_cmd_len=$lt_cv_sys_max_cmd_len
15276 # Does compiler simultaneously support -c and -o options?
15277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15279 # Must we lock files when doing compilation?
15280 need_locks=$lt_need_locks
15282 # Do we need the lib prefix for modules?
15283 need_lib_prefix=$need_lib_prefix
15285 # Do we need a version for libraries?
15286 need_version=$need_version
15288 # Whether dlopen is supported.
15289 dlopen_support=$enable_dlopen
15291 # Whether dlopen of programs is supported.
15292 dlopen_self=$enable_dlopen_self
15294 # Whether dlopen of statically linked programs is supported.
15295 dlopen_self_static=$enable_dlopen_self_static
15297 # Compiler flag to prevent dynamic linking.
15298 link_static_flag=$lt_lt_prog_compiler_static_CXX
15300 # Compiler flag to turn off builtin functions.
15301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15303 # Compiler flag to allow reflexive dlopens.
15304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15306 # Compiler flag to generate shared objects directly from archives.
15307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15309 # Compiler flag to generate thread-safe objects.
15310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15312 # Library versioning type.
15313 version_type=$version_type
15315 # Format of library name prefix.
15316 libname_spec=$lt_libname_spec
15318 # List of archive names. First name is the real one, the rest are links.
15319 # The last name is the one that the linker finds with -lNAME.
15320 library_names_spec=$lt_library_names_spec
15322 # The coded name of the library, if different from the real name.
15323 soname_spec=$lt_soname_spec
15325 # Commands used to build and install an old-style archive.
15327 old_archive_cmds=$lt_old_archive_cmds_CXX
15328 old_postinstall_cmds=$lt_old_postinstall_cmds
15329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15331 # Create an old-style archive from a shared archive.
15332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15334 # Create a temporary old-style archive to link instead of a shared archive.
15335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15337 # Commands used to build and install a shared archive.
15338 archive_cmds=$lt_archive_cmds_CXX
15339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15340 postinstall_cmds=$lt_postinstall_cmds
15341 postuninstall_cmds=$lt_postuninstall_cmds
15343 # Commands used to build a loadable module (assumed same as above if empty)
15344 module_cmds=$lt_module_cmds_CXX
15345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15347 # Commands to strip libraries.
15348 old_striplib=$lt_old_striplib
15349 striplib=$lt_striplib
15351 # Dependencies to place before the objects being linked to create a
15353 predep_objects=$lt_predep_objects_CXX
15355 # Dependencies to place after the objects being linked to create a
15357 postdep_objects=$lt_postdep_objects_CXX
15359 # Dependencies to place before the objects being linked to create a
15361 predeps=$lt_predeps_CXX
15363 # Dependencies to place after the objects being linked to create a
15365 postdeps=$lt_postdeps_CXX
15367 # The library search path used internally by the compiler when linking
15368 # a shared library.
15369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15371 # Method to check whether dependent libraries are shared objects.
15372 deplibs_check_method=$lt_deplibs_check_method
15374 # Command to use when deplibs_check_method == file_magic.
15375 file_magic_cmd=$lt_file_magic_cmd
15377 # Flag that allows shared libraries with undefined symbols to be built.
15378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15380 # Flag that forces no undefined symbols.
15381 no_undefined_flag=$lt_no_undefined_flag_CXX
15383 # Commands used to finish a libtool library installation in a directory.
15384 finish_cmds=$lt_finish_cmds
15386 # Same as above, but a single script fragment to be evaled but not shown.
15387 finish_eval=$lt_finish_eval
15389 # Take the output of nm and produce a listing of raw symbols and C names.
15390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15392 # Transform the output of nm in a proper C declaration
15393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15395 # Transform the output of nm in a C name address pair
15396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15398 # This is the shared library runtime path variable.
15399 runpath_var=$runpath_var
15401 # This is the shared library path variable.
15402 shlibpath_var=$shlibpath_var
15404 # Is shlibpath searched before the hard-coded library search path?
15405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15407 # How to hardcode a shared library path into an executable.
15408 hardcode_action=$hardcode_action_CXX
15410 # Whether we should hardcode library paths into libraries.
15411 hardcode_into_libs=$hardcode_into_libs
15413 # Flag to hardcode \$libdir into a binary during linking.
15414 # This must work even if \$libdir does not exist.
15415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15417 # If ld is used when linking, flag to hardcode \$libdir into
15418 # a binary during linking. This must work even if \$libdir does
15420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15422 # Whether we need a single -rpath flag with a separated argument.
15423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_direct=$hardcode_direct_CXX
15429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_minus_L=$hardcode_minus_L_CXX
15433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15434 # the resulting binary.
15435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15437 # Set to yes if building a shared library automatically hardcodes DIR into the library
15438 # and all subsequent libraries and executables linked against it.
15439 hardcode_automatic=$hardcode_automatic_CXX
15441 # Variables whose values should be saved in libtool wrapper scripts and
15442 # restored at relink time.
15443 variables_saved_for_relink="$variables_saved_for_relink"
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs_CXX
15448 # Compile-time system search path for libraries
15449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15451 # Run-time system search path for libraries
15452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15454 # Fix the shell variable \$srcfile for the compiler.
15455 fix_srcfile_path="$fix_srcfile_path_CXX"
15457 # Set to yes if exported symbols are required.
15458 always_export_symbols=$always_export_symbols_CXX
15460 # The commands to list exported symbols.
15461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15463 # The commands to extract the exported symbol list from a shared archive.
15464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15466 # Symbols that should not be listed in the preloaded symbols.
15467 exclude_expsyms=$lt_exclude_expsyms_CXX
15469 # Symbols that must always be exported.
15470 include_expsyms=$lt_include_expsyms_CXX
15472 # ### END LIBTOOL TAG CONFIG: $tagname
15478 # If there is no Makefile yet, we rely on a make rule to execute
15479 # `config.status --recheck' to rerun these tests and create the
15480 # libtool script then.
15481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15482 if test -f "$ltmain_in"; then
15483 test -f Makefile && make "$ltmain"
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498 with_gnu_ldcxx=$with_gnu_ld
15499 with_gnu_ld=$lt_save_with_gnu_ld
15500 lt_cv_path_LDCXX=$lt_cv_path_LD
15501 lt_cv_path_LD=$lt_save_path_LD
15502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15511 if test -n "$F77" && test "X$F77" != "Xno"; then
15514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15519 archive_cmds_need_lc_F77=no
15520 allow_undefined_flag_F77=
15521 always_export_symbols_F77=no
15522 archive_expsym_cmds_F77=
15523 export_dynamic_flag_spec_F77=
15524 hardcode_direct_F77=no
15525 hardcode_libdir_flag_spec_F77=
15526 hardcode_libdir_flag_spec_ld_F77=
15527 hardcode_libdir_separator_F77=
15528 hardcode_minus_L_F77=no
15529 hardcode_automatic_F77=no
15531 module_expsym_cmds_F77=
15532 link_all_deplibs_F77=unknown
15533 old_archive_cmds_F77=$old_archive_cmds
15534 no_undefined_flag_F77=
15535 whole_archive_flag_spec_F77=
15536 enable_shared_with_static_runtimes_F77=no
15538 # Source file extension for f77 test sources.
15541 # Object file extension for compiled f77 test sources.
15545 # Code to be used in simple compile tests
15546 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15548 # Code to be used in simple link tests
15549 lt_simple_link_test_code=" program t\n end\n"
15551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15553 # If no C compiler was specified, use CC.
15556 # If no C compiler flags were specified, use CFLAGS.
15557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15559 # Allow CC to be a program name with arguments.
15563 # save warnings/boilerplate of simple test code
15564 ac_outfile=conftest.$ac_objext
15565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15567 _lt_compiler_boilerplate=`cat conftest.err`
15570 ac_outfile=conftest.$ac_objext
15571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15573 _lt_linker_boilerplate=`cat conftest.err`
15577 # Allow CC to be a program name with arguments.
15582 for cc_temp in $compiler""; do
15584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15593 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15595 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15596 echo "${ECHO_T}$can_build_shared" >&6; }
15598 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15600 test "$can_build_shared" = "no" && enable_shared=no
15602 # On AIX, shared libraries and static libraries use the same namespace, and
15603 # are all built from PIC.
15606 test "$enable_shared" = yes && enable_static=no
15607 if test -n "$RANLIB"; then
15608 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15609 postinstall_cmds='$RANLIB $lib'
15613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15614 test "$enable_shared" = yes && enable_static=no
15618 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15619 echo "${ECHO_T}$enable_shared" >&6; }
15621 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15623 # Make sure either enable_shared or enable_static is yes.
15624 test "$enable_shared" = yes || enable_static=yes
15625 { echo "$as_me:$LINENO: result: $enable_static" >&5
15626 echo "${ECHO_T}$enable_static" >&6; }
15631 lt_prog_compiler_wl_F77=
15632 lt_prog_compiler_pic_F77=
15633 lt_prog_compiler_static_F77=
15635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15638 if test "$GCC" = yes; then
15639 lt_prog_compiler_wl_F77='-Wl,'
15640 lt_prog_compiler_static_F77='-static'
15644 # All AIX code is PIC.
15645 if test "$host_cpu" = ia64; then
15646 # AIX 5 now supports IA64 processor
15647 lt_prog_compiler_static_F77='-Bstatic'
15652 # FIXME: we need at least 68020 code to build shared libraries, but
15653 # adding the `-m68020' flag to GCC prevents building anything better,
15655 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15658 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15659 # PIC is the default for these OSes.
15662 mingw* | pw32* | os2*)
15663 # This hack is so that the source file can tell whether it is being
15664 # built for inclusion in a dll (and should export symbols for example).
15665 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15668 darwin* | rhapsody*)
15669 # PIC is the default on this platform
15670 # Common symbols not allowed in MH_DYLIB files
15671 lt_prog_compiler_pic_F77='-fno-common'
15675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15676 # Instead, we relocate shared libraries at runtime.
15680 # Just because we use GCC doesn't mean we suddenly get shared libraries
15681 # on systems that don't support them.
15682 lt_prog_compiler_can_build_shared_F77=no
15687 if test -d /usr/nec; then
15688 lt_prog_compiler_pic_F77=-Kconform_pic
15693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15694 # not for PA HP-UX.
15700 lt_prog_compiler_pic_F77='-fPIC'
15706 lt_prog_compiler_pic_F77='-fPIC'
15710 # PORTME Check for flag to pass linker flags through the system compiler.
15713 lt_prog_compiler_wl_F77='-Wl,'
15714 if test "$host_cpu" = ia64; then
15715 # AIX 5 now supports IA64 processor
15716 lt_prog_compiler_static_F77='-Bstatic'
15718 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15722 # PIC is the default on this platform
15723 # Common symbols not allowed in MH_DYLIB files
15724 case $cc_basename in
15726 lt_prog_compiler_pic_F77='-qnocommon'
15727 lt_prog_compiler_wl_F77='-Wl,'
15732 mingw* | pw32* | os2*)
15733 # This hack is so that the source file can tell whether it is being
15734 # built for inclusion in a dll (and should export symbols for example).
15735 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15738 hpux9* | hpux10* | hpux11*)
15739 lt_prog_compiler_wl_F77='-Wl,'
15740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741 # not for PA HP-UX.
15747 lt_prog_compiler_pic_F77='+Z'
15750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15751 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15754 irix5* | irix6* | nonstopux*)
15755 lt_prog_compiler_wl_F77='-Wl,'
15756 # PIC (with -KPIC) is the default.
15757 lt_prog_compiler_static_F77='-non_shared'
15761 lt_prog_compiler_pic_F77='-KPIC'
15762 lt_prog_compiler_static_F77='-Bstatic'
15765 linux* | k*bsd*-gnu)
15766 case $cc_basename in
15768 lt_prog_compiler_wl_F77='-Wl,'
15769 lt_prog_compiler_pic_F77='-KPIC'
15770 lt_prog_compiler_static_F77='-static'
15772 pgcc* | pgf77* | pgf90* | pgf95*)
15773 # Portland Group compilers (*not* the Pentium gcc compiler,
15774 # which looks to be a dead project)
15775 lt_prog_compiler_wl_F77='-Wl,'
15776 lt_prog_compiler_pic_F77='-fpic'
15777 lt_prog_compiler_static_F77='-Bstatic'
15780 lt_prog_compiler_wl_F77='-Wl,'
15781 # All Alpha code is PIC.
15782 lt_prog_compiler_static_F77='-non_shared'
15787 osf3* | osf4* | osf5*)
15788 lt_prog_compiler_wl_F77='-Wl,'
15789 # All OSF/1 code is PIC.
15790 lt_prog_compiler_static_F77='-non_shared'
15794 lt_prog_compiler_pic_F77='-KPIC'
15795 lt_prog_compiler_static_F77='-Bstatic'
15796 case $cc_basename in
15797 f77* | f90* | f95*)
15798 lt_prog_compiler_wl_F77='-Qoption ld ';;
15800 lt_prog_compiler_wl_F77='-Wl,';;
15805 lt_prog_compiler_wl_F77='-Qoption ld '
15806 lt_prog_compiler_pic_F77='-PIC'
15807 lt_prog_compiler_static_F77='-Bstatic'
15810 sysv4 | sysv4.2uw2* | sysv4.3*)
15811 lt_prog_compiler_wl_F77='-Wl,'
15812 lt_prog_compiler_pic_F77='-KPIC'
15813 lt_prog_compiler_static_F77='-Bstatic'
15817 if test -d /usr/nec ;then
15818 lt_prog_compiler_pic_F77='-Kconform_pic'
15819 lt_prog_compiler_static_F77='-Bstatic'
15823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15824 lt_prog_compiler_wl_F77='-Wl,'
15825 lt_prog_compiler_pic_F77='-KPIC'
15826 lt_prog_compiler_static_F77='-Bstatic'
15830 lt_prog_compiler_wl_F77='-Wl,'
15831 lt_prog_compiler_can_build_shared_F77=no
15835 lt_prog_compiler_pic_F77='-pic'
15836 lt_prog_compiler_static_F77='-Bstatic'
15840 lt_prog_compiler_can_build_shared_F77=no
15845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15849 # Check to make sure the PIC flag actually works.
15851 if test -n "$lt_prog_compiler_pic_F77"; then
15853 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 lt_prog_compiler_pic_works_F77=no
15859 ac_outfile=conftest.$ac_objext
15860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15862 # Insert the option either (1) after the last *FLAGS variable, or
15863 # (2) before a word containing "conftest.", or (3) at the end.
15864 # Note that $ac_compile itself does not contain backslashes and begins
15865 # with a dollar sign (not a hyphen), so the echo should work correctly.
15866 # The option is referenced via a variable to avoid confusing sed.
15867 lt_compile=`echo "$ac_compile" | $SED \
15868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870 -e 's:$: $lt_compiler_flag:'`
15871 (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872 (eval "$lt_compile" 2>conftest.err)
15874 cat conftest.err >&5
15875 echo "$as_me:15875: \$? = $ac_status" >&5
15876 if (exit $ac_status) && test -s "$ac_outfile"; then
15877 # The compiler can only warn and ignore the option if not recognized
15878 # So say no if there are warnings other than the usual output.
15879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15882 lt_prog_compiler_pic_works_F77=yes
15888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15891 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15892 case $lt_prog_compiler_pic_F77 in
15894 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15897 lt_prog_compiler_pic_F77=
15898 lt_prog_compiler_can_build_shared_F77=no
15903 # For platforms which do not support PIC, -DPIC is meaningless:
15905 lt_prog_compiler_pic_F77=
15908 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15913 # Check to make sure the static flag actually works.
15915 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15916 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 lt_prog_compiler_static_works_F77=no
15922 save_LDFLAGS="$LDFLAGS"
15923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15924 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15926 # The linker can only warn and ignore the option if not recognized
15927 # So say no if there are warnings
15928 if test -s conftest.err; then
15929 # Append any errors to the config.log.
15930 cat conftest.err 1>&5
15931 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15933 if diff conftest.exp conftest.er2 >/dev/null; then
15934 lt_prog_compiler_static_works_F77=yes
15937 lt_prog_compiler_static_works_F77=yes
15941 LDFLAGS="$save_LDFLAGS"
15944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15947 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15950 lt_prog_compiler_static_F77=
15954 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 lt_cv_prog_compiler_c_o_F77=no
15960 $rm -r conftest 2>/dev/null
15964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15966 lt_compiler_flag="-o out/conftest2.$ac_objext"
15967 # Insert the option either (1) after the last *FLAGS variable, or
15968 # (2) before a word containing "conftest.", or (3) at the end.
15969 # Note that $ac_compile itself does not contain backslashes and begins
15970 # with a dollar sign (not a hyphen), so the echo should work correctly.
15971 lt_compile=`echo "$ac_compile" | $SED \
15972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15974 -e 's:$: $lt_compiler_flag:'`
15975 (eval echo "\"\$as_me:15975: $lt_compile\"" >&5)
15976 (eval "$lt_compile" 2>out/conftest.err)
15978 cat out/conftest.err >&5
15979 echo "$as_me:15979: \$? = $ac_status" >&5
15980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15982 # The compiler can only warn and ignore the option if not recognized
15983 # So say no if there are warnings
15984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15987 lt_cv_prog_compiler_c_o_F77=yes
15992 # SGI C++ compiler will create directory out/ii_files/ for
15993 # template instantiation
15994 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15995 $rm out/* && rmdir out
16001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16005 hard_links="nottested"
16006 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16007 # do not overwrite the value of need_locks provided by the user
16008 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16014 ln conftest.a conftest.b 2>&5 || hard_links=no
16015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16016 { echo "$as_me:$LINENO: result: $hard_links" >&5
16017 echo "${ECHO_T}$hard_links" >&6; }
16018 if test "$hard_links" = no; then
16019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16031 allow_undefined_flag_F77=
16032 enable_shared_with_static_runtimes_F77=no
16034 archive_expsym_cmds_F77=
16035 old_archive_From_new_cmds_F77=
16036 old_archive_from_expsyms_cmds_F77=
16037 export_dynamic_flag_spec_F77=
16038 whole_archive_flag_spec_F77=
16039 thread_safe_flag_spec_F77=
16040 hardcode_libdir_flag_spec_F77=
16041 hardcode_libdir_flag_spec_ld_F77=
16042 hardcode_libdir_separator_F77=
16043 hardcode_direct_F77=no
16044 hardcode_minus_L_F77=no
16045 hardcode_shlibpath_var_F77=unsupported
16046 link_all_deplibs_F77=unknown
16047 hardcode_automatic_F77=no
16049 module_expsym_cmds_F77=
16050 always_export_symbols_F77=no
16051 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16052 # include_expsyms should be a list of space-separated symbols to be *always*
16053 # included in the symbol list
16054 include_expsyms_F77=
16055 # exclude_expsyms can be an extended regexp of symbols to exclude
16056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16058 # as well as any symbol that contains `d'.
16059 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16061 # platforms (ab)use it in PIC code, but their linkers get confused if
16062 # the symbol is explicitly referenced. Since portable code cannot
16063 # rely on this symbol name, it's probably fine to never include it in
16064 # preloaded symbol tables.
16065 extract_expsyms_cmds=
16066 # Just being paranoid about ensuring that cc_basename is set.
16067 for cc_temp in $compiler""; do
16069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16078 cygwin* | mingw* | pw32*)
16079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16080 # When not using gcc, we currently assume that we are using
16081 # Microsoft Visual C++.
16082 if test "$GCC" != yes; then
16087 # we just hope/assume this is gcc and not c89 (= MSVC++)
16096 if test "$with_gnu_ld" = yes; then
16097 # If archive_cmds runs LD, not CC, wlarc should be empty
16100 # Set some defaults for GNU ld with shared library support. These
16101 # are reset later if shared libraries are not supported. Putting them
16102 # here allows them to be overridden if necessary.
16103 runpath_var=LD_RUN_PATH
16104 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16105 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16106 # ancient GNU ld didn't support --whole-archive et. al.
16107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16108 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16110 whole_archive_flag_spec_F77=
16112 supports_anon_versioning=no
16113 case `$LD -v 2>/dev/null` in
16114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16117 *\ 2.11.*) ;; # other 2.11 versions
16118 *) supports_anon_versioning=yes ;;
16121 # See if GNU ld supports shared libraries.
16123 aix3* | aix4* | aix5*)
16124 # On AIX/PPC, the GNU linker is very broken
16125 if test "$host_cpu" != ia64; then
16129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16130 *** to be unable to reliably create shared libraries on AIX.
16131 *** Therefore, libtool is disabling shared libraries support. If you
16132 *** really care for shared libraries, you may want to modify your PATH
16133 *** so that a non-GNU linker is found, and then restart.
16140 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)'
16141 hardcode_libdir_flag_spec_F77='-L$libdir'
16142 hardcode_minus_L_F77=yes
16144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16145 # that the semantics of dynamic libraries on AmigaOS, at least up
16146 # to version 4, is to share data among multiple programs linked
16147 # with the same dynamic library. Since this doesn't match the
16148 # behavior of shared libraries on other platforms, we can't use
16154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16155 allow_undefined_flag_F77=unsupported
16156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16157 # support --undefined. This deserves some investigation. FIXME
16158 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164 cygwin* | mingw* | pw32*)
16165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16166 # as there is no search path for DLLs.
16167 hardcode_libdir_flag_spec_F77='-L$libdir'
16168 allow_undefined_flag_F77=unsupported
16169 always_export_symbols_F77=no
16170 enable_shared_with_static_runtimes_F77=yes
16171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16175 # If the export-symbols file already is a .def file (1st line
16176 # is EXPORTS), use it as is; otherwise, prepend...
16177 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16178 cp $export_symbols $output_objdir/$soname.def;
16180 echo EXPORTS > $output_objdir/$soname.def;
16181 cat $export_symbols >> $output_objdir/$soname.def;
16183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16190 hardcode_direct_F77=no
16191 hardcode_shlibpath_var_F77=no
16192 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16193 export_dynamic_flag_spec_F77='${wl}-E'
16194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16195 # Instead, shared libraries are loaded at an image base (0x10000000 by
16196 # default) and relocated if they conflict, which is a slow very memory
16197 # consuming and fragmenting process. To avoid this, we pick a random,
16198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16200 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'
16201 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'
16204 linux* | k*bsd*-gnu)
16205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16207 case $cc_basename,$host_cpu in
16208 pgcc*) # Portland Group C compiler
16209 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'
16210 tmp_addflag=' $pic_flag'
16212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16213 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'
16214 tmp_addflag=' $pic_flag -Mnomain' ;;
16215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16216 tmp_addflag=' -i_dynamic' ;;
16217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16218 tmp_addflag=' -i_dynamic -nofor_main' ;;
16219 ifc* | ifort*) # Intel Fortran compiler
16220 tmp_addflag=' -nofor_main' ;;
16222 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16224 if test $supports_anon_versioning = yes; then
16225 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16227 $echo "local: *; };" >> $output_objdir/$libname.ver~
16228 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16230 link_all_deplibs_F77=no
16236 netbsd* | netbsdelf*-gnu)
16237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16238 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16252 *** create shared libraries on Solaris systems. Therefore, libtool
16253 *** is disabling shared libraries support. We urge you to upgrade GNU
16254 *** binutils to release 2.9.1 or newer. Another option is to modify
16255 *** your PATH or compiler configuration so that the native linker is
16256 *** used, and then restart.
16259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16268 case `$LD -v 2>&1` in
16269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16274 *** reliably create shared libraries on SCO systems. Therefore, libtool
16275 *** is disabling shared libraries support. We urge you to upgrade GNU
16276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16277 *** your PATH or compiler configuration so that the native linker is
16278 *** used, and then restart.
16283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16284 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16295 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16297 hardcode_direct_F77=yes
16298 hardcode_shlibpath_var_F77=no
16302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311 if test "$ld_shlibs_F77" = no; then
16313 hardcode_libdir_flag_spec_F77=
16314 export_dynamic_flag_spec_F77=
16315 whole_archive_flag_spec_F77=
16318 # PORTME fill in a description of your system's linker (not GNU ld)
16321 allow_undefined_flag_F77=unsupported
16322 always_export_symbols_F77=yes
16323 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'
16324 # Note: this linker hardcodes the directories in LIBPATH if there
16325 # are no directories specified by -L.
16326 hardcode_minus_L_F77=yes
16327 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16328 # Neither direct hardcoding nor static linking is supported with a
16330 hardcode_direct_F77=unsupported
16335 if test "$host_cpu" = ia64; then
16336 # On IA64, the linker does run time linking by default, so we don't
16337 # have to do anything special.
16338 aix_use_runtimelinking=no
16339 exp_sym_flag='-Bexport'
16342 # If we're using GNU nm, then we don't want the "-C" option.
16343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16345 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'
16347 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'
16349 aix_use_runtimelinking=no
16351 # Test if we are trying to use run time linking or normal
16352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16353 # need to do runtime linking.
16354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16355 for ld_flag in $LDFLAGS; do
16356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16357 aix_use_runtimelinking=yes
16364 exp_sym_flag='-bexport'
16365 no_entry_flag='-bnoentry'
16368 # When large executables or shared objects are built, AIX ld can
16369 # have problems creating the table of contents. If linking a library
16370 # or program results in "error TOC overflow" add -mminimal-toc to
16371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16374 archive_cmds_F77=''
16375 hardcode_direct_F77=yes
16376 hardcode_libdir_separator_F77=':'
16377 link_all_deplibs_F77=yes
16379 if test "$GCC" = yes; then
16380 case $host_os in aix4.[012]|aix4.[012].*)
16381 # We only want to do this on AIX 4.2 and lower, the check
16382 # below for broken collect2 doesn't work under 4.3+
16383 collect2name=`${CC} -print-prog-name=collect2`
16384 if test -f "$collect2name" && \
16385 strings "$collect2name" | grep resolve_lib_name >/dev/null
16387 # We have reworked collect2
16388 hardcode_direct_F77=yes
16390 # We have old collect2
16391 hardcode_direct_F77=unsupported
16392 # It fails to find uninstalled libraries when the uninstalled
16393 # path is not listed in the libpath. Setting hardcode_minus_L
16394 # to unsupported forces relinking
16395 hardcode_minus_L_F77=yes
16396 hardcode_libdir_flag_spec_F77='-L$libdir'
16397 hardcode_libdir_separator_F77=
16401 shared_flag='-shared'
16402 if test "$aix_use_runtimelinking" = yes; then
16403 shared_flag="$shared_flag "'${wl}-G'
16407 if test "$host_cpu" = ia64; then
16408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16409 # chokes on -Wl,-G. The following line is correct:
16412 if test "$aix_use_runtimelinking" = yes; then
16413 shared_flag='${wl}-G'
16415 shared_flag='${wl}-bM:SRE'
16420 # It seems that -bexpall does not export symbols beginning with
16421 # underscore (_), so it is better to generate a list of symbols to export.
16422 always_export_symbols_F77=yes
16423 if test "$aix_use_runtimelinking" = yes; then
16424 # Warning - without using the other runtime loading flags (-brtl),
16425 # -berok will link without error, but may produce a broken library.
16426 allow_undefined_flag_F77='-berok'
16427 # Determine the default libpath from the value encoded in an empty executable.
16428 cat >conftest.$ac_ext <<_ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest$ac_exeext'
16458 { (case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_try") 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16470 # Check for a 64-bit object if we didn't find anything.
16471 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; }
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16480 rm -f core conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16484 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16485 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"
16487 if test "$host_cpu" = ia64; then
16488 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16489 allow_undefined_flag_F77="-z nodefs"
16490 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"
16492 # Determine the default libpath from the value encoded in an empty executable.
16493 cat >conftest.$ac_ext <<_ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16535 # Check for a 64-bit object if we didn't find anything.
16536 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; }
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16549 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16550 # Warning - without using the other run time loading flags,
16551 # -berok will link without error, but may produce a broken library.
16552 no_undefined_flag_F77=' ${wl}-bernotok'
16553 allow_undefined_flag_F77=' ${wl}-berok'
16554 # Exported symbols can be pulled into shared objects from archives
16555 whole_archive_flag_spec_F77='$convenience'
16556 archive_cmds_need_lc_F77=yes
16557 # This is similar to how AIX traditionally builds its shared libraries.
16558 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'
16564 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)'
16565 hardcode_libdir_flag_spec_F77='-L$libdir'
16566 hardcode_minus_L_F77=yes
16567 # see comment about different semantics on the GNU ld section
16572 export_dynamic_flag_spec_F77=-rdynamic
16575 cygwin* | mingw* | pw32*)
16576 # When not using gcc, we currently assume that we are using
16577 # Microsoft Visual C++.
16578 # hardcode_libdir_flag_spec is actually meaningless, as there is
16579 # no search path for DLLs.
16580 hardcode_libdir_flag_spec_F77=' '
16581 allow_undefined_flag_F77=unsupported
16582 # Tell ltmain to make .lib files, not .a files.
16584 # Tell ltmain to make .dll files, not .so files.
16586 # FIXME: Setting linknames here is a bad hack.
16587 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16588 # The linker will automatically build a .lib file if we build a DLL.
16589 old_archive_From_new_cmds_F77='true'
16590 # FIXME: Should let the user specify the lib program.
16591 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16592 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16593 enable_shared_with_static_runtimes_F77=yes
16596 darwin* | rhapsody*)
16598 rhapsody* | darwin1.[012])
16599 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16605 case ${MACOSX_DEPLOYMENT_TARGET} in
16607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16610 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16616 archive_cmds_need_lc_F77=no
16617 hardcode_direct_F77=no
16618 hardcode_automatic_F77=yes
16619 hardcode_shlibpath_var_F77=unsupported
16620 whole_archive_flag_spec_F77=''
16621 link_all_deplibs_F77=yes
16622 if test "$GCC" = yes ; then
16623 output_verbose_link_cmd='echo'
16624 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16625 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16627 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}'
16628 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}'
16630 case $cc_basename in
16632 output_verbose_link_cmd='echo'
16633 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16634 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16636 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}'
16637 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}'
16647 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648 hardcode_libdir_flag_spec_F77='-L$libdir'
16649 hardcode_shlibpath_var_F77=no
16656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657 # support. Future versions do this automatically, but an explicit c++rt0.o
16658 # does not break anything, and helps significantly (at the cost of a little
16661 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662 hardcode_libdir_flag_spec_F77='-R$libdir'
16663 hardcode_direct_F77=yes
16664 hardcode_shlibpath_var_F77=no
16667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_direct_F77=yes
16671 hardcode_minus_L_F77=yes
16672 hardcode_shlibpath_var_F77=no
16675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676 freebsd* | dragonfly*)
16677 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678 hardcode_libdir_flag_spec_F77='-R$libdir'
16679 hardcode_direct_F77=yes
16680 hardcode_shlibpath_var_F77=no
16684 if test "$GCC" = yes; then
16685 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'
16687 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'
16689 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16690 hardcode_libdir_separator_F77=:
16691 hardcode_direct_F77=yes
16693 # hardcode_minus_L: Not really in the search PATH,
16694 # but as the default location of the library.
16695 hardcode_minus_L_F77=yes
16696 export_dynamic_flag_spec_F77='${wl}-E'
16700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16701 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16703 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16705 if test "$with_gnu_ld" = no; then
16706 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16707 hardcode_libdir_separator_F77=:
16709 hardcode_direct_F77=yes
16710 export_dynamic_flag_spec_F77='${wl}-E'
16712 # hardcode_minus_L: Not really in the search PATH,
16713 # but as the default location of the library.
16714 hardcode_minus_L_F77=yes
16719 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16722 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16744 if test "$with_gnu_ld" = no; then
16745 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16746 hardcode_libdir_separator_F77=:
16750 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16751 hardcode_direct_F77=no
16752 hardcode_shlibpath_var_F77=no
16755 hardcode_direct_F77=yes
16756 export_dynamic_flag_spec_F77='${wl}-E'
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L_F77=yes
16766 irix5* | irix6* | nonstopux*)
16767 if test "$GCC" = yes; then
16768 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'
16770 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'
16771 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16773 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16774 hardcode_libdir_separator_F77=:
16775 link_all_deplibs_F77=yes
16778 netbsd* | netbsdelf*-gnu)
16779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16782 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16784 hardcode_libdir_flag_spec_F77='-R$libdir'
16785 hardcode_direct_F77=yes
16786 hardcode_shlibpath_var_F77=no
16790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791 hardcode_direct_F77=yes
16792 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16793 hardcode_libdir_separator_F77=:
16794 hardcode_shlibpath_var_F77=no
16798 hardcode_direct_F77=yes
16799 hardcode_shlibpath_var_F77=no
16800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16801 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16803 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16804 export_dynamic_flag_spec_F77='${wl}-E'
16807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16808 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_libdir_flag_spec_F77='-R$libdir'
16812 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16813 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16820 hardcode_libdir_flag_spec_F77='-L$libdir'
16821 hardcode_minus_L_F77=yes
16822 allow_undefined_flag_F77=unsupported
16823 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'
16824 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16828 if test "$GCC" = yes; then
16829 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16830 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'
16832 allow_undefined_flag_F77=' -expect_unresolved \*'
16833 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'
16835 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16836 hardcode_libdir_separator_F77=:
16839 osf4* | osf5*) # as osf3* with the addition of -msym flag
16840 if test "$GCC" = yes; then
16841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16842 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'
16843 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16845 allow_undefined_flag_F77=' -expect_unresolved \*'
16846 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'
16847 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~
16848 $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'
16850 # Both c and cxx compiler support -rpath directly
16851 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16853 hardcode_libdir_separator_F77=:
16857 no_undefined_flag_F77=' -z text'
16858 if test "$GCC" = yes; then
16860 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16861 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16865 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16869 hardcode_libdir_flag_spec_F77='-R$libdir'
16870 hardcode_shlibpath_var_F77=no
16872 solaris2.[0-5] | solaris2.[0-5].*) ;;
16874 # The compiler driver will combine linker options so we
16875 # cannot just pass the convience library names through
16876 # without $wl, iff we do not link with $LD.
16877 # Luckily, gcc supports the same syntax we need for Sun Studio.
16878 # Supported since Solaris 2.6 (maybe 2.5.1?)
16881 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16883 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' ;;
16886 link_all_deplibs_F77=yes
16890 if test "x$host_vendor" = xsequent; then
16891 # Use $CC to link under sequent, because it throws in some extra .o
16892 # files that make .init and .fini sections work.
16893 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16895 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_libdir_flag_spec_F77='-L$libdir'
16898 hardcode_direct_F77=yes
16899 hardcode_minus_L_F77=yes
16900 hardcode_shlibpath_var_F77=no
16904 case $host_vendor in
16906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907 hardcode_direct_F77=yes # is this really true???
16910 ## LD is ld it makes a PLAMLIB
16911 ## CC just makes a GrossModule.
16912 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16913 reload_cmds_F77='$CC -r -o $output$reload_objs'
16914 hardcode_direct_F77=no
16917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16921 runpath_var='LD_RUN_PATH'
16922 hardcode_shlibpath_var_F77=no
16926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927 hardcode_shlibpath_var_F77=no
16928 export_dynamic_flag_spec_F77='-Bexport'
16932 if test -d /usr/nec; then
16933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934 hardcode_shlibpath_var_F77=no
16935 runpath_var=LD_RUN_PATH
16936 hardcode_runpath_var=yes
16941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16942 no_undefined_flag_F77='${wl}-z,text'
16943 archive_cmds_need_lc_F77=no
16944 hardcode_shlibpath_var_F77=no
16945 runpath_var='LD_RUN_PATH'
16947 if test "$GCC" = yes; then
16948 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16956 sysv5* | sco3.2v5* | sco5v6*)
16957 # Note: We can NOT use -z defs as we might desire, because we do not
16958 # link with -lc, and that would cause any symbols used from libc to
16959 # always be unresolved, which means just about no library would
16960 # ever link correctly. If we're not using GNU ld we use -z text
16961 # though, which does catch some bad symbols but isn't as heavy-handed
16963 no_undefined_flag_F77='${wl}-z,text'
16964 allow_undefined_flag_F77='${wl}-z,nodefs'
16965 archive_cmds_need_lc_F77=no
16966 hardcode_shlibpath_var_F77=no
16967 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16968 hardcode_libdir_separator_F77=':'
16969 link_all_deplibs_F77=yes
16970 export_dynamic_flag_spec_F77='${wl}-Bexport'
16971 runpath_var='LD_RUN_PATH'
16973 if test "$GCC" = yes; then
16974 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 hardcode_libdir_flag_spec_F77='-L$libdir'
16985 hardcode_shlibpath_var_F77=no
16994 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16995 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16996 test "$ld_shlibs_F77" = no && can_build_shared=no
16999 # Do we need to explicitly link libc?
17001 case "x$archive_cmds_need_lc_F77" in
17003 # Assume -lc should be added
17004 archive_cmds_need_lc_F77=yes
17006 if test "$enable_shared" = yes && test "$GCC" = yes; then
17007 case $archive_cmds_F77 in
17009 # FIXME: we may have to deal with multi-command sequences.
17012 # Test whether the compiler implicitly links with -lc since on some
17013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17014 # to ld, don't add -lc before -lgcc.
17015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } 2>conftest.err; then
17027 libobjs=conftest.$ac_objext
17029 wl=$lt_prog_compiler_wl_F77
17030 pic_flag=$lt_prog_compiler_pic_F77
17036 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17037 allow_undefined_flag_F77=
17038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17039 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }
17044 archive_cmds_need_lc_F77=no
17046 archive_cmds_need_lc_F77=yes
17048 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17050 cat conftest.err 1>&5
17053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17054 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17061 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17063 library_names_spec=
17064 libname_spec='lib$name'
17068 postuninstall_cmds=
17072 shlibpath_overrides_runpath=unknown
17074 dynamic_linker="$host_os ld.so"
17075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17076 if test "$GCC" = yes; then
17077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17079 # if the path contains ";" then we assume it to be the separator
17080 # otherwise default to the standard path separator (i.e. ":") - it is
17081 # assumed that no part of a normal pathname contains ";" but that should
17082 # okay in the real world where ";" in dirpaths is itself problematic.
17083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17090 need_lib_prefix=unknown
17091 hardcode_into_libs=no
17093 # when you set need_version to no, make sure it does not cause -set_version
17094 # flags to be left without arguments
17095 need_version=unknown
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17101 shlibpath_var=LIBPATH
17103 # AIX 3 has no versioning support, so we append a major version to the name.
17104 soname_spec='${libname}${release}${shared_ext}$major'
17111 hardcode_into_libs=yes
17112 if test "$host_cpu" = ia64; then
17113 # AIX 5 supports IA64
17114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17115 shlibpath_var=LD_LIBRARY_PATH
17117 # With GCC up to 2.95.x, collect2 would create an import file
17118 # for dependence libraries. The import file would start with
17119 # the line `#! .'. This would cause the generated library to
17120 # depend on `.', always an invalid library. This was fixed in
17121 # development snapshots of GCC prior to 3.0.
17123 aix4 | aix4.[01] | aix4.[01].*)
17124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17129 can_build_shared=no
17133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17134 # soname into executable. Probably we can add versioning support to
17135 # collect2, so additional links can be useful in future.
17136 if test "$aix_use_runtimelinking" = yes; then
17137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17138 # instead of lib<name>.a to let people know that these are not
17139 # typical AIX shared libraries.
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 # We preserve .a as extension for shared libraries through AIX4.2
17143 # and later when we are not doing run time linking.
17144 library_names_spec='${libname}${release}.a $libname.a'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17147 shlibpath_var=LIBPATH
17152 library_names_spec='$libname.ixlibrary $libname.a'
17153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17154 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'
17158 library_names_spec='${libname}${shared_ext}'
17159 dynamic_linker="$host_os ld.so"
17160 shlibpath_var=LIBRARY_PATH
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17172 # the default ld.so.conf also contains /usr/contrib/lib and
17173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17174 # libtool to hard-code these into programs
17177 cygwin* | mingw* | pw32*)
17178 version_type=windows
17183 case $GCC,$host_os in
17184 yes,cygwin* | yes,mingw* | yes,pw32*)
17185 library_names_spec='$libname.dll.a'
17186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17187 postinstall_cmds='base_file=`basename \${file}`~
17188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17189 dldir=$destdir/`dirname \$dlpath`~
17190 test -d \$dldir || mkdir -p \$dldir~
17191 $install_prog $dir/$dlname \$dldir/$dlname~
17192 chmod a+x \$dldir/$dlname'
17193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17194 dlpath=$dir/\$dldll~
17196 shlibpath_overrides_runpath=yes
17200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17205 # MinGW DLLs use traditional 'lib' prefix
17206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17208 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17209 # It is most probably a Windows format PATH printed by
17210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17211 # path with ; separators, and with drive letters. We can handle the
17212 # drive letters (cygwin fileutils understands them), so leave them,
17213 # especially as we might pass files found there to a mingw objdump,
17214 # which wouldn't understand a cygwinified path. Ahh.
17215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17221 # pw32 DLLs use 'pw' prefix rather than 'lib'
17222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17231 dynamic_linker='Win32 ld.exe'
17232 # FIXME: first we should search . and the directory the executable is in
17236 darwin* | rhapsody*)
17237 dynamic_linker="$host_os dyld"
17238 version_type=darwin
17241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17242 soname_spec='${libname}${release}${major}$shared_ext'
17243 shlibpath_overrides_runpath=yes
17244 shlibpath_var=DYLD_LIBRARY_PATH
17245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17246 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17247 if test "$GCC" = yes; then
17248 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"`
17250 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 shlibpath_var=LD_LIBRARY_PATH
17268 freebsd* | dragonfly*)
17269 # DragonFly does not have aout. When/if they implement a new
17270 # versioning mechanism, adjust this.
17271 if test -x /usr/bin/objformat; then
17272 objformat=`/usr/bin/objformat`
17275 freebsd[123]*) objformat=aout ;;
17276 *) objformat=elf ;;
17279 version_type=freebsd-$objformat
17280 case $version_type in
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17291 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17296 freebsd3.[01]* | freebsdelf3.[01]*)
17297 shlibpath_overrides_runpath=yes
17298 hardcode_into_libs=yes
17300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17302 shlibpath_overrides_runpath=no
17303 hardcode_into_libs=yes
17305 freebsd*) # from 4.6 on
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 hardcode_into_libs=yes
17322 hpux9* | hpux10* | hpux11*)
17323 # Give a soname corresponding to the major version so that dld.sl refuses to
17324 # link against other versions.
17331 hardcode_into_libs=yes
17332 dynamic_linker="$host_os dld.so"
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 if test "X$HPUX_IA64_MODE" = X32; then
17338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17346 hardcode_into_libs=yes
17347 dynamic_linker="$host_os dld.sl"
17348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17357 dynamic_linker="$host_os dld.sl"
17358 shlibpath_var=SHLIB_PATH
17359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17365 postinstall_cmds='chmod 555 $lib'
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=no
17377 hardcode_into_libs=yes
17380 irix5* | irix6* | nonstopux*)
17382 nonstopux*) version_type=nonstopux ;;
17384 if test "$lt_cv_prog_gnu_ld" = yes; then
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17395 irix5* | nonstopux*)
17396 libsuff= shlibsuff=
17399 case $LD in # libtool.m4 will add one of these switches to LD
17400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401 libsuff= shlibsuff= libmagic=32-bit;;
17402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403 libsuff=32 shlibsuff=N32 libmagic=N32;;
17404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406 *) libsuff= shlibsuff= libmagic=never-match;;
17410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414 hardcode_into_libs=yes
17417 # No shared lib support for Linux oldld, aout, or coff.
17418 linux*oldld* | linux*aout* | linux*coff*)
17422 # This must be Linux ELF.
17423 linux* | k*bsd*-gnu)
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 # This implies no fast_install, which is unacceptable.
17433 # Some rework will be needed to allow for fast_install
17434 # before this can be enabled.
17435 hardcode_into_libs=yes
17437 # Append ld.so.conf contents to the search path
17438 if test -f /etc/ld.so.conf; then
17439 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' ' '`
17440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17443 # We used to test for /lib/ld.so.1 and disable shared libraries on
17444 # powerpc, because MkLinux only supported shared libraries with the
17445 # GNU dynamic linker. Since this was broken with cross compilers,
17446 # most powerpc-linux boxes support dynamic linking these days and
17447 # people can always --disable-shared, the test was removed, and we
17448 # assume the GNU/Linux dynamic linker is in use.
17449 dynamic_linker='GNU/Linux ld.so'
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='NetBSD ld.elf_so'
17468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 dynamic_linker='NetBSD (a.out) ld.so'
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474 soname_spec='${libname}${release}${shared_ext}$major'
17475 dynamic_linker='NetBSD ld.elf_so'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17501 sys_lib_dlsearch_path_spec="/usr/lib"
17503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17506 *) need_version=no ;;
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17513 openbsd2.[89] | openbsd2.[89].*)
17514 shlibpath_overrides_runpath=no
17517 shlibpath_overrides_runpath=yes
17521 shlibpath_overrides_runpath=yes
17526 libname_spec='$name'
17529 library_names_spec='$libname${shared_ext} $libname.a'
17530 dynamic_linker='OS/2 ld.exe'
17531 shlibpath_var=LIBPATH
17534 osf3* | osf4* | osf5*)
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=yes
17553 hardcode_into_libs=yes
17554 # ldd complains unless libraries are executable
17555 postinstall_cmds='chmod +x $lib'
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 if test "$with_gnu_ld" = yes; then
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 case $host_vendor in
17577 shlibpath_overrides_runpath=no
17579 export_dynamic_flag_spec='${wl}-Blargedynsym'
17580 runpath_var=LD_RUN_PATH
17588 shlibpath_overrides_runpath=no
17589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17595 if test -d /usr/nec ;then
17597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17598 soname_spec='$libname${shared_ext}.$major'
17599 shlibpath_var=LD_LIBRARY_PATH
17603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17604 version_type=freebsd-elf
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 hardcode_into_libs=yes
17611 if test "$with_gnu_ld" = yes; then
17612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17613 shlibpath_overrides_runpath=no
17615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17616 shlibpath_overrides_runpath=yes
17619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17623 sys_lib_dlsearch_path_spec='/usr/lib'
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 shlibpath_var=LD_LIBRARY_PATH
17637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17638 echo "${ECHO_T}$dynamic_linker" >&6; }
17639 test "$dynamic_linker" = no && can_build_shared=no
17641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17642 if test "$GCC" = yes; then
17643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17648 hardcode_action_F77=
17649 if test -n "$hardcode_libdir_flag_spec_F77" || \
17650 test -n "$runpath_var_F77" || \
17651 test "X$hardcode_automatic_F77" = "Xyes" ; then
17653 # We can hardcode non-existant directories.
17654 if test "$hardcode_direct_F77" != no &&
17655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17656 # have to relink, otherwise we might link with an installed library
17657 # when we should be linking with a yet-to-be-installed one
17658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17659 test "$hardcode_minus_L_F77" != no; then
17660 # Linking always hardcodes the temporary library directory.
17661 hardcode_action_F77=relink
17663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17664 hardcode_action_F77=immediate
17667 # We cannot hardcode anything, or else we can only hardcode existing
17669 hardcode_action_F77=unsupported
17671 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17672 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17674 if test "$hardcode_action_F77" = relink; then
17675 # Fast installation is not supported
17676 enable_fast_install=no
17677 elif test "$shlibpath_overrides_runpath" = yes ||
17678 test "$enable_shared" = no; then
17679 # Fast installation is not necessary
17680 enable_fast_install=needless
17684 # The else clause should only fire when bootstrapping the
17685 # libtool distribution, otherwise you forgot to ship ltmain.sh
17686 # with your package, and you will get complaints that there are
17687 # no rules to generate ltmain.sh.
17688 if test -f "$ltmain"; then
17689 # See if we are running on zsh, and set the options which allow our commands through
17690 # without removal of \ escapes.
17691 if test -n "${ZSH_VERSION+set}" ; then
17692 setopt NO_GLOB_SUBST
17694 # Now quote all the things that may contain metacharacters while being
17695 # careful not to overquote the AC_SUBSTed values. We take copies of the
17696 # variables and quote the copies for generation of the libtool script.
17697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17701 deplibs_check_method reload_flag reload_cmds need_locks \
17702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17703 lt_cv_sys_global_symbol_to_c_name_address \
17704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17705 old_postinstall_cmds old_postuninstall_cmds \
17709 lt_prog_compiler_wl_F77 \
17710 lt_prog_compiler_pic_F77 \
17711 lt_prog_compiler_static_F77 \
17712 lt_prog_compiler_no_builtin_flag_F77 \
17713 export_dynamic_flag_spec_F77 \
17714 thread_safe_flag_spec_F77 \
17715 whole_archive_flag_spec_F77 \
17716 enable_shared_with_static_runtimes_F77 \
17717 old_archive_cmds_F77 \
17718 old_archive_from_new_cmds_F77 \
17719 predep_objects_F77 \
17720 postdep_objects_F77 \
17723 compiler_lib_search_path_F77 \
17725 archive_expsym_cmds_F77 \
17726 postinstall_cmds_F77 \
17727 postuninstall_cmds_F77 \
17728 old_archive_from_expsyms_cmds_F77 \
17729 allow_undefined_flag_F77 \
17730 no_undefined_flag_F77 \
17731 export_symbols_cmds_F77 \
17732 hardcode_libdir_flag_spec_F77 \
17733 hardcode_libdir_flag_spec_ld_F77 \
17734 hardcode_libdir_separator_F77 \
17735 hardcode_automatic_F77 \
17737 module_expsym_cmds_F77 \
17738 lt_cv_prog_compiler_c_o_F77 \
17739 exclude_expsyms_F77 \
17740 include_expsyms_F77; do
17743 old_archive_cmds_F77 | \
17744 old_archive_from_new_cmds_F77 | \
17745 archive_cmds_F77 | \
17746 archive_expsym_cmds_F77 | \
17747 module_cmds_F77 | \
17748 module_expsym_cmds_F77 | \
17749 old_archive_from_expsyms_cmds_F77 | \
17750 export_symbols_cmds_F77 | \
17751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17752 postinstall_cmds | postuninstall_cmds | \
17753 old_postinstall_cmds | old_postuninstall_cmds | \
17754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17755 # Double-quote double-evaled strings.
17756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17765 *'\$0 --fallback-echo"')
17766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17772 cat <<__EOF__ >> "$cfgfile"
17773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17777 # Shell to use when invoking shell scripts.
17780 # Whether or not to build shared libraries.
17781 build_libtool_libs=$enable_shared
17783 # Whether or not to build static libraries.
17784 build_old_libs=$enable_static
17786 # Whether or not to add -lc for building shared libraries.
17787 build_libtool_need_lc=$archive_cmds_need_lc_F77
17789 # Whether or not to disallow shared libs when runtime libs are static
17790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17792 # Whether or not to optimize for fast installation.
17793 fast_install=$enable_fast_install
17796 host_alias=$host_alias
17800 # The build system.
17801 build_alias=$build_alias
17805 # An echo program that does not interpret backslashes.
17810 AR_FLAGS=$lt_AR_FLAGS
17815 # LTCC compiler flags.
17816 LTCFLAGS=$lt_LTCFLAGS
17818 # A language-specific compiler.
17819 CC=$lt_compiler_F77
17821 # Is the compiler the GNU C compiler?
17827 # The linker used to build libraries.
17830 # Whether we need hard or soft links.
17833 # A BSD-compatible nm program.
17836 # A symbol stripping program
17839 # Used to examine libraries when file_magic_cmd begins "file"
17840 MAGIC_CMD=$MAGIC_CMD
17842 # Used on cygwin: DLL creation program.
17845 # Used on cygwin: object dumper.
17848 # Used on cygwin: assembler.
17851 # The name of the directory that contains temporary libtool files.
17854 # How to create reloadable object files.
17855 reload_flag=$lt_reload_flag
17856 reload_cmds=$lt_reload_cmds
17858 # How to pass a linker flag through the compiler.
17859 wl=$lt_lt_prog_compiler_wl_F77
17861 # Object file suffix (normally "o").
17862 objext="$ac_objext"
17864 # Old archive suffix (normally "a").
17867 # Shared library suffix (normally ".so").
17868 shrext_cmds='$shrext_cmds'
17870 # Executable file suffix (normally "").
17873 # Additional compiler flags for building library objects.
17874 pic_flag=$lt_lt_prog_compiler_pic_F77
17877 # What is the maximum length of a command?
17878 max_cmd_len=$lt_cv_sys_max_cmd_len
17880 # Does compiler simultaneously support -c and -o options?
17881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17883 # Must we lock files when doing compilation?
17884 need_locks=$lt_need_locks
17886 # Do we need the lib prefix for modules?
17887 need_lib_prefix=$need_lib_prefix
17889 # Do we need a version for libraries?
17890 need_version=$need_version
17892 # Whether dlopen is supported.
17893 dlopen_support=$enable_dlopen
17895 # Whether dlopen of programs is supported.
17896 dlopen_self=$enable_dlopen_self
17898 # Whether dlopen of statically linked programs is supported.
17899 dlopen_self_static=$enable_dlopen_self_static
17901 # Compiler flag to prevent dynamic linking.
17902 link_static_flag=$lt_lt_prog_compiler_static_F77
17904 # Compiler flag to turn off builtin functions.
17905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17907 # Compiler flag to allow reflexive dlopens.
17908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17910 # Compiler flag to generate shared objects directly from archives.
17911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17913 # Compiler flag to generate thread-safe objects.
17914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17916 # Library versioning type.
17917 version_type=$version_type
17919 # Format of library name prefix.
17920 libname_spec=$lt_libname_spec
17922 # List of archive names. First name is the real one, the rest are links.
17923 # The last name is the one that the linker finds with -lNAME.
17924 library_names_spec=$lt_library_names_spec
17926 # The coded name of the library, if different from the real name.
17927 soname_spec=$lt_soname_spec
17929 # Commands used to build and install an old-style archive.
17931 old_archive_cmds=$lt_old_archive_cmds_F77
17932 old_postinstall_cmds=$lt_old_postinstall_cmds
17933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17935 # Create an old-style archive from a shared archive.
17936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17938 # Create a temporary old-style archive to link instead of a shared archive.
17939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17941 # Commands used to build and install a shared archive.
17942 archive_cmds=$lt_archive_cmds_F77
17943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17944 postinstall_cmds=$lt_postinstall_cmds
17945 postuninstall_cmds=$lt_postuninstall_cmds
17947 # Commands used to build a loadable module (assumed same as above if empty)
17948 module_cmds=$lt_module_cmds_F77
17949 module_expsym_cmds=$lt_module_expsym_cmds_F77
17951 # Commands to strip libraries.
17952 old_striplib=$lt_old_striplib
17953 striplib=$lt_striplib
17955 # Dependencies to place before the objects being linked to create a
17957 predep_objects=$lt_predep_objects_F77
17959 # Dependencies to place after the objects being linked to create a
17961 postdep_objects=$lt_postdep_objects_F77
17963 # Dependencies to place before the objects being linked to create a
17965 predeps=$lt_predeps_F77
17967 # Dependencies to place after the objects being linked to create a
17969 postdeps=$lt_postdeps_F77
17971 # The library search path used internally by the compiler when linking
17972 # a shared library.
17973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17975 # Method to check whether dependent libraries are shared objects.
17976 deplibs_check_method=$lt_deplibs_check_method
17978 # Command to use when deplibs_check_method == file_magic.
17979 file_magic_cmd=$lt_file_magic_cmd
17981 # Flag that allows shared libraries with undefined symbols to be built.
17982 allow_undefined_flag=$lt_allow_undefined_flag_F77
17984 # Flag that forces no undefined symbols.
17985 no_undefined_flag=$lt_no_undefined_flag_F77
17987 # Commands used to finish a libtool library installation in a directory.
17988 finish_cmds=$lt_finish_cmds
17990 # Same as above, but a single script fragment to be evaled but not shown.
17991 finish_eval=$lt_finish_eval
17993 # Take the output of nm and produce a listing of raw symbols and C names.
17994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17996 # Transform the output of nm in a proper C declaration
17997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17999 # Transform the output of nm in a C name address pair
18000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18002 # This is the shared library runtime path variable.
18003 runpath_var=$runpath_var
18005 # This is the shared library path variable.
18006 shlibpath_var=$shlibpath_var
18008 # Is shlibpath searched before the hard-coded library search path?
18009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18011 # How to hardcode a shared library path into an executable.
18012 hardcode_action=$hardcode_action_F77
18014 # Whether we should hardcode library paths into libraries.
18015 hardcode_into_libs=$hardcode_into_libs
18017 # Flag to hardcode \$libdir into a binary during linking.
18018 # This must work even if \$libdir does not exist.
18019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18021 # If ld is used when linking, flag to hardcode \$libdir into
18022 # a binary during linking. This must work even if \$libdir does
18024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18026 # Whether we need a single -rpath flag with a separated argument.
18027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18030 # resulting binary.
18031 hardcode_direct=$hardcode_direct_F77
18033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18034 # resulting binary.
18035 hardcode_minus_L=$hardcode_minus_L_F77
18037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18038 # the resulting binary.
18039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18041 # Set to yes if building a shared library automatically hardcodes DIR into the library
18042 # and all subsequent libraries and executables linked against it.
18043 hardcode_automatic=$hardcode_automatic_F77
18045 # Variables whose values should be saved in libtool wrapper scripts and
18046 # restored at relink time.
18047 variables_saved_for_relink="$variables_saved_for_relink"
18049 # Whether libtool must link a program against all its dependency libraries.
18050 link_all_deplibs=$link_all_deplibs_F77
18052 # Compile-time system search path for libraries
18053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18055 # Run-time system search path for libraries
18056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18058 # Fix the shell variable \$srcfile for the compiler.
18059 fix_srcfile_path="$fix_srcfile_path_F77"
18061 # Set to yes if exported symbols are required.
18062 always_export_symbols=$always_export_symbols_F77
18064 # The commands to list exported symbols.
18065 export_symbols_cmds=$lt_export_symbols_cmds_F77
18067 # The commands to extract the exported symbol list from a shared archive.
18068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18070 # Symbols that should not be listed in the preloaded symbols.
18071 exclude_expsyms=$lt_exclude_expsyms_F77
18073 # Symbols that must always be exported.
18074 include_expsyms=$lt_include_expsyms_F77
18076 # ### END LIBTOOL TAG CONFIG: $tagname
18082 # If there is no Makefile yet, we rely on a make rule to execute
18083 # `config.status --recheck' to rerun these tests and create the
18084 # libtool script then.
18085 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18086 if test -f "$ltmain_in"; then
18087 test -f Makefile && make "$ltmain"
18093 ac_cpp='$CPP $CPPFLAGS'
18094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18106 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18109 # Source file extension for Java test sources.
18112 # Object file extension for compiled Java test sources.
18116 # Code to be used in simple compile tests
18117 lt_simple_compile_test_code="class foo {}\n"
18119 # Code to be used in simple link tests
18120 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124 # If no C compiler was specified, use CC.
18127 # If no C compiler flags were specified, use CFLAGS.
18128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18130 # Allow CC to be a program name with arguments.
18134 # save warnings/boilerplate of simple test code
18135 ac_outfile=conftest.$ac_objext
18136 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18138 _lt_compiler_boilerplate=`cat conftest.err`
18141 ac_outfile=conftest.$ac_objext
18142 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18144 _lt_linker_boilerplate=`cat conftest.err`
18148 # Allow CC to be a program name with arguments.
18153 for cc_temp in $compiler""; do
18155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18164 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18165 archive_cmds_need_lc_GCJ=no
18167 old_archive_cmds_GCJ=$old_archive_cmds
18170 lt_prog_compiler_no_builtin_flag_GCJ=
18172 if test "$GCC" = yes; then
18173 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18176 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 lt_cv_prog_compiler_rtti_exceptions=no
18182 ac_outfile=conftest.$ac_objext
18183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18184 lt_compiler_flag="-fno-rtti -fno-exceptions"
18185 # Insert the option either (1) after the last *FLAGS variable, or
18186 # (2) before a word containing "conftest.", or (3) at the end.
18187 # Note that $ac_compile itself does not contain backslashes and begins
18188 # with a dollar sign (not a hyphen), so the echo should work correctly.
18189 # The option is referenced via a variable to avoid confusing sed.
18190 lt_compile=`echo "$ac_compile" | $SED \
18191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18193 -e 's:$: $lt_compiler_flag:'`
18194 (eval echo "\"\$as_me:18194: $lt_compile\"" >&5)
18195 (eval "$lt_compile" 2>conftest.err)
18197 cat conftest.err >&5
18198 echo "$as_me:18198: \$? = $ac_status" >&5
18199 if (exit $ac_status) && test -s "$ac_outfile"; then
18200 # The compiler can only warn and ignore the option if not recognized
18201 # So say no if there are warnings other than the usual output.
18202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18205 lt_cv_prog_compiler_rtti_exceptions=yes
18211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18215 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18222 lt_prog_compiler_wl_GCJ=
18223 lt_prog_compiler_pic_GCJ=
18224 lt_prog_compiler_static_GCJ=
18226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18229 if test "$GCC" = yes; then
18230 lt_prog_compiler_wl_GCJ='-Wl,'
18231 lt_prog_compiler_static_GCJ='-static'
18235 # All AIX code is PIC.
18236 if test "$host_cpu" = ia64; then
18237 # AIX 5 now supports IA64 processor
18238 lt_prog_compiler_static_GCJ='-Bstatic'
18243 # FIXME: we need at least 68020 code to build shared libraries, but
18244 # adding the `-m68020' flag to GCC prevents building anything better,
18246 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18250 # PIC is the default for these OSes.
18253 mingw* | pw32* | os2*)
18254 # This hack is so that the source file can tell whether it is being
18255 # built for inclusion in a dll (and should export symbols for example).
18256 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18259 darwin* | rhapsody*)
18260 # PIC is the default on this platform
18261 # Common symbols not allowed in MH_DYLIB files
18262 lt_prog_compiler_pic_GCJ='-fno-common'
18266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18267 # Instead, we relocate shared libraries at runtime.
18271 # Just because we use GCC doesn't mean we suddenly get shared libraries
18272 # on systems that don't support them.
18273 lt_prog_compiler_can_build_shared_GCJ=no
18278 if test -d /usr/nec; then
18279 lt_prog_compiler_pic_GCJ=-Kconform_pic
18284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285 # not for PA HP-UX.
18291 lt_prog_compiler_pic_GCJ='-fPIC'
18297 lt_prog_compiler_pic_GCJ='-fPIC'
18301 # PORTME Check for flag to pass linker flags through the system compiler.
18304 lt_prog_compiler_wl_GCJ='-Wl,'
18305 if test "$host_cpu" = ia64; then
18306 # AIX 5 now supports IA64 processor
18307 lt_prog_compiler_static_GCJ='-Bstatic'
18309 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18313 # PIC is the default on this platform
18314 # Common symbols not allowed in MH_DYLIB files
18315 case $cc_basename in
18317 lt_prog_compiler_pic_GCJ='-qnocommon'
18318 lt_prog_compiler_wl_GCJ='-Wl,'
18323 mingw* | pw32* | os2*)
18324 # This hack is so that the source file can tell whether it is being
18325 # built for inclusion in a dll (and should export symbols for example).
18326 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18329 hpux9* | hpux10* | hpux11*)
18330 lt_prog_compiler_wl_GCJ='-Wl,'
18331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18332 # not for PA HP-UX.
18338 lt_prog_compiler_pic_GCJ='+Z'
18341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18342 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18345 irix5* | irix6* | nonstopux*)
18346 lt_prog_compiler_wl_GCJ='-Wl,'
18347 # PIC (with -KPIC) is the default.
18348 lt_prog_compiler_static_GCJ='-non_shared'
18352 lt_prog_compiler_pic_GCJ='-KPIC'
18353 lt_prog_compiler_static_GCJ='-Bstatic'
18356 linux* | k*bsd*-gnu)
18357 case $cc_basename in
18359 lt_prog_compiler_wl_GCJ='-Wl,'
18360 lt_prog_compiler_pic_GCJ='-KPIC'
18361 lt_prog_compiler_static_GCJ='-static'
18363 pgcc* | pgf77* | pgf90* | pgf95*)
18364 # Portland Group compilers (*not* the Pentium gcc compiler,
18365 # which looks to be a dead project)
18366 lt_prog_compiler_wl_GCJ='-Wl,'
18367 lt_prog_compiler_pic_GCJ='-fpic'
18368 lt_prog_compiler_static_GCJ='-Bstatic'
18371 lt_prog_compiler_wl_GCJ='-Wl,'
18372 # All Alpha code is PIC.
18373 lt_prog_compiler_static_GCJ='-non_shared'
18378 osf3* | osf4* | osf5*)
18379 lt_prog_compiler_wl_GCJ='-Wl,'
18380 # All OSF/1 code is PIC.
18381 lt_prog_compiler_static_GCJ='-non_shared'
18385 lt_prog_compiler_pic_GCJ='-KPIC'
18386 lt_prog_compiler_static_GCJ='-Bstatic'
18387 case $cc_basename in
18388 f77* | f90* | f95*)
18389 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18391 lt_prog_compiler_wl_GCJ='-Wl,';;
18396 lt_prog_compiler_wl_GCJ='-Qoption ld '
18397 lt_prog_compiler_pic_GCJ='-PIC'
18398 lt_prog_compiler_static_GCJ='-Bstatic'
18401 sysv4 | sysv4.2uw2* | sysv4.3*)
18402 lt_prog_compiler_wl_GCJ='-Wl,'
18403 lt_prog_compiler_pic_GCJ='-KPIC'
18404 lt_prog_compiler_static_GCJ='-Bstatic'
18408 if test -d /usr/nec ;then
18409 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18410 lt_prog_compiler_static_GCJ='-Bstatic'
18414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18415 lt_prog_compiler_wl_GCJ='-Wl,'
18416 lt_prog_compiler_pic_GCJ='-KPIC'
18417 lt_prog_compiler_static_GCJ='-Bstatic'
18421 lt_prog_compiler_wl_GCJ='-Wl,'
18422 lt_prog_compiler_can_build_shared_GCJ=no
18426 lt_prog_compiler_pic_GCJ='-pic'
18427 lt_prog_compiler_static_GCJ='-Bstatic'
18431 lt_prog_compiler_can_build_shared_GCJ=no
18436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18437 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18440 # Check to make sure the PIC flag actually works.
18442 if test -n "$lt_prog_compiler_pic_GCJ"; then
18444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18446 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 lt_prog_compiler_pic_works_GCJ=no
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18452 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18453 # Insert the option either (1) after the last *FLAGS variable, or
18454 # (2) before a word containing "conftest.", or (3) at the end.
18455 # Note that $ac_compile itself does not contain backslashes and begins
18456 # with a dollar sign (not a hyphen), so the echo should work correctly.
18457 # The option is referenced via a variable to avoid confusing sed.
18458 lt_compile=`echo "$ac_compile" | $SED \
18459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18461 -e 's:$: $lt_compiler_flag:'`
18462 (eval echo "\"\$as_me:18462: $lt_compile\"" >&5)
18463 (eval "$lt_compile" 2>conftest.err)
18465 cat conftest.err >&5
18466 echo "$as_me:18466: \$? = $ac_status" >&5
18467 if (exit $ac_status) && test -s "$ac_outfile"; then
18468 # The compiler can only warn and ignore the option if not recognized
18469 # So say no if there are warnings other than the usual output.
18470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18473 lt_prog_compiler_pic_works_GCJ=yes
18479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18480 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18482 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18483 case $lt_prog_compiler_pic_GCJ in
18485 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18488 lt_prog_compiler_pic_GCJ=
18489 lt_prog_compiler_can_build_shared_GCJ=no
18494 # For platforms which do not support PIC, -DPIC is meaningless:
18496 lt_prog_compiler_pic_GCJ=
18499 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18504 # Check to make sure the static flag actually works.
18506 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18509 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 lt_prog_compiler_static_works_GCJ=no
18513 save_LDFLAGS="$LDFLAGS"
18514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18517 # The linker can only warn and ignore the option if not recognized
18518 # So say no if there are warnings
18519 if test -s conftest.err; then
18520 # Append any errors to the config.log.
18521 cat conftest.err 1>&5
18522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18524 if diff conftest.exp conftest.er2 >/dev/null; then
18525 lt_prog_compiler_static_works_GCJ=yes
18528 lt_prog_compiler_static_works_GCJ=yes
18532 LDFLAGS="$save_LDFLAGS"
18535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18536 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18538 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18541 lt_prog_compiler_static_GCJ=
18545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18547 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 lt_cv_prog_compiler_c_o_GCJ=no
18551 $rm -r conftest 2>/dev/null
18555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18557 lt_compiler_flag="-o out/conftest2.$ac_objext"
18558 # Insert the option either (1) after the last *FLAGS variable, or
18559 # (2) before a word containing "conftest.", or (3) at the end.
18560 # Note that $ac_compile itself does not contain backslashes and begins
18561 # with a dollar sign (not a hyphen), so the echo should work correctly.
18562 lt_compile=`echo "$ac_compile" | $SED \
18563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18565 -e 's:$: $lt_compiler_flag:'`
18566 (eval echo "\"\$as_me:18566: $lt_compile\"" >&5)
18567 (eval "$lt_compile" 2>out/conftest.err)
18569 cat out/conftest.err >&5
18570 echo "$as_me:18570: \$? = $ac_status" >&5
18571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18573 # The compiler can only warn and ignore the option if not recognized
18574 # So say no if there are warnings
18575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18578 lt_cv_prog_compiler_c_o_GCJ=yes
18583 # SGI C++ compiler will create directory out/ii_files/ for
18584 # template instantiation
18585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18586 $rm out/* && rmdir out
18592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18596 hard_links="nottested"
18597 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18598 # do not overwrite the value of need_locks provided by the user
18599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18605 ln conftest.a conftest.b 2>&5 || hard_links=no
18606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18607 { echo "$as_me:$LINENO: result: $hard_links" >&5
18608 echo "${ECHO_T}$hard_links" >&6; }
18609 if test "$hard_links" = no; then
18610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18622 allow_undefined_flag_GCJ=
18623 enable_shared_with_static_runtimes_GCJ=no
18625 archive_expsym_cmds_GCJ=
18626 old_archive_From_new_cmds_GCJ=
18627 old_archive_from_expsyms_cmds_GCJ=
18628 export_dynamic_flag_spec_GCJ=
18629 whole_archive_flag_spec_GCJ=
18630 thread_safe_flag_spec_GCJ=
18631 hardcode_libdir_flag_spec_GCJ=
18632 hardcode_libdir_flag_spec_ld_GCJ=
18633 hardcode_libdir_separator_GCJ=
18634 hardcode_direct_GCJ=no
18635 hardcode_minus_L_GCJ=no
18636 hardcode_shlibpath_var_GCJ=unsupported
18637 link_all_deplibs_GCJ=unknown
18638 hardcode_automatic_GCJ=no
18640 module_expsym_cmds_GCJ=
18641 always_export_symbols_GCJ=no
18642 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18643 # include_expsyms should be a list of space-separated symbols to be *always*
18644 # included in the symbol list
18645 include_expsyms_GCJ=
18646 # exclude_expsyms can be an extended regexp of symbols to exclude
18647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18649 # as well as any symbol that contains `d'.
18650 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18652 # platforms (ab)use it in PIC code, but their linkers get confused if
18653 # the symbol is explicitly referenced. Since portable code cannot
18654 # rely on this symbol name, it's probably fine to never include it in
18655 # preloaded symbol tables.
18656 extract_expsyms_cmds=
18657 # Just being paranoid about ensuring that cc_basename is set.
18658 for cc_temp in $compiler""; do
18660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18669 cygwin* | mingw* | pw32*)
18670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18671 # When not using gcc, we currently assume that we are using
18672 # Microsoft Visual C++.
18673 if test "$GCC" != yes; then
18678 # we just hope/assume this is gcc and not c89 (= MSVC++)
18687 if test "$with_gnu_ld" = yes; then
18688 # If archive_cmds runs LD, not CC, wlarc should be empty
18691 # Set some defaults for GNU ld with shared library support. These
18692 # are reset later if shared libraries are not supported. Putting them
18693 # here allows them to be overridden if necessary.
18694 runpath_var=LD_RUN_PATH
18695 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18696 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18697 # ancient GNU ld didn't support --whole-archive et. al.
18698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18699 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18701 whole_archive_flag_spec_GCJ=
18703 supports_anon_versioning=no
18704 case `$LD -v 2>/dev/null` in
18705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18708 *\ 2.11.*) ;; # other 2.11 versions
18709 *) supports_anon_versioning=yes ;;
18712 # See if GNU ld supports shared libraries.
18714 aix3* | aix4* | aix5*)
18715 # On AIX/PPC, the GNU linker is very broken
18716 if test "$host_cpu" != ia64; then
18720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18721 *** to be unable to reliably create shared libraries on AIX.
18722 *** Therefore, libtool is disabling shared libraries support. If you
18723 *** really care for shared libraries, you may want to modify your PATH
18724 *** so that a non-GNU linker is found, and then restart.
18731 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)'
18732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18733 hardcode_minus_L_GCJ=yes
18735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18736 # that the semantics of dynamic libraries on AmigaOS, at least up
18737 # to version 4, is to share data among multiple programs linked
18738 # with the same dynamic library. Since this doesn't match the
18739 # behavior of shared libraries on other platforms, we can't use
18745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18746 allow_undefined_flag_GCJ=unsupported
18747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18748 # support --undefined. This deserves some investigation. FIXME
18749 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18755 cygwin* | mingw* | pw32*)
18756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18757 # as there is no search path for DLLs.
18758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18759 allow_undefined_flag_GCJ=unsupported
18760 always_export_symbols_GCJ=no
18761 enable_shared_with_static_runtimes_GCJ=yes
18762 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18765 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18766 # If the export-symbols file already is a .def file (1st line
18767 # is EXPORTS), use it as is; otherwise, prepend...
18768 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18769 cp $export_symbols $output_objdir/$soname.def;
18771 echo EXPORTS > $output_objdir/$soname.def;
18772 cat $export_symbols >> $output_objdir/$soname.def;
18774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18781 hardcode_direct_GCJ=no
18782 hardcode_shlibpath_var_GCJ=no
18783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18784 export_dynamic_flag_spec_GCJ='${wl}-E'
18785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18786 # Instead, shared libraries are loaded at an image base (0x10000000 by
18787 # default) and relocated if they conflict, which is a slow very memory
18788 # consuming and fragmenting process. To avoid this, we pick a random,
18789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18791 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'
18792 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'
18795 linux* | k*bsd*-gnu)
18796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18798 case $cc_basename,$host_cpu in
18799 pgcc*) # Portland Group C compiler
18800 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'
18801 tmp_addflag=' $pic_flag'
18803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18804 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'
18805 tmp_addflag=' $pic_flag -Mnomain' ;;
18806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18807 tmp_addflag=' -i_dynamic' ;;
18808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18809 tmp_addflag=' -i_dynamic -nofor_main' ;;
18810 ifc* | ifort*) # Intel Fortran compiler
18811 tmp_addflag=' -nofor_main' ;;
18813 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18815 if test $supports_anon_versioning = yes; then
18816 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18818 $echo "local: *; };" >> $output_objdir/$libname.ver~
18819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18821 link_all_deplibs_GCJ=no
18827 netbsd* | netbsdelf*-gnu)
18828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18829 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18833 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18838 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18843 *** create shared libraries on Solaris systems. Therefore, libtool
18844 *** is disabling shared libraries support. We urge you to upgrade GNU
18845 *** binutils to release 2.9.1 or newer. Another option is to modify
18846 *** your PATH or compiler configuration so that the native linker is
18847 *** used, and then restart.
18850 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18852 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18859 case `$LD -v 2>&1` in
18860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18865 *** reliably create shared libraries on SCO systems. Therefore, libtool
18866 *** is disabling shared libraries support. We urge you to upgrade GNU
18867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18868 *** your PATH or compiler configuration so that the native linker is
18869 *** used, and then restart.
18874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18877 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18886 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18888 hardcode_direct_GCJ=yes
18889 hardcode_shlibpath_var_GCJ=no
18893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18902 if test "$ld_shlibs_GCJ" = no; then
18904 hardcode_libdir_flag_spec_GCJ=
18905 export_dynamic_flag_spec_GCJ=
18906 whole_archive_flag_spec_GCJ=
18909 # PORTME fill in a description of your system's linker (not GNU ld)
18912 allow_undefined_flag_GCJ=unsupported
18913 always_export_symbols_GCJ=yes
18914 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'
18915 # Note: this linker hardcodes the directories in LIBPATH if there
18916 # are no directories specified by -L.
18917 hardcode_minus_L_GCJ=yes
18918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18919 # Neither direct hardcoding nor static linking is supported with a
18921 hardcode_direct_GCJ=unsupported
18926 if test "$host_cpu" = ia64; then
18927 # On IA64, the linker does run time linking by default, so we don't
18928 # have to do anything special.
18929 aix_use_runtimelinking=no
18930 exp_sym_flag='-Bexport'
18933 # If we're using GNU nm, then we don't want the "-C" option.
18934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18936 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'
18938 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'
18940 aix_use_runtimelinking=no
18942 # Test if we are trying to use run time linking or normal
18943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18944 # need to do runtime linking.
18945 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18946 for ld_flag in $LDFLAGS; do
18947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18948 aix_use_runtimelinking=yes
18955 exp_sym_flag='-bexport'
18956 no_entry_flag='-bnoentry'
18959 # When large executables or shared objects are built, AIX ld can
18960 # have problems creating the table of contents. If linking a library
18961 # or program results in "error TOC overflow" add -mminimal-toc to
18962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18965 archive_cmds_GCJ=''
18966 hardcode_direct_GCJ=yes
18967 hardcode_libdir_separator_GCJ=':'
18968 link_all_deplibs_GCJ=yes
18970 if test "$GCC" = yes; then
18971 case $host_os in aix4.[012]|aix4.[012].*)
18972 # We only want to do this on AIX 4.2 and lower, the check
18973 # below for broken collect2 doesn't work under 4.3+
18974 collect2name=`${CC} -print-prog-name=collect2`
18975 if test -f "$collect2name" && \
18976 strings "$collect2name" | grep resolve_lib_name >/dev/null
18978 # We have reworked collect2
18979 hardcode_direct_GCJ=yes
18981 # We have old collect2
18982 hardcode_direct_GCJ=unsupported
18983 # It fails to find uninstalled libraries when the uninstalled
18984 # path is not listed in the libpath. Setting hardcode_minus_L
18985 # to unsupported forces relinking
18986 hardcode_minus_L_GCJ=yes
18987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18988 hardcode_libdir_separator_GCJ=
18992 shared_flag='-shared'
18993 if test "$aix_use_runtimelinking" = yes; then
18994 shared_flag="$shared_flag "'${wl}-G'
18998 if test "$host_cpu" = ia64; then
18999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19000 # chokes on -Wl,-G. The following line is correct:
19003 if test "$aix_use_runtimelinking" = yes; then
19004 shared_flag='${wl}-G'
19006 shared_flag='${wl}-bM:SRE'
19011 # It seems that -bexpall does not export symbols beginning with
19012 # underscore (_), so it is better to generate a list of symbols to export.
19013 always_export_symbols_GCJ=yes
19014 if test "$aix_use_runtimelinking" = yes; then
19015 # Warning - without using the other runtime loading flags (-brtl),
19016 # -berok will link without error, but may produce a broken library.
19017 allow_undefined_flag_GCJ='-berok'
19018 # Determine the default libpath from the value encoded in an empty executable.
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19071 # Check for a 64-bit object if we didn't find anything.
19072 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; }
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19081 rm -f core conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19085 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19086 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"
19088 if test "$host_cpu" = ia64; then
19089 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19090 allow_undefined_flag_GCJ="-z nodefs"
19091 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"
19093 # Determine the default libpath from the value encoded in an empty executable.
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_link") 2>conftest.er1
19118 grep -v '^ *+' conftest.er1 >conftest.err
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest$ac_exeext'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19146 # Check for a 64-bit object if we didn't find anything.
19147 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; }
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19156 rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19160 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19161 # Warning - without using the other run time loading flags,
19162 # -berok will link without error, but may produce a broken library.
19163 no_undefined_flag_GCJ=' ${wl}-bernotok'
19164 allow_undefined_flag_GCJ=' ${wl}-berok'
19165 # Exported symbols can be pulled into shared objects from archives
19166 whole_archive_flag_spec_GCJ='$convenience'
19167 archive_cmds_need_lc_GCJ=yes
19168 # This is similar to how AIX traditionally builds its shared libraries.
19169 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'
19175 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)'
19176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19177 hardcode_minus_L_GCJ=yes
19178 # see comment about different semantics on the GNU ld section
19183 export_dynamic_flag_spec_GCJ=-rdynamic
19186 cygwin* | mingw* | pw32*)
19187 # When not using gcc, we currently assume that we are using
19188 # Microsoft Visual C++.
19189 # hardcode_libdir_flag_spec is actually meaningless, as there is
19190 # no search path for DLLs.
19191 hardcode_libdir_flag_spec_GCJ=' '
19192 allow_undefined_flag_GCJ=unsupported
19193 # Tell ltmain to make .lib files, not .a files.
19195 # Tell ltmain to make .dll files, not .so files.
19197 # FIXME: Setting linknames here is a bad hack.
19198 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19199 # The linker will automatically build a .lib file if we build a DLL.
19200 old_archive_From_new_cmds_GCJ='true'
19201 # FIXME: Should let the user specify the lib program.
19202 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19203 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19204 enable_shared_with_static_runtimes_GCJ=yes
19207 darwin* | rhapsody*)
19209 rhapsody* | darwin1.[012])
19210 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19213 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19214 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19216 case ${MACOSX_DEPLOYMENT_TARGET} in
19218 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19227 archive_cmds_need_lc_GCJ=no
19228 hardcode_direct_GCJ=no
19229 hardcode_automatic_GCJ=yes
19230 hardcode_shlibpath_var_GCJ=unsupported
19231 whole_archive_flag_spec_GCJ=''
19232 link_all_deplibs_GCJ=yes
19233 if test "$GCC" = yes ; then
19234 output_verbose_link_cmd='echo'
19235 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19236 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19238 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}'
19239 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}'
19241 case $cc_basename in
19243 output_verbose_link_cmd='echo'
19244 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19245 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19247 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}'
19248 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}'
19258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19259 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19260 hardcode_shlibpath_var_GCJ=no
19267 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19268 # support. Future versions do this automatically, but an explicit c++rt0.o
19269 # does not break anything, and helps significantly (at the cost of a little
19272 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19274 hardcode_direct_GCJ=yes
19275 hardcode_shlibpath_var_GCJ=no
19278 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19281 hardcode_direct_GCJ=yes
19282 hardcode_minus_L_GCJ=yes
19283 hardcode_shlibpath_var_GCJ=no
19286 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19287 freebsd* | dragonfly*)
19288 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19289 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19290 hardcode_direct_GCJ=yes
19291 hardcode_shlibpath_var_GCJ=no
19295 if test "$GCC" = yes; then
19296 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'
19298 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'
19300 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19301 hardcode_libdir_separator_GCJ=:
19302 hardcode_direct_GCJ=yes
19304 # hardcode_minus_L: Not really in the search PATH,
19305 # but as the default location of the library.
19306 hardcode_minus_L_GCJ=yes
19307 export_dynamic_flag_spec_GCJ='${wl}-E'
19311 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19312 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19314 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19316 if test "$with_gnu_ld" = no; then
19317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19318 hardcode_libdir_separator_GCJ=:
19320 hardcode_direct_GCJ=yes
19321 export_dynamic_flag_spec_GCJ='${wl}-E'
19323 # hardcode_minus_L: Not really in the search PATH,
19324 # but as the default location of the library.
19325 hardcode_minus_L_GCJ=yes
19330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19333 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19336 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19339 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19345 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19348 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19351 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19355 if test "$with_gnu_ld" = no; then
19356 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19357 hardcode_libdir_separator_GCJ=:
19361 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19362 hardcode_direct_GCJ=no
19363 hardcode_shlibpath_var_GCJ=no
19366 hardcode_direct_GCJ=yes
19367 export_dynamic_flag_spec_GCJ='${wl}-E'
19369 # hardcode_minus_L: Not really in the search PATH,
19370 # but as the default location of the library.
19371 hardcode_minus_L_GCJ=yes
19377 irix5* | irix6* | nonstopux*)
19378 if test "$GCC" = yes; then
19379 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'
19381 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'
19382 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19385 hardcode_libdir_separator_GCJ=:
19386 link_all_deplibs_GCJ=yes
19389 netbsd* | netbsdelf*-gnu)
19390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19393 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19396 hardcode_direct_GCJ=yes
19397 hardcode_shlibpath_var_GCJ=no
19401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19402 hardcode_direct_GCJ=yes
19403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19404 hardcode_libdir_separator_GCJ=:
19405 hardcode_shlibpath_var_GCJ=no
19409 hardcode_direct_GCJ=yes
19410 hardcode_shlibpath_var_GCJ=no
19411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19412 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19413 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19415 export_dynamic_flag_spec_GCJ='${wl}-E'
19418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19423 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19432 hardcode_minus_L_GCJ=yes
19433 allow_undefined_flag_GCJ=unsupported
19434 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'
19435 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19439 if test "$GCC" = yes; then
19440 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19441 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'
19443 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19444 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'
19446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19447 hardcode_libdir_separator_GCJ=:
19450 osf4* | osf5*) # as osf3* with the addition of -msym flag
19451 if test "$GCC" = yes; then
19452 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19453 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'
19454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19456 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19457 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'
19458 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~
19459 $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'
19461 # Both c and cxx compiler support -rpath directly
19462 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19464 hardcode_libdir_separator_GCJ=:
19468 no_undefined_flag_GCJ=' -z text'
19469 if test "$GCC" = yes; then
19471 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19473 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19476 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19477 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19480 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19481 hardcode_shlibpath_var_GCJ=no
19483 solaris2.[0-5] | solaris2.[0-5].*) ;;
19485 # The compiler driver will combine linker options so we
19486 # cannot just pass the convience library names through
19487 # without $wl, iff we do not link with $LD.
19488 # Luckily, gcc supports the same syntax we need for Sun Studio.
19489 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19494 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' ;;
19497 link_all_deplibs_GCJ=yes
19501 if test "x$host_vendor" = xsequent; then
19502 # Use $CC to link under sequent, because it throws in some extra .o
19503 # files that make .init and .fini sections work.
19504 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19506 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19509 hardcode_direct_GCJ=yes
19510 hardcode_minus_L_GCJ=yes
19511 hardcode_shlibpath_var_GCJ=no
19515 case $host_vendor in
19517 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518 hardcode_direct_GCJ=yes # is this really true???
19521 ## LD is ld it makes a PLAMLIB
19522 ## CC just makes a GrossModule.
19523 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19524 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19525 hardcode_direct_GCJ=no
19528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19532 runpath_var='LD_RUN_PATH'
19533 hardcode_shlibpath_var_GCJ=no
19537 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19538 hardcode_shlibpath_var_GCJ=no
19539 export_dynamic_flag_spec_GCJ='-Bexport'
19543 if test -d /usr/nec; then
19544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19545 hardcode_shlibpath_var_GCJ=no
19546 runpath_var=LD_RUN_PATH
19547 hardcode_runpath_var=yes
19552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19553 no_undefined_flag_GCJ='${wl}-z,text'
19554 archive_cmds_need_lc_GCJ=no
19555 hardcode_shlibpath_var_GCJ=no
19556 runpath_var='LD_RUN_PATH'
19558 if test "$GCC" = yes; then
19559 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 sysv5* | sco3.2v5* | sco5v6*)
19568 # Note: We can NOT use -z defs as we might desire, because we do not
19569 # link with -lc, and that would cause any symbols used from libc to
19570 # always be unresolved, which means just about no library would
19571 # ever link correctly. If we're not using GNU ld we use -z text
19572 # though, which does catch some bad symbols but isn't as heavy-handed
19574 no_undefined_flag_GCJ='${wl}-z,text'
19575 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19576 archive_cmds_need_lc_GCJ=no
19577 hardcode_shlibpath_var_GCJ=no
19578 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19579 hardcode_libdir_separator_GCJ=':'
19580 link_all_deplibs_GCJ=yes
19581 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19582 runpath_var='LD_RUN_PATH'
19584 if test "$GCC" = yes; then
19585 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19586 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19588 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19596 hardcode_shlibpath_var_GCJ=no
19605 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19606 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19607 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19610 # Do we need to explicitly link libc?
19612 case "x$archive_cmds_need_lc_GCJ" in
19614 # Assume -lc should be added
19615 archive_cmds_need_lc_GCJ=yes
19617 if test "$enable_shared" = yes && test "$GCC" = yes; then
19618 case $archive_cmds_GCJ in
19620 # FIXME: we may have to deal with multi-command sequences.
19623 # Test whether the compiler implicitly links with -lc since on some
19624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19625 # to ld, don't add -lc before -lgcc.
19626 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19627 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19629 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } 2>conftest.err; then
19638 libobjs=conftest.$ac_objext
19640 wl=$lt_prog_compiler_wl_GCJ
19641 pic_flag=$lt_prog_compiler_pic_GCJ
19647 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19648 allow_undefined_flag_GCJ=
19649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19650 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }
19655 archive_cmds_need_lc_GCJ=no
19657 archive_cmds_need_lc_GCJ=yes
19659 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19661 cat conftest.err 1>&5
19664 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19665 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19672 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19674 library_names_spec=
19675 libname_spec='lib$name'
19679 postuninstall_cmds=
19683 shlibpath_overrides_runpath=unknown
19685 dynamic_linker="$host_os ld.so"
19686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19687 if test "$GCC" = yes; then
19688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19689 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19690 # if the path contains ";" then we assume it to be the separator
19691 # otherwise default to the standard path separator (i.e. ":") - it is
19692 # assumed that no part of a normal pathname contains ";" but that should
19693 # okay in the real world where ";" in dirpaths is itself problematic.
19694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19701 need_lib_prefix=unknown
19702 hardcode_into_libs=no
19704 # when you set need_version to no, make sure it does not cause -set_version
19705 # flags to be left without arguments
19706 need_version=unknown
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19712 shlibpath_var=LIBPATH
19714 # AIX 3 has no versioning support, so we append a major version to the name.
19715 soname_spec='${libname}${release}${shared_ext}$major'
19722 hardcode_into_libs=yes
19723 if test "$host_cpu" = ia64; then
19724 # AIX 5 supports IA64
19725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19726 shlibpath_var=LD_LIBRARY_PATH
19728 # With GCC up to 2.95.x, collect2 would create an import file
19729 # for dependence libraries. The import file would start with
19730 # the line `#! .'. This would cause the generated library to
19731 # depend on `.', always an invalid library. This was fixed in
19732 # development snapshots of GCC prior to 3.0.
19734 aix4 | aix4.[01] | aix4.[01].*)
19735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19737 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19740 can_build_shared=no
19744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19745 # soname into executable. Probably we can add versioning support to
19746 # collect2, so additional links can be useful in future.
19747 if test "$aix_use_runtimelinking" = yes; then
19748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19749 # instead of lib<name>.a to let people know that these are not
19750 # typical AIX shared libraries.
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753 # We preserve .a as extension for shared libraries through AIX4.2
19754 # and later when we are not doing run time linking.
19755 library_names_spec='${libname}${release}.a $libname.a'
19756 soname_spec='${libname}${release}${shared_ext}$major'
19758 shlibpath_var=LIBPATH
19763 library_names_spec='$libname.ixlibrary $libname.a'
19764 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19765 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'
19769 library_names_spec='${libname}${shared_ext}'
19770 dynamic_linker="$host_os ld.so"
19771 shlibpath_var=LIBRARY_PATH
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778 soname_spec='${libname}${release}${shared_ext}$major'
19779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19780 shlibpath_var=LD_LIBRARY_PATH
19781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19783 # the default ld.so.conf also contains /usr/contrib/lib and
19784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19785 # libtool to hard-code these into programs
19788 cygwin* | mingw* | pw32*)
19789 version_type=windows
19794 case $GCC,$host_os in
19795 yes,cygwin* | yes,mingw* | yes,pw32*)
19796 library_names_spec='$libname.dll.a'
19797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19798 postinstall_cmds='base_file=`basename \${file}`~
19799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19800 dldir=$destdir/`dirname \$dlpath`~
19801 test -d \$dldir || mkdir -p \$dldir~
19802 $install_prog $dir/$dlname \$dldir/$dlname~
19803 chmod a+x \$dldir/$dlname'
19804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19805 dlpath=$dir/\$dldll~
19807 shlibpath_overrides_runpath=yes
19811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19813 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19816 # MinGW DLLs use traditional 'lib' prefix
19817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19819 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19820 # It is most probably a Windows format PATH printed by
19821 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19822 # path with ; separators, and with drive letters. We can handle the
19823 # drive letters (cygwin fileutils understands them), so leave them,
19824 # especially as we might pass files found there to a mingw objdump,
19825 # which wouldn't understand a cygwinified path. Ahh.
19826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19832 # pw32 DLLs use 'pw' prefix rather than 'lib'
19833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19842 dynamic_linker='Win32 ld.exe'
19843 # FIXME: first we should search . and the directory the executable is in
19847 darwin* | rhapsody*)
19848 dynamic_linker="$host_os dyld"
19849 version_type=darwin
19852 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19853 soname_spec='${libname}${release}${major}$shared_ext'
19854 shlibpath_overrides_runpath=yes
19855 shlibpath_var=DYLD_LIBRARY_PATH
19856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19857 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19858 if test "$GCC" = yes; then
19859 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"`
19861 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19871 soname_spec='${libname}${release}${shared_ext}$major'
19872 shlibpath_var=LD_LIBRARY_PATH
19879 freebsd* | dragonfly*)
19880 # DragonFly does not have aout. When/if they implement a new
19881 # versioning mechanism, adjust this.
19882 if test -x /usr/bin/objformat; then
19883 objformat=`/usr/bin/objformat`
19886 freebsd[123]*) objformat=aout ;;
19887 *) objformat=elf ;;
19890 version_type=freebsd-$objformat
19891 case $version_type in
19893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19902 shlibpath_var=LD_LIBRARY_PATH
19905 shlibpath_overrides_runpath=yes
19907 freebsd3.[01]* | freebsdelf3.[01]*)
19908 shlibpath_overrides_runpath=yes
19909 hardcode_into_libs=yes
19911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19913 shlibpath_overrides_runpath=no
19914 hardcode_into_libs=yes
19916 freebsd*) # from 4.6 on
19917 shlibpath_overrides_runpath=yes
19918 hardcode_into_libs=yes
19927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19928 soname_spec='${libname}${release}${shared_ext}$major'
19929 shlibpath_var=LD_LIBRARY_PATH
19930 hardcode_into_libs=yes
19933 hpux9* | hpux10* | hpux11*)
19934 # Give a soname corresponding to the major version so that dld.sl refuses to
19935 # link against other versions.
19942 hardcode_into_libs=yes
19943 dynamic_linker="$host_os dld.so"
19944 shlibpath_var=LD_LIBRARY_PATH
19945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19947 soname_spec='${libname}${release}${shared_ext}$major'
19948 if test "X$HPUX_IA64_MODE" = X32; then
19949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19957 hardcode_into_libs=yes
19958 dynamic_linker="$host_os dld.sl"
19959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19968 dynamic_linker="$host_os dld.sl"
19969 shlibpath_var=SHLIB_PATH
19970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19976 postinstall_cmds='chmod 555 $lib'
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19984 soname_spec='${libname}${release}${shared_ext}$major'
19985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19986 shlibpath_var=LD_LIBRARY_PATH
19987 shlibpath_overrides_runpath=no
19988 hardcode_into_libs=yes
19991 irix5* | irix6* | nonstopux*)
19993 nonstopux*) version_type=nonstopux ;;
19995 if test "$lt_cv_prog_gnu_ld" = yes; then
20003 soname_spec='${libname}${release}${shared_ext}$major'
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20006 irix5* | nonstopux*)
20007 libsuff= shlibsuff=
20010 case $LD in # libtool.m4 will add one of these switches to LD
20011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20012 libsuff= shlibsuff= libmagic=32-bit;;
20013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20014 libsuff=32 shlibsuff=N32 libmagic=N32;;
20015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20017 *) libsuff= shlibsuff= libmagic=never-match;;
20021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20022 shlibpath_overrides_runpath=no
20023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20025 hardcode_into_libs=yes
20028 # No shared lib support for Linux oldld, aout, or coff.
20029 linux*oldld* | linux*aout* | linux*coff*)
20033 # This must be Linux ELF.
20034 linux* | k*bsd*-gnu)
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20041 shlibpath_var=LD_LIBRARY_PATH
20042 shlibpath_overrides_runpath=no
20043 # This implies no fast_install, which is unacceptable.
20044 # Some rework will be needed to allow for fast_install
20045 # before this can be enabled.
20046 hardcode_into_libs=yes
20048 # Append ld.so.conf contents to the search path
20049 if test -f /etc/ld.so.conf; then
20050 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' ' '`
20051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20054 # We used to test for /lib/ld.so.1 and disable shared libraries on
20055 # powerpc, because MkLinux only supported shared libraries with the
20056 # GNU dynamic linker. Since this was broken with cross compilers,
20057 # most powerpc-linux boxes support dynamic linking these days and
20058 # people can always --disable-shared, the test was removed, and we
20059 # assume the GNU/Linux dynamic linker is in use.
20060 dynamic_linker='GNU/Linux ld.so'
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 shlibpath_var=LD_LIBRARY_PATH
20070 shlibpath_overrides_runpath=no
20071 hardcode_into_libs=yes
20072 dynamic_linker='NetBSD ld.elf_so'
20079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20082 dynamic_linker='NetBSD (a.out) ld.so'
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 dynamic_linker='NetBSD ld.elf_so'
20088 shlibpath_var=LD_LIBRARY_PATH
20089 shlibpath_overrides_runpath=yes
20090 hardcode_into_libs=yes
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20096 shlibpath_var=LD_LIBRARY_PATH
20097 shlibpath_overrides_runpath=yes
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20105 soname_spec='${libname}${release}${shared_ext}$major'
20106 shlibpath_var=LD_LIBRARY_PATH
20107 shlibpath_overrides_runpath=yes
20112 sys_lib_dlsearch_path_spec="/usr/lib"
20114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20117 *) need_version=no ;;
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20124 openbsd2.[89] | openbsd2.[89].*)
20125 shlibpath_overrides_runpath=no
20128 shlibpath_overrides_runpath=yes
20132 shlibpath_overrides_runpath=yes
20137 libname_spec='$name'
20140 library_names_spec='$libname${shared_ext} $libname.a'
20141 dynamic_linker='OS/2 ld.exe'
20142 shlibpath_var=LIBPATH
20145 osf3* | osf4* | osf5*)
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20151 shlibpath_var=LD_LIBRARY_PATH
20152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=yes
20164 hardcode_into_libs=yes
20165 # ldd complains unless libraries are executable
20166 postinstall_cmds='chmod +x $lib'
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=yes
20175 if test "$with_gnu_ld" = yes; then
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 shlibpath_var=LD_LIBRARY_PATH
20186 case $host_vendor in
20188 shlibpath_overrides_runpath=no
20190 export_dynamic_flag_spec='${wl}-Blargedynsym'
20191 runpath_var=LD_RUN_PATH
20199 shlibpath_overrides_runpath=no
20200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20206 if test -d /usr/nec ;then
20208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20209 soname_spec='$libname${shared_ext}.$major'
20210 shlibpath_var=LD_LIBRARY_PATH
20214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20215 version_type=freebsd-elf
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 shlibpath_var=LD_LIBRARY_PATH
20221 hardcode_into_libs=yes
20222 if test "$with_gnu_ld" = yes; then
20223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20224 shlibpath_overrides_runpath=no
20226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20227 shlibpath_overrides_runpath=yes
20230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20234 sys_lib_dlsearch_path_spec='/usr/lib'
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20249 echo "${ECHO_T}$dynamic_linker" >&6; }
20250 test "$dynamic_linker" = no && can_build_shared=no
20252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20253 if test "$GCC" = yes; then
20254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20259 hardcode_action_GCJ=
20260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20261 test -n "$runpath_var_GCJ" || \
20262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20264 # We can hardcode non-existant directories.
20265 if test "$hardcode_direct_GCJ" != no &&
20266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20267 # have to relink, otherwise we might link with an installed library
20268 # when we should be linking with a yet-to-be-installed one
20269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20270 test "$hardcode_minus_L_GCJ" != no; then
20271 # Linking always hardcodes the temporary library directory.
20272 hardcode_action_GCJ=relink
20274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20275 hardcode_action_GCJ=immediate
20278 # We cannot hardcode anything, or else we can only hardcode existing
20280 hardcode_action_GCJ=unsupported
20282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20285 if test "$hardcode_action_GCJ" = relink; then
20286 # Fast installation is not supported
20287 enable_fast_install=no
20288 elif test "$shlibpath_overrides_runpath" = yes ||
20289 test "$enable_shared" = no; then
20290 # Fast installation is not necessary
20291 enable_fast_install=needless
20295 # The else clause should only fire when bootstrapping the
20296 # libtool distribution, otherwise you forgot to ship ltmain.sh
20297 # with your package, and you will get complaints that there are
20298 # no rules to generate ltmain.sh.
20299 if test -f "$ltmain"; then
20300 # See if we are running on zsh, and set the options which allow our commands through
20301 # without removal of \ escapes.
20302 if test -n "${ZSH_VERSION+set}" ; then
20303 setopt NO_GLOB_SUBST
20305 # Now quote all the things that may contain metacharacters while being
20306 # careful not to overquote the AC_SUBSTed values. We take copies of the
20307 # variables and quote the copies for generation of the libtool script.
20308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20312 deplibs_check_method reload_flag reload_cmds need_locks \
20313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20314 lt_cv_sys_global_symbol_to_c_name_address \
20315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20316 old_postinstall_cmds old_postuninstall_cmds \
20320 lt_prog_compiler_wl_GCJ \
20321 lt_prog_compiler_pic_GCJ \
20322 lt_prog_compiler_static_GCJ \
20323 lt_prog_compiler_no_builtin_flag_GCJ \
20324 export_dynamic_flag_spec_GCJ \
20325 thread_safe_flag_spec_GCJ \
20326 whole_archive_flag_spec_GCJ \
20327 enable_shared_with_static_runtimes_GCJ \
20328 old_archive_cmds_GCJ \
20329 old_archive_from_new_cmds_GCJ \
20330 predep_objects_GCJ \
20331 postdep_objects_GCJ \
20334 compiler_lib_search_path_GCJ \
20336 archive_expsym_cmds_GCJ \
20337 postinstall_cmds_GCJ \
20338 postuninstall_cmds_GCJ \
20339 old_archive_from_expsyms_cmds_GCJ \
20340 allow_undefined_flag_GCJ \
20341 no_undefined_flag_GCJ \
20342 export_symbols_cmds_GCJ \
20343 hardcode_libdir_flag_spec_GCJ \
20344 hardcode_libdir_flag_spec_ld_GCJ \
20345 hardcode_libdir_separator_GCJ \
20346 hardcode_automatic_GCJ \
20348 module_expsym_cmds_GCJ \
20349 lt_cv_prog_compiler_c_o_GCJ \
20350 exclude_expsyms_GCJ \
20351 include_expsyms_GCJ; do
20354 old_archive_cmds_GCJ | \
20355 old_archive_from_new_cmds_GCJ | \
20356 archive_cmds_GCJ | \
20357 archive_expsym_cmds_GCJ | \
20358 module_cmds_GCJ | \
20359 module_expsym_cmds_GCJ | \
20360 old_archive_from_expsyms_cmds_GCJ | \
20361 export_symbols_cmds_GCJ | \
20362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20363 postinstall_cmds | postuninstall_cmds | \
20364 old_postinstall_cmds | old_postuninstall_cmds | \
20365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20366 # Double-quote double-evaled strings.
20367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20376 *'\$0 --fallback-echo"')
20377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20383 cat <<__EOF__ >> "$cfgfile"
20384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20388 # Shell to use when invoking shell scripts.
20391 # Whether or not to build shared libraries.
20392 build_libtool_libs=$enable_shared
20394 # Whether or not to build static libraries.
20395 build_old_libs=$enable_static
20397 # Whether or not to add -lc for building shared libraries.
20398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20400 # Whether or not to disallow shared libs when runtime libs are static
20401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20403 # Whether or not to optimize for fast installation.
20404 fast_install=$enable_fast_install
20407 host_alias=$host_alias
20411 # The build system.
20412 build_alias=$build_alias
20416 # An echo program that does not interpret backslashes.
20421 AR_FLAGS=$lt_AR_FLAGS
20426 # LTCC compiler flags.
20427 LTCFLAGS=$lt_LTCFLAGS
20429 # A language-specific compiler.
20430 CC=$lt_compiler_GCJ
20432 # Is the compiler the GNU C compiler?
20438 # The linker used to build libraries.
20441 # Whether we need hard or soft links.
20444 # A BSD-compatible nm program.
20447 # A symbol stripping program
20450 # Used to examine libraries when file_magic_cmd begins "file"
20451 MAGIC_CMD=$MAGIC_CMD
20453 # Used on cygwin: DLL creation program.
20456 # Used on cygwin: object dumper.
20459 # Used on cygwin: assembler.
20462 # The name of the directory that contains temporary libtool files.
20465 # How to create reloadable object files.
20466 reload_flag=$lt_reload_flag
20467 reload_cmds=$lt_reload_cmds
20469 # How to pass a linker flag through the compiler.
20470 wl=$lt_lt_prog_compiler_wl_GCJ
20472 # Object file suffix (normally "o").
20473 objext="$ac_objext"
20475 # Old archive suffix (normally "a").
20478 # Shared library suffix (normally ".so").
20479 shrext_cmds='$shrext_cmds'
20481 # Executable file suffix (normally "").
20484 # Additional compiler flags for building library objects.
20485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20488 # What is the maximum length of a command?
20489 max_cmd_len=$lt_cv_sys_max_cmd_len
20491 # Does compiler simultaneously support -c and -o options?
20492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20494 # Must we lock files when doing compilation?
20495 need_locks=$lt_need_locks
20497 # Do we need the lib prefix for modules?
20498 need_lib_prefix=$need_lib_prefix
20500 # Do we need a version for libraries?
20501 need_version=$need_version
20503 # Whether dlopen is supported.
20504 dlopen_support=$enable_dlopen
20506 # Whether dlopen of programs is supported.
20507 dlopen_self=$enable_dlopen_self
20509 # Whether dlopen of statically linked programs is supported.
20510 dlopen_self_static=$enable_dlopen_self_static
20512 # Compiler flag to prevent dynamic linking.
20513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20515 # Compiler flag to turn off builtin functions.
20516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20518 # Compiler flag to allow reflexive dlopens.
20519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20521 # Compiler flag to generate shared objects directly from archives.
20522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20524 # Compiler flag to generate thread-safe objects.
20525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20527 # Library versioning type.
20528 version_type=$version_type
20530 # Format of library name prefix.
20531 libname_spec=$lt_libname_spec
20533 # List of archive names. First name is the real one, the rest are links.
20534 # The last name is the one that the linker finds with -lNAME.
20535 library_names_spec=$lt_library_names_spec
20537 # The coded name of the library, if different from the real name.
20538 soname_spec=$lt_soname_spec
20540 # Commands used to build and install an old-style archive.
20542 old_archive_cmds=$lt_old_archive_cmds_GCJ
20543 old_postinstall_cmds=$lt_old_postinstall_cmds
20544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20546 # Create an old-style archive from a shared archive.
20547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20549 # Create a temporary old-style archive to link instead of a shared archive.
20550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20552 # Commands used to build and install a shared archive.
20553 archive_cmds=$lt_archive_cmds_GCJ
20554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20555 postinstall_cmds=$lt_postinstall_cmds
20556 postuninstall_cmds=$lt_postuninstall_cmds
20558 # Commands used to build a loadable module (assumed same as above if empty)
20559 module_cmds=$lt_module_cmds_GCJ
20560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20562 # Commands to strip libraries.
20563 old_striplib=$lt_old_striplib
20564 striplib=$lt_striplib
20566 # Dependencies to place before the objects being linked to create a
20568 predep_objects=$lt_predep_objects_GCJ
20570 # Dependencies to place after the objects being linked to create a
20572 postdep_objects=$lt_postdep_objects_GCJ
20574 # Dependencies to place before the objects being linked to create a
20576 predeps=$lt_predeps_GCJ
20578 # Dependencies to place after the objects being linked to create a
20580 postdeps=$lt_postdeps_GCJ
20582 # The library search path used internally by the compiler when linking
20583 # a shared library.
20584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20586 # Method to check whether dependent libraries are shared objects.
20587 deplibs_check_method=$lt_deplibs_check_method
20589 # Command to use when deplibs_check_method == file_magic.
20590 file_magic_cmd=$lt_file_magic_cmd
20592 # Flag that allows shared libraries with undefined symbols to be built.
20593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20595 # Flag that forces no undefined symbols.
20596 no_undefined_flag=$lt_no_undefined_flag_GCJ
20598 # Commands used to finish a libtool library installation in a directory.
20599 finish_cmds=$lt_finish_cmds
20601 # Same as above, but a single script fragment to be evaled but not shown.
20602 finish_eval=$lt_finish_eval
20604 # Take the output of nm and produce a listing of raw symbols and C names.
20605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20607 # Transform the output of nm in a proper C declaration
20608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20610 # Transform the output of nm in a C name address pair
20611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20613 # This is the shared library runtime path variable.
20614 runpath_var=$runpath_var
20616 # This is the shared library path variable.
20617 shlibpath_var=$shlibpath_var
20619 # Is shlibpath searched before the hard-coded library search path?
20620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20622 # How to hardcode a shared library path into an executable.
20623 hardcode_action=$hardcode_action_GCJ
20625 # Whether we should hardcode library paths into libraries.
20626 hardcode_into_libs=$hardcode_into_libs
20628 # Flag to hardcode \$libdir into a binary during linking.
20629 # This must work even if \$libdir does not exist.
20630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20632 # If ld is used when linking, flag to hardcode \$libdir into
20633 # a binary during linking. This must work even if \$libdir does
20635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20637 # Whether we need a single -rpath flag with a separated argument.
20638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20641 # resulting binary.
20642 hardcode_direct=$hardcode_direct_GCJ
20644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20645 # resulting binary.
20646 hardcode_minus_L=$hardcode_minus_L_GCJ
20648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20649 # the resulting binary.
20650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20652 # Set to yes if building a shared library automatically hardcodes DIR into the library
20653 # and all subsequent libraries and executables linked against it.
20654 hardcode_automatic=$hardcode_automatic_GCJ
20656 # Variables whose values should be saved in libtool wrapper scripts and
20657 # restored at relink time.
20658 variables_saved_for_relink="$variables_saved_for_relink"
20660 # Whether libtool must link a program against all its dependency libraries.
20661 link_all_deplibs=$link_all_deplibs_GCJ
20663 # Compile-time system search path for libraries
20664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20666 # Run-time system search path for libraries
20667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20669 # Fix the shell variable \$srcfile for the compiler.
20670 fix_srcfile_path="$fix_srcfile_path_GCJ"
20672 # Set to yes if exported symbols are required.
20673 always_export_symbols=$always_export_symbols_GCJ
20675 # The commands to list exported symbols.
20676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20678 # The commands to extract the exported symbol list from a shared archive.
20679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20681 # Symbols that should not be listed in the preloaded symbols.
20682 exclude_expsyms=$lt_exclude_expsyms_GCJ
20684 # Symbols that must always be exported.
20685 include_expsyms=$lt_include_expsyms_GCJ
20687 # ### END LIBTOOL TAG CONFIG: $tagname
20693 # If there is no Makefile yet, we rely on a make rule to execute
20694 # `config.status --recheck' to rerun these tests and create the
20695 # libtool script then.
20696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20697 if test -f "$ltmain_in"; then
20698 test -f Makefile && make "$ltmain"
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20719 # Source file extension for RC test sources.
20722 # Object file extension for compiled RC test sources.
20726 # Code to be used in simple compile tests
20727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20729 # Code to be used in simple link tests
20730 lt_simple_link_test_code="$lt_simple_compile_test_code"
20732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20734 # If no C compiler was specified, use CC.
20737 # If no C compiler flags were specified, use CFLAGS.
20738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20740 # Allow CC to be a program name with arguments.
20744 # save warnings/boilerplate of simple test code
20745 ac_outfile=conftest.$ac_objext
20746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20748 _lt_compiler_boilerplate=`cat conftest.err`
20751 ac_outfile=conftest.$ac_objext
20752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20754 _lt_linker_boilerplate=`cat conftest.err`
20758 # Allow CC to be a program name with arguments.
20763 for cc_temp in $compiler""; do
20765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20773 lt_cv_prog_compiler_c_o_RC=yes
20775 # The else clause should only fire when bootstrapping the
20776 # libtool distribution, otherwise you forgot to ship ltmain.sh
20777 # with your package, and you will get complaints that there are
20778 # no rules to generate ltmain.sh.
20779 if test -f "$ltmain"; then
20780 # See if we are running on zsh, and set the options which allow our commands through
20781 # without removal of \ escapes.
20782 if test -n "${ZSH_VERSION+set}" ; then
20783 setopt NO_GLOB_SUBST
20785 # Now quote all the things that may contain metacharacters while being
20786 # careful not to overquote the AC_SUBSTed values. We take copies of the
20787 # variables and quote the copies for generation of the libtool script.
20788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20792 deplibs_check_method reload_flag reload_cmds need_locks \
20793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20794 lt_cv_sys_global_symbol_to_c_name_address \
20795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20796 old_postinstall_cmds old_postuninstall_cmds \
20800 lt_prog_compiler_wl_RC \
20801 lt_prog_compiler_pic_RC \
20802 lt_prog_compiler_static_RC \
20803 lt_prog_compiler_no_builtin_flag_RC \
20804 export_dynamic_flag_spec_RC \
20805 thread_safe_flag_spec_RC \
20806 whole_archive_flag_spec_RC \
20807 enable_shared_with_static_runtimes_RC \
20808 old_archive_cmds_RC \
20809 old_archive_from_new_cmds_RC \
20810 predep_objects_RC \
20811 postdep_objects_RC \
20814 compiler_lib_search_path_RC \
20816 archive_expsym_cmds_RC \
20817 postinstall_cmds_RC \
20818 postuninstall_cmds_RC \
20819 old_archive_from_expsyms_cmds_RC \
20820 allow_undefined_flag_RC \
20821 no_undefined_flag_RC \
20822 export_symbols_cmds_RC \
20823 hardcode_libdir_flag_spec_RC \
20824 hardcode_libdir_flag_spec_ld_RC \
20825 hardcode_libdir_separator_RC \
20826 hardcode_automatic_RC \
20828 module_expsym_cmds_RC \
20829 lt_cv_prog_compiler_c_o_RC \
20830 exclude_expsyms_RC \
20831 include_expsyms_RC; do
20834 old_archive_cmds_RC | \
20835 old_archive_from_new_cmds_RC | \
20836 archive_cmds_RC | \
20837 archive_expsym_cmds_RC | \
20839 module_expsym_cmds_RC | \
20840 old_archive_from_expsyms_cmds_RC | \
20841 export_symbols_cmds_RC | \
20842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20843 postinstall_cmds | postuninstall_cmds | \
20844 old_postinstall_cmds | old_postuninstall_cmds | \
20845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20846 # Double-quote double-evaled strings.
20847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20856 *'\$0 --fallback-echo"')
20857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20863 cat <<__EOF__ >> "$cfgfile"
20864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20868 # Shell to use when invoking shell scripts.
20871 # Whether or not to build shared libraries.
20872 build_libtool_libs=$enable_shared
20874 # Whether or not to build static libraries.
20875 build_old_libs=$enable_static
20877 # Whether or not to add -lc for building shared libraries.
20878 build_libtool_need_lc=$archive_cmds_need_lc_RC
20880 # Whether or not to disallow shared libs when runtime libs are static
20881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20883 # Whether or not to optimize for fast installation.
20884 fast_install=$enable_fast_install
20887 host_alias=$host_alias
20891 # The build system.
20892 build_alias=$build_alias
20896 # An echo program that does not interpret backslashes.
20901 AR_FLAGS=$lt_AR_FLAGS
20906 # LTCC compiler flags.
20907 LTCFLAGS=$lt_LTCFLAGS
20909 # A language-specific compiler.
20912 # Is the compiler the GNU C compiler?
20918 # The linker used to build libraries.
20921 # Whether we need hard or soft links.
20924 # A BSD-compatible nm program.
20927 # A symbol stripping program
20930 # Used to examine libraries when file_magic_cmd begins "file"
20931 MAGIC_CMD=$MAGIC_CMD
20933 # Used on cygwin: DLL creation program.
20936 # Used on cygwin: object dumper.
20939 # Used on cygwin: assembler.
20942 # The name of the directory that contains temporary libtool files.
20945 # How to create reloadable object files.
20946 reload_flag=$lt_reload_flag
20947 reload_cmds=$lt_reload_cmds
20949 # How to pass a linker flag through the compiler.
20950 wl=$lt_lt_prog_compiler_wl_RC
20952 # Object file suffix (normally "o").
20953 objext="$ac_objext"
20955 # Old archive suffix (normally "a").
20958 # Shared library suffix (normally ".so").
20959 shrext_cmds='$shrext_cmds'
20961 # Executable file suffix (normally "").
20964 # Additional compiler flags for building library objects.
20965 pic_flag=$lt_lt_prog_compiler_pic_RC
20968 # What is the maximum length of a command?
20969 max_cmd_len=$lt_cv_sys_max_cmd_len
20971 # Does compiler simultaneously support -c and -o options?
20972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20974 # Must we lock files when doing compilation?
20975 need_locks=$lt_need_locks
20977 # Do we need the lib prefix for modules?
20978 need_lib_prefix=$need_lib_prefix
20980 # Do we need a version for libraries?
20981 need_version=$need_version
20983 # Whether dlopen is supported.
20984 dlopen_support=$enable_dlopen
20986 # Whether dlopen of programs is supported.
20987 dlopen_self=$enable_dlopen_self
20989 # Whether dlopen of statically linked programs is supported.
20990 dlopen_self_static=$enable_dlopen_self_static
20992 # Compiler flag to prevent dynamic linking.
20993 link_static_flag=$lt_lt_prog_compiler_static_RC
20995 # Compiler flag to turn off builtin functions.
20996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20998 # Compiler flag to allow reflexive dlopens.
20999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21001 # Compiler flag to generate shared objects directly from archives.
21002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21004 # Compiler flag to generate thread-safe objects.
21005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21007 # Library versioning type.
21008 version_type=$version_type
21010 # Format of library name prefix.
21011 libname_spec=$lt_libname_spec
21013 # List of archive names. First name is the real one, the rest are links.
21014 # The last name is the one that the linker finds with -lNAME.
21015 library_names_spec=$lt_library_names_spec
21017 # The coded name of the library, if different from the real name.
21018 soname_spec=$lt_soname_spec
21020 # Commands used to build and install an old-style archive.
21022 old_archive_cmds=$lt_old_archive_cmds_RC
21023 old_postinstall_cmds=$lt_old_postinstall_cmds
21024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21026 # Create an old-style archive from a shared archive.
21027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21029 # Create a temporary old-style archive to link instead of a shared archive.
21030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21032 # Commands used to build and install a shared archive.
21033 archive_cmds=$lt_archive_cmds_RC
21034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21035 postinstall_cmds=$lt_postinstall_cmds
21036 postuninstall_cmds=$lt_postuninstall_cmds
21038 # Commands used to build a loadable module (assumed same as above if empty)
21039 module_cmds=$lt_module_cmds_RC
21040 module_expsym_cmds=$lt_module_expsym_cmds_RC
21042 # Commands to strip libraries.
21043 old_striplib=$lt_old_striplib
21044 striplib=$lt_striplib
21046 # Dependencies to place before the objects being linked to create a
21048 predep_objects=$lt_predep_objects_RC
21050 # Dependencies to place after the objects being linked to create a
21052 postdep_objects=$lt_postdep_objects_RC
21054 # Dependencies to place before the objects being linked to create a
21056 predeps=$lt_predeps_RC
21058 # Dependencies to place after the objects being linked to create a
21060 postdeps=$lt_postdeps_RC
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21066 # Method to check whether dependent libraries are shared objects.
21067 deplibs_check_method=$lt_deplibs_check_method
21069 # Command to use when deplibs_check_method == file_magic.
21070 file_magic_cmd=$lt_file_magic_cmd
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_RC
21075 # Flag that forces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_RC
21078 # Commands used to finish a libtool library installation in a directory.
21079 finish_cmds=$lt_finish_cmds
21081 # Same as above, but a single script fragment to be evaled but not shown.
21082 finish_eval=$lt_finish_eval
21084 # Take the output of nm and produce a listing of raw symbols and C names.
21085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21087 # Transform the output of nm in a proper C declaration
21088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21090 # Transform the output of nm in a C name address pair
21091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21093 # This is the shared library runtime path variable.
21094 runpath_var=$runpath_var
21096 # This is the shared library path variable.
21097 shlibpath_var=$shlibpath_var
21099 # Is shlibpath searched before the hard-coded library search path?
21100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21102 # How to hardcode a shared library path into an executable.
21103 hardcode_action=$hardcode_action_RC
21105 # Whether we should hardcode library paths into libraries.
21106 hardcode_into_libs=$hardcode_into_libs
21108 # Flag to hardcode \$libdir into a binary during linking.
21109 # This must work even if \$libdir does not exist.
21110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21112 # If ld is used when linking, flag to hardcode \$libdir into
21113 # a binary during linking. This must work even if \$libdir does
21115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21117 # Whether we need a single -rpath flag with a separated argument.
21118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21121 # resulting binary.
21122 hardcode_direct=$hardcode_direct_RC
21124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_minus_L=$hardcode_minus_L_RC
21128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21129 # the resulting binary.
21130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21132 # Set to yes if building a shared library automatically hardcodes DIR into the library
21133 # and all subsequent libraries and executables linked against it.
21134 hardcode_automatic=$hardcode_automatic_RC
21136 # Variables whose values should be saved in libtool wrapper scripts and
21137 # restored at relink time.
21138 variables_saved_for_relink="$variables_saved_for_relink"
21140 # Whether libtool must link a program against all its dependency libraries.
21141 link_all_deplibs=$link_all_deplibs_RC
21143 # Compile-time system search path for libraries
21144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21146 # Run-time system search path for libraries
21147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21149 # Fix the shell variable \$srcfile for the compiler.
21150 fix_srcfile_path="$fix_srcfile_path_RC"
21152 # Set to yes if exported symbols are required.
21153 always_export_symbols=$always_export_symbols_RC
21155 # The commands to list exported symbols.
21156 export_symbols_cmds=$lt_export_symbols_cmds_RC
21158 # The commands to extract the exported symbol list from a shared archive.
21159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21161 # Symbols that should not be listed in the preloaded symbols.
21162 exclude_expsyms=$lt_exclude_expsyms_RC
21164 # Symbols that must always be exported.
21165 include_expsyms=$lt_include_expsyms_RC
21167 # ### END LIBTOOL TAG CONFIG: $tagname
21173 # If there is no Makefile yet, we rely on a make rule to execute
21174 # `config.status --recheck' to rerun these tests and create the
21175 # libtool script then.
21176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21177 if test -f "$ltmain_in"; then
21178 test -f Makefile && make "$ltmain"
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21196 { (exit 1); exit 1; }; }
21200 # Append the new tag name to the list of available tags.
21201 if test -n "$tagname" ; then
21202 available_tags="$available_tags $tagname"
21208 # Now substitute the updated list of available tags.
21209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21210 mv "${ofile}T" "$ofile"
21214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21216 { (exit 1); exit 1; }; }
21222 # This can be used to rebuild libtool when needed
21223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21225 # Always use our own libtool.
21226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21228 # Prevent multiple expansion
21250 # Check whether --enable-fortran was given.
21251 if test "${enable_fortran+set}" = set; then
21252 enableval=$enable_fortran;
21259 if test "x$enable_fortran" = xyes; then
21260 ENABLE_FORTRAN_TRUE=
21261 ENABLE_FORTRAN_FALSE='#'
21263 ENABLE_FORTRAN_TRUE='#'
21264 ENABLE_FORTRAN_FALSE=
21268 if test "x$enable_fortran" = xyes
21271 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21272 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21274 if test -n "$ac_tool_prefix"; then
21275 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21281 if test "${ac_cv_prog_F77+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 if test -n "$F77"; then
21285 ac_cv_prog_F77="$F77" # Let the user override the test.
21287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21288 for as_dir in $PATH
21291 test -z "$as_dir" && as_dir=.
21292 for ac_exec_ext in '' $ac_executable_extensions; do
21293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21294 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
21295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21304 F77=$ac_cv_prog_F77
21305 if test -n "$F77"; then
21306 { echo "$as_me:$LINENO: result: $F77" >&5
21307 echo "${ECHO_T}$F77" >&6; }
21309 { echo "$as_me:$LINENO: result: no" >&5
21310 echo "${ECHO_T}no" >&6; }
21314 test -n "$F77" && break
21317 if test -z "$F77"; then
21319 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21321 # Extract the first word of "$ac_prog", so it can be a program name with args.
21322 set dummy $ac_prog; ac_word=$2
21323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21325 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 if test -n "$ac_ct_F77"; then
21329 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
21331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21335 test -z "$as_dir" && as_dir=.
21336 for ac_exec_ext in '' $ac_executable_extensions; do
21337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21338 ac_cv_prog_ac_ct_F77="$ac_prog"
21339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21348 ac_ct_F77=$ac_cv_prog_ac_ct_F77
21349 if test -n "$ac_ct_F77"; then
21350 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
21351 echo "${ECHO_T}$ac_ct_F77" >&6; }
21353 { echo "$as_me:$LINENO: result: no" >&5
21354 echo "${ECHO_T}no" >&6; }
21358 test -n "$ac_ct_F77" && break
21361 if test "x$ac_ct_F77" = x; then
21364 case $cross_compiling:$ac_tool_warned in
21366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21367 whose name does not start with the host triplet. If you think this
21368 configuration is useful to you, please write to autoconf@gnu.org." >&5
21369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21370 whose name does not start with the host triplet. If you think this
21371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21372 ac_tool_warned=yes ;;
21379 # Provide some information about the compiler.
21380 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
21381 ac_compiler=`set X $ac_compile; echo $2`
21382 { (ac_try="$ac_compiler --version >&5"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_compiler --version >&5") 2>&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }
21392 { (ac_try="$ac_compiler -v >&5"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compiler -v >&5") 2>&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }
21402 { (ac_try="$ac_compiler -V >&5"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_compiler -V >&5") 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }
21414 # If we don't use `.F' as extension, the preprocessor is not run on the
21415 # input file. (Note that this only needs to work for GNU compilers.)
21416 ac_save_ext=$ac_ext
21418 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
21419 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
21420 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 cat >conftest.$ac_ext <<_ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
21445 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21446 { (case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_try") 2>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_try") 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_compiler_gnu=yes
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
21477 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
21478 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
21479 ac_ext=$ac_save_ext
21480 ac_test_FFLAGS=${FFLAGS+set}
21481 ac_save_FFLAGS=$FFLAGS
21483 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
21484 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
21485 if test "${ac_cv_prog_f77_g+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 cat >conftest.$ac_ext <<_ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (ac_try="$ac_compile"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_compile") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21509 { (case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_try") 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_try") 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; }; then
21528 ac_cv_prog_f77_g=yes
21530 echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 ac_cv_prog_f77_g=no
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
21540 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
21541 if test "$ac_test_FFLAGS" = set; then
21542 FFLAGS=$ac_save_FFLAGS
21543 elif test $ac_cv_prog_f77_g = yes; then
21544 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21550 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21557 G77=`test $ac_compiler_gnu = yes && echo yes`
21559 ac_cpp='$CPP $CPPFLAGS'
21560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21565 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21566 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21567 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21568 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
21569 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
21570 if test "${ac_cv_prog_f77_v+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 cat >conftest.$ac_ext <<_ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21593 { (case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_try") 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; } &&
21602 { ac_try='test -s conftest.$ac_objext'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21613 # Try some options frequently used verbose output
21614 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
21615 cat >conftest.$ac_ext <<_ACEOF
21621 # Compile and link our simple test program by passing a flag (argument
21622 # 1 to this macro) to the Fortran compiler in order to get
21623 # "verbose" output that we can then parse for the Fortran linker
21625 ac_save_FFLAGS=$FFLAGS
21626 FFLAGS="$FFLAGS $ac_verb"
21627 eval "set x $ac_link"
21629 echo "$as_me:$LINENO: $*" >&5
21630 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21631 echo "$ac_f77_v_output" >&5
21632 FFLAGS=$ac_save_FFLAGS
21636 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21637 # /foo, /bar, and /baz are search directories for the Fortran linker.
21638 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21639 ac_f77_v_output="`echo $ac_f77_v_output |
21641 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21643 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21644 # that detects unbalanced quotes in FLIBS should be implemented
21645 # and (ugh) tested at some point.
21646 case $ac_f77_v_output in
21647 # If we are using xlf then replace all the commas with spaces.
21649 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21651 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21652 # $LIBS confuse us, and the libraries appear later in the output anyway).
21653 *mGLOB_options_string*)
21654 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21656 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21657 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21658 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21659 *-cmdline\ * | *-ignore\ * | *-def\ *)
21660 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21661 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21662 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21663 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21665 # If we are using Cray Fortran then delete quotes.
21667 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21671 # look for -l* and *.a constructs in the output
21672 for ac_arg in $ac_f77_v_output; do
21674 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
21675 ac_cv_prog_f77_v=$ac_verb
21680 if test -z "$ac_cv_prog_f77_v"; then
21681 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
21682 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21689 echo "$as_me: WARNING: compilation failed" >&2;}
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21695 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21696 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21697 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21698 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21699 if test "${ac_cv_f77_libs+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 if test "x$FLIBS" != "x"; then
21703 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21706 cat >conftest.$ac_ext <<_ACEOF
21712 # Compile and link our simple test program by passing a flag (argument
21713 # 1 to this macro) to the Fortran compiler in order to get
21714 # "verbose" output that we can then parse for the Fortran linker
21716 ac_save_FFLAGS=$FFLAGS
21717 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21718 eval "set x $ac_link"
21720 echo "$as_me:$LINENO: $*" >&5
21721 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21722 echo "$ac_f77_v_output" >&5
21723 FFLAGS=$ac_save_FFLAGS
21727 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21728 # /foo, /bar, and /baz are search directories for the Fortran linker.
21729 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21730 ac_f77_v_output="`echo $ac_f77_v_output |
21732 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21734 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21735 # that detects unbalanced quotes in FLIBS should be implemented
21736 # and (ugh) tested at some point.
21737 case $ac_f77_v_output in
21738 # If we are using xlf then replace all the commas with spaces.
21740 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21742 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21743 # $LIBS confuse us, and the libraries appear later in the output anyway).
21744 *mGLOB_options_string*)
21745 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21747 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21748 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21749 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21750 *-cmdline\ * | *-ignore\ * | *-def\ *)
21751 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21752 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21753 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21754 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21756 # If we are using Cray Fortran then delete quotes.
21758 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21765 # Save positional arguments (if any)
21766 ac_save_positional="$@"
21768 set X $ac_f77_v_output
21769 while test $# != 1; do
21773 [\\/]*.a | ?:[\\/]*.a)
21775 for ac_i in $ac_cv_f77_libs; do
21776 if test x"$ac_arg" = x"$ac_i"; then
21782 if test x"$ac_exists" = xtrue; then
21785 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21791 for ac_i in $ac_cv_f77_libs; do
21792 if test x"$ac_arg" = x"$ac_i"; then
21798 if test x"$ac_exists" = xtrue; then
21801 if test "$ac_compiler_gnu" = yes; then
21802 for ac_link_opt in $ac_arg; do
21803 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21806 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21811 # Ignore these flags.
21812 -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21815 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21818 # These flags, when seen by themselves, take an argument.
21819 # We remove the space between option and argument and re-iterate
21820 # unless we find an empty arg or a new option (starting with -)
21831 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21833 for ac_i in $ac_cv_f77_libs; do
21834 if test x"$ac_j" = x"$ac_i"; then
21840 if test x"$ac_exists" = xtrue; then
21843 ac_arg="$ac_arg $ac_j"
21844 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21851 for ac_i in $ac_cv_f77_libs; do
21852 if test x"$ac_arg" = x"$ac_i"; then
21858 if test x"$ac_exists" = xtrue; then
21861 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21865 -zallextract*| -zdefaultextract)
21866 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21868 # Ignore everything else.
21871 # restore positional arguments
21872 set X $ac_save_positional; shift
21874 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
21875 # then we insist that the "run path" must be an absolute path (i.e. it
21876 # must begin with a "/").
21877 case `(uname -sr) 2>/dev/null` in
21879 ac_ld_run_path=`echo $ac_f77_v_output |
21880 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21881 test "x$ac_ld_run_path" != x &&
21882 if test "$ac_compiler_gnu" = yes; then
21883 for ac_link_opt in $ac_ld_run_path; do
21884 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21887 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21891 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21894 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21895 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21896 FLIBS="$ac_cv_f77_libs"
21900 ac_cpp='$CPP $CPPFLAGS'
21901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21911 case "${host_os}" in
21912 *mingw* | *cygwin*)
21914 # on MinGW/Cygwin extra LDFLAGS are required
21915 no_undefined="-no-undefined"
21918 NO_UNDEFINED=$no_undefined
21924 # Find any Python interpreter.
21925 if test -z "$PYTHON"; then
21926 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21928 # Extract the first word of "$ac_prog", so it can be a program name with args.
21929 set dummy $ac_prog; ac_word=$2
21930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21932 if test "${ac_cv_path_PYTHON+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21937 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21941 for as_dir in $PATH
21944 test -z "$as_dir" && as_dir=.
21945 for ac_exec_ext in '' $ac_executable_extensions; do
21946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21947 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21958 PYTHON=$ac_cv_path_PYTHON
21959 if test -n "$PYTHON"; then
21960 { echo "$as_me:$LINENO: result: $PYTHON" >&5
21961 echo "${ECHO_T}$PYTHON" >&6; }
21963 { echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6; }
21968 test -n "$PYTHON" && break
21970 test -n "$PYTHON" || PYTHON=":"
21973 am_display_PYTHON=python
21976 if test "$PYTHON" = :; then
21977 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21978 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21979 { (exit 1); exit 1; }; }
21983 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21984 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21985 if test "${am_cv_python_version+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21990 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21991 echo "${ECHO_T}$am_cv_python_version" >&6; }
21992 PYTHON_VERSION=$am_cv_python_version
21996 PYTHON_PREFIX='${prefix}'
21998 PYTHON_EXEC_PREFIX='${exec_prefix}'
22002 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22003 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22004 if test "${am_cv_python_platform+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22009 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22010 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22011 PYTHON_PLATFORM=$am_cv_python_platform
22016 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22017 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22018 if test "${am_cv_python_pythondir+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22022 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22024 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22025 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22026 pythondir=$am_cv_python_pythondir
22030 pkgpythondir=\${pythondir}/$PACKAGE
22033 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22034 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22035 if test "${am_cv_python_pyexecdir+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22039 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22041 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22042 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22043 pyexecdir=$am_cv_python_pyexecdir
22047 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22058 # Check for Python include path
22059 { echo "$as_me:$LINENO: checking for Python include path" >&5
22060 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22061 if test -z "$PYTHON" ; then
22062 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22063 echo "$as_me: error: cannot find Python path" >&2;}
22064 { (exit 1); exit 1; }; }
22067 # ask distutils which include path we should use
22069 import distutils.sysconfig
22071 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22073 path = path.replace("\\", "/")
22076 python_path=`$PYTHON -c "$python_cmd"`
22077 { echo "$as_me:$LINENO: result: $python_path" >&5
22078 echo "${ECHO_T}$python_path" >&6; }
22079 if test -z "$python_path" ; then
22080 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22081 echo "$as_me: error: cannot find Python include path" >&2;}
22082 { (exit 1); exit 1; }; }
22085 PYTHON_CPPFLAGS=-I$python_path
22088 # Check for Python headers usability
22089 python_save_CPPFLAGS=$CPPFLAGS
22090 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22092 for ac_header in Python.h
22094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 ac_res=`eval echo '${'$as_ac_Header'}'`
22102 { echo "$as_me:$LINENO: result: $ac_res" >&5
22103 echo "${ECHO_T}$ac_res" >&6; }
22105 # Is the header compilable?
22106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 $ac_includes_default
22115 #include <$ac_header>
22117 rm -f conftest.$ac_objext
22118 if { (ac_try="$ac_compile"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_compile") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22132 { (case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_try") 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest.$ac_objext'
22142 { (case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_try") 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ac_header_compiler=yes
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_header_compiler=no
22159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22161 echo "${ECHO_T}$ac_header_compiler" >&6; }
22163 # Is the header present?
22164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 #include <$ac_header>
22174 if { (ac_try="$ac_cpp conftest.$ac_ext"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } >/dev/null; then
22187 if test -s conftest.err; then
22188 ac_cpp_err=$ac_c_preproc_warn_flag
22189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22196 if test -z "$ac_cpp_err"; then
22197 ac_header_preproc=yes
22199 echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22202 ac_header_preproc=no
22205 rm -f conftest.err conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22207 echo "${ECHO_T}$ac_header_preproc" >&6; }
22209 # So? What about this header?
22210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22216 ac_header_preproc=yes
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 eval "$as_ac_Header=\$ac_header_preproc"
22241 ac_res=`eval echo '${'$as_ac_Header'}'`
22242 { echo "$as_me:$LINENO: result: $ac_res" >&5
22243 echo "${ECHO_T}$ac_res" >&6; }
22246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22247 cat >>confdefs.h <<_ACEOF
22248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22252 { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22253 echo "$as_me: error: cannot find usable Python headers" >&2;}
22254 { (exit 1); exit 1; }; }
22259 CPPFLAGS="$python_save_CPPFLAGS"
22261 # Only set this on mingw and cygwin hosts, (only implemented
22262 # for mingw host, for crosscompiling you need to trick this)
22266 *mingw* | *cygwin* )
22267 { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22268 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22271 import distutils.sysconfig
22273 path = distutils.sysconfig.get_config_var("LIBPL")
22275 path = distutils.sysconfig.PREFIX + "/libs"
22277 path = path.replace("\\", "/")
22280 python_stdlib_path=`$PYTHON -c "$python_cmd"`
22282 python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22283 libpython_name="python$PYTHON_VERSION"
22285 # Standard install of python for win32 has libpython24.a
22286 # instead of libpython2.4.a so we check for the library
22287 # without the dot in the version number.
22289 python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22290 if test -n "$python_stdlib_filename" ; then
22291 libpython_name="python$python_version_nodot"
22294 PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22295 { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22296 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22297 # Replace all backslashes in PYTHON Paths with forward slashes
22298 { echo "$as_me:$LINENO: checking for pythondir" >&5
22299 echo $ECHO_N "checking for pythondir... $ECHO_C" >&6; }
22300 pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22301 { echo "$as_me:$LINENO: result: $pythondir" >&5
22302 echo "${ECHO_T}$pythondir" >&6; }
22304 { echo "$as_me:$LINENO: checking for pkgpythondir" >&5
22305 echo $ECHO_N "checking for pkgpythondir... $ECHO_C" >&6; }
22306 pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22307 { echo "$as_me:$LINENO: result: $pkgpythondir" >&5
22308 echo "${ECHO_T}$pkgpythondir" >&6; }
22310 { echo "$as_me:$LINENO: checking for pyexecdir" >&5
22311 echo $ECHO_N "checking for pyexecdir... $ECHO_C" >&6; }
22312 pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22313 { echo "$as_me:$LINENO: result: $pyexecdir" >&5
22314 echo "${ECHO_T}$pyexecdir" >&6; }
22316 { echo "$as_me:$LINENO: checking for pkgpyexecdir" >&5
22317 echo $ECHO_N "checking for pkgpyexecdir... $ECHO_C" >&6; }
22318 pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22319 { echo "$as_me:$LINENO: result: $pkgpyexecdir" >&5
22320 echo "${ECHO_T}$pkgpyexecdir" >&6; }
22334 # Extract the first word of "swig", so it can be a program name with args.
22335 set dummy swig; ac_word=$2
22336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22338 if test "${ac_cv_prog_SWIG+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 if test -n "$SWIG"; then
22342 ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22348 test -z "$as_dir" && as_dir=.
22349 for ac_exec_ext in '' $ac_executable_extensions; do
22350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22351 ac_cv_prog_SWIG="`which swig`"
22352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22361 SWIG=$ac_cv_prog_SWIG
22362 if test -n "$SWIG"; then
22363 { echo "$as_me:$LINENO: result: $SWIG" >&5
22364 echo "${ECHO_T}$SWIG" >&6; }
22366 { echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6; }
22371 if test -z "$SWIG" ; then
22372 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&5
22373 echo "$as_me: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&2;}
22374 { (exit 1); exit 1; }; }
22376 elif test -n "1.3.23" ; then
22377 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22378 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22379 swig_version=`$SWIG -version 2>&1 | \
22380 awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22381 { echo "$as_me:$LINENO: result: $swig_version" >&5
22382 echo "${ECHO_T}$swig_version" >&6; }
22383 if test -n "$swig_version" ; then
22384 swig_version=`echo $swig_version | \
22385 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22386 swig_required_version=`echo 1.3.23 | \
22387 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22388 if test $swig_required_version -gt $swig_version ; then
22389 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22390 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22391 { (exit 1); exit 1; }; }
22394 { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22395 echo "$as_me: error: cannot determine SWIG version" >&2;}
22396 { (exit 1); exit 1; }; }
22403 if test "$SWIG" != "false" ; then
22410 if test "$SWIG" != "false" ; then
22411 SWIG_PYTHON_LIB=-lswigpy
22413 SWIG_PYTHON_OPT=-python
22416 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22421 # Extract the first word of "xmlto", so it can be a program name with args.
22422 set dummy xmlto; ac_word=$2
22423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22425 if test "${ac_cv_prog_XMLTO+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 if test -n "$XMLTO"; then
22429 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22432 for as_dir in $PATH
22435 test -z "$as_dir" && as_dir=.
22436 for ac_exec_ext in '' $ac_executable_extensions; do
22437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22438 ac_cv_prog_XMLTO="yes"
22439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22448 XMLTO=$ac_cv_prog_XMLTO
22449 if test -n "$XMLTO"; then
22450 { echo "$as_me:$LINENO: result: $XMLTO" >&5
22451 echo "${ECHO_T}$XMLTO" >&6; }
22453 { echo "$as_me:$LINENO: result: no" >&5
22454 echo "${ECHO_T}no" >&6; }
22460 if test x$XMLTO = xyes; then
22462 HAS_XMLTO_FALSE='#'
22470 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22471 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22472 if test "${ac_cv_lib_socket_socket+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22475 ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lsocket $LIBS"
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22484 /* Override any GCC internal prototype to avoid an error.
22485 Use char because int might match the return type of a GCC
22486 builtin and then its argument prototype would still apply. */
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_link") 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22514 { (case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_try") 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; } &&
22523 { ac_try='test -s conftest$ac_exeext'
22524 { (case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_try") 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_lib_socket_socket=yes
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_lib_socket_socket=no
22541 rm -f core conftest.err conftest.$ac_objext \
22542 conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22545 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22546 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22547 if test $ac_cv_lib_socket_socket = yes; then
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LIBSOCKET 1
22552 LIBS="-lsocket $LIBS"
22558 # Check first for POSIX
22563 ac_cpp='$CPP $CPPFLAGS'
22564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22570 # We used to check for pthread.h first, but this fails if pthread.h
22571 # requires special compiler flags (e.g. on True64 or Sequent).
22572 # It gets checked for in the link test anyway.
22574 # First of all, check if the user has set any of the PTHREAD_LIBS,
22575 # etcetera environment variables, and if threads linking works using
22577 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22578 save_CFLAGS="$CFLAGS"
22579 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22581 LIBS="$PTHREAD_LIBS $LIBS"
22582 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22583 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22591 /* Override any GCC internal prototype to avoid an error.
22592 Use char because int might match the return type of a GCC
22593 builtin and then its argument prototype would still apply. */
22597 char pthread_join ();
22601 return pthread_join ();
22606 rm -f conftest.$ac_objext conftest$ac_exeext
22607 if { (ac_try="$ac_link"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_link") 2>conftest.er1
22615 grep -v '^ *+' conftest.er1 >conftest.err
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22621 { (case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_try") 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; } &&
22630 { ac_try='test -s conftest$ac_exeext'
22631 { (case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_try") 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22648 rm -f core conftest.err conftest.$ac_objext \
22649 conftest$ac_exeext conftest.$ac_ext
22650 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22651 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22652 if test x"$acx_pthread_ok" = xno; then
22657 CFLAGS="$save_CFLAGS"
22660 # We must check for the threads library under a number of different
22661 # names; the ordering is very important because some systems
22662 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22663 # libraries is broken (non-POSIX).
22665 # Create a list of thread flags to try. Items starting with a "-" are
22666 # C compiler flags, and other items are library names, except for "none"
22667 # which indicates that we try without any flags at all.
22669 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22671 # The ordering *is* (sometimes) important. Some notes on the
22672 # individual items follow:
22674 # pthreads: AIX (must check this before -lpthread)
22675 # none: in case threads are in libc; should be tried before -Kthread and
22676 # other compiler flags to prevent continual compiler warnings
22677 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22678 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22679 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22680 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22681 # -pthreads: Solaris/gcc
22682 # -mthreads: Mingw32/gcc, Lynx/gcc
22683 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22684 # doesn't hurt to check since this sometimes defines pthreads too;
22685 # also defines -D_REENTRANT)
22686 # pthread: Linux, etcetera
22687 # --thread-safe: KAI C++
22689 case "${host_cpu}-${host_os}" in
22692 # On Solaris (at least, for some versions), libc contains stubbed
22693 # (non-functional) versions of the pthreads routines, so link-based
22694 # tests will erroneously succeed. (We need to link with -pthread or
22695 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22696 # a function called by this macro, so we could check for that, but
22697 # who knows whether they'll stub that too in a future libc.) So,
22698 # we'll just look for -pthreads and -lpthread first:
22700 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22704 if test x"$acx_pthread_ok" = xno; then
22705 for flag in $acx_pthread_flags; do
22709 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22710 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22714 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22715 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22716 PTHREAD_CFLAGS="$flag"
22720 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22721 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22722 PTHREAD_LIBS="-l$flag"
22727 save_CFLAGS="$CFLAGS"
22728 LIBS="$PTHREAD_LIBS $LIBS"
22729 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22731 # Check for various functions. We must include pthread.h,
22732 # since some functions may be macros. (On the Sequent, we
22733 # need a special flag -Kthread to make this header compile.)
22734 # We check for pthread_join because it is in -lpthread on IRIX
22735 # while pthread_create is in libc. We check for pthread_attr_init
22736 # due to DEC craziness with -lpthreads. We check for
22737 # pthread_cleanup_push because it is one of the few pthread
22738 # functions on Solaris that doesn't have a non-functional libc stub.
22739 # We try pthread_create on general principles.
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 #include <pthread.h>
22750 pthread_t th; pthread_join(th, 0);
22751 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22752 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_link") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } &&
22771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22772 { (case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_try") 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest$ac_exeext'
22782 { (case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_try") 2>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22793 echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22799 rm -f core conftest.err conftest.$ac_objext \
22800 conftest$ac_exeext conftest.$ac_ext
22803 CFLAGS="$save_CFLAGS"
22805 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22806 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22807 if test "x$acx_pthread_ok" = xyes; then
22816 # Various other checks:
22817 if test "x$acx_pthread_ok" = xyes; then
22819 LIBS="$PTHREAD_LIBS $LIBS"
22820 save_CFLAGS="$CFLAGS"
22821 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22823 # Detect AIX lossage: threads are created detached by default
22824 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22825 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22826 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22827 cat >conftest.$ac_ext <<_ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22833 #include <pthread.h>
22837 int attr=PTHREAD_CREATE_JOINABLE;
22842 rm -f conftest.$ac_objext conftest$ac_exeext
22843 if { (ac_try="$ac_link"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_link") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
22856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22857 { (case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_try") 2>&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest$ac_exeext'
22867 { (case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_try") 2>&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 ok=PTHREAD_CREATE_JOINABLE
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22884 rm -f core conftest.err conftest.$ac_objext \
22885 conftest$ac_exeext conftest.$ac_ext
22886 if test x"$ok" = xunknown; then
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22893 #include <pthread.h>
22897 int attr=PTHREAD_CREATE_UNDETACHED;
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (ac_try="$ac_link"
22904 case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_link") 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
22916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22917 { (case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_try") 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest$ac_exeext'
22927 { (case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_try") 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ok=PTHREAD_CREATE_UNDETACHED
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22944 rm -f core conftest.err conftest.$ac_objext \
22945 conftest$ac_exeext conftest.$ac_ext
22947 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22949 cat >>confdefs.h <<\_ACEOF
22950 #define PTHREAD_CREATE_JOINABLE $ok
22954 { echo "$as_me:$LINENO: result: ${ok}" >&5
22955 echo "${ECHO_T}${ok}" >&6; }
22956 if test x"$ok" = xunknown; then
22957 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22958 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22961 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22962 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22964 case "${host_cpu}-${host_os}" in
22965 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22966 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22968 { echo "$as_me:$LINENO: result: ${flag}" >&5
22969 echo "${ECHO_T}${flag}" >&6; }
22970 if test "x$flag" != xno; then
22971 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22975 CFLAGS="$save_CFLAGS"
22977 # More AIX lossage: must compile with cc_r
22978 # Extract the first word of "cc_r", so it can be a program name with args.
22979 set dummy cc_r; ac_word=$2
22980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22982 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 if test -n "$PTHREAD_CC"; then
22986 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22989 for as_dir in $PATH
22992 test -z "$as_dir" && as_dir=.
22993 for ac_exec_ext in '' $ac_executable_extensions; do
22994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22995 ac_cv_prog_PTHREAD_CC="cc_r"
22996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23003 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23006 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23007 if test -n "$PTHREAD_CC"; then
23008 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23009 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23011 { echo "$as_me:$LINENO: result: no" >&5
23012 echo "${ECHO_T}no" >&6; }
23024 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23025 if test x"$acx_pthread_ok" = xyes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define OMNITHREAD_POSIX 1
23037 # If no POSIX support found, then check for NT threads
23038 { echo "$as_me:$LINENO: checking for NT threads" >&5
23039 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23041 cat >conftest.$ac_ext <<_ACEOF
23043 #include <windows.h>
23044 #include <winbase.h>
23045 int main() { InitializeCriticalSection(NULL); return 0; }
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (ac_try="$ac_link"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055 (eval "$ac_link") 2>conftest.er1
23057 grep -v '^ *+' conftest.er1 >conftest.err
23059 cat conftest.err >&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } &&
23062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23063 { (case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_try") 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; } &&
23072 { ac_try='test -s conftest$ac_exeext'
23073 { (case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_try") 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23085 cat >>confdefs.h <<\_ACEOF
23086 #define OMNITHREAD_NT 1
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads. pthreads not found.
23095 See \`config.log' for more details." >&5
23096 echo "$as_me: error: GNU Radio requires POSIX threads. pthreads not found.
23097 See \`config.log' for more details." >&2;}
23098 { (exit 1); exit 1; }; }
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result: yes" >&5
23105 echo "${ECHO_T}yes" >&6; }
23109 ac_cpp='$CPP $CPPFLAGS'
23110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23117 if test "x$ot_posix" = xyes; then
23118 OMNITHREAD_POSIX_TRUE=
23119 OMNITHREAD_POSIX_FALSE='#'
23121 OMNITHREAD_POSIX_TRUE='#'
23122 OMNITHREAD_POSIX_FALSE=
23127 if test "x$ot_nt" = xyes; then
23128 OMNITHREAD_NT_TRUE=
23129 OMNITHREAD_NT_FALSE='#'
23131 OMNITHREAD_NT_TRUE='#'
23132 OMNITHREAD_NT_FALSE=
23137 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23138 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23139 if test "${ac_cv_search_clock_gettime+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 ac_func_search_save_LIBS=$LIBS
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23150 /* Override any GCC internal prototype to avoid an error.
23151 Use char because int might match the return type of a GCC
23152 builtin and then its argument prototype would still apply. */
23156 char clock_gettime ();
23160 return clock_gettime ();
23165 for ac_lib in '' rt; do
23166 if test -z "$ac_lib"; then
23167 ac_res="none required"
23170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23172 rm -f conftest.$ac_objext conftest$ac_exeext
23173 if { (ac_try="$ac_link"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_link") 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23187 { (case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_try") 2>&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest$ac_exeext'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_try") 2>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; }; then
23206 ac_cv_search_clock_gettime=$ac_res
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23214 rm -f core conftest.err conftest.$ac_objext \
23216 if test "${ac_cv_search_clock_gettime+set}" = set; then
23220 if test "${ac_cv_search_clock_gettime+set}" = set; then
23223 ac_cv_search_clock_gettime=no
23225 rm conftest.$ac_ext
23226 LIBS=$ac_func_search_save_LIBS
23228 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23229 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23230 ac_res=$ac_cv_search_clock_gettime
23231 if test "$ac_res" != no; then
23232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23233 PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23239 for ac_func in clock_gettime gettimeofday nanosleep
23241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 cat >conftest.$ac_ext <<_ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23255 #define $ac_func innocuous_$ac_func
23257 /* System header to define __stub macros and hopefully few prototypes,
23258 which can conflict with char $ac_func (); below.
23259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23260 <limits.h> exists even on freestanding compilers. */
23263 # include <limits.h>
23265 # include <assert.h>
23270 /* Override any GCC internal prototype to avoid an error.
23271 Use char because int might match the return type of a GCC
23272 builtin and then its argument prototype would still apply. */
23277 /* The GNU C library defines this for functions which it implements
23278 to always fail with ENOSYS. Some functions are actually named
23279 something starting with __ and the normal name is an alias. */
23280 #if defined __stub_$ac_func || defined __stub___$ac_func
23287 return $ac_func ();
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (ac_try="$ac_link"
23294 case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299 (eval "$ac_link") 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23307 { (case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_try") 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; } &&
23316 { ac_try='test -s conftest$ac_exeext'
23317 { (case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_try") 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 eval "$as_ac_var=yes"
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 eval "$as_ac_var=no"
23334 rm -f core conftest.err conftest.$ac_objext \
23335 conftest$ac_exeext conftest.$ac_ext
23337 ac_res=`eval echo '${'$as_ac_var'}'`
23338 { echo "$as_me:$LINENO: result: $ac_res" >&5
23339 echo "${ECHO_T}$ac_res" >&6; }
23340 if test `eval echo '${'$as_ac_var'}'` = yes; then
23341 cat >>confdefs.h <<_ACEOF
23342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23350 #AC_SUBST(PTHREAD_CFLAGS)
23351 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23352 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23354 if test "x$CXX_FOR_BUILD" = x
23356 CXX_FOR_BUILD=${CXX}
23363 ac_cpp='$CPP $CPPFLAGS'
23364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23371 for ac_header in sys/ipc.h sys/shm.h
23373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 ac_res=`eval echo '${'$as_ac_Header'}'`
23381 { echo "$as_me:$LINENO: result: $ac_res" >&5
23382 echo "${ECHO_T}$ac_res" >&6; }
23384 # Is the header compilable?
23385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 $ac_includes_default
23394 #include <$ac_header>
23396 rm -f conftest.$ac_objext
23397 if { (ac_try="$ac_compile"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_compile") 2>conftest.er1
23405 grep -v '^ *+' conftest.er1 >conftest.err
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } &&
23410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23411 { (case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_try") 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; } &&
23420 { ac_try='test -s conftest.$ac_objext'
23421 { (case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426 (eval "$ac_try") 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ac_header_compiler=yes
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23435 ac_header_compiler=no
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440 echo "${ECHO_T}$ac_header_compiler" >&6; }
23442 # Is the header present?
23443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23445 cat >conftest.$ac_ext <<_ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23451 #include <$ac_header>
23453 if { (ac_try="$ac_cpp conftest.$ac_ext"
23454 case "(($ac_try" in
23455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456 *) ac_try_echo=$ac_try;;
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23461 grep -v '^ *+' conftest.er1 >conftest.err
23463 cat conftest.err >&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } >/dev/null; then
23466 if test -s conftest.err; then
23467 ac_cpp_err=$ac_c_preproc_warn_flag
23468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23475 if test -z "$ac_cpp_err"; then
23476 ac_header_preproc=yes
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23481 ac_header_preproc=no
23484 rm -f conftest.err conftest.$ac_ext
23485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23486 echo "${ECHO_T}$ac_header_preproc" >&6; }
23488 # So? What about this header?
23489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23495 ac_header_preproc=yes
23498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 eval "$as_ac_Header=\$ac_header_preproc"
23520 ac_res=`eval echo '${'$as_ac_Header'}'`
23521 { echo "$as_me:$LINENO: result: $ac_res" >&5
23522 echo "${ECHO_T}$ac_res" >&6; }
23525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23526 cat >>confdefs.h <<_ACEOF
23527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23536 { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23537 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23538 if test "${ac_cv_search_shmat+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 ac_func_search_save_LIBS=$LIBS
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23549 /* Override any GCC internal prototype to avoid an error.
23550 Use char because int might match the return type of a GCC
23551 builtin and then its argument prototype would still apply. */
23564 for ac_lib in '' cygipc ipc; do
23565 if test -z "$ac_lib"; then
23566 ac_res="none required"
23569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (ac_try="$ac_link"
23573 case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578 (eval "$ac_link") 2>conftest.er1
23580 grep -v '^ *+' conftest.er1 >conftest.err
23582 cat conftest.err >&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); } &&
23585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23586 { (case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_try") 2>&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; } &&
23595 { ac_try='test -s conftest$ac_exeext'
23596 { (case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_try") 2>&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_search_shmat=$ac_res
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23613 rm -f core conftest.err conftest.$ac_objext \
23615 if test "${ac_cv_search_shmat+set}" = set; then
23619 if test "${ac_cv_search_shmat+set}" = set; then
23622 ac_cv_search_shmat=no
23624 rm conftest.$ac_ext
23625 LIBS=$ac_func_search_save_LIBS
23627 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23628 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23629 ac_res=$ac_cv_search_shmat
23630 if test "$ac_res" != no; then
23631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23634 { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23635 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23642 ac_cpp='$CPP $CPPFLAGS'
23643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23650 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23651 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23652 if test "${ac_cv_header_stdc+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 #include <stdlib.h>
23662 #include <stdarg.h>
23663 #include <string.h>
23674 rm -f conftest.$ac_objext
23675 if { (ac_try="$ac_compile"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_compile") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } &&
23688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23689 { (case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694 (eval "$ac_try") 2>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; } &&
23698 { ac_try='test -s conftest.$ac_objext'
23699 { (case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_try") 2>&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; }; then
23708 ac_cv_header_stdc=yes
23710 echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_cv_header_stdc=no
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 if test $ac_cv_header_stdc = yes; then
23719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 #include <string.h>
23729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23730 $EGREP "memchr" >/dev/null 2>&1; then
23733 ac_cv_header_stdc=no
23739 if test $ac_cv_header_stdc = yes; then
23740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 #include <stdlib.h>
23750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23751 $EGREP "free" >/dev/null 2>&1; then
23754 ac_cv_header_stdc=no
23760 if test $ac_cv_header_stdc = yes; then
23761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23762 if test "$cross_compiling" = yes; then
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23772 #include <stdlib.h>
23773 #if ((' ' & 0x0FF) == 0x020)
23774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23777 # define ISLOWER(c) \
23778 (('a' <= (c) && (c) <= 'i') \
23779 || ('j' <= (c) && (c) <= 'r') \
23780 || ('s' <= (c) && (c) <= 'z'))
23781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23789 for (i = 0; i < 256; i++)
23790 if (XOR (islower (i), ISLOWER (i))
23791 || toupper (i) != TOUPPER (i))
23796 rm -f conftest$ac_exeext
23797 if { (ac_try="$ac_link"
23798 case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_link") 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23807 { (case "(($ac_try" in
23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809 *) ac_try_echo=$ac_try;;
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_try") 2>&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); }; }; then
23818 echo "$as_me: program exited with status $ac_status" >&5
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 ( exit $ac_status )
23823 ac_cv_header_stdc=no
23825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23832 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23833 if test $ac_cv_header_stdc = yes; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define STDC_HEADERS 1
23841 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23842 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23843 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 cat >conftest.$ac_ext <<_ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h. */
23852 #include <sys/types.h>
23853 #include <sys/wait.h>
23854 #ifndef WEXITSTATUS
23855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
23885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23886 { (case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_try") 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest.$ac_objext'
23896 { (case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_try") 2>&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; }; then
23905 ac_cv_header_sys_wait_h=yes
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 ac_cv_header_sys_wait_h=no
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23916 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23917 if test $ac_cv_header_sys_wait_h = yes; then
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_SYS_WAIT_H 1
23932 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23941 ac_res=`eval echo '${'$as_ac_Header'}'`
23942 { echo "$as_me:$LINENO: result: $ac_res" >&5
23943 echo "${ECHO_T}$ac_res" >&6; }
23945 # Is the header compilable?
23946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23948 cat >conftest.$ac_ext <<_ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23954 $ac_includes_default
23955 #include <$ac_header>
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961 *) ac_try_echo=$ac_try;;
23963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23964 (eval "$ac_compile") 2>conftest.er1
23966 grep -v '^ *+' conftest.er1 >conftest.err
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } &&
23971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23972 { (case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977 (eval "$ac_try") 2>&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; } &&
23981 { ac_try='test -s conftest.$ac_objext'
23982 { (case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987 (eval "$ac_try") 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; }; then
23991 ac_header_compiler=yes
23993 echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23996 ac_header_compiler=no
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24001 echo "${ECHO_T}$ac_header_compiler" >&6; }
24003 # Is the header present?
24004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24006 cat >conftest.$ac_ext <<_ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24012 #include <$ac_header>
24014 if { (ac_try="$ac_cpp conftest.$ac_ext"
24015 case "(($ac_try" in
24016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017 *) ac_try_echo=$ac_try;;
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24022 grep -v '^ *+' conftest.er1 >conftest.err
24024 cat conftest.err >&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } >/dev/null; then
24027 if test -s conftest.err; then
24028 ac_cpp_err=$ac_c_preproc_warn_flag
24029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24036 if test -z "$ac_cpp_err"; then
24037 ac_header_preproc=yes
24039 echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 ac_header_preproc=no
24045 rm -f conftest.err conftest.$ac_ext
24046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24047 echo "${ECHO_T}$ac_header_preproc" >&6; }
24049 # So? What about this header?
24050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24056 ac_header_preproc=yes
24059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24079 eval "$as_ac_Header=\$ac_header_preproc"
24081 ac_res=`eval echo '${'$as_ac_Header'}'`
24082 { echo "$as_me:$LINENO: result: $ac_res" >&5
24083 echo "${ECHO_T}$ac_res" >&6; }
24086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24099 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24108 ac_res=`eval echo '${'$as_ac_Header'}'`
24109 { echo "$as_me:$LINENO: result: $ac_res" >&5
24110 echo "${ECHO_T}$ac_res" >&6; }
24112 # Is the header compilable?
24113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24115 cat >conftest.$ac_ext <<_ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 $ac_includes_default
24122 #include <$ac_header>
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_compile") 2>conftest.er1
24133 grep -v '^ *+' conftest.er1 >conftest.err
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } &&
24138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24139 { (case "(($ac_try" in
24140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141 *) ac_try_echo=$ac_try;;
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144 (eval "$ac_try") 2>&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; } &&
24148 { ac_try='test -s conftest.$ac_objext'
24149 { (case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154 (eval "$ac_try") 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158 ac_header_compiler=yes
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ac_header_compiler=no
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24168 echo "${ECHO_T}$ac_header_compiler" >&6; }
24170 # Is the header present?
24171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24173 cat >conftest.$ac_ext <<_ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179 #include <$ac_header>
24181 if { (ac_try="$ac_cpp conftest.$ac_ext"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } >/dev/null; then
24194 if test -s conftest.err; then
24195 ac_cpp_err=$ac_c_preproc_warn_flag
24196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24203 if test -z "$ac_cpp_err"; then
24204 ac_header_preproc=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 ac_header_preproc=no
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24216 # So? What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24223 ac_header_preproc=yes
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 eval "$as_ac_Header=\$ac_header_preproc"
24248 ac_res=`eval echo '${'$as_ac_Header'}'`
24249 { echo "$as_me:$LINENO: result: $ac_res" >&5
24250 echo "${ECHO_T}$ac_res" >&6; }
24253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24254 cat >>confdefs.h <<_ACEOF
24255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24265 for ac_header in sys/resource.h stdint.h sched.h
24267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 ac_res=`eval echo '${'$as_ac_Header'}'`
24275 { echo "$as_me:$LINENO: result: $ac_res" >&5
24276 echo "${ECHO_T}$ac_res" >&6; }
24278 # Is the header compilable?
24279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24281 cat >conftest.$ac_ext <<_ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h. */
24287 $ac_includes_default
24288 #include <$ac_header>
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_compile") 2>conftest.er1
24299 grep -v '^ *+' conftest.er1 >conftest.err
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
24304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305 { (case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_try") 2>&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest.$ac_objext'
24315 { (case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_try") 2>&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24324 ac_header_compiler=yes
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ac_header_compiler=no
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24334 echo "${ECHO_T}$ac_header_compiler" >&6; }
24336 # Is the header present?
24337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24339 cat >conftest.$ac_ext <<_ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345 #include <$ac_header>
24347 if { (ac_try="$ac_cpp conftest.$ac_ext"
24348 case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } >/dev/null; then
24360 if test -s conftest.err; then
24361 ac_cpp_err=$ac_c_preproc_warn_flag
24362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24369 if test -z "$ac_cpp_err"; then
24370 ac_header_preproc=yes
24372 echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24375 ac_header_preproc=no
24378 rm -f conftest.err conftest.$ac_ext
24379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24380 echo "${ECHO_T}$ac_header_preproc" >&6; }
24382 # So? What about this header?
24383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24389 ac_header_preproc=yes
24392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24412 eval "$as_ac_Header=\$ac_header_preproc"
24414 ac_res=`eval echo '${'$as_ac_Header'}'`
24415 { echo "$as_me:$LINENO: result: $ac_res" >&5
24416 echo "${ECHO_T}$ac_res" >&6; }
24419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24420 cat >>confdefs.h <<_ACEOF
24421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24429 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24430 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24431 if test "${ac_cv_c_const+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 cat >conftest.$ac_ext <<_ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24444 /* FIXME: Include the comments suggested by Paul. */
24445 #ifndef __cplusplus
24446 /* Ultrix mips cc rejects this. */
24447 typedef int charset[2];
24449 /* SunOS 4.1.1 cc rejects this. */
24450 char const *const *ccp;
24452 /* NEC SVR4.0.2 mips cc rejects this. */
24453 struct point {int x, y;};
24454 static struct point const zero = {0,0};
24455 /* AIX XL C 1.02.0.0 rejects this.
24456 It does not let you subtract one const X* pointer from another in
24457 an arm of an if-expression whose if-part is not a constant
24459 const char *g = "string";
24460 ccp = &g + (g ? g-g : 0);
24461 /* HPUX 7.0 cc rejects these. */
24464 ccp = (char const *const *) p;
24465 { /* SCO 3.2v4 cc rejects this. */
24467 char const *s = 0 ? (char *) 0 : (char const *) 0;
24472 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24473 int x[] = {25, 17};
24474 const int *foo = &x[0];
24477 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24478 typedef const int *iptr;
24482 { /* AIX XL C 1.02.0.0 rejects this saying
24483 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24484 struct s { int j; const int *ap[3]; };
24485 struct s *b; b->j = 5;
24487 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24488 const int foo = 10;
24489 if (!foo) return 0;
24491 return !x[0] && !zero.x;
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_compile") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } &&
24512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24513 { (case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_try") 2>&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; } &&
24522 { ac_try='test -s conftest.$ac_objext'
24523 { (case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_try") 2>&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24534 echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24543 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24544 if test $ac_cv_c_const = no; then
24546 cat >>confdefs.h <<\_ACEOF
24552 { echo "$as_me:$LINENO: checking for inline" >&5
24553 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24554 if test "${ac_cv_c_inline+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24558 for ac_kw in inline __inline__ __inline; do
24559 cat >conftest.$ac_ext <<_ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h. */
24565 #ifndef __cplusplus
24567 static $ac_kw foo_t static_foo () {return 0; }
24568 $ac_kw foo_t foo () {return 0; }
24572 rm -f conftest.$ac_objext
24573 if { (ac_try="$ac_compile"
24574 case "(($ac_try" in
24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_compile") 2>conftest.er1
24581 grep -v '^ *+' conftest.er1 >conftest.err
24583 cat conftest.err >&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } &&
24586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24587 { (case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_try") 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; } &&
24596 { ac_try='test -s conftest.$ac_objext'
24597 { (case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_try") 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; }; then
24606 ac_cv_c_inline=$ac_kw
24608 echo "$as_me: failed program was:" >&5
24609 sed 's/^/| /' conftest.$ac_ext >&5
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 test "$ac_cv_c_inline" != no && break
24619 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24620 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24623 case $ac_cv_c_inline in
24626 case $ac_cv_c_inline in
24628 *) ac_val=$ac_cv_c_inline;;
24630 cat >>confdefs.h <<_ACEOF
24631 #ifndef __cplusplus
24632 #define inline $ac_val
24638 { echo "$as_me:$LINENO: checking for size_t" >&5
24639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24640 if test "${ac_cv_type_size_t+set}" = set; then
24641 echo $ECHO_N "(cached) $ECHO_C" >&6
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 typedef size_t ac__type_new_;
24654 if ((ac__type_new_ *) 0)
24656 if (sizeof (ac__type_new_))
24662 rm -f conftest.$ac_objext
24663 if { (ac_try="$ac_compile"
24664 case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669 (eval "$ac_compile") 2>conftest.er1
24671 grep -v '^ *+' conftest.er1 >conftest.err
24673 cat conftest.err >&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } &&
24676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24677 { (case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682 (eval "$ac_try") 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; } &&
24686 { ac_try='test -s conftest.$ac_objext'
24687 { (case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692 (eval "$ac_try") 2>&5
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 ac_cv_type_size_t=yes
24698 echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_cv_type_size_t=no
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24706 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24708 if test $ac_cv_type_size_t = yes; then
24712 cat >>confdefs.h <<_ACEOF
24713 #define size_t unsigned int
24718 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24720 if test "${ac_cv_header_time+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 #include <sys/types.h>
24730 #include <sys/time.h>
24736 if ((struct tm *) 0)
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_compile") 2>conftest.er1
24751 grep -v '^ *+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
24756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24757 { (case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762 (eval "$ac_try") 2>&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; } &&
24766 { ac_try='test -s conftest.$ac_objext'
24767 { (case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_try") 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; }; then
24776 ac_cv_header_time=yes
24778 echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 ac_cv_header_time=no
24784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24787 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24788 if test $ac_cv_header_time = yes; then
24790 cat >>confdefs.h <<\_ACEOF
24791 #define TIME_WITH_SYS_TIME 1
24796 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24797 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24798 if test "${ac_cv_c_bigendian+set}" = set; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 # See if sys/param.h defines the BYTE_ORDER macro.
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24808 #include <sys/types.h>
24809 #include <sys/param.h>
24814 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24815 bogus endian macros
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } &&
24836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24837 { (case "(($ac_try" in
24838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839 *) ac_try_echo=$ac_try;;
24841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24842 (eval "$ac_try") 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; } &&
24846 { ac_try='test -s conftest.$ac_objext'
24847 { (case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_try") 2>&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); }; }; then
24856 # It does; now see whether it defined to BIG_ENDIAN or not.
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 #include <sys/types.h>
24864 #include <sys/param.h>
24869 #if BYTE_ORDER != BIG_ENDIAN
24877 rm -f conftest.$ac_objext
24878 if { (ac_try="$ac_compile"
24879 case "(($ac_try" in
24880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24881 *) ac_try_echo=$ac_try;;
24883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24884 (eval "$ac_compile") 2>conftest.er1
24886 grep -v '^ *+' conftest.er1 >conftest.err
24888 cat conftest.err >&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } &&
24891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24892 { (case "(($ac_try" in
24893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897 (eval "$ac_try") 2>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; } &&
24901 { ac_try='test -s conftest.$ac_objext'
24902 { (case "(($ac_try" in
24903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904 *) ac_try_echo=$ac_try;;
24906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24907 (eval "$ac_try") 2>&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; }; then
24911 ac_cv_c_bigendian=yes
24913 echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24916 ac_cv_c_bigendian=no
24919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 # It does not; compile a test program.
24925 if test "$cross_compiling" = yes; then
24926 # try to guess the endianness by grepping values into an object file
24927 ac_cv_c_bigendian=unknown
24928 cat >conftest.$ac_ext <<_ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24934 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24935 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24936 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24937 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24938 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24939 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24943 _ascii (); _ebcdic ();
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24957 grep -v '^ *+' conftest.er1 >conftest.err
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } &&
24962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24963 { (case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_try") 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest.$ac_objext'
24973 { (case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_try") 2>&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24983 ac_cv_c_bigendian=yes
24985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24986 if test "$ac_cv_c_bigendian" = unknown; then
24987 ac_cv_c_bigendian=no
24989 # finding both strings is unlikely to happen, but who knows?
24990 ac_cv_c_bigendian=unknown
24994 echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 cat >conftest.$ac_ext <<_ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 $ac_includes_default
25013 /* Are we little or big endian? From Harbison&Steele. */
25017 char c[sizeof (long int)];
25020 return u.c[sizeof (long int) - 1] == 1;
25026 rm -f conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_link") 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25037 { (case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042 (eval "$ac_try") 2>&5
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; }; then
25046 ac_cv_c_bigendian=no
25048 echo "$as_me: program exited with status $ac_status" >&5
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ( exit $ac_status )
25053 ac_cv_c_bigendian=yes
25055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25063 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25064 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25065 case $ac_cv_c_bigendian in
25068 cat >>confdefs.h <<\_ACEOF
25069 #define WORDS_BIGENDIAN 1
25075 { { echo "$as_me:$LINENO: error: unknown endianness
25076 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25077 echo "$as_me: error: unknown endianness
25078 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25079 { (exit 1); exit 1; }; } ;;
25082 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25083 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25084 if test "${ac_cv_struct_tm+set}" = set; then
25085 echo $ECHO_N "(cached) $ECHO_C" >&6
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 #include <sys/types.h>
25099 struct tm *tp; tp->tm_sec;
25104 rm -f conftest.$ac_objext
25105 if { (ac_try="$ac_compile"
25106 case "(($ac_try" in
25107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108 *) ac_try_echo=$ac_try;;
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111 (eval "$ac_compile") 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } &&
25118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25119 { (case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_try") 2>&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest.$ac_objext'
25129 { (case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_try") 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; }; then
25138 ac_cv_struct_tm=time.h
25140 echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25143 ac_cv_struct_tm=sys/time.h
25146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25149 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25150 if test $ac_cv_struct_tm = sys/time.h; then
25152 cat >>confdefs.h <<\_ACEOF
25153 #define TM_IN_SYS_TIME 1
25159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25160 # for constant arguments. Useless!
25161 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25162 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25163 if test "${ac_cv_working_alloca_h+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 #include <alloca.h>
25176 char *p = (char *) alloca (2 * sizeof (int));
25182 rm -f conftest.$ac_objext conftest$ac_exeext
25183 if { (ac_try="$ac_link"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25189 (eval "$ac_link") 2>conftest.er1
25191 grep -v '^ *+' conftest.er1 >conftest.err
25193 cat conftest.err >&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } &&
25196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25197 { (case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202 (eval "$ac_try") 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; } &&
25206 { ac_try='test -s conftest$ac_exeext'
25207 { (case "(($ac_try" in
25208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209 *) ac_try_echo=$ac_try;;
25211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25212 (eval "$ac_try") 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 ac_cv_working_alloca_h=yes
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_cv_working_alloca_h=no
25224 rm -f core conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
25227 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25228 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25229 if test $ac_cv_working_alloca_h = yes; then
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_ALLOCA_H 1
25237 { echo "$as_me:$LINENO: checking for alloca" >&5
25238 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25239 if test "${ac_cv_func_alloca_works+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25249 # define alloca __builtin_alloca
25252 # include <malloc.h>
25253 # define alloca _alloca
25256 # include <alloca.h>
25261 # ifndef alloca /* predefined by HP cc +Olibcalls */
25272 char *p = (char *) alloca (1);
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (ac_try="$ac_link"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25285 (eval "$ac_link") 2>conftest.er1
25287 grep -v '^ *+' conftest.er1 >conftest.err
25289 cat conftest.err >&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } &&
25292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25293 { (case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_try") 2>&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; } &&
25302 { ac_try='test -s conftest$ac_exeext'
25303 { (case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_try") 2>&5
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 ac_cv_func_alloca_works=yes
25314 echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25317 ac_cv_func_alloca_works=no
25320 rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
25323 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25326 if test $ac_cv_func_alloca_works = yes; then
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_ALLOCA 1
25333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25334 # that cause trouble. Some versions do not even contain alloca or
25335 # contain a buggy version. If you still want to use their alloca,
25336 # use ar to extract alloca.o from them instead of compiling alloca.c.
25338 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25340 cat >>confdefs.h <<\_ACEOF
25345 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25347 if test "${ac_cv_os_cray+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 #if defined CRAY && ! defined CRAY2
25363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25364 $EGREP "webecray" >/dev/null 2>&1; then
25372 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25373 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25374 if test $ac_cv_os_cray = yes; then
25375 for ac_func in _getb67 GETB67 getb67; do
25376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25380 echo $ECHO_N "(cached) $ECHO_C" >&6
25382 cat >conftest.$ac_ext <<_ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h. */
25388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25390 #define $ac_func innocuous_$ac_func
25392 /* System header to define __stub macros and hopefully few prototypes,
25393 which can conflict with char $ac_func (); below.
25394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25395 <limits.h> exists even on freestanding compilers. */
25398 # include <limits.h>
25400 # include <assert.h>
25405 /* Override any GCC internal prototype to avoid an error.
25406 Use char because int might match the return type of a GCC
25407 builtin and then its argument prototype would still apply. */
25412 /* The GNU C library defines this for functions which it implements
25413 to always fail with ENOSYS. Some functions are actually named
25414 something starting with __ and the normal name is an alias. */
25415 #if defined __stub_$ac_func || defined __stub___$ac_func
25422 return $ac_func ();
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (ac_try="$ac_link"
25429 case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_link") 2>conftest.er1
25436 grep -v '^ *+' conftest.er1 >conftest.err
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } &&
25441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25442 { (case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447 (eval "$ac_try") 2>&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; } &&
25451 { ac_try='test -s conftest$ac_exeext'
25452 { (case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_try") 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 eval "$as_ac_var=yes"
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 eval "$as_ac_var=no"
25469 rm -f core conftest.err conftest.$ac_objext \
25470 conftest$ac_exeext conftest.$ac_ext
25472 ac_res=`eval echo '${'$as_ac_var'}'`
25473 { echo "$as_me:$LINENO: result: $ac_res" >&5
25474 echo "${ECHO_T}$ac_res" >&6; }
25475 if test `eval echo '${'$as_ac_var'}'` = yes; then
25477 cat >>confdefs.h <<_ACEOF
25478 #define CRAY_STACKSEG_END $ac_func
25487 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25488 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25489 if test "${ac_cv_c_stack_direction+set}" = set; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 if test "$cross_compiling" = yes; then
25493 ac_cv_c_stack_direction=0
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 $ac_includes_default
25503 find_stack_direction ()
25505 static char *addr = 0;
25510 return find_stack_direction ();
25513 return (&dummy > addr) ? 1 : -1;
25519 return find_stack_direction () < 0;
25522 rm -f conftest$ac_exeext
25523 if { (ac_try="$ac_link"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_link") 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533 { (case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_try") 2>&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 ac_cv_c_stack_direction=1
25544 echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ( exit $ac_status )
25549 ac_cv_c_stack_direction=-1
25551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25556 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25557 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25559 cat >>confdefs.h <<_ACEOF
25560 #define STACK_DIRECTION $ac_cv_c_stack_direction
25566 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25567 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25568 if test "$ac_cv_prog_cc_c89" != no; then
25569 { echo "$as_me:$LINENO: result: yes" >&5
25570 echo "${ECHO_T}yes" >&6; }
25572 cat >>confdefs.h <<\_ACEOF
25573 #define PROTOTYPES 1
25577 cat >>confdefs.h <<\_ACEOF
25578 #define __PROTOTYPES 1
25582 { echo "$as_me:$LINENO: result: no" >&5
25583 echo "${ECHO_T}no" >&6; }
25586 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25587 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25588 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25589 echo $ECHO_N "(cached) $ECHO_C" >&6
25591 ac_cv_func_setvbuf_reversed=no
25592 cat >conftest.$ac_ext <<_ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25600 int (setvbuf) (FILE *, int, char *, size_t);
25605 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25610 rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (ac_try="$ac_link"
25612 case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_link") 2>conftest.er1
25619 grep -v '^ *+' conftest.er1 >conftest.err
25621 cat conftest.err >&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } &&
25624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25625 { (case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630 (eval "$ac_try") 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; } &&
25634 { ac_try='test -s conftest$ac_exeext'
25635 { (case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_try") 2>&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
25644 cat >conftest.$ac_ext <<_ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25652 int (setvbuf) (FILE *, int, char *, size_t);
25657 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25662 rm -f conftest.$ac_objext conftest$ac_exeext
25663 if { (ac_try="$ac_link"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669 (eval "$ac_link") 2>conftest.er1
25671 grep -v '^ *+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } &&
25676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25677 { (case "(($ac_try" in
25678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25682 (eval "$ac_try") 2>&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); }; } &&
25686 { ac_try='test -s conftest$ac_exeext'
25687 { (case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_try") 2>&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 # It compiles and links either way, so it must not be declared
25697 # with a prototype and most likely this is a K&R C compiler.
25699 if test "$cross_compiling" = yes; then
25700 : # Assume setvbuf is not reversed when cross-compiling.
25702 cat >conftest.$ac_ext <<_ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25708 $ac_includes_default
25712 /* This call has the arguments reversed.
25713 A reversed system may check and see that the address of buf
25714 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
25716 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25719 return 0; /* Non-reversed systems SEGV here. */
25724 rm -f conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731 (eval "$ac_link") 2>&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25735 { (case "(($ac_try" in
25736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 *) ac_try_echo=$ac_try;;
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 (eval "$ac_try") 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_func_setvbuf_reversed=yes
25746 echo "$as_me: program exited with status $ac_status" >&5
25747 echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25755 ac_cv_func_setvbuf_reversed=yes
25757 echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25763 rm -f core conftest.err conftest.$ac_objext \
25764 conftest$ac_exeext conftest.$ac_ext
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25772 rm -f core conftest.err conftest.$ac_objext \
25773 conftest$ac_exeext conftest.$ac_ext
25775 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25776 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25777 if test $ac_cv_func_setvbuf_reversed = yes; then
25779 cat >>confdefs.h <<\_ACEOF
25780 #define SETVBUF_REVERSED 1
25786 for ac_func in vprintf
25788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25794 cat >conftest.$ac_ext <<_ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h. */
25800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25802 #define $ac_func innocuous_$ac_func
25804 /* System header to define __stub macros and hopefully few prototypes,
25805 which can conflict with char $ac_func (); below.
25806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25807 <limits.h> exists even on freestanding compilers. */
25810 # include <limits.h>
25812 # include <assert.h>
25817 /* Override any GCC internal prototype to avoid an error.
25818 Use char because int might match the return type of a GCC
25819 builtin and then its argument prototype would still apply. */
25824 /* The GNU C library defines this for functions which it implements
25825 to always fail with ENOSYS. Some functions are actually named
25826 something starting with __ and the normal name is an alias. */
25827 #if defined __stub_$ac_func || defined __stub___$ac_func
25834 return $ac_func ();
25839 rm -f conftest.$ac_objext conftest$ac_exeext
25840 if { (ac_try="$ac_link"
25841 case "(($ac_try" in
25842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843 *) ac_try_echo=$ac_try;;
25845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25846 (eval "$ac_link") 2>conftest.er1
25848 grep -v '^ *+' conftest.er1 >conftest.err
25850 cat conftest.err >&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } &&
25853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25854 { (case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859 (eval "$ac_try") 2>&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest$ac_exeext'
25864 { (case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_try") 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; }; then
25873 eval "$as_ac_var=yes"
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 eval "$as_ac_var=no"
25881 rm -f core conftest.err conftest.$ac_objext \
25882 conftest$ac_exeext conftest.$ac_ext
25884 ac_res=`eval echo '${'$as_ac_var'}'`
25885 { echo "$as_me:$LINENO: result: $ac_res" >&5
25886 echo "${ECHO_T}$ac_res" >&6; }
25887 if test `eval echo '${'$as_ac_var'}'` = yes; then
25888 cat >>confdefs.h <<_ACEOF
25889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25892 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25893 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25894 if test "${ac_cv_func__doprnt+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25905 #define _doprnt innocuous__doprnt
25907 /* System header to define __stub macros and hopefully few prototypes,
25908 which can conflict with char _doprnt (); below.
25909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25910 <limits.h> exists even on freestanding compilers. */
25913 # include <limits.h>
25915 # include <assert.h>
25920 /* Override any GCC internal prototype to avoid an error.
25921 Use char because int might match the return type of a GCC
25922 builtin and then its argument prototype would still apply. */
25927 /* The GNU C library defines this for functions which it implements
25928 to always fail with ENOSYS. Some functions are actually named
25929 something starting with __ and the normal name is an alias. */
25930 #if defined __stub__doprnt || defined __stub____doprnt
25942 rm -f conftest.$ac_objext conftest$ac_exeext
25943 if { (ac_try="$ac_link"
25944 case "(($ac_try" in
25945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946 *) ac_try_echo=$ac_try;;
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949 (eval "$ac_link") 2>conftest.er1
25951 grep -v '^ *+' conftest.er1 >conftest.err
25953 cat conftest.err >&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25957 { (case "(($ac_try" in
25958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959 *) ac_try_echo=$ac_try;;
25961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962 (eval "$ac_try") 2>&5
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest$ac_exeext'
25967 { (case "(($ac_try" in
25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972 (eval "$ac_try") 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 ac_cv_func__doprnt=yes
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25981 ac_cv_func__doprnt=no
25984 rm -f core conftest.err conftest.$ac_objext \
25985 conftest$ac_exeext conftest.$ac_ext
25987 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25988 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25989 if test $ac_cv_func__doprnt = yes; then
25991 cat >>confdefs.h <<\_ACEOF
25992 #define HAVE_DOPRNT 1
26009 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26025 #define $ac_func innocuous_$ac_func
26027 /* System header to define __stub macros and hopefully few prototypes,
26028 which can conflict with char $ac_func (); below.
26029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030 <limits.h> exists even on freestanding compilers. */
26033 # include <limits.h>
26035 # include <assert.h>
26040 /* Override any GCC internal prototype to avoid an error.
26041 Use char because int might match the return type of a GCC
26042 builtin and then its argument prototype would still apply. */
26047 /* The GNU C library defines this for functions which it implements
26048 to always fail with ENOSYS. Some functions are actually named
26049 something starting with __ and the normal name is an alias. */
26050 #if defined __stub_$ac_func || defined __stub___$ac_func
26057 return $ac_func ();
26062 rm -f conftest.$ac_objext conftest$ac_exeext
26063 if { (ac_try="$ac_link"
26064 case "(($ac_try" in
26065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066 *) ac_try_echo=$ac_try;;
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069 (eval "$ac_link") 2>conftest.er1
26071 grep -v '^ *+' conftest.er1 >conftest.err
26073 cat conftest.err >&5
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); } &&
26076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26077 { (case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082 (eval "$ac_try") 2>&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; } &&
26086 { ac_try='test -s conftest$ac_exeext'
26087 { (case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092 (eval "$ac_try") 2>&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; }; then
26096 eval "$as_ac_var=yes"
26098 echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26101 eval "$as_ac_var=no"
26104 rm -f core conftest.err conftest.$ac_objext \
26105 conftest$ac_exeext conftest.$ac_ext
26107 ac_res=`eval echo '${'$as_ac_var'}'`
26108 { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26110 if test `eval echo '${'$as_ac_var'}'` = yes; then
26111 cat >>confdefs.h <<_ACEOF
26112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26122 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26128 echo $ECHO_N "(cached) $ECHO_C" >&6
26130 cat >conftest.$ac_ext <<_ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26138 #define $ac_func innocuous_$ac_func
26140 /* System header to define __stub macros and hopefully few prototypes,
26141 which can conflict with char $ac_func (); below.
26142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26143 <limits.h> exists even on freestanding compilers. */
26146 # include <limits.h>
26148 # include <assert.h>
26153 /* Override any GCC internal prototype to avoid an error.
26154 Use char because int might match the return type of a GCC
26155 builtin and then its argument prototype would still apply. */
26160 /* The GNU C library defines this for functions which it implements
26161 to always fail with ENOSYS. Some functions are actually named
26162 something starting with __ and the normal name is an alias. */
26163 #if defined __stub_$ac_func || defined __stub___$ac_func
26170 return $ac_func ();
26175 rm -f conftest.$ac_objext conftest$ac_exeext
26176 if { (ac_try="$ac_link"
26177 case "(($ac_try" in
26178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179 *) ac_try_echo=$ac_try;;
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182 (eval "$ac_link") 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26190 { (case "(($ac_try" in
26191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192 *) ac_try_echo=$ac_try;;
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195 (eval "$ac_try") 2>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; } &&
26199 { ac_try='test -s conftest$ac_exeext'
26200 { (case "(($ac_try" in
26201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26202 *) ac_try_echo=$ac_try;;
26204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26205 (eval "$ac_try") 2>&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26209 eval "$as_ac_var=yes"
26211 echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26214 eval "$as_ac_var=no"
26217 rm -f core conftest.err conftest.$ac_objext \
26218 conftest$ac_exeext conftest.$ac_ext
26220 ac_res=`eval echo '${'$as_ac_var'}'`
26221 { echo "$as_me:$LINENO: result: $ac_res" >&5
26222 echo "${ECHO_T}$ac_res" >&6; }
26223 if test `eval echo '${'$as_ac_var'}'` = yes; then
26224 cat >>confdefs.h <<_ACEOF
26225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26233 for ac_func in modf sqrt
26235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26239 echo $ECHO_N "(cached) $ECHO_C" >&6
26241 cat >conftest.$ac_ext <<_ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26249 #define $ac_func innocuous_$ac_func
26251 /* System header to define __stub macros and hopefully few prototypes,
26252 which can conflict with char $ac_func (); below.
26253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26254 <limits.h> exists even on freestanding compilers. */
26257 # include <limits.h>
26259 # include <assert.h>
26264 /* Override any GCC internal prototype to avoid an error.
26265 Use char because int might match the return type of a GCC
26266 builtin and then its argument prototype would still apply. */
26271 /* The GNU C library defines this for functions which it implements
26272 to always fail with ENOSYS. Some functions are actually named
26273 something starting with __ and the normal name is an alias. */
26274 #if defined __stub_$ac_func || defined __stub___$ac_func
26281 return $ac_func ();
26286 rm -f conftest.$ac_objext conftest$ac_exeext
26287 if { (ac_try="$ac_link"
26288 case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26293 (eval "$ac_link") 2>conftest.er1
26295 grep -v '^ *+' conftest.er1 >conftest.err
26297 cat conftest.err >&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } &&
26300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26301 { (case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_try") 2>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; } &&
26310 { ac_try='test -s conftest$ac_exeext'
26311 { (case "(($ac_try" in
26312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313 *) ac_try_echo=$ac_try;;
26315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26316 (eval "$ac_try") 2>&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; }; then
26320 eval "$as_ac_var=yes"
26322 echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26325 eval "$as_ac_var=no"
26328 rm -f core conftest.err conftest.$ac_objext \
26329 conftest$ac_exeext conftest.$ac_ext
26331 ac_res=`eval echo '${'$as_ac_var'}'`
26332 { echo "$as_me:$LINENO: result: $ac_res" >&5
26333 echo "${ECHO_T}$ac_res" >&6; }
26334 if test `eval echo '${'$as_ac_var'}'` = yes; then
26335 cat >>confdefs.h <<_ACEOF
26336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26343 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26344 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26345 if test "${ac_cv_lib_m_sincos+set}" = set; then
26346 echo $ECHO_N "(cached) $ECHO_C" >&6
26348 ac_check_lib_save_LIBS=$LIBS
26350 cat >conftest.$ac_ext <<_ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26357 /* Override any GCC internal prototype to avoid an error.
26358 Use char because int might match the return type of a GCC
26359 builtin and then its argument prototype would still apply. */
26372 rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_link") 2>conftest.er1
26381 grep -v '^ *+' conftest.er1 >conftest.err
26383 cat conftest.err >&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } &&
26386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26387 { (case "(($ac_try" in
26388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389 *) ac_try_echo=$ac_try;;
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392 (eval "$ac_try") 2>&5
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; } &&
26396 { ac_try='test -s conftest$ac_exeext'
26397 { (case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_try") 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 ac_cv_lib_m_sincos=yes
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ac_cv_lib_m_sincos=no
26414 rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26416 LIBS=$ac_check_lib_save_LIBS
26418 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26419 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26420 if test $ac_cv_lib_m_sincos = yes; then
26422 cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_SINCOS 1
26428 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26429 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26430 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 ac_check_lib_save_LIBS=$LIBS
26435 cat >conftest.$ac_ext <<_ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26442 /* Override any GCC internal prototype to avoid an error.
26443 Use char because int might match the return type of a GCC
26444 builtin and then its argument prototype would still apply. */
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (ac_try="$ac_link"
26459 case "(($ac_try" in
26460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461 *) ac_try_echo=$ac_try;;
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464 (eval "$ac_link") 2>conftest.er1
26466 grep -v '^ *+' conftest.er1 >conftest.err
26468 cat conftest.err >&5
26469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470 (exit $ac_status); } &&
26471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26472 { (case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_try") 2>&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; } &&
26481 { ac_try='test -s conftest$ac_exeext'
26482 { (case "(($ac_try" in
26483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26484 *) ac_try_echo=$ac_try;;
26486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26487 (eval "$ac_try") 2>&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
26491 ac_cv_lib_m_sincosf=yes
26493 echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26496 ac_cv_lib_m_sincosf=no
26499 rm -f core conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS
26503 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26504 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26505 if test $ac_cv_lib_m_sincosf = yes; then
26507 cat >>confdefs.h <<\_ACEOF
26508 #define HAVE_SINCOSF 1
26513 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26514 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26515 if test "${ac_cv_lib_m_sinf+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 ac_check_lib_save_LIBS=$LIBS
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26527 /* Override any GCC internal prototype to avoid an error.
26528 Use char because int might match the return type of a GCC
26529 builtin and then its argument prototype would still apply. */
26542 rm -f conftest.$ac_objext conftest$ac_exeext
26543 if { (ac_try="$ac_link"
26544 case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_link") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
26556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26557 { (case "(($ac_try" in
26558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559 *) ac_try_echo=$ac_try;;
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562 (eval "$ac_try") 2>&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); }; } &&
26566 { ac_try='test -s conftest$ac_exeext'
26567 { (case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_try") 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 ac_cv_lib_m_sinf=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_cv_lib_m_sinf=no
26584 rm -f core conftest.err conftest.$ac_objext \
26585 conftest$ac_exeext conftest.$ac_ext
26586 LIBS=$ac_check_lib_save_LIBS
26588 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26589 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26590 if test $ac_cv_lib_m_sinf = yes; then
26592 cat >>confdefs.h <<\_ACEOF
26593 #define HAVE_SINF 1
26598 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26599 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26600 if test "${ac_cv_lib_m_cosf+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 ac_check_lib_save_LIBS=$LIBS
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26612 /* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26627 rm -f conftest.$ac_objext conftest$ac_exeext
26628 if { (ac_try="$ac_link"
26629 case "(($ac_try" in
26630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631 *) ac_try_echo=$ac_try;;
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634 (eval "$ac_link") 2>conftest.er1
26636 grep -v '^ *+' conftest.er1 >conftest.err
26638 cat conftest.err >&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } &&
26641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26642 { (case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647 (eval "$ac_try") 2>&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; } &&
26651 { ac_try='test -s conftest$ac_exeext'
26652 { (case "(($ac_try" in
26653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654 *) ac_try_echo=$ac_try;;
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657 (eval "$ac_try") 2>&5
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; }; then
26661 ac_cv_lib_m_cosf=yes
26663 echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26666 ac_cv_lib_m_cosf=no
26669 rm -f core conftest.err conftest.$ac_objext \
26670 conftest$ac_exeext conftest.$ac_ext
26671 LIBS=$ac_check_lib_save_LIBS
26673 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26674 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26675 if test $ac_cv_lib_m_cosf = yes; then
26677 cat >>confdefs.h <<\_ACEOF
26678 #define HAVE_COSF 1
26683 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26684 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26685 if test "${ac_cv_lib_m_trunc+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 ac_check_lib_save_LIBS=$LIBS
26690 cat >conftest.$ac_ext <<_ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h. */
26697 /* Override any GCC internal prototype to avoid an error.
26698 Use char because int might match the return type of a GCC
26699 builtin and then its argument prototype would still apply. */
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_link") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
26726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727 { (case "(($ac_try" in
26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729 *) ac_try_echo=$ac_try;;
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732 (eval "$ac_try") 2>&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; } &&
26736 { ac_try='test -s conftest$ac_exeext'
26737 { (case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_try") 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_lib_m_trunc=yes
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_cv_lib_m_trunc=no
26754 rm -f core conftest.err conftest.$ac_objext \
26755 conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26758 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26759 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26760 if test $ac_cv_lib_m_trunc = yes; then
26762 cat >>confdefs.h <<\_ACEOF
26763 #define HAVE_TRUNC 1
26768 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26769 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26770 if test "${ac_cv_lib_m_exp10+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26773 ac_check_lib_save_LIBS=$LIBS
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26782 /* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26797 rm -f conftest.$ac_objext conftest$ac_exeext
26798 if { (ac_try="$ac_link"
26799 case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_link") 2>conftest.er1
26806 grep -v '^ *+' conftest.er1 >conftest.err
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; } &&
26821 { ac_try='test -s conftest$ac_exeext'
26822 { (case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827 (eval "$ac_try") 2>&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 ac_cv_lib_m_exp10=yes
26833 echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26836 ac_cv_lib_m_exp10=no
26839 rm -f core conftest.err conftest.$ac_objext \
26840 conftest$ac_exeext conftest.$ac_ext
26841 LIBS=$ac_check_lib_save_LIBS
26843 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26844 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26845 if test $ac_cv_lib_m_exp10 = yes; then
26847 cat >>confdefs.h <<\_ACEOF
26848 #define HAVE_EXP10 1
26861 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26862 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26863 if test "${ac_cv_search_shm_open+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26866 ac_func_search_save_LIBS=$LIBS
26867 cat >conftest.$ac_ext <<_ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26874 /* Override any GCC internal prototype to avoid an error.
26875 Use char because int might match the return type of a GCC
26876 builtin and then its argument prototype would still apply. */
26884 return shm_open ();
26889 for ac_lib in '' rt; do
26890 if test -z "$ac_lib"; then
26891 ac_res="none required"
26894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26896 rm -f conftest.$ac_objext conftest$ac_exeext
26897 if { (ac_try="$ac_link"
26898 case "(($ac_try" in
26899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900 *) ac_try_echo=$ac_try;;
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903 (eval "$ac_link") 2>conftest.er1
26905 grep -v '^ *+' conftest.er1 >conftest.err
26907 cat conftest.err >&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } &&
26910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26911 { (case "(($ac_try" in
26912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26913 *) ac_try_echo=$ac_try;;
26915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26916 (eval "$ac_try") 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest$ac_exeext'
26921 { (case "(($ac_try" in
26922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_try") 2>&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930 ac_cv_search_shm_open=$ac_res
26932 echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26938 rm -f core conftest.err conftest.$ac_objext \
26940 if test "${ac_cv_search_shm_open+set}" = set; then
26944 if test "${ac_cv_search_shm_open+set}" = set; then
26947 ac_cv_search_shm_open=no
26949 rm conftest.$ac_ext
26950 LIBS=$ac_func_search_save_LIBS
26952 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26953 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26954 ac_res=$ac_cv_search_shm_open
26955 if test "$ac_res" != no; then
26956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26957 SHM_OPEN_LIBS="$LIBS"
26961 for ac_func in shm_open
26963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 cat >conftest.$ac_ext <<_ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26977 #define $ac_func innocuous_$ac_func
26979 /* System header to define __stub macros and hopefully few prototypes,
26980 which can conflict with char $ac_func (); below.
26981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26982 <limits.h> exists even on freestanding compilers. */
26985 # include <limits.h>
26987 # include <assert.h>
26992 /* Override any GCC internal prototype to avoid an error.
26993 Use char because int might match the return type of a GCC
26994 builtin and then its argument prototype would still apply. */
26999 /* The GNU C library defines this for functions which it implements
27000 to always fail with ENOSYS. Some functions are actually named
27001 something starting with __ and the normal name is an alias. */
27002 #if defined __stub_$ac_func || defined __stub___$ac_func
27009 return $ac_func ();
27014 rm -f conftest.$ac_objext conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021 (eval "$ac_link") 2>conftest.er1
27023 grep -v '^ *+' conftest.er1 >conftest.err
27025 cat conftest.err >&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } &&
27028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029 { (case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_try") 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (case "(($ac_try" in
27040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041 *) ac_try_echo=$ac_try;;
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044 (eval "$ac_try") 2>&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
27048 eval "$as_ac_var=yes"
27050 echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27053 eval "$as_ac_var=no"
27056 rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
27059 ac_res=`eval echo '${'$as_ac_var'}'`
27060 { echo "$as_me:$LINENO: result: $ac_res" >&5
27061 echo "${ECHO_T}$ac_res" >&6; }
27062 if test `eval echo '${'$as_ac_var'}'` = yes; then
27063 cat >>confdefs.h <<_ACEOF
27064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27075 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27076 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27078 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27079 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27080 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27082 # libtool requires the quotes
27083 LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27084 { echo "$as_me:$LINENO: result: yes" >&5
27085 echo "${ECHO_T}yes" >&6; }
27087 { echo "$as_me:$LINENO: result: no" >&5
27088 echo "${ECHO_T}no" >&6; }
27095 { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27096 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27097 cat >conftest.$ac_ext <<_ACEOF
27099 #include <windows.h>
27100 int main (int argc, char **argv)
27104 char seg_name[1024];
27105 handle = CreateFileMapping(
27106 INVALID_HANDLE_VALUE, // use paging file
27107 NULL, // default security
27108 PAGE_READWRITE, // read/write access
27109 0, // max. object size
27110 size, // buffer size
27111 seg_name); // name of mapping object
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_compile") 2>conftest.er1
27125 grep -v '^ *+' conftest.er1 >conftest.err
27127 cat conftest.err >&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } &&
27130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27131 { (case "(($ac_try" in
27132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133 *) ac_try_echo=$ac_try;;
27135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136 (eval "$ac_try") 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; } &&
27140 { ac_try='test -s conftest.$ac_objext'
27141 { (case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_try") 2>&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; }; then
27150 HAVE_CREATEFILEMAPPING=yes
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_CREATEFILEMAPPING 1
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27160 HAVE_CREATEFILEMAPPING=no
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27165 { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27166 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27169 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27170 HAVE_CREATEFILEMAPPING_TRUE=
27171 HAVE_CREATEFILEMAPPING_FALSE='#'
27173 HAVE_CREATEFILEMAPPING_TRUE='#'
27174 HAVE_CREATEFILEMAPPING_FALSE=
27184 for ac_header in sys/types.h fcntl.h io.h
27186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27191 echo $ECHO_N "(cached) $ECHO_C" >&6
27193 ac_res=`eval echo '${'$as_ac_Header'}'`
27194 { echo "$as_me:$LINENO: result: $ac_res" >&5
27195 echo "${ECHO_T}$ac_res" >&6; }
27197 # Is the header compilable?
27198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27200 cat >conftest.$ac_ext <<_ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h. */
27206 $ac_includes_default
27207 #include <$ac_header>
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27218 grep -v '^ *+' conftest.er1 >conftest.err
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } &&
27223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest.$ac_objext'
27234 { (case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_try") 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
27243 ac_header_compiler=yes
27245 echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27248 ac_header_compiler=no
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253 echo "${ECHO_T}$ac_header_compiler" >&6; }
27255 # Is the header present?
27256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27258 cat >conftest.$ac_ext <<_ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h. */
27264 #include <$ac_header>
27266 if { (ac_try="$ac_cpp conftest.$ac_ext"
27267 case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27274 grep -v '^ *+' conftest.er1 >conftest.err
27276 cat conftest.err >&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } >/dev/null; then
27279 if test -s conftest.err; then
27280 ac_cpp_err=$ac_c_preproc_warn_flag
27281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27288 if test -z "$ac_cpp_err"; then
27289 ac_header_preproc=yes
27291 echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 ac_header_preproc=no
27297 rm -f conftest.err conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27299 echo "${ECHO_T}$ac_header_preproc" >&6; }
27301 # So? What about this header?
27302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27308 ac_header_preproc=yes
27311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27329 echo $ECHO_N "(cached) $ECHO_C" >&6
27331 eval "$as_ac_Header=\$ac_header_preproc"
27333 ac_res=`eval echo '${'$as_ac_Header'}'`
27334 { echo "$as_me:$LINENO: result: $ac_res" >&5
27335 echo "${ECHO_T}$ac_res" >&6; }
27338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27339 cat >>confdefs.h <<_ACEOF
27340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27348 for ac_header in windows.h
27350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
27357 ac_res=`eval echo '${'$as_ac_Header'}'`
27358 { echo "$as_me:$LINENO: result: $ac_res" >&5
27359 echo "${ECHO_T}$ac_res" >&6; }
27361 # Is the header compilable?
27362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27370 $ac_includes_default
27371 #include <$ac_header>
27373 rm -f conftest.$ac_objext
27374 if { (ac_try="$ac_compile"
27375 case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_compile") 2>conftest.er1
27382 grep -v '^ *+' conftest.er1 >conftest.err
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } &&
27387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27388 { (case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_try") 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_try") 2>&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; }; then
27407 ac_header_compiler=yes
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_header_compiler=no
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27417 echo "${ECHO_T}$ac_header_compiler" >&6; }
27419 # Is the header present?
27420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27422 cat >conftest.$ac_ext <<_ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h. */
27428 #include <$ac_header>
27430 if { (ac_try="$ac_cpp conftest.$ac_ext"
27431 case "(($ac_try" in
27432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433 *) ac_try_echo=$ac_try;;
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27438 grep -v '^ *+' conftest.er1 >conftest.err
27440 cat conftest.err >&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } >/dev/null; then
27443 if test -s conftest.err; then
27444 ac_cpp_err=$ac_c_preproc_warn_flag
27445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27452 if test -z "$ac_cpp_err"; then
27453 ac_header_preproc=yes
27455 echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27458 ac_header_preproc=no
27461 rm -f conftest.err conftest.$ac_ext
27462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27463 echo "${ECHO_T}$ac_header_preproc" >&6; }
27465 # So? What about this header?
27466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27472 ac_header_preproc=yes
27475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 eval "$as_ac_Header=\$ac_header_preproc"
27497 ac_res=`eval echo '${'$as_ac_Header'}'`
27498 { echo "$as_me:$LINENO: result: $ac_res" >&5
27499 echo "${ECHO_T}$ac_res" >&6; }
27502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27503 cat >>confdefs.h <<_ACEOF
27504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27513 for ac_header in winioctl.h winbase.h
27515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27521 cat >conftest.$ac_ext <<_ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27529 #include <windows.h>
27533 #include <$ac_header>
27535 rm -f conftest.$ac_objext
27536 if { (ac_try="$ac_compile"
27537 case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_compile") 2>conftest.er1
27544 grep -v '^ *+' conftest.er1 >conftest.err
27546 cat conftest.err >&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); } &&
27549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27550 { (case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_try") 2>&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; } &&
27559 { ac_try='test -s conftest.$ac_objext'
27560 { (case "(($ac_try" in
27561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27562 *) ac_try_echo=$ac_try;;
27564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27565 (eval "$ac_try") 2>&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; }; then
27569 eval "$as_ac_Header=yes"
27571 echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27574 eval "$as_ac_Header=no"
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 ac_res=`eval echo '${'$as_ac_Header'}'`
27580 { echo "$as_me:$LINENO: result: $ac_res" >&5
27581 echo "${ECHO_T}$ac_res" >&6; }
27582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27583 cat >>confdefs.h <<_ACEOF
27584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27602 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27618 #define $ac_func innocuous_$ac_func
27620 /* System header to define __stub macros and hopefully few prototypes,
27621 which can conflict with char $ac_func (); below.
27622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27623 <limits.h> exists even on freestanding compilers. */
27626 # include <limits.h>
27628 # include <assert.h>
27633 /* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27640 /* The GNU C library defines this for functions which it implements
27641 to always fail with ENOSYS. Some functions are actually named
27642 something starting with __ and the normal name is an alias. */
27643 #if defined __stub_$ac_func || defined __stub___$ac_func
27650 return $ac_func ();
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656 if { (ac_try="$ac_link"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_link") 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } &&
27669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27670 { (case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_try") 2>&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; } &&
27679 { ac_try='test -s conftest$ac_exeext'
27680 { (case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685 (eval "$ac_try") 2>&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
27689 eval "$as_ac_var=yes"
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27694 eval "$as_ac_var=no"
27697 rm -f core conftest.err conftest.$ac_objext \
27698 conftest$ac_exeext conftest.$ac_ext
27700 ac_res=`eval echo '${'$as_ac_var'}'`
27701 { echo "$as_me:$LINENO: result: $ac_res" >&5
27702 echo "${ECHO_T}$ac_res" >&6; }
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27711 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27712 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27713 if test "${ac_cv_type_struct_timezone+set}" = set; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 cat >conftest.$ac_ext <<_ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27723 #if HAVE_SYS_TYPES_H
27724 # include <sys/types.h>
27726 #if TIME_WITH_SYS_TIME
27727 # include <sys/time.h>
27730 # if HAVE_SYS_TIME_H
27731 # include <sys/time.h>
27738 typedef struct timezone ac__type_new_;
27742 if ((ac__type_new_ *) 0)
27744 if (sizeof (ac__type_new_))
27750 rm -f conftest.$ac_objext
27751 if { (ac_try="$ac_compile"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_compile") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1 >conftest.err
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } &&
27764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765 { (case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 ac_cv_type_struct_timezone=yes
27786 echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27789 ac_cv_type_struct_timezone=no
27792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27795 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27796 if test $ac_cv_type_struct_timezone = yes; then
27798 cat >>confdefs.h <<_ACEOF
27799 #define HAVE_STRUCT_TIMEZONE 1
27804 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27805 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27806 if test "${ac_cv_type_struct_timespec+set}" = set; then
27807 echo $ECHO_N "(cached) $ECHO_C" >&6
27809 cat >conftest.$ac_ext <<_ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27816 #if HAVE_SYS_TYPES_H
27817 # include <sys/types.h>
27819 #if TIME_WITH_SYS_TIME
27820 # include <sys/time.h>
27823 # if HAVE_SYS_TIME_H
27824 # include <sys/time.h>
27831 typedef struct timespec ac__type_new_;
27835 if ((ac__type_new_ *) 0)
27837 if (sizeof (ac__type_new_))
27843 rm -f conftest.$ac_objext
27844 if { (ac_try="$ac_compile"
27845 case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850 (eval "$ac_compile") 2>conftest.er1
27852 grep -v '^ *+' conftest.er1 >conftest.err
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } &&
27857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858 { (case "(($ac_try" in
27859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860 *) ac_try_echo=$ac_try;;
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863 (eval "$ac_try") 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest.$ac_objext'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 ac_cv_type_struct_timespec=yes
27879 echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27882 ac_cv_type_struct_timespec=no
27885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27887 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27888 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27889 if test $ac_cv_type_struct_timespec = yes; then
27891 cat >>confdefs.h <<_ACEOF
27892 #define HAVE_STRUCT_TIMESPEC 1
27897 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27898 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27899 if test "${ac_cv_type_ssize_t+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27902 cat >conftest.$ac_ext <<_ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27909 #if HAVE_SYS_TYPES_H
27910 # include <sys/types.h>
27912 #if TIME_WITH_SYS_TIME
27913 # include <sys/time.h>
27916 # if HAVE_SYS_TIME_H
27917 # include <sys/time.h>
27924 typedef ssize_t ac__type_new_;
27928 if ((ac__type_new_ *) 0)
27930 if (sizeof (ac__type_new_))
27936 rm -f conftest.$ac_objext
27937 if { (ac_try="$ac_compile"
27938 case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_compile") 2>conftest.er1
27945 grep -v '^ *+' conftest.er1 >conftest.err
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } &&
27950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27951 { (case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956 (eval "$ac_try") 2>&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; } &&
27960 { ac_try='test -s conftest.$ac_objext'
27961 { (case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_try") 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27970 ac_cv_type_ssize_t=yes
27972 echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27975 ac_cv_type_ssize_t=no
27978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27981 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27982 if test $ac_cv_type_ssize_t = yes; then
27984 cat >>confdefs.h <<_ACEOF
27985 #define HAVE_SSIZE_T 1
27995 for ac_func in getopt usleep gettimeofday
27997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 cat >conftest.$ac_ext <<_ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h. */
28009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28011 #define $ac_func innocuous_$ac_func
28013 /* System header to define __stub macros and hopefully few prototypes,
28014 which can conflict with char $ac_func (); below.
28015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28016 <limits.h> exists even on freestanding compilers. */
28019 # include <limits.h>
28021 # include <assert.h>
28026 /* Override any GCC internal prototype to avoid an error.
28027 Use char because int might match the return type of a GCC
28028 builtin and then its argument prototype would still apply. */
28033 /* The GNU C library defines this for functions which it implements
28034 to always fail with ENOSYS. Some functions are actually named
28035 something starting with __ and the normal name is an alias. */
28036 #if defined __stub_$ac_func || defined __stub___$ac_func
28043 return $ac_func ();
28048 rm -f conftest.$ac_objext conftest$ac_exeext
28049 if { (ac_try="$ac_link"
28050 case "(($ac_try" in
28051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052 *) ac_try_echo=$ac_try;;
28054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055 (eval "$ac_link") 2>conftest.er1
28057 grep -v '^ *+' conftest.er1 >conftest.err
28059 cat conftest.err >&5
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); } &&
28062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28063 { (case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 (eval "$ac_try") 2>&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }; } &&
28072 { ac_try='test -s conftest$ac_exeext'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; }; then
28082 eval "$as_ac_var=yes"
28084 echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28087 eval "$as_ac_var=no"
28090 rm -f core conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
28093 ac_res=`eval echo '${'$as_ac_var'}'`
28094 { echo "$as_me:$LINENO: result: $ac_res" >&5
28095 echo "${ECHO_T}$ac_res" >&6; }
28096 if test `eval echo '${'$as_ac_var'}'` = yes; then
28097 cat >>confdefs.h <<_ACEOF
28098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28102 case " $LIBOBJS " in
28103 *" $ac_func.$ac_objext "* ) ;;
28104 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28114 { echo "$as_me:$LINENO: checking for Sleep" >&5
28115 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28116 cat >conftest.$ac_ext <<_ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 #include <windows.h>
28123 #include <winbase.h>
28133 rm -f conftest.$ac_objext conftest$ac_exeext
28134 if { (ac_try="$ac_link"
28135 case "(($ac_try" in
28136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137 *) ac_try_echo=$ac_try;;
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140 (eval "$ac_link") 2>conftest.er1
28142 grep -v '^ *+' conftest.er1 >conftest.err
28144 cat conftest.err >&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } &&
28147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28148 { (case "(($ac_try" in
28149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150 *) ac_try_echo=$ac_try;;
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153 (eval "$ac_try") 2>&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; } &&
28157 { ac_try='test -s conftest$ac_exeext'
28158 { (case "(($ac_try" in
28159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160 *) ac_try_echo=$ac_try;;
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163 (eval "$ac_try") 2>&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); }; }; then
28168 cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_SSLEEP 1
28172 { echo "$as_me:$LINENO: result: yes" >&5
28173 echo "${ECHO_T}yes" >&6; }
28175 echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28178 { echo "$as_me:$LINENO: result: no" >&5
28179 echo "${ECHO_T}no" >&6; }
28183 rm -f core conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
28186 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28187 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28188 cat >conftest.$ac_ext <<_ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h. */
28194 #include <sys/types.h>
28195 #include <sys/stat.h>
28207 rm -f conftest.$ac_objext
28208 if { (ac_try="$ac_compile"
28209 case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_compile") 2>conftest.er1
28216 grep -v '^ *+' conftest.er1 >conftest.err
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } &&
28221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28222 { (case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_try") 2>&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; } &&
28231 { ac_try='test -s conftest.$ac_objext'
28232 { (case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_try") 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 { echo "$as_me:$LINENO: result: yes" >&5
28242 echo "${ECHO_T}yes" >&6; }
28244 cat >>confdefs.h <<\_ACEOF
28245 #define MKDIR_TAKES_ONE_ARG
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 { echo "$as_me:$LINENO: result: no" >&5
28253 echo "${ECHO_T}no" >&6; }
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 # Extract the first word of "dot", so it can be a program name with args.
28266 set dummy dot; ac_word=$2
28267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28269 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28272 if test -n "$HAVE_DOT"; then
28273 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28276 for as_dir in $PATH
28279 test -z "$as_dir" && as_dir=.
28280 for ac_exec_ext in '' $ac_executable_extensions; do
28281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28282 ac_cv_prog_HAVE_DOT="YES"
28283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28290 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28293 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28294 if test -n "$HAVE_DOT"; then
28295 { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28296 echo "${ECHO_T}$HAVE_DOT" >&6; }
28298 { echo "$as_me:$LINENO: result: no" >&5
28299 echo "${ECHO_T}no" >&6; }
28307 if test -z "$PKG_CONFIG"; then
28308 # Extract the first word of "pkg-config", so it can be a program name with args.
28309 set dummy pkg-config; ac_word=$2
28310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28315 case $PKG_CONFIG in
28317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28321 for as_dir in $PATH
28324 test -z "$as_dir" && as_dir=.
28325 for ac_exec_ext in '' $ac_executable_extensions; do
28326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28340 if test -n "$PKG_CONFIG"; then
28341 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28342 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28344 { echo "$as_me:$LINENO: result: no" >&5
28345 echo "${ECHO_T}no" >&6; }
28351 if test "$PKG_CONFIG" = "no" ; then
28352 echo "*** The pkg-config script could not be found. Make sure it is"
28353 echo "*** in your path, or set the PKG_CONFIG environment variable"
28354 echo "*** to the full path to pkg-config."
28355 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28357 if test -z "$PKG_CONFIG_PATH"; then
28358 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28361 PKG_CONFIG_MIN_VERSION=0.9.0
28362 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28363 { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28364 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28366 if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28367 { echo "$as_me:$LINENO: result: yes" >&5
28368 echo "${ECHO_T}yes" >&6; }
28371 { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28372 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28373 FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28374 { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28375 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28377 { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28378 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28379 FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28380 { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28381 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28383 { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28384 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28385 FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28386 { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28387 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28391 ## If we have a custom action on failure, don't print errors, but
28392 ## do set a variable so people can do so.
28393 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28394 echo $FFTW3F_PKG_ERRORS
28401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28406 if test $succeeded = yes; then
28409 { { echo "$as_me:$LINENO: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28410 echo "$as_me: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28411 { (exit 1); exit 1; }; }
28417 # Check whether --enable-doxygen was given.
28418 if test "${enable_doxygen+set}" = set; then
28419 enableval=$enable_doxygen;
28422 # Check whether --enable-dot was given.
28423 if test "${enable_dot+set}" = set; then
28424 enableval=$enable_dot;
28427 # Check whether --enable-html-docs was given.
28428 if test "${enable_html_docs+set}" = set; then
28429 enableval=$enable_html_docs;
28431 enable_html_docs=yes
28434 # Check whether --enable-latex-docs was given.
28435 if test "${enable_latex_docs+set}" = set; then
28436 enableval=$enable_latex_docs;
28438 enable_latex_docs=no
28442 if test "x$enable_doxygen" = xyes; then
28443 # Extract the first word of "doxygen", so it can be a program name with args.
28444 set dummy doxygen; ac_word=$2
28445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28447 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28452 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28456 for as_dir in $PATH
28459 test -z "$as_dir" && as_dir=.
28460 for ac_exec_ext in '' $ac_executable_extensions; do
28461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28462 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28473 DOXYGEN=$ac_cv_path_DOXYGEN
28474 if test -n "$DOXYGEN"; then
28475 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28476 echo "${ECHO_T}$DOXYGEN" >&6; }
28478 { echo "$as_me:$LINENO: result: no" >&5
28479 echo "${ECHO_T}no" >&6; }
28483 if test x$DOXYGEN = x; then
28484 if test "x$enable_doxygen" = xyes; then
28485 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28486 echo "$as_me: error: could not find doxygen" >&2;}
28487 { (exit 1); exit 1; }; }
28494 # Extract the first word of "dot", so it can be a program name with args.
28495 set dummy dot; ac_word=$2
28496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28498 if test "${ac_cv_path_DOT+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28507 for as_dir in $PATH
28510 test -z "$as_dir" && as_dir=.
28511 for ac_exec_ext in '' $ac_executable_extensions; do
28512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28513 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28524 DOT=$ac_cv_path_DOT
28525 if test -n "$DOT"; then
28526 { echo "$as_me:$LINENO: result: $DOT" >&5
28527 echo "${ECHO_T}$DOT" >&6; }
28529 { echo "$as_me:$LINENO: result: no" >&5
28530 echo "${ECHO_T}no" >&6; }
28541 if test x$enable_doc = xyes; then
28550 if test x$DOT = x; then
28551 if test "x$enable_dot" = xyes; then
28552 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28553 echo "$as_me: error: could not find dot" >&2;}
28554 { (exit 1); exit 1; }; }
28568 # Check whether --with-md-cpu was given.
28569 if test "${with_md_cpu+set}" = set; then
28570 withval=$with_md_cpu; cf_with_md_cpu="$withval"
28572 cf_with_md_cpu="$host_cpu"
28576 { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28577 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28578 case "$cf_with_md_cpu" in
28579 x86 | i[3-7]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
28580 x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
28581 # sparc) MD_CPU=sparc ;;
28582 *) MD_CPU=generic ;;
28584 { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28585 echo "${ECHO_T}$MD_CPU" >&6; }
28591 if test "$MD_CPU" = "x86"; then
28593 MD_CPU_x86_FALSE='#'
28595 MD_CPU_x86_TRUE='#'
28601 if test "$MD_SUBCPU" = "x86_64"; then
28602 MD_SUBCPU_x86_64_TRUE=
28603 MD_SUBCPU_x86_64_FALSE='#'
28605 MD_SUBCPU_x86_64_TRUE='#'
28606 MD_SUBCPU_x86_64_FALSE=
28611 if test "$MD_CPU" = "generic"; then
28612 MD_CPU_generic_TRUE=
28613 MD_CPU_generic_FALSE='#'
28615 MD_CPU_generic_TRUE='#'
28616 MD_CPU_generic_FALSE=
28624 # Check whether --with-cppunit-prefix was given.
28625 if test "${with_cppunit_prefix+set}" = set; then
28626 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28628 cppunit_config_prefix=""
28632 # Check whether --with-cppunit-exec-prefix was given.
28633 if test "${with_cppunit_exec_prefix+set}" = set; then
28634 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28636 cppunit_config_exec_prefix=""
28640 if test x$cppunit_config_exec_prefix != x ; then
28641 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28642 if test x${CPPUNIT_CONFIG+set} != xset ; then
28643 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28646 if test x$cppunit_config_prefix != x ; then
28647 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28648 if test x${CPPUNIT_CONFIG+set} != xset ; then
28649 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28653 # Extract the first word of "cppunit-config", so it can be a program name with args.
28654 set dummy cppunit-config; ac_word=$2
28655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28657 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28660 case $CPPUNIT_CONFIG in
28662 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28666 for as_dir in $PATH
28669 test -z "$as_dir" && as_dir=.
28670 for ac_exec_ext in '' $ac_executable_extensions; do
28671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28672 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28680 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28684 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28685 if test -n "$CPPUNIT_CONFIG"; then
28686 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28687 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28689 { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28694 cppunit_version_min=1.9.14
28696 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28697 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28699 if test "$CPPUNIT_CONFIG" = "no" ; then
28702 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28703 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28704 cppunit_version=`$CPPUNIT_CONFIG --version`
28706 cppunit_major_version=`echo $cppunit_version | \
28707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28708 cppunit_minor_version=`echo $cppunit_version | \
28709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28710 cppunit_micro_version=`echo $cppunit_version | \
28711 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28713 cppunit_major_min=`echo $cppunit_version_min | \
28714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28715 cppunit_minor_min=`echo $cppunit_version_min | \
28716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28717 cppunit_micro_min=`echo $cppunit_version_min | \
28718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28720 cppunit_version_proper=`expr \
28721 $cppunit_major_version \> $cppunit_major_min \| \
28722 $cppunit_major_version \= $cppunit_major_min \& \
28723 $cppunit_minor_version \> $cppunit_minor_min \| \
28724 $cppunit_major_version \= $cppunit_major_min \& \
28725 $cppunit_minor_version \= $cppunit_minor_min \& \
28726 $cppunit_micro_version \>= $cppunit_micro_min `
28728 if test "$cppunit_version_proper" = "1" ; then
28729 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28730 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28732 { echo "$as_me:$LINENO: result: no" >&5
28733 echo "${ECHO_T}no" >&6; }
28738 if test "x$no_cppunit" = x ; then
28743 { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit. Stop" >&5
28744 echo "$as_me: error: GNU Radio requires cppunit. Stop" >&2;}
28745 { (exit 1); exit 1; }; }
28752 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28758 ac_cpp='$CXXCPP $CPPFLAGS'
28759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28763 gr_boost_include_dir=
28765 # Check whether --with-boost-include-dir was given.
28766 if test "${with_boost_include_dir+set}" = set; then
28767 withval=$with_boost_include_dir;
28768 # "yes" and "no" are bogus answers
28769 if test x"$with_boost_include_dir" == xyes ||
28770 test x"$with_boost_include_dir" == xno; then
28771 gr_boost_include_dir=
28773 gr_boost_include_dir=$with_boost_include_dir
28778 echo "gr_boost_include_dir = $gr_boost_include_dir"
28779 if test x$gr_boost_include_dir != x; then
28781 # If the user specified a directory, then we use it
28783 OLD_CPPFLAGS=$CPPFLAGS
28784 CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28785 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28786 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28787 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28788 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28789 echo $ECHO_N "(cached) $ECHO_C" >&6
28791 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28792 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28794 # Is the header compilable?
28795 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28796 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28797 cat >conftest.$ac_ext <<_ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h. */
28803 $ac_includes_default
28804 #include <boost/shared_ptr.hpp>
28806 rm -f conftest.$ac_objext
28807 if { (ac_try="$ac_compile"
28808 case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_compile") 2>conftest.er1
28815 grep -v '^ *+' conftest.er1 >conftest.err
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } &&
28820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28821 { (case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826 (eval "$ac_try") 2>&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; } &&
28830 { ac_try='test -s conftest.$ac_objext'
28831 { (case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836 (eval "$ac_try") 2>&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); }; }; then
28840 ac_header_compiler=yes
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28845 ac_header_compiler=no
28848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28850 echo "${ECHO_T}$ac_header_compiler" >&6; }
28852 # Is the header present?
28853 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28854 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28855 cat >conftest.$ac_ext <<_ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h. */
28861 #include <boost/shared_ptr.hpp>
28863 if { (ac_try="$ac_cpp conftest.$ac_ext"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28871 grep -v '^ *+' conftest.er1 >conftest.err
28873 cat conftest.err >&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } >/dev/null; then
28876 if test -s conftest.err; then
28877 ac_cpp_err=$ac_cxx_preproc_warn_flag
28878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28885 if test -z "$ac_cpp_err"; then
28886 ac_header_preproc=yes
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 ac_header_preproc=no
28894 rm -f conftest.err conftest.$ac_ext
28895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28896 echo "${ECHO_T}$ac_header_preproc" >&6; }
28898 # So? What about this header?
28899 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28901 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28902 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28904 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28905 ac_header_preproc=yes
28908 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28909 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
28911 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28913 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
28915 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28917 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28919 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28923 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28924 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28925 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28926 echo $ECHO_N "(cached) $ECHO_C" >&6
28928 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28930 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28931 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28934 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28935 BOOST_CFLAGS="-I$gr_boost_include_dir"
28937 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28938 Try using --with-boost-include-dir=<path>,
28939 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28940 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28941 Try using --with-boost-include-dir=<path>,
28942 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28943 { (exit 1); exit 1; }; }
28947 CPPFLAGS=$OLD_CPPFLAGS
28950 # Otherwise we check in the default places
28952 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28953 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28954 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28955 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28959 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28961 # Is the header compilable?
28962 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28963 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28964 cat >conftest.$ac_ext <<_ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h. */
28970 $ac_includes_default
28971 #include <boost/shared_ptr.hpp>
28973 rm -f conftest.$ac_objext
28974 if { (ac_try="$ac_compile"
28975 case "(($ac_try" in
28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977 *) ac_try_echo=$ac_try;;
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980 (eval "$ac_compile") 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } &&
28987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28988 { (case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_try") 2>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; } &&
28997 { ac_try='test -s conftest.$ac_objext'
28998 { (case "(($ac_try" in
28999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000 *) ac_try_echo=$ac_try;;
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003 (eval "$ac_try") 2>&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); }; }; then
29007 ac_header_compiler=yes
29009 echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29012 ac_header_compiler=no
29015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29017 echo "${ECHO_T}$ac_header_compiler" >&6; }
29019 # Is the header present?
29020 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29021 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h. */
29028 #include <boost/shared_ptr.hpp>
29030 if { (ac_try="$ac_cpp conftest.$ac_ext"
29031 case "(($ac_try" in
29032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033 *) ac_try_echo=$ac_try;;
29035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29038 grep -v '^ *+' conftest.er1 >conftest.err
29040 cat conftest.err >&5
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } >/dev/null; then
29043 if test -s conftest.err; then
29044 ac_cpp_err=$ac_cxx_preproc_warn_flag
29045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29052 if test -z "$ac_cpp_err"; then
29053 ac_header_preproc=yes
29055 echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29058 ac_header_preproc=no
29061 rm -f conftest.err conftest.$ac_ext
29062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29063 echo "${ECHO_T}$ac_header_preproc" >&6; }
29065 # So? What about this header?
29066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29068 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29069 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29070 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29071 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29072 ac_header_preproc=yes
29075 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29076 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29077 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29078 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29080 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29082 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29084 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29086 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29090 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29091 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29092 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29093 echo $ECHO_N "(cached) $ECHO_C" >&6
29095 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29097 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29098 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29101 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29104 # Nope, look for latest version if any in $prefix/include/boost-*
29106 # Wipe out cached value. KLUDGE: AC should have API for this
29107 unset ac_cv_header_boost_shared_ptr_hpp
29109 boost_last_match(){
29110 #echo "boost_last_match: [$]*"
29113 if test "$pattern" = "$1"
29117 shift `expr $# - 1`
29120 #echo "LM(1)='[$]LM'"
29123 pattern="/usr/local/include/boost-*"
29124 boost_last_match "$pattern" $pattern
29125 #echo "LM(2)='$LM'"
29127 OLD_CPPFLAGS=$CPP_FLAGS
29128 CPPFLAGS="$CPPFLAGS -I$LM"
29129 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29130 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29131 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29132 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29135 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29136 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29138 # Is the header compilable?
29139 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29140 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29141 cat >conftest.$ac_ext <<_ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h. */
29147 $ac_includes_default
29148 #include <boost/shared_ptr.hpp>
29150 rm -f conftest.$ac_objext
29151 if { (ac_try="$ac_compile"
29152 case "(($ac_try" in
29153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154 *) ac_try_echo=$ac_try;;
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157 (eval "$ac_compile") 2>conftest.er1
29159 grep -v '^ *+' conftest.er1 >conftest.err
29161 cat conftest.err >&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } &&
29164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29165 { (case "(($ac_try" in
29166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29167 *) ac_try_echo=$ac_try;;
29169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29170 (eval "$ac_try") 2>&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest.$ac_objext'
29175 { (case "(($ac_try" in
29176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177 *) ac_try_echo=$ac_try;;
29179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29180 (eval "$ac_try") 2>&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
29184 ac_header_compiler=yes
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_header_compiler=no
29192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29194 echo "${ECHO_T}$ac_header_compiler" >&6; }
29196 # Is the header present?
29197 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29198 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29199 cat >conftest.$ac_ext <<_ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h. */
29205 #include <boost/shared_ptr.hpp>
29207 if { (ac_try="$ac_cpp conftest.$ac_ext"
29208 case "(($ac_try" in
29209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210 *) ac_try_echo=$ac_try;;
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29215 grep -v '^ *+' conftest.er1 >conftest.err
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } >/dev/null; then
29220 if test -s conftest.err; then
29221 ac_cpp_err=$ac_cxx_preproc_warn_flag
29222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29229 if test -z "$ac_cpp_err"; then
29230 ac_header_preproc=yes
29232 echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29235 ac_header_preproc=no
29238 rm -f conftest.err conftest.$ac_ext
29239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29240 echo "${ECHO_T}$ac_header_preproc" >&6; }
29242 # So? What about this header?
29243 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29245 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29246 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29248 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29249 ac_header_preproc=yes
29252 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29253 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29254 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29255 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29256 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29257 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29258 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29259 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29261 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29263 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29267 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29268 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29269 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29274 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29275 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29278 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29279 BOOST_CFLAGS="-I$LM"
29281 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29282 Try using --with-boost-include-dir=<path>,
29283 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29284 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29285 Try using --with-boost-include-dir=<path>,
29286 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29287 { (exit 1); exit 1; }; }
29291 CPPFLAGS=$OLD_CPPFLAGS
29298 unset boost_last_match LM
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29311 # Check whether --enable-all-components was given.
29312 if test "${enable_all_components+set}" = set; then
29313 enableval=$enable_all_components;
29317 build_dirs="config"
29320 # Check whether --enable-gnuradio-core was given.
29321 if test "${enable_gnuradio_core+set}" = set; then
29322 enableval=$enable_gnuradio_core;
29324 enable_gnuradio_core=$enable_all_components
29329 ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/doc/Doxyfile gnuradio-core/doc/Makefile gnuradio-core/doc/other/Makefile gnuradio-core/doc/xml/Makefile gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_prefix.cc gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/omnithread/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks/Makefile gnuradio-core/src/python/gnuradio/blksimpl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
29334 if test x$passed = xno; then
29335 skipped_dirs="$skipped_dirs gnuradio-core"
29336 if test x$enable_gnuradio_core = xyes; then
29337 { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29338 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29339 { (exit 1); exit 1; }; }
29341 { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29342 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29345 if test x$enable_gnuradio_core != xno; then
29347 ac_config_commands="$ac_config_commands run_tests_core"
29350 ac_config_commands="$ac_config_commands swig_deps"
29353 build_dirs="$build_dirs gnuradio-core"
29354 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29355 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29357 skipped_dirs="$skipped_dirs gnuradio-core"
29358 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29359 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29366 # Check whether --enable-gnuradio-examples was given.
29367 if test "${enable_gnuradio_examples+set}" = set; then
29368 enableval=$enable_gnuradio_examples;
29370 enable_gnuradio_examples=$enable_all_components
29375 ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/python/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/channel-coding/Makefile gnuradio-examples/python/channel-coding/fsm_files/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/networking/Makefile gnuradio-examples/python/usrp/Makefile"
29380 if test x$passed = xno; then
29381 skipped_dirs="$skipped_dirs gnuradio-examples"
29382 if test x$enable_gnuradio_examples = xyes; then
29383 { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29384 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29385 { (exit 1); exit 1; }; }
29387 { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29388 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29391 if test x$enable_gnuradio_examples != xno; then
29393 build_dirs="$build_dirs gnuradio-examples"
29394 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29395 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29397 skipped_dirs="$skipped_dirs gnuradio-examples"
29398 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29399 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29404 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29405 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29406 if test "${ac_cv_header_stat_broken+set}" = set; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
29409 cat >conftest.$ac_ext <<_ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29415 #include <sys/types.h>
29416 #include <sys/stat.h>
29418 #if defined S_ISBLK && defined S_IFDIR
29419 # if S_ISBLK (S_IFDIR)
29424 #if defined S_ISBLK && defined S_IFCHR
29425 # if S_ISBLK (S_IFCHR)
29430 #if defined S_ISLNK && defined S_IFREG
29431 # if S_ISLNK (S_IFREG)
29436 #if defined S_ISSOCK && defined S_IFREG
29437 # if S_ISSOCK (S_IFREG)
29443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29444 $EGREP "You lose" >/dev/null 2>&1; then
29445 ac_cv_header_stat_broken=yes
29447 ac_cv_header_stat_broken=no
29452 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29453 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29454 if test $ac_cv_header_stat_broken = yes; then
29456 cat >>confdefs.h <<\_ACEOF
29457 #define STAT_MACROS_BROKEN 1
29464 for ac_header in fcntl.h
29466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 ac_res=`eval echo '${'$as_ac_Header'}'`
29474 { echo "$as_me:$LINENO: result: $ac_res" >&5
29475 echo "${ECHO_T}$ac_res" >&6; }
29477 # Is the header compilable?
29478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29480 cat >conftest.$ac_ext <<_ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h. */
29486 $ac_includes_default
29487 #include <$ac_header>
29489 rm -f conftest.$ac_objext
29490 if { (ac_try="$ac_compile"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_compile") 2>conftest.er1
29498 grep -v '^ *+' conftest.er1 >conftest.err
29500 cat conftest.err >&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
29503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504 { (case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_try") 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
29514 { (case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_try") 2>&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; }; then
29523 ac_header_compiler=yes
29525 echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29528 ac_header_compiler=no
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29533 echo "${ECHO_T}$ac_header_compiler" >&6; }
29535 # Is the header present?
29536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29538 cat >conftest.$ac_ext <<_ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h. */
29544 #include <$ac_header>
29546 if { (ac_try="$ac_cpp conftest.$ac_ext"
29547 case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } >/dev/null; then
29559 if test -s conftest.err; then
29560 ac_cpp_err=$ac_c_preproc_warn_flag
29561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29568 if test -z "$ac_cpp_err"; then
29569 ac_header_preproc=yes
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29574 ac_header_preproc=no
29577 rm -f conftest.err conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29579 echo "${ECHO_T}$ac_header_preproc" >&6; }
29581 # So? What about this header?
29582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29588 ac_header_preproc=yes
29591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29609 echo $ECHO_N "(cached) $ECHO_C" >&6
29611 eval "$as_ac_Header=\$ac_header_preproc"
29613 ac_res=`eval echo '${'$as_ac_Header'}'`
29614 { echo "$as_me:$LINENO: result: $ac_res" >&5
29615 echo "${ECHO_T}$ac_res" >&6; }
29618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29619 cat >>confdefs.h <<_ACEOF
29620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29630 for ac_header in sys/time.h
29632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29637 echo $ECHO_N "(cached) $ECHO_C" >&6
29639 ac_res=`eval echo '${'$as_ac_Header'}'`
29640 { echo "$as_me:$LINENO: result: $ac_res" >&5
29641 echo "${ECHO_T}$ac_res" >&6; }
29643 # Is the header compilable?
29644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29646 cat >conftest.$ac_ext <<_ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h. */
29652 $ac_includes_default
29653 #include <$ac_header>
29655 rm -f conftest.$ac_objext
29656 if { (ac_try="$ac_compile"
29657 case "(($ac_try" in
29658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_compile") 2>conftest.er1
29664 grep -v '^ *+' conftest.er1 >conftest.err
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } &&
29669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29670 { (case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_try") 2>&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; } &&
29679 { ac_try='test -s conftest.$ac_objext'
29680 { (case "(($ac_try" in
29681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682 *) ac_try_echo=$ac_try;;
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685 (eval "$ac_try") 2>&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; }; then
29689 ac_header_compiler=yes
29691 echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29694 ac_header_compiler=no
29697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29699 echo "${ECHO_T}$ac_header_compiler" >&6; }
29701 # Is the header present?
29702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29704 cat >conftest.$ac_ext <<_ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h. */
29710 #include <$ac_header>
29712 if { (ac_try="$ac_cpp conftest.$ac_ext"
29713 case "(($ac_try" in
29714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715 *) ac_try_echo=$ac_try;;
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } >/dev/null; then
29725 if test -s conftest.err; then
29726 ac_cpp_err=$ac_c_preproc_warn_flag
29727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29734 if test -z "$ac_cpp_err"; then
29735 ac_header_preproc=yes
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29740 ac_header_preproc=no
29743 rm -f conftest.err conftest.$ac_ext
29744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29745 echo "${ECHO_T}$ac_header_preproc" >&6; }
29747 # So? What about this header?
29748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29754 ac_header_preproc=yes
29757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 eval "$as_ac_Header=\$ac_header_preproc"
29779 ac_res=`eval echo '${'$as_ac_Header'}'`
29780 { echo "$as_me:$LINENO: result: $ac_res" >&5
29781 echo "${ECHO_T}$ac_res" >&6; }
29784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29785 cat >>confdefs.h <<_ACEOF
29786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29796 for ac_header in unistd.h
29798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29805 ac_res=`eval echo '${'$as_ac_Header'}'`
29806 { echo "$as_me:$LINENO: result: $ac_res" >&5
29807 echo "${ECHO_T}$ac_res" >&6; }
29809 # Is the header compilable?
29810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29812 cat >conftest.$ac_ext <<_ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h. */
29818 $ac_includes_default
29819 #include <$ac_header>
29821 rm -f conftest.$ac_objext
29822 if { (ac_try="$ac_compile"
29823 case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_compile") 2>conftest.er1
29830 grep -v '^ *+' conftest.er1 >conftest.err
29832 cat conftest.err >&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); } &&
29835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29836 { (case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_try") 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
29846 { (case "(($ac_try" in
29847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848 *) ac_try_echo=$ac_try;;
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851 (eval "$ac_try") 2>&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; }; then
29855 ac_header_compiler=yes
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29860 ac_header_compiler=no
29863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29865 echo "${ECHO_T}$ac_header_compiler" >&6; }
29867 # Is the header present?
29868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29870 cat >conftest.$ac_ext <<_ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h. */
29876 #include <$ac_header>
29878 if { (ac_try="$ac_cpp conftest.$ac_ext"
29879 case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29886 grep -v '^ *+' conftest.er1 >conftest.err
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } >/dev/null; then
29891 if test -s conftest.err; then
29892 ac_cpp_err=$ac_c_preproc_warn_flag
29893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29900 if test -z "$ac_cpp_err"; then
29901 ac_header_preproc=yes
29903 echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29906 ac_header_preproc=no
29909 rm -f conftest.err conftest.$ac_ext
29910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29911 echo "${ECHO_T}$ac_header_preproc" >&6; }
29913 # So? What about this header?
29914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29920 ac_header_preproc=yes
29923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 eval "$as_ac_Header=\$ac_header_preproc"
29945 ac_res=`eval echo '${'$as_ac_Header'}'`
29946 { echo "$as_me:$LINENO: result: $ac_res" >&5
29947 echo "${ECHO_T}$ac_res" >&6; }
29950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29951 cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29961 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29962 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29963 if test "${ac_cv_have_decl_getenv+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 cat >conftest.$ac_ext <<_ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h. */
29972 $ac_includes_default
29977 char *p = (char *) getenv;
29985 rm -f conftest.$ac_objext
29986 if { (ac_try="$ac_compile"
29987 case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_compile") 2>conftest.er1
29994 grep -v '^ *+' conftest.er1 >conftest.err
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } &&
29999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30000 { (case "(($ac_try" in
30001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002 *) ac_try_echo=$ac_try;;
30004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005 (eval "$ac_try") 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_have_decl_getenv=yes
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30024 ac_cv_have_decl_getenv=no
30027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30030 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30031 if test $ac_cv_have_decl_getenv = yes; then
30033 cat >>confdefs.h <<_ACEOF
30034 #define HAVE_DECL_GETENV 1
30039 cat >>confdefs.h <<_ACEOF
30040 #define HAVE_DECL_GETENV 0
30050 # Check whether --enable-usrp was given.
30051 if test "${enable_usrp+set}" = set; then
30052 enableval=$enable_usrp;
30054 enable_usrp=$enable_all_components
30059 ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile"
30063 # FIXME: this needs to fail gracefully and continue, not implemented yet
30065 for ac_func in mkstemp
30067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30081 #define $ac_func innocuous_$ac_func
30083 /* System header to define __stub macros and hopefully few prototypes,
30084 which can conflict with char $ac_func (); below.
30085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086 <limits.h> exists even on freestanding compilers. */
30089 # include <limits.h>
30091 # include <assert.h>
30096 /* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
30103 /* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106 #if defined __stub_$ac_func || defined __stub___$ac_func
30113 return $ac_func ();
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_link") 2>conftest.er1
30127 grep -v '^ *+' conftest.er1 >conftest.err
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
30132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30133 { (case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138 (eval "$ac_try") 2>&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; } &&
30142 { ac_try='test -s conftest$ac_exeext'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_try") 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_var=yes"
30154 echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 eval "$as_ac_var=no"
30160 rm -f core conftest.err conftest.$ac_objext \
30161 conftest$ac_exeext conftest.$ac_ext
30163 ac_res=`eval echo '${'$as_ac_var'}'`
30164 { echo "$as_me:$LINENO: result: $ac_res" >&5
30165 echo "${ECHO_T}$ac_res" >&6; }
30166 if test `eval echo '${'$as_ac_var'}'` = yes; then
30167 cat >>confdefs.h <<_ACEOF
30168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30172 case " $LIBOBJS " in
30173 *" $ac_func.$ac_objext "* ) ;;
30174 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30182 if test $ac_cv_func_mkstemp = no; then
30183 utils_cv_func_mkstemp_limitations=yes
30185 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30186 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30187 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 if test "$cross_compiling" = yes; then
30192 utils_cv_func_mkstemp_limitations=yes
30195 cat >conftest.$ac_ext <<_ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30202 # include <stdlib.h>
30206 for (i = 0; i < 70; i++)
30208 char template[] = "conftestXXXXXX";
30209 int fd = mkstemp (template);
30218 rm -f conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_link") 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30229 { (case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_try") 2>&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; }; then
30238 utils_cv_func_mkstemp_limitations=no
30240 echo "$as_me: program exited with status $ac_status" >&5
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30244 ( exit $ac_status )
30245 utils_cv_func_mkstemp_limitations=yes
30247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30254 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30255 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30258 if test $utils_cv_func_mkstemp_limitations = yes; then
30259 case " $LIBOBJS " in
30260 *" mkstemp.$ac_objext "* ) ;;
30261 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30265 case " $LIBOBJS " in
30266 *" tempname.$ac_objext "* ) ;;
30267 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30272 cat >>confdefs.h <<\_ACEOF
30273 #define mkstemp rpl_mkstemp
30296 for ac_header in stdint.h
30298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 ac_res=`eval echo '${'$as_ac_Header'}'`
30306 { echo "$as_me:$LINENO: result: $ac_res" >&5
30307 echo "${ECHO_T}$ac_res" >&6; }
30309 # Is the header compilable?
30310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30318 $ac_includes_default
30319 #include <$ac_header>
30321 rm -f conftest.$ac_objext
30322 if { (ac_try="$ac_compile"
30323 case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_compile") 2>conftest.er1
30330 grep -v '^ *+' conftest.er1 >conftest.err
30332 cat conftest.err >&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } &&
30335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30336 { (case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_try") 2>&5
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; } &&
30345 { ac_try='test -s conftest.$ac_objext'
30346 { (case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_try") 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; }; then
30355 ac_header_compiler=yes
30357 echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.$ac_ext >&5
30360 ac_header_compiler=no
30363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30365 echo "${ECHO_T}$ac_header_compiler" >&6; }
30367 # Is the header present?
30368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30370 cat >conftest.$ac_ext <<_ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h. */
30376 #include <$ac_header>
30378 if { (ac_try="$ac_cpp conftest.$ac_ext"
30379 case "(($ac_try" in
30380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30381 *) ac_try_echo=$ac_try;;
30383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30386 grep -v '^ *+' conftest.er1 >conftest.err
30388 cat conftest.err >&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } >/dev/null; then
30391 if test -s conftest.err; then
30392 ac_cpp_err=$ac_c_preproc_warn_flag
30393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30400 if test -z "$ac_cpp_err"; then
30401 ac_header_preproc=yes
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30406 ac_header_preproc=no
30409 rm -f conftest.err conftest.$ac_ext
30410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30411 echo "${ECHO_T}$ac_header_preproc" >&6; }
30413 # So? What about this header?
30414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30420 ac_header_preproc=yes
30423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30443 eval "$as_ac_Header=\$ac_header_preproc"
30445 ac_res=`eval echo '${'$as_ac_Header'}'`
30446 { echo "$as_me:$LINENO: result: $ac_res" >&5
30447 echo "${ECHO_T}$ac_res" >&6; }
30450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30451 cat >>confdefs.h <<_ACEOF
30452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30462 for ac_func in __secure_getenv gettimeofday lstat
30464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30470 cat >conftest.$ac_ext <<_ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h. */
30476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30478 #define $ac_func innocuous_$ac_func
30480 /* System header to define __stub macros and hopefully few prototypes,
30481 which can conflict with char $ac_func (); below.
30482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30483 <limits.h> exists even on freestanding compilers. */
30486 # include <limits.h>
30488 # include <assert.h>
30493 /* Override any GCC internal prototype to avoid an error.
30494 Use char because int might match the return type of a GCC
30495 builtin and then its argument prototype would still apply. */
30500 /* The GNU C library defines this for functions which it implements
30501 to always fail with ENOSYS. Some functions are actually named
30502 something starting with __ and the normal name is an alias. */
30503 #if defined __stub_$ac_func || defined __stub___$ac_func
30510 return $ac_func ();
30515 rm -f conftest.$ac_objext conftest$ac_exeext
30516 if { (ac_try="$ac_link"
30517 case "(($ac_try" in
30518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519 *) ac_try_echo=$ac_try;;
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522 (eval "$ac_link") 2>conftest.er1
30524 grep -v '^ *+' conftest.er1 >conftest.err
30526 cat conftest.err >&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } &&
30529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30530 { (case "(($ac_try" in
30531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532 *) ac_try_echo=$ac_try;;
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535 (eval "$ac_try") 2>&5
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; } &&
30539 { ac_try='test -s conftest$ac_exeext'
30540 { (case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_try") 2>&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; }; then
30549 eval "$as_ac_var=yes"
30551 echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30554 eval "$as_ac_var=no"
30557 rm -f core conftest.err conftest.$ac_objext \
30558 conftest$ac_exeext conftest.$ac_ext
30560 ac_res=`eval echo '${'$as_ac_var'}'`
30561 { echo "$as_me:$LINENO: result: $ac_res" >&5
30562 echo "${ECHO_T}$ac_res" >&6; }
30563 if test `eval echo '${'$as_ac_var'}'` = yes; then
30564 cat >>confdefs.h <<_ACEOF
30565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30578 # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30580 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30581 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30582 cat >conftest.$ac_ext <<_ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h. */
30588 #include <sys/types.h>
30589 #include <sys/stat.h>
30601 rm -f conftest.$ac_objext
30602 if { (ac_try="$ac_compile"
30603 case "(($ac_try" in
30604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605 *) ac_try_echo=$ac_try;;
30607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608 (eval "$ac_compile") 2>conftest.er1
30610 grep -v '^ *+' conftest.er1 >conftest.err
30612 cat conftest.err >&5
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); } &&
30615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30616 { (case "(($ac_try" in
30617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618 *) ac_try_echo=$ac_try;;
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621 (eval "$ac_try") 2>&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; } &&
30625 { ac_try='test -s conftest.$ac_objext'
30626 { (case "(($ac_try" in
30627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_try") 2>&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30635 { echo "$as_me:$LINENO: result: yes" >&5
30636 echo "${ECHO_T}yes" >&6; }
30638 cat >>confdefs.h <<\_ACEOF
30639 #define MKDIR_TAKES_ONE_ARG
30643 echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30646 { echo "$as_me:$LINENO: result: no" >&5
30647 echo "${ECHO_T}no" >&6; }
30651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30656 # These checks don't fail
30657 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30659 if test "${ac_cv_c_bigendian+set}" = set; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30662 # See if sys/param.h defines the BYTE_ORDER macro.
30663 cat >conftest.$ac_ext <<_ACEOF
30666 cat confdefs.h >>conftest.$ac_ext
30667 cat >>conftest.$ac_ext <<_ACEOF
30668 /* end confdefs.h. */
30669 #include <sys/types.h>
30670 #include <sys/param.h>
30675 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30676 bogus endian macros
30683 rm -f conftest.$ac_objext
30684 if { (ac_try="$ac_compile"
30685 case "(($ac_try" in
30686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687 *) ac_try_echo=$ac_try;;
30689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690 (eval "$ac_compile") 2>conftest.er1
30692 grep -v '^ *+' conftest.er1 >conftest.err
30694 cat conftest.err >&5
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); } &&
30697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30698 { (case "(($ac_try" in
30699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700 *) ac_try_echo=$ac_try;;
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703 (eval "$ac_try") 2>&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; } &&
30707 { ac_try='test -s conftest.$ac_objext'
30708 { (case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713 (eval "$ac_try") 2>&5
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; }; then
30717 # It does; now see whether it defined to BIG_ENDIAN or not.
30718 cat >conftest.$ac_ext <<_ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h. */
30724 #include <sys/types.h>
30725 #include <sys/param.h>
30730 #if BYTE_ORDER != BIG_ENDIAN
30738 rm -f conftest.$ac_objext
30739 if { (ac_try="$ac_compile"
30740 case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_compile") 2>conftest.er1
30747 grep -v '^ *+' conftest.er1 >conftest.err
30749 cat conftest.err >&5
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
30752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30753 { (case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_try") 2>&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; } &&
30762 { ac_try='test -s conftest.$ac_objext'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30772 ac_cv_c_bigendian=yes
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30777 ac_cv_c_bigendian=no
30780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30782 echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30785 # It does not; compile a test program.
30786 if test "$cross_compiling" = yes; then
30787 # try to guess the endianness by grepping values into an object file
30788 ac_cv_c_bigendian=unknown
30789 cat >conftest.$ac_ext <<_ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h. */
30795 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30796 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30797 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30798 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30799 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30800 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30804 _ascii (); _ebcdic ();
30809 rm -f conftest.$ac_objext
30810 if { (ac_try="$ac_compile"
30811 case "(($ac_try" in
30812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30813 *) ac_try_echo=$ac_try;;
30815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30816 (eval "$ac_compile") 2>conftest.er1
30818 grep -v '^ *+' conftest.er1 >conftest.err
30820 cat conftest.err >&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); } &&
30823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30824 { (case "(($ac_try" in
30825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826 *) ac_try_echo=$ac_try;;
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_try") 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; } &&
30833 { ac_try='test -s conftest.$ac_objext'
30834 { (case "(($ac_try" in
30835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30836 *) ac_try_echo=$ac_try;;
30838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30839 (eval "$ac_try") 2>&5
30841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842 (exit $ac_status); }; }; then
30843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30844 ac_cv_c_bigendian=yes
30846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30847 if test "$ac_cv_c_bigendian" = unknown; then
30848 ac_cv_c_bigendian=no
30850 # finding both strings is unlikely to happen, but who knows?
30851 ac_cv_c_bigendian=unknown
30855 echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30863 cat >conftest.$ac_ext <<_ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30869 $ac_includes_default
30874 /* Are we little or big endian? From Harbison&Steele. */
30878 char c[sizeof (long int)];
30881 return u.c[sizeof (long int) - 1] == 1;
30887 rm -f conftest$ac_exeext
30888 if { (ac_try="$ac_link"
30889 case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_link") 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 ac_cv_c_bigendian=no
30909 echo "$as_me: program exited with status $ac_status" >&5
30910 echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30913 ( exit $ac_status )
30914 ac_cv_c_bigendian=yes
30916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30924 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30925 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30926 case $ac_cv_c_bigendian in
30929 cat >>confdefs.h <<\_ACEOF
30930 #define WORDS_BIGENDIAN 1
30936 { { echo "$as_me:$LINENO: error: unknown endianness
30937 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30938 echo "$as_me: error: unknown endianness
30939 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30940 { (exit 1); exit 1; }; } ;;
30944 for ac_header in byteswap.h
30946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30953 ac_res=`eval echo '${'$as_ac_Header'}'`
30954 { echo "$as_me:$LINENO: result: $ac_res" >&5
30955 echo "${ECHO_T}$ac_res" >&6; }
30957 # Is the header compilable?
30958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30960 cat >conftest.$ac_ext <<_ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h. */
30966 $ac_includes_default
30967 #include <$ac_header>
30969 rm -f conftest.$ac_objext
30970 if { (ac_try="$ac_compile"
30971 case "(($ac_try" in
30972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973 *) ac_try_echo=$ac_try;;
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976 (eval "$ac_compile") 2>conftest.er1
30978 grep -v '^ *+' conftest.er1 >conftest.err
30980 cat conftest.err >&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); } &&
30983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30984 { (case "(($ac_try" in
30985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986 *) ac_try_echo=$ac_try;;
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989 (eval "$ac_try") 2>&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; } &&
30993 { ac_try='test -s conftest.$ac_objext'
30994 { (case "(($ac_try" in
30995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996 *) ac_try_echo=$ac_try;;
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999 (eval "$ac_try") 2>&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 ac_header_compiler=yes
31005 echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31008 ac_header_compiler=no
31011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31013 echo "${ECHO_T}$ac_header_compiler" >&6; }
31015 # Is the header present?
31016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31018 cat >conftest.$ac_ext <<_ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h. */
31024 #include <$ac_header>
31026 if { (ac_try="$ac_cpp conftest.$ac_ext"
31027 case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31034 grep -v '^ *+' conftest.er1 >conftest.err
31036 cat conftest.err >&5
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); } >/dev/null; then
31039 if test -s conftest.err; then
31040 ac_cpp_err=$ac_c_preproc_warn_flag
31041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31048 if test -z "$ac_cpp_err"; then
31049 ac_header_preproc=yes
31051 echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31054 ac_header_preproc=no
31057 rm -f conftest.err conftest.$ac_ext
31058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31059 echo "${ECHO_T}$ac_header_preproc" >&6; }
31061 # So? What about this header?
31062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31068 ac_header_preproc=yes
31071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31089 echo $ECHO_N "(cached) $ECHO_C" >&6
31091 eval "$as_ac_Header=\$ac_header_preproc"
31093 ac_res=`eval echo '${'$as_ac_Header'}'`
31094 { echo "$as_me:$LINENO: result: $ac_res" >&5
31095 echo "${ECHO_T}$ac_res" >&6; }
31098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31099 cat >>confdefs.h <<_ACEOF
31100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31109 for ac_func in getrusage sched_setscheduler
31111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31115 echo $ECHO_N "(cached) $ECHO_C" >&6
31117 cat >conftest.$ac_ext <<_ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h. */
31123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31125 #define $ac_func innocuous_$ac_func
31127 /* System header to define __stub macros and hopefully few prototypes,
31128 which can conflict with char $ac_func (); below.
31129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31130 <limits.h> exists even on freestanding compilers. */
31133 # include <limits.h>
31135 # include <assert.h>
31140 /* Override any GCC internal prototype to avoid an error.
31141 Use char because int might match the return type of a GCC
31142 builtin and then its argument prototype would still apply. */
31147 /* The GNU C library defines this for functions which it implements
31148 to always fail with ENOSYS. Some functions are actually named
31149 something starting with __ and the normal name is an alias. */
31150 #if defined __stub_$ac_func || defined __stub___$ac_func
31157 return $ac_func ();
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_link") 2>conftest.er1
31171 grep -v '^ *+' conftest.er1 >conftest.err
31173 cat conftest.err >&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } &&
31176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31177 { (case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_try") 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); }; } &&
31186 { ac_try='test -s conftest$ac_exeext'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; }; then
31196 eval "$as_ac_var=yes"
31198 echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31201 eval "$as_ac_var=no"
31204 rm -f core conftest.err conftest.$ac_objext \
31205 conftest$ac_exeext conftest.$ac_ext
31207 ac_res=`eval echo '${'$as_ac_var'}'`
31208 { echo "$as_me:$LINENO: result: $ac_res" >&5
31209 echo "${ECHO_T}$ac_res" >&6; }
31210 if test `eval echo '${'$as_ac_var'}'` = yes; then
31211 cat >>confdefs.h <<_ACEOF
31212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31220 for ac_func in sigaction snprintf
31222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31236 #define $ac_func innocuous_$ac_func
31238 /* System header to define __stub macros and hopefully few prototypes,
31239 which can conflict with char $ac_func (); below.
31240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31241 <limits.h> exists even on freestanding compilers. */
31244 # include <limits.h>
31246 # include <assert.h>
31251 /* Override any GCC internal prototype to avoid an error.
31252 Use char because int might match the return type of a GCC
31253 builtin and then its argument prototype would still apply. */
31258 /* The GNU C library defines this for functions which it implements
31259 to always fail with ENOSYS. Some functions are actually named
31260 something starting with __ and the normal name is an alias. */
31261 #if defined __stub_$ac_func || defined __stub___$ac_func
31268 return $ac_func ();
31273 rm -f conftest.$ac_objext conftest$ac_exeext
31274 if { (ac_try="$ac_link"
31275 case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_link") 2>conftest.er1
31282 grep -v '^ *+' conftest.er1 >conftest.err
31284 cat conftest.err >&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); } &&
31287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest$ac_exeext'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; }; then
31307 eval "$as_ac_var=yes"
31309 echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31312 eval "$as_ac_var=no"
31315 rm -f core conftest.err conftest.$ac_objext \
31316 conftest$ac_exeext conftest.$ac_ext
31318 ac_res=`eval echo '${'$as_ac_var'}'`
31319 { echo "$as_me:$LINENO: result: $ac_res" >&5
31320 echo "${ECHO_T}$ac_res" >&6; }
31321 if test `eval echo '${'$as_ac_var'}'` = yes; then
31322 cat >>confdefs.h <<_ACEOF
31323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31333 ac_cpp='$CPP $CPPFLAGS'
31334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31341 for ac_header in usb.h
31343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 ac_res=`eval echo '${'$as_ac_Header'}'`
31351 { echo "$as_me:$LINENO: result: $ac_res" >&5
31352 echo "${ECHO_T}$ac_res" >&6; }
31354 # Is the header compilable?
31355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31357 cat >conftest.$ac_ext <<_ACEOF
31360 cat confdefs.h >>conftest.$ac_ext
31361 cat >>conftest.$ac_ext <<_ACEOF
31362 /* end confdefs.h. */
31363 $ac_includes_default
31364 #include <$ac_header>
31366 rm -f conftest.$ac_objext
31367 if { (ac_try="$ac_compile"
31368 case "(($ac_try" in
31369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31370 *) ac_try_echo=$ac_try;;
31372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31373 (eval "$ac_compile") 2>conftest.er1
31375 grep -v '^ *+' conftest.er1 >conftest.err
31377 cat conftest.err >&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); } &&
31380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31381 { (case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31386 (eval "$ac_try") 2>&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; } &&
31390 { ac_try='test -s conftest.$ac_objext'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 ac_header_compiler=yes
31402 echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31405 ac_header_compiler=no
31408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31410 echo "${ECHO_T}$ac_header_compiler" >&6; }
31412 # Is the header present?
31413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31415 cat >conftest.$ac_ext <<_ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31421 #include <$ac_header>
31423 if { (ac_try="$ac_cpp conftest.$ac_ext"
31424 case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31431 grep -v '^ *+' conftest.er1 >conftest.err
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } >/dev/null; then
31436 if test -s conftest.err; then
31437 ac_cpp_err=$ac_c_preproc_warn_flag
31438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31445 if test -z "$ac_cpp_err"; then
31446 ac_header_preproc=yes
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ac_header_preproc=no
31454 rm -f conftest.err conftest.$ac_ext
31455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 echo "${ECHO_T}$ac_header_preproc" >&6; }
31458 # So? What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465 ac_header_preproc=yes
31468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 eval "$as_ac_Header=\$ac_header_preproc"
31490 ac_res=`eval echo '${'$as_ac_Header'}'`
31491 { echo "$as_me:$LINENO: result: $ac_res" >&5
31492 echo "${ECHO_T}$ac_res" >&6; }
31495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31496 cat >>confdefs.h <<_ACEOF
31497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31502 { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31503 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31512 darwin*) LIBS="$LIBS -lIOKit" ;;
31515 { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31516 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31517 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31520 ac_func_search_save_LIBS=$LIBS
31521 cat >conftest.$ac_ext <<_ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h. */
31528 /* Override any GCC internal prototype to avoid an error.
31529 Use char because int might match the return type of a GCC
31530 builtin and then its argument prototype would still apply. */
31534 char usb_bulk_write ();
31538 return usb_bulk_write ();
31543 for ac_lib in '' usb; do
31544 if test -z "$ac_lib"; then
31545 ac_res="none required"
31548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31550 rm -f conftest.$ac_objext conftest$ac_exeext
31551 if { (ac_try="$ac_link"
31552 case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_link") 2>conftest.er1
31559 grep -v '^ *+' conftest.er1 >conftest.err
31561 cat conftest.err >&5
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } &&
31564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31565 { (case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_try") 2>&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; } &&
31574 { ac_try='test -s conftest$ac_exeext'
31575 { (case "(($ac_try" in
31576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577 *) ac_try_echo=$ac_try;;
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580 (eval "$ac_try") 2>&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; }; then
31584 ac_cv_search_usb_bulk_write=$ac_res
31586 echo "$as_me: failed program was:" >&5
31587 sed 's/^/| /' conftest.$ac_ext >&5
31592 rm -f core conftest.err conftest.$ac_objext \
31594 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31598 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31601 ac_cv_search_usb_bulk_write=no
31603 rm conftest.$ac_ext
31604 LIBS=$ac_func_search_save_LIBS
31606 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31607 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31608 ac_res=$ac_cv_search_usb_bulk_write
31609 if test "$ac_res" != no; then
31610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31614 { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31615 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31622 ac_cpp='$CPP $CPPFLAGS'
31623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31628 if test $libusbok = yes; then
31632 passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31633 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31638 # Check whether --with-fusb-tech was given.
31639 if test "${with_fusb_tech+set}" = set; then
31640 withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31642 cf_with_fusb_tech="$host_os"
31647 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31648 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31649 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31650 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31653 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31654 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31656 # Is the header compilable?
31657 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31658 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31659 cat >conftest.$ac_ext <<_ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h. */
31665 $ac_includes_default
31666 #include <linux/usbdevice_fs.h>
31668 rm -f conftest.$ac_objext
31669 if { (ac_try="$ac_compile"
31670 case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_compile") 2>conftest.er1
31677 grep -v '^ *+' conftest.er1 >conftest.err
31679 cat conftest.err >&5
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); } &&
31682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31683 { (case "(($ac_try" in
31684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685 *) ac_try_echo=$ac_try;;
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688 (eval "$ac_try") 2>&5
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest.$ac_objext'
31693 { (case "(($ac_try" in
31694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 *) ac_try_echo=$ac_try;;
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698 (eval "$ac_try") 2>&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 ac_header_compiler=yes
31704 echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31707 ac_header_compiler=no
31710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31712 echo "${ECHO_T}$ac_header_compiler" >&6; }
31714 # Is the header present?
31715 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31716 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31717 cat >conftest.$ac_ext <<_ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h. */
31723 #include <linux/usbdevice_fs.h>
31725 if { (ac_try="$ac_cpp conftest.$ac_ext"
31726 case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31733 grep -v '^ *+' conftest.er1 >conftest.err
31735 cat conftest.err >&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); } >/dev/null; then
31738 if test -s conftest.err; then
31739 ac_cpp_err=$ac_c_preproc_warn_flag
31740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31747 if test -z "$ac_cpp_err"; then
31748 ac_header_preproc=yes
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31753 ac_header_preproc=no
31756 rm -f conftest.err conftest.$ac_ext
31757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31758 echo "${ECHO_T}$ac_header_preproc" >&6; }
31760 # So? What about this header?
31761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31763 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31764 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31766 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31767 ac_header_preproc=yes
31770 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31772 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&5
31773 echo "$as_me: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&2;}
31774 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31775 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&5
31777 echo "$as_me: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31779 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31781 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31785 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31786 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31787 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31788 echo $ECHO_N "(cached) $ECHO_C" >&6
31790 ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31792 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31793 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31796 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31797 x_have_usbdevice_fs_h=yes
31799 x_have_usbdevice_fs_h=no
31804 { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31805 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31806 case "$cf_with_fusb_tech" in
31807 linux*) if test x${x_have_usbdevice_fs_h} = xyes;
31814 darwin*) FUSB_TECH=darwin ;;
31815 cygwin*|win*|mingw*) FUSB_TECH=win32 ;;
31817 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31818 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31819 cat >conftest.$ac_ext <<_ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 #include <dev/usb/usb.h>
31829 struct usb_bulk_ra_wb_opt o;
31830 ioctl(0, USB_SET_BULK_RA, &o);
31835 rm -f conftest.$ac_objext
31836 if { (ac_try="$ac_compile"
31837 case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_compile") 2>conftest.er1
31844 grep -v '^ *+' conftest.er1 >conftest.err
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } &&
31849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31850 { (case "(($ac_try" in
31851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852 *) ac_try_echo=$ac_try;;
31854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855 (eval "$ac_try") 2>&5
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; } &&
31859 { ac_try='test -s conftest.$ac_objext'
31860 { (case "(($ac_try" in
31861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31862 *) ac_try_echo=$ac_try;;
31864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31865 (eval "$ac_try") 2>&5
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; }; then
31871 echo "$as_me: failed program was:" >&5
31872 sed 's/^/| /' conftest.$ac_ext >&5
31877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
31878 *) FUSB_TECH=generic ;;
31881 { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31882 echo "${ECHO_T}$FUSB_TECH" >&6; }
31887 if test $FUSB_TECH = darwin; then
31888 FUSB_TECH_darwin_TRUE=
31889 FUSB_TECH_darwin_FALSE='#'
31891 FUSB_TECH_darwin_TRUE='#'
31892 FUSB_TECH_darwin_FALSE=
31897 if test $FUSB_TECH = win32; then
31898 FUSB_TECH_win32_TRUE=
31899 FUSB_TECH_win32_FALSE='#'
31901 FUSB_TECH_win32_TRUE='#'
31902 FUSB_TECH_win32_FALSE=
31907 if test $FUSB_TECH = generic; then
31908 FUSB_TECH_generic_TRUE=
31909 FUSB_TECH_generic_FALSE='#'
31911 FUSB_TECH_generic_TRUE='#'
31912 FUSB_TECH_generic_FALSE=
31917 if test $FUSB_TECH = linux; then
31918 FUSB_TECH_linux_TRUE=
31919 FUSB_TECH_linux_FALSE='#'
31921 FUSB_TECH_linux_TRUE='#'
31922 FUSB_TECH_linux_FALSE=
31927 if test $FUSB_TECH = ra_wb; then
31928 FUSB_TECH_ra_wb_TRUE=
31929 FUSB_TECH_ra_wb_FALSE='#'
31931 FUSB_TECH_ra_wb_TRUE='#'
31932 FUSB_TECH_ra_wb_FALSE=
31938 # Extract the first word of "sdcc", so it can be a program name with args.
31939 set dummy sdcc; ac_word=$2
31940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31942 if test "${ac_cv_prog_XCC+set}" = set; then
31943 echo $ECHO_N "(cached) $ECHO_C" >&6
31945 if test -n "$XCC"; then
31946 ac_cv_prog_XCC="$XCC" # Let the user override the test.
31948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31949 for as_dir in $PATH
31952 test -z "$as_dir" && as_dir=.
31953 for ac_exec_ext in '' $ac_executable_extensions; do
31954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31955 ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31963 test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31966 XCC=$ac_cv_prog_XCC
31967 if test -n "$XCC"; then
31968 { echo "$as_me:$LINENO: result: $XCC" >&5
31969 echo "${ECHO_T}$XCC" >&6; }
31971 { echo "$as_me:$LINENO: result: no" >&5
31972 echo "${ECHO_T}no" >&6; }
31976 # Extract the first word of "asx8051", so it can be a program name with args.
31977 set dummy asx8051; ac_word=$2
31978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31980 if test "${ac_cv_prog_XAS+set}" = set; then
31981 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 if test -n "$XAS"; then
31984 ac_cv_prog_XAS="$XAS" # Let the user override the test.
31986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31987 for as_dir in $PATH
31990 test -z "$as_dir" && as_dir=.
31991 for ac_exec_ext in '' $ac_executable_extensions; do
31992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31993 ac_cv_prog_XAS="asx8051 -plosgff"
31994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32001 test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
32004 XAS=$ac_cv_prog_XAS
32005 if test -n "$XAS"; then
32006 { echo "$as_me:$LINENO: result: $XAS" >&5
32007 echo "${ECHO_T}$XAS" >&6; }
32009 { echo "$as_me:$LINENO: result: no" >&5
32010 echo "${ECHO_T}no" >&6; }
32015 if test "$XCC" = "no" -o "$XAS" = "no" ; then
32016 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32017 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32020 sdcc_version_min=2.4.0
32022 sdcc_version=`sdcc --version 2>&1 | \
32023 sed 's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32025 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32026 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32028 sdcc_major_version=`echo $sdcc_version | \
32029 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32030 sdcc_minor_version=`echo $sdcc_version | \
32031 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32032 sdcc_micro_version=`echo $sdcc_version | \
32033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32035 sdcc_major_min=`echo $sdcc_version_min | \
32036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32037 sdcc_minor_min=`echo $sdcc_version_min | \
32038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32039 sdcc_micro_min=`echo $sdcc_version_min | \
32040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32042 sdcc_version_proper=`expr \
32043 "$sdcc_major_version" \> "$sdcc_major_min" \| \
32044 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32045 "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32046 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32047 "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32048 "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32050 if test "$sdcc_version_proper" = "1" ; then
32051 { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32052 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32055 { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32056 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32063 if test $sdccok = yes; then
32066 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32067 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32072 if test x$passed = xno; then
32073 skipped_dirs="$skipped_dirs usrp"
32074 if test x$enable_usrp = xyes; then
32075 { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32076 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32077 { (exit 1); exit 1; }; }
32079 { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32080 echo "${ECHO_T}Not building component usrp." >&6; }
32083 if test x$enable_usrp != xno; then
32085 build_dirs="$build_dirs usrp"
32086 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32087 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32089 skipped_dirs="$skipped_dirs usrp"
32090 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32091 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32098 # Check whether --enable-gr-usrp was given.
32099 if test "${enable_gr_usrp+set}" = set; then
32100 enableval=$enable_gr_usrp;
32102 enable_gr_usrp=$enable_all_components
32107 ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32111 # Don't do gr-usrp if usrp skipped
32112 # There *has* to be a better way to check if a value is in a string
32113 for dir in $skipped_dirs
32115 if test x$dir = xusrp; then
32116 { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32117 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32123 if test x$passed = xno; then
32124 skipped_dirs="$skipped_dirs gr-usrp"
32125 if test x$enable_gr_usrp = xyes; then
32126 { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32127 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32128 { (exit 1); exit 1; }; }
32130 { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32131 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32134 if test x$enable_gr_usrp != xno; then
32136 ac_config_commands="$ac_config_commands run_tests_usrp"
32139 build_dirs="$build_dirs gr-usrp"
32140 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32141 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32143 skipped_dirs="$skipped_dirs gr-usrp"
32144 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32145 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32151 # Check whether --enable-gr-audio-alsa was given.
32152 if test "${enable_gr_audio_alsa+set}" = set; then
32153 enableval=$enable_gr_audio_alsa;
32155 enable_gr_audio_alsa=$enable_all_components
32160 ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32167 if test -z "$PKG_CONFIG"; then
32168 # Extract the first word of "pkg-config", so it can be a program name with args.
32169 set dummy pkg-config; ac_word=$2
32170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32173 echo $ECHO_N "(cached) $ECHO_C" >&6
32175 case $PKG_CONFIG in
32177 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181 for as_dir in $PATH
32184 test -z "$as_dir" && as_dir=.
32185 for ac_exec_ext in '' $ac_executable_extensions; do
32186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32187 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32195 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32199 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32200 if test -n "$PKG_CONFIG"; then
32201 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32202 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32204 { echo "$as_me:$LINENO: result: no" >&5
32205 echo "${ECHO_T}no" >&6; }
32211 if test "$PKG_CONFIG" = "no" ; then
32212 echo "*** The pkg-config script could not be found. Make sure it is"
32213 echo "*** in your path, or set the PKG_CONFIG environment variable"
32214 echo "*** to the full path to pkg-config."
32215 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32217 if test -z "$PKG_CONFIG_PATH"; then
32218 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32221 PKG_CONFIG_MIN_VERSION=0.9.0
32222 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32223 { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32224 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32226 if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32227 { echo "$as_me:$LINENO: result: yes" >&5
32228 echo "${ECHO_T}yes" >&6; }
32231 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32232 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32233 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32234 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32235 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32237 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32238 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32239 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32240 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32241 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32243 { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32244 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32245 ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32246 { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32247 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32251 ## If we have a custom action on failure, don't print errors, but
32252 ## do set a variable so people can do so.
32253 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32261 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32262 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32266 if test $succeeded = yes; then
32269 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32270 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32275 if test x$passed = xno; then
32276 skipped_dirs="$skipped_dirs gr-audio-alsa"
32277 if test x$enable_gr_audio_alsa = xyes; then
32278 { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32279 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32280 { (exit 1); exit 1; }; }
32282 { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32283 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32286 if test x$enable_gr_audio_alsa != xno; then
32289 ac_config_commands="$ac_config_commands run_tests_alsa"
32292 build_dirs="$build_dirs gr-audio-alsa"
32293 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32294 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32296 skipped_dirs="$skipped_dirs gr-audio-alsa"
32297 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32298 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32305 # Check whether --enable-gr-audio-jack was given.
32306 if test "${enable_gr_audio_jack+set}" = set; then
32307 enableval=$enable_gr_audio_jack;
32309 enable_gr_audio_jack=$enable_all_components
32314 ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32321 if test -z "$PKG_CONFIG"; then
32322 # Extract the first word of "pkg-config", so it can be a program name with args.
32323 set dummy pkg-config; ac_word=$2
32324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32329 case $PKG_CONFIG in
32331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32338 test -z "$as_dir" && as_dir=.
32339 for ac_exec_ext in '' $ac_executable_extensions; do
32340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32354 if test -n "$PKG_CONFIG"; then
32355 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32356 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32358 { echo "$as_me:$LINENO: result: no" >&5
32359 echo "${ECHO_T}no" >&6; }
32365 if test "$PKG_CONFIG" = "no" ; then
32366 echo "*** The pkg-config script could not be found. Make sure it is"
32367 echo "*** in your path, or set the PKG_CONFIG environment variable"
32368 echo "*** to the full path to pkg-config."
32369 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32371 if test -z "$PKG_CONFIG_PATH"; then
32372 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32375 PKG_CONFIG_MIN_VERSION=0.9.0
32376 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32377 { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32378 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32380 if $PKG_CONFIG --exists "jack >= 0.8" ; then
32381 { echo "$as_me:$LINENO: result: yes" >&5
32382 echo "${ECHO_T}yes" >&6; }
32385 { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32386 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32387 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32388 { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32389 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32391 { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32392 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32393 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32394 { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32395 echo "${ECHO_T}$JACK_LIBS" >&6; }
32397 { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32398 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32399 JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32400 { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32401 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32405 ## If we have a custom action on failure, don't print errors, but
32406 ## do set a variable so people can do so.
32407 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32420 if test $succeeded = yes; then
32423 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32424 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32429 if test x$passed = xno; then
32430 skipped_dirs="$skipped_dirs gr-audio-jack"
32431 if test x$enable_gr_audio_jack = xyes; then
32432 { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32433 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32434 { (exit 1); exit 1; }; }
32436 { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32437 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32440 if test x$enable_gr_audio_jack != xno; then
32443 ac_config_commands="$ac_config_commands run_tests_jack"
32446 build_dirs="$build_dirs gr-audio-jack"
32447 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32448 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32450 skipped_dirs="$skipped_dirs gr-audio-jack"
32451 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32452 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32459 # Check whether --enable-gr-audio-oss was given.
32460 if test "${enable_gr_audio_oss+set}" = set; then
32461 enableval=$enable_gr_audio_oss;
32463 enable_gr_audio_oss=$enable_all_components
32468 ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32475 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32476 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32477 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32478 echo $ECHO_N "(cached) $ECHO_C" >&6
32480 ac_check_lib_save_LIBS=$LIBS
32481 LIBS="-lossaudio $LIBS"
32482 cat >conftest.$ac_ext <<_ACEOF
32485 cat confdefs.h >>conftest.$ac_ext
32486 cat >>conftest.$ac_ext <<_ACEOF
32487 /* end confdefs.h. */
32498 rm -f conftest.$ac_objext conftest$ac_exeext
32499 if { (ac_try="$ac_link"
32500 case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_link") 2>conftest.er1
32507 grep -v '^ *+' conftest.er1 >conftest.err
32509 cat conftest.err >&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513 { (case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518 (eval "$ac_try") 2>&5
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; } &&
32522 { ac_try='test -s conftest$ac_exeext'
32523 { (case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528 (eval "$ac_try") 2>&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); }; }; then
32532 ac_cv_lib_ossaudio_main=yes
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ac_cv_lib_ossaudio_main=no
32540 rm -f core conftest.err conftest.$ac_objext \
32541 conftest$ac_exeext conftest.$ac_ext
32542 LIBS=$ac_check_lib_save_LIBS
32544 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32545 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32546 if test $ac_cv_lib_ossaudio_main = yes; then
32547 cat >>confdefs.h <<_ACEOF
32548 #define HAVE_LIBOSSAUDIO 1
32551 LIBS="-lossaudio $LIBS"
32554 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32555 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32557 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32559 if test x$passed != xno; then
32560 OSS_LIBS=-lossaudio
32561 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32562 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32566 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32567 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32568 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32569 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32570 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32573 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32575 # Is the header compilable?
32576 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32577 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32578 cat >conftest.$ac_ext <<_ACEOF
32581 cat confdefs.h >>conftest.$ac_ext
32582 cat >>conftest.$ac_ext <<_ACEOF
32583 /* end confdefs.h. */
32584 $ac_includes_default
32585 #include <sys/soundcard.h>
32587 rm -f conftest.$ac_objext
32588 if { (ac_try="$ac_compile"
32589 case "(($ac_try" in
32590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591 *) ac_try_echo=$ac_try;;
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_compile") 2>conftest.er1
32596 grep -v '^ *+' conftest.er1 >conftest.err
32598 cat conftest.err >&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); } &&
32601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32602 { (case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_try") 2>&5
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; } &&
32611 { ac_try='test -s conftest.$ac_objext'
32612 { (case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_try") 2>&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); }; }; then
32621 ac_header_compiler=yes
32623 echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.$ac_ext >&5
32626 ac_header_compiler=no
32629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32631 echo "${ECHO_T}$ac_header_compiler" >&6; }
32633 # Is the header present?
32634 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32635 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32636 cat >conftest.$ac_ext <<_ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h. */
32642 #include <sys/soundcard.h>
32644 if { (ac_try="$ac_cpp conftest.$ac_ext"
32645 case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32652 grep -v '^ *+' conftest.er1 >conftest.err
32654 cat conftest.err >&5
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); } >/dev/null; then
32657 if test -s conftest.err; then
32658 ac_cpp_err=$ac_c_preproc_warn_flag
32659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32666 if test -z "$ac_cpp_err"; then
32667 ac_header_preproc=yes
32669 echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32672 ac_header_preproc=no
32675 rm -f conftest.err conftest.$ac_ext
32676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32677 echo "${ECHO_T}$ac_header_preproc" >&6; }
32679 # So? What about this header?
32680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32682 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32683 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32684 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32685 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32686 ac_header_preproc=yes
32689 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32691 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
32692 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
32693 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32694 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32695 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
32696 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
32697 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32698 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32699 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32700 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32704 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32705 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32706 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32707 echo $ECHO_N "(cached) $ECHO_C" >&6
32709 ac_cv_header_sys_soundcard_h=$ac_header_preproc
32711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32712 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32715 if test $ac_cv_header_sys_soundcard_h = yes; then
32718 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32719 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32726 if test x$passed = xno; then
32727 skipped_dirs="$skipped_dirs gr-audio-oss"
32728 if test x$enable_gr_audio_oss = xyes; then
32729 { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32730 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32731 { (exit 1); exit 1; }; }
32733 { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32734 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32737 if test x$enable_gr_audio_oss != xno; then
32740 ac_config_commands="$ac_config_commands run_tests_oss"
32743 build_dirs="$build_dirs gr-audio-oss"
32744 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32745 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32747 skipped_dirs="$skipped_dirs gr-audio-oss"
32748 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32749 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32756 # Check whether --enable-gr-audio-osx was given.
32757 if test "${enable_gr_audio_osx+set}" = set; then
32758 enableval=$enable_gr_audio_osx;
32760 enable_gr_audio_osx=$enable_all_components
32765 ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32775 { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32776 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32780 for ac_header in AudioUnit/AudioUnit.h
32782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32789 ac_res=`eval echo '${'$as_ac_Header'}'`
32790 { echo "$as_me:$LINENO: result: $ac_res" >&5
32791 echo "${ECHO_T}$ac_res" >&6; }
32793 # Is the header compilable?
32794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 $ac_includes_default
32803 #include <$ac_header>
32805 rm -f conftest.$ac_objext
32806 if { (ac_try="$ac_compile"
32807 case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_compile") 2>conftest.er1
32814 grep -v '^ *+' conftest.er1 >conftest.err
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } &&
32819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32820 { (case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_try") 2>&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; } &&
32829 { ac_try='test -s conftest.$ac_objext'
32830 { (case "(($ac_try" in
32831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832 *) ac_try_echo=$ac_try;;
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835 (eval "$ac_try") 2>&5
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; }; then
32839 ac_header_compiler=yes
32841 echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32844 ac_header_compiler=no
32847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32849 echo "${ECHO_T}$ac_header_compiler" >&6; }
32851 # Is the header present?
32852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32854 cat >conftest.$ac_ext <<_ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32860 #include <$ac_header>
32862 if { (ac_try="$ac_cpp conftest.$ac_ext"
32863 case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32870 grep -v '^ *+' conftest.er1 >conftest.err
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } >/dev/null; then
32875 if test -s conftest.err; then
32876 ac_cpp_err=$ac_c_preproc_warn_flag
32877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32884 if test -z "$ac_cpp_err"; then
32885 ac_header_preproc=yes
32887 echo "$as_me: failed program was:" >&5
32888 sed 's/^/| /' conftest.$ac_ext >&5
32890 ac_header_preproc=no
32893 rm -f conftest.err conftest.$ac_ext
32894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32895 echo "${ECHO_T}$ac_header_preproc" >&6; }
32897 # So? What about this header?
32898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32904 ac_header_preproc=yes
32907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32925 echo $ECHO_N "(cached) $ECHO_C" >&6
32927 eval "$as_ac_Header=\$ac_header_preproc"
32929 ac_res=`eval echo '${'$as_ac_Header'}'`
32930 { echo "$as_me:$LINENO: result: $ac_res" >&5
32931 echo "${ECHO_T}$ac_res" >&6; }
32934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32935 cat >>confdefs.h <<_ACEOF
32936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32940 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32941 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32948 for ac_header in AudioToolbox/AudioToolbox.h
32950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32957 ac_res=`eval echo '${'$as_ac_Header'}'`
32958 { echo "$as_me:$LINENO: result: $ac_res" >&5
32959 echo "${ECHO_T}$ac_res" >&6; }
32961 # Is the header compilable?
32962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32970 $ac_includes_default
32971 #include <$ac_header>
32973 rm -f conftest.$ac_objext
32974 if { (ac_try="$ac_compile"
32975 case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_compile") 2>conftest.er1
32982 grep -v '^ *+' conftest.er1 >conftest.err
32984 cat conftest.err >&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } &&
32987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32988 { (case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_try") 2>&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; } &&
32997 { ac_try='test -s conftest.$ac_objext'
32998 { (case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_try") 2>&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 ac_header_compiler=yes
33009 echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33012 ac_header_compiler=no
33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33017 echo "${ECHO_T}$ac_header_compiler" >&6; }
33019 # Is the header present?
33020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33022 cat >conftest.$ac_ext <<_ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 #include <$ac_header>
33030 if { (ac_try="$ac_cpp conftest.$ac_ext"
33031 case "(($ac_try" in
33032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033 *) ac_try_echo=$ac_try;;
33035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33038 grep -v '^ *+' conftest.er1 >conftest.err
33040 cat conftest.err >&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } >/dev/null; then
33043 if test -s conftest.err; then
33044 ac_cpp_err=$ac_c_preproc_warn_flag
33045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33052 if test -z "$ac_cpp_err"; then
33053 ac_header_preproc=yes
33055 echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33058 ac_header_preproc=no
33061 rm -f conftest.err conftest.$ac_ext
33062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33063 echo "${ECHO_T}$ac_header_preproc" >&6; }
33065 # So? What about this header?
33066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33072 ac_header_preproc=yes
33075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33095 eval "$as_ac_Header=\$ac_header_preproc"
33097 ac_res=`eval echo '${'$as_ac_Header'}'`
33098 { echo "$as_me:$LINENO: result: $ac_res" >&5
33099 echo "${ECHO_T}$ac_res" >&6; }
33102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33103 cat >>confdefs.h <<_ACEOF
33104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33108 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33109 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33115 if test $audiounitok = yes; then
33118 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33119 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33124 if test x$passed = xno; then
33125 skipped_dirs="$skipped_dirs gr-audio-osx"
33126 if test x$enable_gr_audio_osx = xyes; then
33127 { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33128 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33129 { (exit 1); exit 1; }; }
33131 { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33132 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33135 if test x$enable_gr_audio_osx != xno; then
33137 ac_config_commands="$ac_config_commands run_tests_osx"
33140 build_dirs="$build_dirs gr-audio-osx"
33141 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33142 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33144 skipped_dirs="$skipped_dirs gr-audio-osx"
33145 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33146 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33153 # Check whether --enable-gr-audio-portaudio was given.
33154 if test "${enable_gr_audio_portaudio+set}" = set; then
33155 enableval=$enable_gr_audio_portaudio;
33157 enable_gr_audio_portaudio=$enable_all_components
33162 ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33169 if test -z "$PKG_CONFIG"; then
33170 # Extract the first word of "pkg-config", so it can be a program name with args.
33171 set dummy pkg-config; ac_word=$2
33172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33175 echo $ECHO_N "(cached) $ECHO_C" >&6
33177 case $PKG_CONFIG in
33179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33183 for as_dir in $PATH
33186 test -z "$as_dir" && as_dir=.
33187 for ac_exec_ext in '' $ac_executable_extensions; do
33188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33197 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33202 if test -n "$PKG_CONFIG"; then
33203 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33204 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33206 { echo "$as_me:$LINENO: result: no" >&5
33207 echo "${ECHO_T}no" >&6; }
33213 if test "$PKG_CONFIG" = "no" ; then
33214 echo "*** The pkg-config script could not be found. Make sure it is"
33215 echo "*** in your path, or set the PKG_CONFIG environment variable"
33216 echo "*** to the full path to pkg-config."
33217 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33219 if test -z "$PKG_CONFIG_PATH"; then
33220 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33223 PKG_CONFIG_MIN_VERSION=0.9.0
33224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33225 { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33226 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33228 if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33229 { echo "$as_me:$LINENO: result: yes" >&5
33230 echo "${ECHO_T}yes" >&6; }
33233 { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33234 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33235 PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33236 { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33237 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33239 { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33240 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33241 PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33242 { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33243 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33245 { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33246 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33247 PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33248 { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33249 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33251 PORTAUDIO_CFLAGS=""
33253 ## If we have a custom action on failure, don't print errors, but
33254 ## do set a variable so people can do so.
33255 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
33268 if test $succeeded = yes; then
33271 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33272 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33277 if test x$passed = xno; then
33278 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33279 if test x$enable_gr_audio_portaudio = xyes; then
33280 { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33281 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33282 { (exit 1); exit 1; }; }
33284 { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33285 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33288 if test x$enable_gr_audio_portaudio != xno; then
33291 ac_config_commands="$ac_config_commands run_tests_portaudio"
33294 build_dirs="$build_dirs gr-audio-portaudio"
33295 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33296 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33298 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33299 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33300 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33307 # Check whether --enable-gr-audio-windows was given.
33308 if test "${enable_gr_audio_windows+set}" = set; then
33309 enableval=$enable_gr_audio_windows;
33311 enable_gr_audio_windows=$enable_all_components
33316 ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33321 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33322 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33323 if test "${ac_cv_lib_winmm_main+set}" = set; then
33324 echo $ECHO_N "(cached) $ECHO_C" >&6
33326 ac_check_lib_save_LIBS=$LIBS
33327 LIBS="-lwinmm $LIBS"
33328 cat >conftest.$ac_ext <<_ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h. */
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (ac_try="$ac_link"
33346 case "(($ac_try" in
33347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348 *) ac_try_echo=$ac_try;;
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351 (eval "$ac_link") 2>conftest.er1
33353 grep -v '^ *+' conftest.er1 >conftest.err
33355 cat conftest.err >&5
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } &&
33358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33359 { (case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_try") 2>&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; } &&
33368 { ac_try='test -s conftest$ac_exeext'
33369 { (case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_try") 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_lib_winmm_main=yes
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33383 ac_cv_lib_winmm_main=no
33386 rm -f core conftest.err conftest.$ac_objext \
33387 conftest$ac_exeext conftest.$ac_ext
33388 LIBS=$ac_check_lib_save_LIBS
33390 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33391 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33392 if test $ac_cv_lib_winmm_main = yes; then
33393 cat >>confdefs.h <<_ACEOF
33394 #define HAVE_LIBWINMM 1
33397 LIBS="-lwinmm $LIBS"
33400 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33401 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33403 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33407 if test x$passed = xno; then
33408 skipped_dirs="$skipped_dirs gr-audio-windows"
33409 if test x$enable_gr_audio_windows = xyes; then
33410 { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33411 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33412 { (exit 1); exit 1; }; }
33414 { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33415 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33418 if test x$enable_gr_audio_windows != xno; then
33420 WINAUDIO_LIBS=-lwinmm
33422 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33425 build_dirs="$build_dirs gr-audio-windows"
33426 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33427 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33429 skipped_dirs="$skipped_dirs gr-audio-windows"
33430 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33431 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33438 # Check whether --enable-gr-gsm-fr-vocoder was given.
33439 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33440 enableval=$enable_gr_gsm_fr_vocoder;
33442 enable_gr_gsm_fr_vocoder=$enable_all_components
33447 ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
33452 if test x$passed = xno; then
33453 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33454 if test x$enable_gr_gsm_fr_vocoder = xyes; then
33455 { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33456 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33457 { (exit 1); exit 1; }; }
33459 { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33460 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33463 if test x$enable_gr_gsm_fr_vocoder != xno; then
33465 ac_config_commands="$ac_config_commands run_tests_gsm"
33468 build_dirs="$build_dirs gr-gsm-fr-vocoder"
33469 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33470 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33472 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33473 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33474 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33481 # Check whether --enable-gr-radio-astronomy was given.
33482 if test "${enable_gr_radio_astronomy+set}" = set; then
33483 enableval=$enable_gr_radio_astronomy;
33485 enable_gr_radio_astronomy=$enable_all_components
33490 ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
33495 if test x$passed = xno; then
33496 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33497 if test x$enable_gr_radio_astronomy = xyes; then
33498 { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33499 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33500 { (exit 1); exit 1; }; }
33502 { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33503 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33506 if test x$enable_gr_radio_astronomy != xno; then
33508 ac_config_commands="$ac_config_commands run_tests_astronomy"
33511 build_dirs="$build_dirs gr-radio-astronomy"
33512 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33513 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33515 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33516 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33517 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33524 # Check whether --enable-gr-trellis was given.
33525 if test "${enable_gr_trellis+set}" = set; then
33526 enableval=$enable_gr_trellis;
33528 enable_gr_trellis=$enable_all_components
33533 ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests"
33538 if test x$passed = xno; then
33539 skipped_dirs="$skipped_dirs gr-trellis"
33540 if test x$enable_gr_trellis = xyes; then
33541 { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33542 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33543 { (exit 1); exit 1; }; }
33545 { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33546 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33549 if test x$enable_gr_trellis != xno; then
33551 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33554 build_dirs="$build_dirs gr-trellis"
33555 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33556 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33558 skipped_dirs="$skipped_dirs gr-trellis"
33559 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33560 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33567 # Check whether --enable-gr-video-sdl was given.
33568 if test "${enable_gr_video_sdl+set}" = set; then
33569 enableval=$enable_gr_video_sdl;
33571 enable_gr_video_sdl=$enable_all_components
33576 ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33582 # Check whether --with-sdl-prefix was given.
33583 if test "${with_sdl_prefix+set}" = set; then
33584 withval=$with_sdl_prefix; sdl_prefix="$withval"
33590 # Check whether --with-sdl-exec-prefix was given.
33591 if test "${with_sdl_exec_prefix+set}" = set; then
33592 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33597 # Check whether --enable-sdltest was given.
33598 if test "${enable_sdltest+set}" = set; then
33599 enableval=$enable_sdltest;
33605 if test x$sdl_exec_prefix != x ; then
33606 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33607 if test x${SDL_CONFIG+set} != xset ; then
33608 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33611 if test x$sdl_prefix != x ; then
33612 sdl_args="$sdl_args --prefix=$sdl_prefix"
33613 if test x${SDL_CONFIG+set} != xset ; then
33614 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33619 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33620 # Extract the first word of "sdl-config", so it can be a program name with args.
33621 set dummy sdl-config; ac_word=$2
33622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33624 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33625 echo $ECHO_N "(cached) $ECHO_C" >&6
33627 case $SDL_CONFIG in
33629 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633 for as_dir in $PATH
33636 test -z "$as_dir" && as_dir=.
33637 for ac_exec_ext in '' $ac_executable_extensions; do
33638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33639 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33647 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33651 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33652 if test -n "$SDL_CONFIG"; then
33653 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33654 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33656 { echo "$as_me:$LINENO: result: no" >&5
33657 echo "${ECHO_T}no" >&6; }
33661 min_sdl_version=$SDL_VERSION
33662 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33663 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33665 if test "$SDL_CONFIG" = "no" ; then
33668 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33669 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33671 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33672 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33673 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33675 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33677 if test "x$enable_sdltest" = "xyes" ; then
33678 ac_save_CFLAGS="$CFLAGS"
33679 ac_save_LIBS="$LIBS"
33680 CFLAGS="$CFLAGS $SDL_CFLAGS"
33681 LIBS="$LIBS $SDL_LIBS"
33683 if test "$cross_compiling" = yes; then
33684 echo $ac_n "cross compiling; assumed OK... $ac_c"
33686 cat >conftest.$ac_ext <<_ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h. */
33694 #include <stdlib.h>
33695 #include <string.h>
33699 my_strdup (char *str)
33705 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33706 strcpy (new_str, str);
33714 int main (int argc, char *argv[])
33716 int major, minor, micro;
33719 /* This hangs on some systems (?)
33720 system ("touch conf.sdltest");
33722 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33724 /* HP/UX 9 (%@#!) writes to sscanf strings */
33725 tmp_version = my_strdup("$min_sdl_version");
33726 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
33727 printf("%s, bad version string\n", "$min_sdl_version");
33731 if (($sdl_major_version > major) ||
33732 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33733 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33739 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33740 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33741 printf("*** best to upgrade to the required version.\n");
33742 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33743 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33744 printf("*** config.cache before re-running configure\n");
33751 rm -f conftest$ac_exeext
33752 if { (ac_try="$ac_link"
33753 case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_link") 2>&5
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33762 { (case "(($ac_try" in
33763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764 *) ac_try_echo=$ac_try;;
33766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767 (eval "$ac_try") 2>&5
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33773 echo "$as_me: program exited with status $ac_status" >&5
33774 echo "$as_me: failed program was:" >&5
33775 sed 's/^/| /' conftest.$ac_ext >&5
33777 ( exit $ac_status )
33780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33784 CFLAGS="$ac_save_CFLAGS"
33785 LIBS="$ac_save_LIBS"
33788 if test "x$no_sdl" = x ; then
33789 { echo "$as_me:$LINENO: result: yes" >&5
33790 echo "${ECHO_T}yes" >&6; }
33793 { echo "$as_me:$LINENO: result: no" >&5
33794 echo "${ECHO_T}no" >&6; }
33795 if test "$SDL_CONFIG" = "no" ; then
33796 echo "*** The sdl-config script installed by SDL could not be found"
33797 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33798 echo "*** your path, or set the SDL_CONFIG environment variable to the"
33799 echo "*** full path to sdl-config."
33801 if test -f conf.sdltest ; then
33804 echo "*** Could not run SDL test program, checking why..."
33805 CFLAGS="$CFLAGS $SDL_CFLAGS"
33806 LIBS="$LIBS $SDL_LIBS"
33807 cat >conftest.$ac_ext <<_ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33817 int main(int argc, char *argv[])
33820 #define main K_and_R_C_main
33830 rm -f conftest.$ac_objext conftest$ac_exeext
33831 if { (ac_try="$ac_link"
33832 case "(($ac_try" in
33833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834 *) ac_try_echo=$ac_try;;
33836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33837 (eval "$ac_link") 2>conftest.er1
33839 grep -v '^ *+' conftest.er1 >conftest.err
33841 cat conftest.err >&5
33842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843 (exit $ac_status); } &&
33844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33845 { (case "(($ac_try" in
33846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847 *) ac_try_echo=$ac_try;;
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850 (eval "$ac_try") 2>&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); }; } &&
33854 { ac_try='test -s conftest$ac_exeext'
33855 { (case "(($ac_try" in
33856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33857 *) ac_try_echo=$ac_try;;
33859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33860 (eval "$ac_try") 2>&5
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); }; }; then
33864 echo "*** The test program compiled, but did not run. This usually means"
33865 echo "*** that the run-time linker is not finding SDL or finding the wrong"
33866 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33867 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33868 echo "*** to the installed location Also, make sure you have run ldconfig if that"
33869 echo "*** is required on your system"
33871 echo "*** If you have an old version installed, it is best to remove it, although"
33872 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33874 echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33877 echo "*** The test program failed to compile or link. See the file config.log for the"
33878 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33879 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33880 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33883 rm -f core conftest.err conftest.$ac_objext \
33884 conftest$ac_exeext conftest.$ac_ext
33885 CFLAGS="$ac_save_CFLAGS"
33886 LIBS="$ac_save_LIBS"
33891 passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found." >&5
33892 echo "${ECHO_T}gr-video-sdl requires library sdl, not found." >&6; }
33900 if test x$passed = xno; then
33901 skipped_dirs="$skipped_dirs gr-video-sdl"
33902 if test x$enable_gr_video_sdl = xyes; then
33903 { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33904 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33905 { (exit 1); exit 1; }; }
33907 { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33908 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33911 if test x$enable_gr_video_sdl != xno; then
33915 ac_config_commands="$ac_config_commands run_tests_sdl"
33918 build_dirs="$build_dirs gr-video-sdl"
33919 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33920 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33922 skipped_dirs="$skipped_dirs gr-video-sdl"
33923 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33924 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33931 # Check whether --enable-gr-wxgui was given.
33932 if test "${enable_gr_wxgui+set}" = set; then
33933 enableval=$enable_gr_wxgui;
33935 enable_gr_wxgui=$enable_all_components
33940 ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33943 # FIXME: this breaks pkgsrc by calling python without a version number
33944 # gdt--patch welcome :-)
33945 if python -c 'import wx'; then
33952 if test x$passed = xno; then
33953 skipped_dirs="$skipped_dirs gr-wxgui"
33954 if test x$enable_gr_wxgui = xyes; then
33955 { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33956 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33957 { (exit 1); exit 1; }; }
33959 { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33960 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33963 if test x$enable_gr_wxgui != xno; then
33965 build_dirs="$build_dirs gr-wxgui"
33966 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33967 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33969 skipped_dirs="$skipped_dirs gr-wxgui"
33970 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33971 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33977 # Each component is now either to be built, was skipped, or failed dependencies
33978 build_dirs=$build_dirs
33980 skipped_dirs=$skipped_dirs
33983 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33986 ac_config_commands="$ac_config_commands run_tests_build"
33989 cat >confcache <<\_ACEOF
33990 # This file is a shell script that caches the results of configure
33991 # tests run on this system so they can be shared between configure
33992 # scripts and configure runs, see configure's option --config-cache.
33993 # It is not useful on other systems. If it contains results you don't
33994 # want to keep, you may remove or edit it.
33996 # config.status only pays attention to the cache file if you give it
33997 # the --recheck option to rerun configure.
33999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34001 # following values.
34005 # The following way of writing the cache mishandles newlines in values,
34006 # but we know of no workaround that is simple, portable, and efficient.
34007 # So, we kill variables containing newlines.
34008 # Ultrix sh set writes to stderr and can't be redirected directly,
34009 # and sets the high bit in the cache file unless we assign to the vars.
34011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34012 eval ac_val=\$$ac_var
34016 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34020 _ | IFS | as_nl) ;; #(
34021 *) $as_unset $ac_var ;;
34027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34028 *${as_nl}ac_space=\ *)
34029 # `set' does not quote correctly, so add quotes (double-quote
34030 # substitution turns \\\\ into \\, and sed turns \\ into \).
34033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34036 # `set' quotes correctly as required by POSIX, so do not add quotes.
34037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34051 if test -w "$cache_file"; then
34052 test "x$cache_file" != "x/dev/null" &&
34053 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34054 echo "$as_me: updating cache $cache_file" >&6;}
34055 cat confcache >$cache_file
34057 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34064 # Let make expand exec_prefix.
34065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34067 DEFS=-DHAVE_CONFIG_H
34071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34072 # 1. Remove the extension, and $U if already installed.
34073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34074 ac_i=`echo "$ac_i" | sed "$ac_script"`
34075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34076 # will be set to the directory where LIBOBJS objects are built.
34077 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34078 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34080 LIBOBJS=$ac_libobjs
34082 LTLIBOBJS=$ac_ltlibobjs
34085 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34086 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34087 Usually this means the macro was only invoked conditionally." >&5
34088 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34089 Usually this means the macro was only invoked conditionally." >&2;}
34090 { (exit 1); exit 1; }; }
34092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34093 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34094 Usually this means the macro was only invoked conditionally." >&5
34095 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34096 Usually this means the macro was only invoked conditionally." >&2;}
34097 { (exit 1); exit 1; }; }
34099 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34100 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34101 Usually this means the macro was only invoked conditionally." >&5
34102 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34103 Usually this means the macro was only invoked conditionally." >&2;}
34104 { (exit 1); exit 1; }; }
34106 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34107 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34108 Usually this means the macro was only invoked conditionally." >&5
34109 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34110 Usually this means the macro was only invoked conditionally." >&2;}
34111 { (exit 1); exit 1; }; }
34113 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34114 { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34115 Usually this means the macro was only invoked conditionally." >&5
34116 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34117 Usually this means the macro was only invoked conditionally." >&2;}
34118 { (exit 1); exit 1; }; }
34120 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34121 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34122 Usually this means the macro was only invoked conditionally." >&5
34123 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34124 Usually this means the macro was only invoked conditionally." >&2;}
34125 { (exit 1); exit 1; }; }
34127 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34128 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34129 Usually this means the macro was only invoked conditionally." >&5
34130 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34131 Usually this means the macro was only invoked conditionally." >&2;}
34132 { (exit 1); exit 1; }; }
34134 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34135 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34136 Usually this means the macro was only invoked conditionally." >&5
34137 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34138 Usually this means the macro was only invoked conditionally." >&2;}
34139 { (exit 1); exit 1; }; }
34141 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34142 { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34143 Usually this means the macro was only invoked conditionally." >&5
34144 echo "$as_me: error: conditional \"DOC\" was never defined.
34145 Usually this means the macro was only invoked conditionally." >&2;}
34146 { (exit 1); exit 1; }; }
34148 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34149 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34150 Usually this means the macro was only invoked conditionally." >&5
34151 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34152 Usually this means the macro was only invoked conditionally." >&2;}
34153 { (exit 1); exit 1; }; }
34155 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34156 { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&5
34158 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34159 Usually this means the macro was only invoked conditionally." >&2;}
34160 { (exit 1); exit 1; }; }
34162 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34163 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&5
34165 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34166 Usually this means the macro was only invoked conditionally." >&2;}
34167 { (exit 1); exit 1; }; }
34169 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34170 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34171 Usually this means the macro was only invoked conditionally." >&5
34172 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34173 Usually this means the macro was only invoked conditionally." >&2;}
34174 { (exit 1); exit 1; }; }
34176 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34177 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34178 Usually this means the macro was only invoked conditionally." >&5
34179 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34180 Usually this means the macro was only invoked conditionally." >&2;}
34181 { (exit 1); exit 1; }; }
34183 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34184 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34185 Usually this means the macro was only invoked conditionally." >&5
34186 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34187 Usually this means the macro was only invoked conditionally." >&2;}
34188 { (exit 1); exit 1; }; }
34190 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34191 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34192 Usually this means the macro was only invoked conditionally." >&5
34193 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34194 Usually this means the macro was only invoked conditionally." >&2;}
34195 { (exit 1); exit 1; }; }
34197 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34198 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34199 Usually this means the macro was only invoked conditionally." >&5
34200 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34201 Usually this means the macro was only invoked conditionally." >&2;}
34202 { (exit 1); exit 1; }; }
34205 : ${CONFIG_STATUS=./config.status}
34206 ac_clean_files_save=$ac_clean_files
34207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34210 cat >$CONFIG_STATUS <<_ACEOF
34212 # Generated by $as_me.
34213 # Run this file to recreate the current configuration.
34214 # Compiler output produced by configure, useful for debugging
34215 # configure, is in config.log if it exists.
34218 ac_cs_recheck=false
34220 SHELL=\${CONFIG_SHELL-$SHELL}
34223 cat >>$CONFIG_STATUS <<\_ACEOF
34224 ## --------------------- ##
34225 ## M4sh Initialization. ##
34226 ## --------------------- ##
34228 # Be Bourne compatible
34229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34233 # is contrary to our usage. Disable this feature.
34234 alias -g '${1+"$@"}'='"$@"'
34235 setopt NO_GLOB_SUBST
34237 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34239 BIN_SH=xpg4; export BIN_SH # for Tru64
34240 DUALCASE=1; export DUALCASE # for MKS sh
34244 # Avoid depending upon Character Ranges.
34245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34248 as_cr_digits='0123456789'
34249 as_cr_alnum=$as_cr_Letters$as_cr_digits
34251 # The user is always right.
34252 if test "${PATH_SEPARATOR+set}" != set; then
34253 echo "#! /bin/sh" >conf$$.sh
34254 echo "exit 0" >>conf$$.sh
34256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34264 # Support unset when possible.
34265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34273 # We need space, tab and new line, in precisely that order. Quoting is
34274 # there to prevent editors from complaining about space-tab.
34275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34276 # splitting by setting IFS to empty value.)
34281 # Find who we are. Look in the path if we contain no directory separator.
34283 *[\\/]* ) as_myself=$0 ;;
34284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34285 for as_dir in $PATH
34288 test -z "$as_dir" && as_dir=.
34289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34295 # We did not find ourselves, most probably we were run as `sh COMMAND'
34296 # in which case we are not to be found in the path.
34297 if test "x$as_myself" = x; then
34300 if test ! -f "$as_myself"; then
34301 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34302 { (exit 1); exit 1; }
34305 # Work around bugs in pre-3.0 UWIN ksh.
34306 for as_var in ENV MAIL MAILPATH
34307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34315 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34316 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34317 LC_TELEPHONE LC_TIME
34319 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34320 eval $as_var=C; export $as_var
34322 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34326 # Required to use basename.
34327 if expr a : '\(a\)' >/dev/null 2>&1 &&
34328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34335 as_basename=basename
34341 # Name of the executable.
34342 as_me=`$as_basename -- "$0" ||
34343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34344 X"$0" : 'X\(//\)$' \| \
34345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34347 sed '/^.*\/\([^/][^/]*\)\/*$/{
34366 as_lineno_1=$LINENO
34367 as_lineno_2=$LINENO
34368 test "x$as_lineno_1" != "x$as_lineno_2" &&
34369 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34371 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34372 # uniformly replaced by the line number. The first 'sed' inserts a
34373 # line-number line after each line using $LINENO; the second 'sed'
34374 # does the real work. The second script uses 'N' to pair each
34375 # line-number line with the line containing $LINENO, and appends
34376 # trailing '-' during substitution so that $LINENO is not a special
34377 # case at line end.
34378 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34379 # scripts with optimization help from Paolo Bonzini. Blame Lee
34380 # E. McMahon (1931-1989) for sed's syntax. :-)
34392 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34395 ' >$as_me.lineno &&
34396 chmod +x "$as_me.lineno" ||
34397 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34398 { (exit 1); exit 1; }; }
34400 # Don't try to exec as it changes $[0], causing all sort of problems
34401 # (the dirname of $[0] is not the place where we might find the
34402 # original and so on. Autoconf is especially sensitive to this).
34403 . "./$as_me.lineno"
34404 # Exit status is that of the last command.
34409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34415 ECHO_C= ECHO_N= ECHO_T=
34416 case `echo -n x` in
34418 case `echo 'x\c'` in
34419 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34426 if expr a : '\(a\)' >/dev/null 2>&1 &&
34427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34433 rm -f conf$$ conf$$.exe conf$$.file
34434 if test -d conf$$.dir; then
34435 rm -f conf$$.dir/conf$$.file
34441 if ln -s conf$$.file conf$$ 2>/dev/null; then
34443 # ... but there are two gotchas:
34444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34446 # In both cases, we have to default to `cp -p'.
34447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34449 elif ln conf$$.file conf$$ 2>/dev/null; then
34454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34455 rmdir conf$$.dir 2>/dev/null
34457 if mkdir -p . 2>/dev/null; then
34460 test -d ./-p && rmdir ./-p
34464 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34465 # systems may use methods other than mode bits to determine executability.
34466 cat >conf$$.file <<_ASEOF
34470 chmod +x conf$$.file
34471 if test -x conf$$.file >/dev/null 2>&1; then
34472 as_executable_p="test -x"
34478 # Sed expression to map a string onto a valid CPP name.
34479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34481 # Sed expression to map a string onto a valid variable name.
34482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34487 # Save the log message, to keep $[0] and so on meaningful, and to
34488 # report actual input values of CONFIG_FILES etc. instead of their
34489 # values after options handling.
34491 This file was extended by $as_me, which was
34492 generated by GNU Autoconf 2.60. Invocation command line was
34494 CONFIG_FILES = $CONFIG_FILES
34495 CONFIG_HEADERS = $CONFIG_HEADERS
34496 CONFIG_LINKS = $CONFIG_LINKS
34497 CONFIG_COMMANDS = $CONFIG_COMMANDS
34500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34505 cat >>$CONFIG_STATUS <<_ACEOF
34506 # Files that config.status was made for.
34507 config_files="$ac_config_files"
34508 config_headers="$ac_config_headers"
34509 config_commands="$ac_config_commands"
34513 cat >>$CONFIG_STATUS <<\_ACEOF
34515 \`$as_me' instantiates files from templates according to the
34516 current configuration.
34518 Usage: $0 [OPTIONS] [FILE]...
34520 -h, --help print this help, then exit
34521 -V, --version print version number, then exit
34522 -q, --quiet do not print progress messages
34523 -d, --debug don't remove temporary files
34524 --recheck update $as_me by reconfiguring in the same conditions
34525 --file=FILE[:TEMPLATE]
34526 instantiate the configuration file FILE
34527 --header=FILE[:TEMPLATE]
34528 instantiate the configuration header FILE
34530 Configuration files:
34533 Configuration headers:
34536 Configuration commands:
34539 Report bugs to <bug-autoconf@gnu.org>."
34542 cat >>$CONFIG_STATUS <<_ACEOF
34545 configured by $0, generated by GNU Autoconf 2.60,
34546 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34548 Copyright (C) 2006 Free Software Foundation, Inc.
34549 This config.status script is free software; the Free Software Foundation
34550 gives unlimited permission to copy, distribute and modify it."
34557 cat >>$CONFIG_STATUS <<\_ACEOF
34558 # If no file are specified by the user, then we need to provide default
34559 # value. By we need to know if files were specified by the user.
34565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34577 # Handling of the options.
34578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34581 echo "$ac_cs_version"; exit ;;
34582 --debug | --debu | --deb | --de | --d | -d )
34584 --file | --fil | --fi | --f )
34586 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34587 ac_need_defaults=false;;
34588 --header | --heade | --head | --hea )
34590 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34591 ac_need_defaults=false;;
34593 # Conflict between --help and --header
34594 { echo "$as_me: error: ambiguous option: $1
34595 Try \`$0 --help' for more information." >&2
34596 { (exit 1); exit 1; }; };;
34597 --help | --hel | -h )
34598 echo "$ac_cs_usage"; exit ;;
34599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34603 # This is an error.
34604 -*) { echo "$as_me: error: unrecognized option: $1
34605 Try \`$0 --help' for more information." >&2
34606 { (exit 1); exit 1; }; } ;;
34608 *) ac_config_targets="$ac_config_targets $1"
34609 ac_need_defaults=false ;;
34615 ac_configure_extra_args=
34617 if $ac_cs_silent; then
34619 ac_configure_extra_args="$ac_configure_extra_args --silent"
34623 cat >>$CONFIG_STATUS <<_ACEOF
34624 if \$ac_cs_recheck; then
34625 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34626 CONFIG_SHELL=$SHELL
34627 export CONFIG_SHELL
34628 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34632 cat >>$CONFIG_STATUS <<\_ACEOF
34636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34637 ## Running $as_me. ##
34643 cat >>$CONFIG_STATUS <<_ACEOF
34647 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34651 cat >>$CONFIG_STATUS <<\_ACEOF
34653 # Handling of arguments.
34654 for ac_config_target in $ac_config_targets
34656 case $ac_config_target in
34657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34659 "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34660 "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34661 "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34662 "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34663 "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34664 "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34665 "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34666 "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34667 "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34668 "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34669 "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34670 "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34671 "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34672 "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34673 "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34674 "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34675 "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34676 "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34677 "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34678 "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34679 "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34680 "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34681 "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34682 "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34683 "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34684 "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34685 "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34686 "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34687 "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34688 "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34689 "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34690 "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34691 "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34692 "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34693 "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34694 "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34695 "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34696 "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34697 "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34698 "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34699 "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34700 "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34701 "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34702 "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34703 "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34704 "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34705 "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34706 "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34707 "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34708 "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34709 "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34710 "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34711 "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34712 "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34713 "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34714 "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34715 "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34716 "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34717 "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34718 "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34719 "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34720 "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34721 "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34722 "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34723 "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34724 "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34725 "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34726 "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34727 "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34728 "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34729 "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34730 "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34731 "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34732 "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34733 "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34734 "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34735 "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34736 "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34737 "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34738 "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34739 "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34740 "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34741 "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34742 "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34743 "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34744 "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34745 "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34746 "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34747 "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34748 "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34749 "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34750 "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34751 "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34752 "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34753 "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34754 "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34755 "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34756 "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34757 "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34758 "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34759 "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34760 "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34761 "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34762 "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34763 "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34764 "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34765 "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34766 "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34767 "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34768 "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34769 "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34770 "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34771 "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34772 "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34773 "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34774 "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34775 "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34776 "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34777 "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34778 "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34779 "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34780 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34781 "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34782 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34783 "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34785 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34786 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34787 { (exit 1); exit 1; }; };;
34792 # If the user did not use the arguments to specify the items to instantiate,
34793 # then the envvar interface is used. Set only those that are not.
34794 # We use the long form for the default assignment because of an extremely
34795 # bizarre bug on SunOS 4.1.3.
34796 if $ac_need_defaults; then
34797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34802 # Have a temporary directory for convenience. Make it in the build tree
34803 # simply because there is no reason against having it here, and in addition,
34804 # creating and moving files from /tmp can sometimes cause problems.
34805 # Hook for its removal unless debugging.
34806 # Note that there is a small window in which the directory will not be cleaned:
34807 # after its creation but before its name has been assigned to `$tmp'.
34811 trap 'exit_status=$?
34812 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34814 trap '{ (exit 1); exit 1; }' 1 2 13 15
34816 # Create a (secure) tmp directory for tmp files.
34819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34820 test -n "$tmp" && test -d "$tmp"
34823 tmp=./conf$$-$RANDOM
34824 (umask 077 && mkdir "$tmp")
34827 echo "$me: cannot create a temporary directory in ." >&2
34828 { (exit 1); exit 1; }
34832 # Set up the sed scripts for CONFIG_FILES section.
34835 # No need to generate the scripts if there are no CONFIG_FILES.
34836 # This happens for instance when ./config.status config.h
34837 if test -n "$CONFIG_FILES"; then
34844 for ac_last_try in false false false false false :; do
34845 cat >conf$$subs.sed <<_ACEOF
34846 SHELL!$SHELL$ac_delim
34847 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34848 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34849 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34850 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34851 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34852 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34853 exec_prefix!$exec_prefix$ac_delim
34854 prefix!$prefix$ac_delim
34855 program_transform_name!$program_transform_name$ac_delim
34856 bindir!$bindir$ac_delim
34857 sbindir!$sbindir$ac_delim
34858 libexecdir!$libexecdir$ac_delim
34859 datarootdir!$datarootdir$ac_delim
34860 datadir!$datadir$ac_delim
34861 sysconfdir!$sysconfdir$ac_delim
34862 sharedstatedir!$sharedstatedir$ac_delim
34863 localstatedir!$localstatedir$ac_delim
34864 includedir!$includedir$ac_delim
34865 oldincludedir!$oldincludedir$ac_delim
34866 docdir!$docdir$ac_delim
34867 infodir!$infodir$ac_delim
34868 htmldir!$htmldir$ac_delim
34869 dvidir!$dvidir$ac_delim
34870 pdfdir!$pdfdir$ac_delim
34871 psdir!$psdir$ac_delim
34872 libdir!$libdir$ac_delim
34873 localedir!$localedir$ac_delim
34874 mandir!$mandir$ac_delim
34875 DEFS!$DEFS$ac_delim
34876 ECHO_C!$ECHO_C$ac_delim
34877 ECHO_N!$ECHO_N$ac_delim
34878 ECHO_T!$ECHO_T$ac_delim
34879 LIBS!$LIBS$ac_delim
34880 build_alias!$build_alias$ac_delim
34881 host_alias!$host_alias$ac_delim
34882 target_alias!$target_alias$ac_delim
34883 build!$build$ac_delim
34884 build_cpu!$build_cpu$ac_delim
34885 build_vendor!$build_vendor$ac_delim
34886 build_os!$build_os$ac_delim
34887 host!$host$ac_delim
34888 host_cpu!$host_cpu$ac_delim
34889 host_vendor!$host_vendor$ac_delim
34890 host_os!$host_os$ac_delim
34891 target!$target$ac_delim
34892 target_cpu!$target_cpu$ac_delim
34893 target_vendor!$target_vendor$ac_delim
34894 target_os!$target_os$ac_delim
34895 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34896 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34897 INSTALL_DATA!$INSTALL_DATA$ac_delim
34898 CYGPATH_W!$CYGPATH_W$ac_delim
34899 PACKAGE!$PACKAGE$ac_delim
34900 VERSION!$VERSION$ac_delim
34901 ACLOCAL!$ACLOCAL$ac_delim
34902 AUTOCONF!$AUTOCONF$ac_delim
34903 AUTOMAKE!$AUTOMAKE$ac_delim
34904 AUTOHEADER!$AUTOHEADER$ac_delim
34905 MAKEINFO!$MAKEINFO$ac_delim
34906 install_sh!$install_sh$ac_delim
34907 STRIP!$STRIP$ac_delim
34908 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34909 mkdir_p!$mkdir_p$ac_delim
34911 SET_MAKE!$SET_MAKE$ac_delim
34912 am__leading_dot!$am__leading_dot$ac_delim
34913 AMTAR!$AMTAR$ac_delim
34914 am__tar!$am__tar$ac_delim
34915 am__untar!$am__untar$ac_delim
34917 CFLAGS!$CFLAGS$ac_delim
34918 LDFLAGS!$LDFLAGS$ac_delim
34919 CPPFLAGS!$CPPFLAGS$ac_delim
34920 ac_ct_CC!$ac_ct_CC$ac_delim
34921 EXEEXT!$EXEEXT$ac_delim
34922 OBJEXT!$OBJEXT$ac_delim
34923 DEPDIR!$DEPDIR$ac_delim
34924 am__include!$am__include$ac_delim
34925 am__quote!$am__quote$ac_delim
34926 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34927 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34928 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34929 CCDEPMODE!$CCDEPMODE$ac_delim
34930 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34931 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34933 GREP!$GREP$ac_delim
34934 EGREP!$EGREP$ac_delim
34936 CXXFLAGS!$CXXFLAGS$ac_delim
34937 ac_ct_CXX!$ac_ct_CXX$ac_delim
34938 CXXDEPMODE!$CXXDEPMODE$ac_delim
34939 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34940 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34941 CXXCPP!$CXXCPP$ac_delim
34942 CCAS!$CCAS$ac_delim
34945 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34947 elif $ac_last_try; then
34948 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34949 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34950 { (exit 1); exit 1; }; }
34952 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34956 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34957 if test -n "$ac_eof"; then
34958 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34959 ac_eof=`expr $ac_eof + 1`
34962 cat >>$CONFIG_STATUS <<_ACEOF
34963 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34968 s/^/s,@/; s/!/@,|#_!!_#|/
34971 s/'"$ac_delim"'$/,g/; t
34973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34974 ' >>$CONFIG_STATUS <conf$$subs.sed
34975 rm -f conf$$subs.sed
34976 cat >>$CONFIG_STATUS <<_ACEOF
34982 for ac_last_try in false false false false false :; do
34983 cat >conf$$subs.sed <<_ACEOF
34984 CCASFLAGS!$CCASFLAGS$ac_delim
34985 LN_S!$LN_S$ac_delim
34986 RM_PROG!$RM_PROG$ac_delim
34987 ECHO!$ECHO$ac_delim
34989 RANLIB!$RANLIB$ac_delim
34990 DLLTOOL!$DLLTOOL$ac_delim
34992 OBJDUMP!$OBJDUMP$ac_delim
34994 FFLAGS!$FFLAGS$ac_delim
34995 ac_ct_F77!$ac_ct_F77$ac_delim
34996 LIBTOOL!$LIBTOOL$ac_delim
34997 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
34998 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
34999 FLIBS!$FLIBS$ac_delim
35000 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
35001 SWIG!$SWIG$ac_delim
35002 PYTHON!$PYTHON$ac_delim
35003 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
35004 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
35005 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
35006 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
35007 pythondir!$pythondir$ac_delim
35008 pkgpythondir!$pkgpythondir$ac_delim
35009 pyexecdir!$pyexecdir$ac_delim
35010 pkgpyexecdir!$pkgpyexecdir$ac_delim
35011 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35012 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35013 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35014 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35015 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35016 XMLTO!$XMLTO$ac_delim
35017 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35018 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35019 PTHREAD_CC!$PTHREAD_CC$ac_delim
35020 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35021 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35022 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35023 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35024 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35025 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35026 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35027 IPC_LIBS!$IPC_LIBS$ac_delim
35028 ALLOCA!$ALLOCA$ac_delim
35029 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35030 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35031 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35032 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35033 LIBOBJS!$LIBOBJS$ac_delim
35034 HAVE_DOT!$HAVE_DOT$ac_delim
35035 PKG_CONFIG!$PKG_CONFIG$ac_delim
35036 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35037 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35038 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35039 DOXYGEN!$DOXYGEN$ac_delim
35041 DOC_TRUE!$DOC_TRUE$ac_delim
35042 DOC_FALSE!$DOC_FALSE$ac_delim
35043 enable_dot!$enable_dot$ac_delim
35044 enable_html_docs!$enable_html_docs$ac_delim
35045 enable_latex_docs!$enable_latex_docs$ac_delim
35046 generate_docs!$generate_docs$ac_delim
35047 MD_CPU!$MD_CPU$ac_delim
35048 MD_SUBCPU!$MD_SUBCPU$ac_delim
35049 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35050 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35051 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35052 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35053 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35054 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35055 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35056 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35057 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35058 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35059 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35060 DEFINES!$DEFINES$ac_delim
35061 USB_LIBS!$USB_LIBS$ac_delim
35062 FUSB_TECH!$FUSB_TECH$ac_delim
35063 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35064 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35065 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35066 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35067 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35068 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35069 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35070 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35071 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35072 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35075 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35076 ALSA_LIBS!$ALSA_LIBS$ac_delim
35077 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35078 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35079 JACK_LIBS!$JACK_LIBS$ac_delim
35080 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35083 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35085 elif $ac_last_try; then
35086 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35088 { (exit 1); exit 1; }; }
35090 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35095 if test -n "$ac_eof"; then
35096 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35097 ac_eof=`expr $ac_eof + 1`
35100 cat >>$CONFIG_STATUS <<_ACEOF
35101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35106 s/^/s,@/; s/!/@,|#_!!_#|/
35109 s/'"$ac_delim"'$/,g/; t
35111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35112 ' >>$CONFIG_STATUS <conf$$subs.sed
35113 rm -f conf$$subs.sed
35114 cat >>$CONFIG_STATUS <<_ACEOF
35120 for ac_last_try in false false false false false :; do
35121 cat >conf$$subs.sed <<_ACEOF
35122 OSS_LIBS!$OSS_LIBS$ac_delim
35123 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35124 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35125 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35126 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35127 SDL_CONFIG!$SDL_CONFIG$ac_delim
35128 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35129 SDL_LIBS!$SDL_LIBS$ac_delim
35130 build_dirs!$build_dirs$ac_delim
35131 skipped_dirs!$skipped_dirs$ac_delim
35132 LTLIBOBJS!$LTLIBOBJS$ac_delim
35135 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35137 elif $ac_last_try; then
35138 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35140 { (exit 1); exit 1; }; }
35142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35146 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35147 if test -n "$ac_eof"; then
35148 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35149 ac_eof=`expr $ac_eof + 1`
35152 cat >>$CONFIG_STATUS <<_ACEOF
35153 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35158 s/^/s,@/; s/!/@,|#_!!_#|/
35161 s/'"$ac_delim"'$/,g/; t
35163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35164 ' >>$CONFIG_STATUS <conf$$subs.sed
35165 rm -f conf$$subs.sed
35166 cat >>$CONFIG_STATUS <<_ACEOF
35173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35175 # trailing colons and then remove the whole line if VPATH becomes empty
35176 # (actually we leave an empty line to preserve line numbers).
35177 if test "x$srcdir" = x.; then
35178 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35179 s/:*\$(srcdir):*/:/
35180 s/:*\${srcdir}:*/:/
35182 s/^\([^=]*=[ ]*\):*/\1/
35188 cat >>$CONFIG_STATUS <<\_ACEOF
35189 fi # test -n "$CONFIG_FILES"
35192 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35195 :[FHLC]) ac_mode=$ac_tag; continue;;
35197 case $ac_mode$ac_tag in
35199 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35200 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35201 { (exit 1); exit 1; }; };;
35202 :[FH]-) ac_tag=-:-;;
35203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35220 -) ac_f="$tmp/stdin";;
35221 *) # Look for the file first in the build tree, then in the source tree
35222 # (if the path is not absolute). The absolute path cannot be DOS-style,
35223 # because $ac_f cannot contain `:'.
35227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35229 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35230 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35231 { (exit 1); exit 1; }; };;
35233 ac_file_inputs="$ac_file_inputs $ac_f"
35236 # Let's still pretend it is `configure' which instantiates (i.e., don't
35237 # use $as_me), people would be surprised to read:
35238 # /* config.h. Generated by config.status. */
35239 configure_input="Generated from "`IFS=:
35240 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35241 if test x"$ac_file" != x-; then
35242 configure_input="$ac_file. $configure_input"
35243 { echo "$as_me:$LINENO: creating $ac_file" >&5
35244 echo "$as_me: creating $ac_file" >&6;}
35248 *:-:* | *:-) cat >"$tmp/stdin";;
35253 ac_dir=`$as_dirname -- "$ac_file" ||
35254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35255 X"$ac_file" : 'X\(//\)[^/]' \| \
35256 X"$ac_file" : 'X\(//\)$' \| \
35257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35263 /^X\(\/\/\)[^/].*/{
35278 -*) as_dir=./$as_dir;;
35280 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35284 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35285 *) as_qdir=$as_dir;;
35287 as_dirs="'$as_qdir' $as_dirs"
35288 as_dir=`$as_dirname -- "$as_dir" ||
35289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35290 X"$as_dir" : 'X\(//\)[^/]' \| \
35291 X"$as_dir" : 'X\(//\)$' \| \
35292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35298 /^X\(\/\/\)[^/].*/{
35311 test -d "$as_dir" && break
35313 test -z "$as_dirs" || eval "mkdir $as_dirs"
35314 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35315 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35316 { (exit 1); exit 1; }; }; }
35320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35323 # A ".." for each directory in $ac_dir_suffix.
35324 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35325 case $ac_top_builddir_sub in
35326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35330 ac_abs_top_builddir=$ac_pwd
35331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35332 # for backward compatibility:
35333 ac_top_builddir=$ac_top_build_prefix
35336 .) # We are building in place.
35338 ac_top_srcdir=$ac_top_builddir_sub
35339 ac_abs_top_srcdir=$ac_pwd ;;
35340 [\\/]* | ?:[\\/]* ) # Absolute name.
35341 ac_srcdir=$srcdir$ac_dir_suffix;
35342 ac_top_srcdir=$srcdir
35343 ac_abs_top_srcdir=$srcdir ;;
35344 *) # Relative name.
35345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35346 ac_top_srcdir=$ac_top_build_prefix$srcdir
35347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35364 cat >>$CONFIG_STATUS <<\_ACEOF
35365 # If the template does not know about datarootdir, expand it.
35366 # FIXME: This hack should be removed a few years after 2.60.
35367 ac_datarootdir_hack=; ac_datarootdir_seen=
35369 case `sed -n '/datarootdir/ {
35378 ' $ac_file_inputs` in
35379 *datarootdir*) ac_datarootdir_seen=yes;;
35380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35381 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35384 cat >>$CONFIG_STATUS <<_ACEOF
35385 ac_datarootdir_hack='
35386 s&@datadir@&$datadir&g
35387 s&@docdir@&$docdir&g
35388 s&@infodir@&$infodir&g
35389 s&@localedir@&$localedir&g
35390 s&@mandir@&$mandir&g
35391 s&\\\${datarootdir}&$datarootdir&g' ;;
35395 # Neutralize VPATH when `$srcdir' = `.'.
35396 # Shell code in configure.ac might set extrasub.
35397 # FIXME: do we really want to maintain this feature?
35398 cat >>$CONFIG_STATUS <<_ACEOF
35402 cat >>$CONFIG_STATUS <<\_ACEOF
35404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35405 s&@configure_input@&$configure_input&;t t
35406 s&@top_builddir@&$ac_top_builddir_sub&;t t
35407 s&@srcdir@&$ac_srcdir&;t t
35408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35409 s&@top_srcdir@&$ac_top_srcdir&;t t
35410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35411 s&@builddir@&$ac_builddir&;t t
35412 s&@abs_builddir@&$ac_abs_builddir&;t t
35413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35414 s&@INSTALL@&$ac_INSTALL&;t t
35415 $ac_datarootdir_hack
35416 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35421 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35422 which seems to be undefined. Please make sure it is defined." >&5
35423 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35424 which seems to be undefined. Please make sure it is defined." >&2;}
35428 -) cat "$tmp/out"; rm -f "$tmp/out";;
35429 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35438 # Transform confdefs.h into a sed script `conftest.defines', that
35439 # substitutes the proper values into config.h.in to produce config.h.
35440 rm -f conftest.defines conftest.tail
35441 # First, append a space to every undef/define line, to ease matching.
35442 echo 's/$/ /' >conftest.defines
35443 # Then, protect against being on the right side of a sed subst, or in
35444 # an unquoted here document, in config.status. If some macros were
35445 # called several times there might be several #defines for the same
35446 # symbol, which is useless. But do not sort them, since the last
35447 # AC_DEFINE must be honored.
35448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35449 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35450 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35451 # PARAMS is the parameter list in the macro definition--in most cases, it's
35452 # just an empty string.
35453 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35454 ac_dB='\\)[ (].*,\\1define\\2'
35462 s/^[ ]*#[ ]*define[ ][ ]*//
35467 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35468 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35469 ' >>conftest.defines
35471 # Remove the space that was appended to ease matching.
35472 # Then replace #undef with comments. This is necessary, for
35473 # example, in the case of _POSIX_SOURCE, which is predefined and required
35474 # on some systems where configure will not decide to define it.
35475 # (The regexp can be short, since the line contains either #define or #undef.)
35477 s,^[ #]*u.*,/* & */,' >>conftest.defines
35479 # Break up conftest.defines:
35480 ac_max_sed_lines=50
35482 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35483 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35484 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35486 ac_in='$ac_file_inputs'
35487 ac_out='"$tmp/out1"'
35488 ac_nxt='"$tmp/out2"'
35492 # Write a here document:
35493 cat >>$CONFIG_STATUS <<_ACEOF
35494 # First, check the format of the line:
35495 cat >"\$tmp/defines.sed" <<\\CEOF
35496 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35497 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35501 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35503 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35504 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35505 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35506 grep . conftest.tail >/dev/null || break
35507 rm -f conftest.defines
35508 mv conftest.tail conftest.defines
35510 rm -f conftest.defines conftest.tail
35512 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35513 cat >>$CONFIG_STATUS <<\_ACEOF
35514 if test x"$ac_file" != x-; then
35515 echo "/* $configure_input */" >"$tmp/config.h"
35516 cat "$ac_result" >>"$tmp/config.h"
35517 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35518 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35519 echo "$as_me: $ac_file is unchanged" >&6;}
35522 mv "$tmp/config.h" $ac_file
35525 echo "/* $configure_input */"
35529 # Compute $ac_file's index in $config_headers.
35531 for _am_header in $config_headers :; do
35532 case $_am_header in
35533 $ac_file | $ac_file:* )
35536 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35539 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35540 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35541 X$ac_file : 'X\(//\)[^/]' \| \
35542 X$ac_file : 'X\(//\)$' \| \
35543 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35549 /^X\(\/\/\)[^/].*/{
35561 s/.*/./; q'`/stamp-h$_am_stamp_count
35564 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35565 echo "$as_me: executing $ac_file commands" >&6;}
35570 case $ac_file$ac_mode in
35571 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35572 # Strip MF so we end up with the name of the file.
35573 mf=`echo "$mf" | sed -e 's/:.*$//'`
35574 # Check whether this is an Automake generated Makefile or not.
35575 # We used to match only the files named `Makefile.in', but
35576 # some people rename them; so instead we look at the file content.
35577 # Grep'ing the first line is not enough: some people post-process
35578 # each Makefile.in and add a new line on top of each file to say so.
35579 # So let's grep whole file.
35580 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35581 dirpart=`$as_dirname -- "$mf" ||
35582 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35583 X"$mf" : 'X\(//\)[^/]' \| \
35584 X"$mf" : 'X\(//\)$' \| \
35585 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35591 /^X\(\/\/\)[^/].*/{
35607 # Extract the definition of DEPDIR, am__include, and am__quote
35608 # from the Makefile without running `make'.
35609 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35610 test -z "$DEPDIR" && continue
35611 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35612 test -z "am__include" && continue
35613 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35614 # When using ansi2knr, U may be empty or an underscore; expand it
35615 U=`sed -n 's/^U = //p' < "$mf"`
35616 # Find all dependency output files, they are included files with
35617 # $(DEPDIR) in their names. We invoke sed twice because it is the
35618 # simplest approach to changing $(DEPDIR) to its actual value in the
35620 for file in `sed -n "
35621 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35622 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35623 # Make sure the directory exists.
35624 test -f "$dirpart/$file" && continue
35625 fdir=`$as_dirname -- "$file" ||
35626 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35627 X"$file" : 'X\(//\)[^/]' \| \
35628 X"$file" : 'X\(//\)$' \| \
35629 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35635 /^X\(\/\/\)[^/].*/{
35648 { as_dir=$dirpart/$fdir
35650 -*) as_dir=./$as_dir;;
35652 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35656 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35657 *) as_qdir=$as_dir;;
35659 as_dirs="'$as_qdir' $as_dirs"
35660 as_dir=`$as_dirname -- "$as_dir" ||
35661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35662 X"$as_dir" : 'X\(//\)[^/]' \| \
35663 X"$as_dir" : 'X\(//\)$' \| \
35664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35670 /^X\(\/\/\)[^/].*/{
35683 test -d "$as_dir" && break
35685 test -z "$as_dirs" || eval "mkdir $as_dirs"
35686 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35687 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35688 { (exit 1); exit 1; }; }; }
35689 # echo "creating $dirpart/$file"
35690 echo '# dummy' > "$dirpart/$file"
35694 "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35695 "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35696 "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35697 "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35698 "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35699 "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35700 "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35701 "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35702 "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35703 "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35704 "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35705 "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35706 "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35707 "run_tests_build":C) chmod +x run_tests.sh ;;
35713 { (exit 0); exit 0; }
35715 chmod +x $CONFIG_STATUS
35716 ac_clean_files=$ac_clean_files_save
35719 # configure is writing to config.log, and then calls config.status.
35720 # config.status does its own redirection, appending to config.log.
35721 # Unfortunately, on DOS this fails, as config.log is still kept open
35722 # by configure, so config.status won't be able to write to it; its
35723 # output is simply discarded. So we exec the FD to /dev/null,
35724 # effectively closing config.log, so it can be properly (re)opened and
35725 # appended to by config.status. When coming back to configure, we
35726 # need to make the FD available again.
35727 if test "$no_create" != yes; then
35729 ac_config_status_args=
35730 test "$silent" = yes &&
35731 ac_config_status_args="$ac_config_status_args --quiet"
35733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35736 # would make configure fail if this is the last instruction.
35737 $ac_cs_success || { (exit 1); exit 1; }
35742 echo "*********************************************************************"
35743 echo The following GNU Radio components have been successfully configured:
35745 for dir in $build_dirs
35750 echo You my now run the 'make' command to build these components.
35752 if test "$skipped_dirs" != ""; then
35753 echo "*********************************************************************"
35754 echo The following components were skipped either because you asked not
35755 echo to build them or they didn\'t pass configuration checks:
35757 for dir in $skipped_dirs
35762 echo These components will not be built.