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
979 # Initialize some variables set by options.
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name=s,x,x,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105 eval enable_$ac_feature=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1269 -site=* | --site=* | --sit=*)
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_package=`echo $ac_package| sed 's/-/_/g'`
1302 eval with_$ac_package=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_package=`echo $ac_package | sed 's/-/_/g'`
1311 eval with_$ac_package=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 # Be sure to have absolute directory names.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
1419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448 { (exit 1); exit 1; }; }
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453 { (exit 1); exit 1; }; }
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1548 if test -n "$ac_init_help"; then
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --disable-dependency-tracking speeds up one-time build
1556 --enable-dependency-tracking do not reject slow dependency extractors
1557 --disable-assert don't use cpp.h assert
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=no]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --enable-fortran enable fortran (no)
1564 --enable-doxygen enable documentation generation with doxygen (no)
1565 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1566 --enable-html-docs enable HTML generation with doxygen (yes)
1567 --enable-latex-docs enable LaTeX doc generation with doxygen (no)
1568 --enable-all-components Build all components or stop on failed dependencies
1570 --enable-gnuradio-core Fail build if gnuradio-core fails configuration
1571 --enable-gnuradio-examples Fail build if gnuradio-examples fails configuration
1572 --enable-usrp Fail build if usrp fails configuration
1573 --enable-gr-usrp Fail build if gr-usrp fails configuration
1574 --enable-gr-audio-alsa Fail build if gr-audio-alsa fails configuration
1575 --enable-gr-audio-jack Fail build if gr-audio-jack fails configuration
1576 --enable-gr-audio-oss Fail build if gr-audio-oss fails configuration
1577 --enable-gr-audio-osx Fail build if gr-audio-osx fails configuration
1578 --enable-gr-audio-portaudio Fail build if gr-audio-portaudio fails configuration
1579 --enable-gr-audio-windows Fail build if gr-audio-windows fails configuration
1580 --enable-gr-gsm-fr-vocoder Fail build if gr-gsm-fr-vocoder fails configuration
1581 --enable-gr-radio-astronomy Fail build if gr-radio-astronomy fails configuration
1582 --enable-gr-trellis Fail build if gr-trellis fails configuration
1583 --enable-gr-video-sdl Fail build if gr-video-sdl fails configuration
1584 --disable-sdltest Do not try to compile and run a test SDL program
1585 --enable-gr-wxgui Fail build if gr-wxgui fails configuration
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-warnings Turn on warnings
1591 --with-gprof Turn on gprof profiling
1592 --with-prof Turn on prof profiling
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-pic try to use only PIC/non-PIC objects [default=use
1596 --with-tags[=TAGS] include additional configurations [automatic]
1597 --with-md-cpu=ARCH set machine dependent speedups (auto)
1598 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1599 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1600 --with-boost-include-dir=<path>
1601 path to boost c++ include files
1602 --with-fusb-tech=OS set fast usb technique (auto)
1603 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1604 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1617 CCAS assembler compiler command (defaults to CC)
1618 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1619 F77 Fortran 77 compiler command
1620 FFLAGS Fortran 77 compiler flags
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.60
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.60. Invocation command line was
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 echo "PATH: $as_dir"
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_must_keep_next=false
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1771 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 -* ) ac_must_keep_next=true ;;
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1816 # The following way of writing the cache mishandles newlines in values,
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 _ | IFS | as_nl) ;; #(
1828 *) $as_unset $ac_var ;;
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1853 for ac_var in $ac_subst_vars
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 echo "$ac_var='\''$ac_val'\''"
1863 if test -n "$ac_subst_files"; then
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1870 for ac_var in $ac_subst_files
1872 eval ac_val=\$$ac_var
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 echo "$ac_var='\''$ac_val'\''"
1881 if test -s confdefs.h; then
1891 test "$ac_signal" != 0 &&
1892 echo "$as_me: caught signal $ac_signal"
1893 echo "$as_me: exit $exit_status"
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1907 # Predefined preprocessor variables.
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_NAME "$PACKAGE_NAME"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934 # Let the site file select an alternate cache file if it wants to.
1935 # Prefer explicitly selected file to automatically selected ones.
1936 if test -n "$CONFIG_SITE"; then
1937 set x "$CONFIG_SITE"
1938 elif test "x$prefix" != xNONE; then
1939 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 set x "$ac_default_prefix/share/config.site" \
1942 "$ac_default_prefix/etc/config.site"
1947 if test -r "$ac_site_file"; then
1948 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 echo "$as_me: loading site script $ac_site_file" >&6;}
1950 sed 's/^/| /' "$ac_site_file" >&5
1955 if test -r "$cache_file"; then
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
1959 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 echo "$as_me: loading cache $cache_file" >&6;}
1962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
1967 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 echo "$as_me: creating cache $cache_file" >&6;}
1972 # Check that the precious variables saved in the cache have kept the same
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
1978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
1980 case $ac_old_set,$ac_new_set in
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
1992 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1995 echo "$as_me: former value: $ac_old_val" >&2;}
1996 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1997 echo "$as_me: current value: $ac_new_val" >&2;}
1998 ac_cache_corrupted=:
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2004 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 *) ac_arg=$ac_var=$ac_new_val ;;
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 if $ac_cache_corrupted; then
2014 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018 { (exit 1); exit 1; }; }
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045 ac_config_headers="$ac_config_headers config.h"
2048 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2049 if test -f "$ac_dir/install-sh"; then
2051 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 elif test -f "$ac_dir/install.sh"; then
2055 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 elif test -f "$ac_dir/shtool"; then
2059 ac_install_sh="$ac_aux_dir/shtool install -c"
2063 if test -z "$ac_aux_dir"; then
2064 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2065 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2066 { (exit 1); exit 1; }; }
2069 # These three variables are undocumented and unsupported,
2070 # and are intended to be withdrawn in a future Autoconf release.
2071 # They can cause serious problems if a builder's source tree is in a directory
2072 # whose full name contains unusual characters.
2073 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2074 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2075 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 # Make sure we can run config.sub.
2079 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2080 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2081 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2082 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: checking build system type" >&5
2085 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_build+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 ac_build_alias=$build_alias
2090 test "x$ac_build_alias" = x &&
2091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2092 test "x$ac_build_alias" = x &&
2093 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2094 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2095 { (exit 1); exit 1; }; }
2096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2097 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2098 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2099 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2103 echo "${ECHO_T}$ac_cv_build" >&6; }
2104 case $ac_cv_build in
2106 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2107 echo "$as_me: error: invalid value of canonical build" >&2;}
2108 { (exit 1); exit 1; }; };;
2111 ac_save_IFS=$IFS; IFS='-'
2117 # Remember, the first character of IFS is used to create $*,
2118 # except with old shells:
2121 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2124 { echo "$as_me:$LINENO: checking host system type" >&5
2125 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2126 if test "${ac_cv_host+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test "x$host_alias" = x; then
2130 ac_cv_host=$ac_cv_build
2132 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2133 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2134 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2135 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2140 echo "${ECHO_T}$ac_cv_host" >&6; }
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2144 echo "$as_me: error: invalid value of canonical host" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS=$IFS; IFS='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2161 { echo "$as_me:$LINENO: checking target system type" >&5
2162 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_target+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test "x$target_alias" = x; then
2167 ac_cv_target=$ac_cv_host
2169 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2177 echo "${ECHO_T}$ac_cv_target" >&6; }
2178 case $ac_cv_target in
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2181 echo "$as_me: error: invalid value of canonical target" >&2;}
2182 { (exit 1); exit 1; }; };;
2184 target=$ac_cv_target
2185 ac_save_IFS=$IFS; IFS='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2198 # The aliases save the names the user supplied, while $host etc.
2199 # will get canonicalized.
2200 test -n "$target_alias" &&
2201 test "$program_prefix$program_suffix$program_transform_name" = \
2203 program_prefix=${target_alias}-
2204 am__api_version="1.9"
2205 # Find a good install program. We prefer a C program (faster),
2206 # so one script is as good as another. But avoid the broken or
2207 # incompatible versions:
2208 # SysV /etc/install, /usr/sbin/install
2209 # SunOS /usr/etc/install
2210 # IRIX /sbin/install
2212 # AmigaOS /C/install, which installs bootblocks on floppy discs
2213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216 # OS/2's system install, which has a completely different semantic
2217 # ./install, which can be erroneously created by make from ./install.sh.
2218 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2219 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2220 if test -z "$INSTALL"; then
2221 if test "${ac_cv_path_install+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2231 ./ | .// | /cC/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2264 if test "${ac_cv_path_install+set}" = set; then
2265 INSTALL=$ac_cv_path_install
2267 # As a last resort, use the slow shell script. Don't cache a
2268 # value for INSTALL within a source directory, because that will
2269 # break other packages using the cache if that directory is
2270 # removed, or if the value is a relative name.
2271 INSTALL=$ac_install_sh
2274 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2275 echo "${ECHO_T}$INSTALL" >&6; }
2277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2278 # It thinks the first close brace ends the variable substitution.
2279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2285 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2286 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2289 echo timestamp > conftest.file
2290 # Do `set' in a subshell so we don't clobber the current shell's
2291 # arguments. Must try -L first in case configure is actually a
2292 # symlink; some systems play weird games with the mod time of symlinks
2293 # (eg FreeBSD returns the mod time of the symlink's containing
2296 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2297 if test "$*" = "X"; then
2299 set X `ls -t $srcdir/configure conftest.file`
2302 if test "$*" != "X $srcdir/configure conftest.file" \
2303 && test "$*" != "X conftest.file $srcdir/configure"; then
2305 # If neither matched, then we have a broken ls. This can happen
2306 # if, for instance, CONFIG_SHELL is bash and it inherits a
2307 # broken ls alias from the environment. This has actually
2308 # happened. Such a system could not be considered "sane".
2309 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2310 alias in your environment" >&5
2311 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2312 alias in your environment" >&2;}
2313 { (exit 1); exit 1; }; }
2316 test "$2" = conftest.file
2322 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2323 Check your system clock" >&5
2324 echo "$as_me: error: newly created file is older than distributed files!
2325 Check your system clock" >&2;}
2326 { (exit 1); exit 1; }; }
2328 { echo "$as_me:$LINENO: result: yes" >&5
2329 echo "${ECHO_T}yes" >&6; }
2330 test "$program_prefix" != NONE &&
2331 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2332 # Use a double $ so make ignores it.
2333 test "$program_suffix" != NONE &&
2334 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2335 # Double any \ or $. echo might interpret backslashes.
2336 # By default was `s,x,x', remove it if useless.
2337 cat <<\_ACEOF >conftest.sed
2338 s/[\\$]/&&/g;s/;s,x,x,$//
2340 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2343 # expand $ac_aux_dir to an absolute path
2344 am_aux_dir=`cd $ac_aux_dir && pwd`
2346 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2347 # Use eval to expand $SHELL
2348 if eval "$MISSING --run true"; then
2349 am_missing_run="$MISSING --run "
2352 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2353 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2356 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2357 # We used to keeping the `.' as first argument, in order to
2358 # allow $(mkdir_p) to be used without argument. As in
2359 # $(mkdir_p) $(somedir)
2360 # where $(somedir) is conditionally defined. However this is wrong
2362 # 1. if the package is installed by a user who cannot write `.'
2363 # make install will fail,
2364 # 2. the above comment should most certainly read
2365 # $(mkdir_p) $(DESTDIR)$(somedir)
2366 # so it does not work when $(somedir) is undefined and
2367 # $(DESTDIR) is not.
2368 # To support the latter case, we have to write
2369 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2370 # so the `.' trick is pointless.
2371 mkdir_p='mkdir -p --'
2373 # On NextStep and OpenStep, the `mkdir' command does not
2374 # recognize any option. It will interpret all options as
2375 # directories to create, and then abort because `.' already
2377 for d in ./-p ./--version;
2379 test -d $d && rmdir $d
2381 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2382 if test -f "$ac_aux_dir/mkinstalldirs"; then
2383 mkdir_p='$(mkinstalldirs)'
2385 mkdir_p='$(install_sh) -d'
2389 for ac_prog in gawk mawk nawk awk
2391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$AWK"; then
2399 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_AWK="$ac_prog"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$AWK"; then
2420 { echo "$as_me:$LINENO: result: $AWK" >&5
2421 echo "${ECHO_T}$AWK" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2428 test -n "$AWK" && break
2431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 cat >conftest.make <<\_ACEOF
2440 @echo '@@@%%%=$(MAKE)=@@@%%%'
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2445 eval ac_cv_prog_make_${ac_make}_set=yes;;
2447 eval ac_cv_prog_make_${ac_make}_set=no;;
2451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 SET_MAKE="MAKE=${MAKE-make}"
2461 rm -rf .tst 2>/dev/null
2462 mkdir .tst 2>/dev/null
2463 if test -d .tst; then
2468 rmdir .tst 2>/dev/null
2470 # test to see if srcdir already configured
2471 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2472 test -f $srcdir/config.status; then
2473 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475 { (exit 1); exit 1; }; }
2478 # test whether we have cygpath
2479 if test -z "$CYGPATH_W"; then
2480 if (cygpath --version) >/dev/null 2>/dev/null; then
2481 CYGPATH_W='cygpath -w'
2488 # Define the identity of the package.
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE "$PACKAGE"
2498 cat >>confdefs.h <<_ACEOF
2499 #define VERSION "$VERSION"
2502 # Some tools Automake needs.
2504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2518 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2520 # Installed binaries are usually stripped using `strip' when the user
2521 # run `make install-strip'. However `strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the `STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_STRIP+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$STRIP"; then
2534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555 { echo "$as_me:$LINENO: result: $STRIP" >&5
2556 echo "${ECHO_T}$STRIP" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2564 if test -z "$ac_cv_prog_STRIP"; then
2566 # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$ac_ct_STRIP"; then
2574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_ac_ct_STRIP="strip"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2596 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2602 if test "x$ac_ct_STRIP" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2618 STRIP="$ac_cv_prog_STRIP"
2622 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2624 # We need awk for the "check" target. The system "awk" is bad on
2626 # Always define AMTAR for backward compatibility.
2628 AMTAR=${AMTAR-"${am_missing_run}tar"}
2630 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2640 if test "$host_cpu" = "x86_64"; then
2641 { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2642 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2644 if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2646 { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2647 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2649 { echo "$as_me:$LINENO: result: yes" >&5
2650 echo "${ECHO_T}yes" >&6; }
2653 DEPDIR="${am__leading_dot}deps"
2655 ac_config_commands="$ac_config_commands depfiles"
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2664 # If we don't find an include directive, just comment out the code.
2665 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684 echo '.include "confinc"' > confmf
2685 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686 am__include=.include
2693 { echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6; }
2695 rm -f confinc confmf
2697 # Check whether --enable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699 enableval=$enable_dependency_tracking;
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2708 if test "x$enable_dependency_tracking" != xno; then
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2762 if test -z "$ac_cv_prog_CC"; then
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 echo "${ECHO_T}$ac_ct_CC" >&6; }
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2800 if test "x$ac_ct_CC" = x; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2906 if test -n "$CC"; then
2907 { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2957 test -n "$CC" && break
2960 if test -z "$CC"; then
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994 echo "${ECHO_T}$ac_ct_CC" >&6; }
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$ac_ct_CC" && break
3004 if test "x$ac_ct_CC" = x; then
3007 case $cross_compiling:$ac_tool_warned in
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet. If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3030 # Provide some information about the compiler.
3031 echo "$as_me:$LINENO: checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (ac_try="$ac_compiler --version >&5"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compiler --version >&5") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (ac_try="$ac_compiler -v >&5"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compiler -v >&5") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3053 { (ac_try="$ac_compiler -V >&5"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compiler -V >&5") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # List of possible output files, starting from the most likely.
3089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3090 # only as a last resort. b.out is created by i960 compilers.
3091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3093 # The IRIX 6 linker writes into existing files which may not be
3094 # executable, retaining their permissions. Remove them first so a
3095 # subsequent execution test works.
3097 for ac_file in $ac_files
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106 if { (ac_try="$ac_link_default"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_link_default") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3121 for ac_file in $ac_files
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3128 # We found the default executable, but exeext='' is most
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&2;}
3156 { (exit 77); exit 77; }; }
3159 ac_exeext=$ac_cv_exeext
3160 { echo "$as_me:$LINENO: result: $ac_file" >&5
3161 echo "${ECHO_T}$ac_file" >&6; }
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170 if { ac_try='./$ac_file'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 if test "$cross_compiling" = maybe; then
3185 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6; }
3198 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3204 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 echo "${ECHO_T}$cross_compiling" >&6; }
3207 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3209 if { (ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_link") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3240 rm -f conftest$ac_cv_exeext
3241 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3242 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3247 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3249 if test "${ac_cv_objext+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.o conftest.obj
3268 if { (ac_try="$ac_compile"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3300 echo "${ECHO_T}$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3303 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3372 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3373 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3374 GCC=`test $ac_compiler_gnu = yes && echo yes`
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_cc_g+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_try") 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_try") 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_try") 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566 CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568 if test "$GCC" = yes; then
3574 if test "$GCC" = yes; then
3580 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3581 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_cv_prog_cc_c89=no
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3611 s = g (p, va_arg (v,int));
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 CC="$ac_save_CC $ac_arg"
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_compile") 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_try") 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_try") 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_prog_cc_c89=$ac_arg
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { echo "$as_me:$LINENO: result: none needed" >&5
3701 echo "${ECHO_T}none needed" >&6; } ;;
3703 { echo "$as_me:$LINENO: result: unsupported" >&5
3704 echo "${ECHO_T}unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3708 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 depcc="$CC" am_compiler_list=
3720 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3726 # We make a subdir and do the tests there. Otherwise we can end up
3727 # making bogus files that we don't know about and never remove. For
3728 # instance it was reported that on HP-UX the gcc test will end up
3729 # making a dummy file named `D' -- because `-MD' means `put the output
3732 # Copy depcomp to subdir because otherwise we won't find it if we're
3733 # using a relative directory.
3734 cp "$am_depcomp" conftest.dir
3736 # We will build objects and dependencies in a subdirectory because
3737 # it helps to detect inapplicable dependency modes. For instance
3738 # both Tru64's cc and ICC support -MD to output dependencies as a
3739 # side effect of compilation, but ICC will put the dependencies in
3740 # the current directory while Tru64 will put them in the object
3744 am_cv_CC_dependencies_compiler_type=none
3745 if test "$am_compiler_list" = ""; then
3746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760 # Solaris 8's {/usr,}/bin/sh.
3761 touch sub/conftst$i.h
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3767 # after this tag, mechanisms are not by side-effect, so they'll
3768 # only be used when explicitly requested
3769 if test "x$enable_dependency_tracking" = xyes; then
3777 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3778 # mode. It turns out that the SunPro C++ compiler does not properly
3779 # handle `-M -o', and we need to detect this.
3780 if depmode=$depmode \
3781 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788 # icc doesn't choke on unknown options, it will just issue warnings
3789 # or remarks (even with -Werror). So we grep stderr for any message
3790 # that says an option was ignored or not supported.
3791 # When given -MP, icc 7.0 and 7.1 complain thusly:
3792 # icc: Command line warning: ignoring option '-M'; no argument required
3793 # The diagnosis changed in icc 8.0:
3794 # icc: Command line remark: option '-MP' not supported
3795 if (grep 'ignoring option' conftest.err ||
3796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797 am_cv_CC_dependencies_compiler_type=$depmode
3806 am_cv_CC_dependencies_compiler_type=none
3810 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820 am__fastdepCC_FALSE='#'
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3838 if test -z "$CPP"; then
3839 if test "${ac_cv_prog_CPP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3861 # include <limits.h>
3863 # include <assert.h>
3867 if { (ac_try="$ac_cpp conftest.$ac_ext"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null; then
3880 if test -s conftest.err; then
3881 ac_cpp_err=$ac_c_preproc_warn_flag
3882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3889 if test -z "$ac_cpp_err"; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Broken: fails on valid input.
3899 rm -f conftest.err conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null; then
3924 if test -s conftest.err; then
3925 ac_cpp_err=$ac_c_preproc_warn_flag
3926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3933 if test -z "$ac_cpp_err"; then
3934 # Broken: success on invalid input.
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 # Passes both tests.
3945 rm -f conftest.err conftest.$ac_ext
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then
3962 { echo "$as_me:$LINENO: result: $CPP" >&5
3963 echo "${ECHO_T}$CPP" >&6; }
3965 for ac_c_preproc_warn_flag in '' yes
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 # include <limits.h>
3982 # include <assert.h>
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null; then
3999 if test -s conftest.err; then
4000 ac_cpp_err=$ac_c_preproc_warn_flag
4001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4008 if test -z "$ac_cpp_err"; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 # Broken: fails on valid input.
4018 rm -f conftest.err conftest.$ac_ext
4020 # OK, works on sane cases. Now check whether nonexistent headers
4021 # can be detected and how.
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 #include <ac_nonexistent.h>
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } >/dev/null; then
4043 if test -s conftest.err; then
4044 ac_cpp_err=$ac_c_preproc_warn_flag
4045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052 if test -z "$ac_cpp_err"; then
4053 # Broken: success on invalid input.
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # Passes both tests.
4064 rm -f conftest.err conftest.$ac_ext
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then
4072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4073 See \`config.log' for more details." >&5
4074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." >&2;}
4076 { (exit 1); exit 1; }; }
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_GREP_found && break 3
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cv_path_GREP=$GREP
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4174 # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in egrep; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191 # Check for GNU ac_path_EGREP and select it if it is found.
4192 # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 echo 'EGREP' >> "conftest.nl"
4205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_EGREP="$ac_path_EGREP"
4211 ac_path_EGREP_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 $ac_path_EGREP_found && break 3
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234 { (exit 1); exit 1; }; }
4238 ac_cv_path_EGREP=$EGREP
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4250 { echo "$as_me:$LINENO: checking for AIX" >&5
4251 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "yes" >/dev/null 2>&1; then
4265 { echo "$as_me:$LINENO: result: yes" >&5
4266 echo "${ECHO_T}yes" >&6; }
4267 cat >>confdefs.h <<\_ACEOF
4268 #define _ALL_SOURCE 1
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4278 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4279 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4280 if test "${ac_cv_search_strerror+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 ac_func_search_save_LIBS=$LIBS
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any GCC internal prototype to avoid an error.
4292 Use char because int might match the return type of a GCC
4293 builtin and then its argument prototype would still apply. */
4306 for ac_lib in '' cposix; do
4307 if test -z "$ac_lib"; then
4308 ac_res="none required"
4311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4313 rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (ac_try="$ac_link"
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_link") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_search_strerror=$ac_res
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f core conftest.err conftest.$ac_objext \
4357 if test "${ac_cv_search_strerror+set}" = set; then
4361 if test "${ac_cv_search_strerror+set}" = set; then
4364 ac_cv_search_strerror=no
4367 LIBS=$ac_func_search_save_LIBS
4369 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4370 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4371 ac_res=$ac_cv_search_strerror
4372 if test "$ac_res" != no; then
4373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_stdc+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_compile") 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4416 { (case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_try") 2>&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_try") 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_header_stdc=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_cv_header_stdc=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 if test $ac_cv_header_stdc = yes; then
4446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 $EGREP "memchr" >/dev/null 2>&1; then
4460 ac_cv_header_stdc=no
4466 if test $ac_cv_header_stdc = yes; then
4467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "free" >/dev/null 2>&1; then
4481 ac_cv_header_stdc=no
4487 if test $ac_cv_header_stdc = yes; then
4488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4489 if test "$cross_compiling" = yes; then
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4523 rm -f conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_link") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4545 echo "$as_me: program exited with status $ac_status" >&5
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4550 ac_cv_header_stdc=no
4552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4559 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4560 if test $ac_cv_header_stdc = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define STDC_HEADERS 1
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4579 inttypes.h stdint.h unistd.h
4581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 $ac_includes_default
4595 #include <$ac_header>
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 eval "$as_ac_Header=no"
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_res=`eval echo '${'$as_ac_Header'}'`
4642 { echo "$as_me:$LINENO: result: $ac_res" >&5
4643 echo "${ECHO_T}$ac_res" >&6; }
4644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h <<_ACEOF
4646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654 if test "${ac_cv_header_minix_config_h+set}" = set; then
4655 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4656 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4657 if test "${ac_cv_header_minix_config_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4661 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4663 # Is the header compilable?
4664 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4665 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <minix/config.h>
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690 { (case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_try") 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_header_compiler=yes
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4714 ac_header_compiler=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719 echo "${ECHO_T}$ac_header_compiler" >&6; }
4721 # Is the header present?
4722 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4723 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <minix/config.h>
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null; then
4745 if test -s conftest.err; then
4746 ac_cpp_err=$ac_c_preproc_warn_flag
4747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4754 if test -z "$ac_cpp_err"; then
4755 ac_header_preproc=yes
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ac_header_preproc=no
4763 rm -f conftest.err conftest.$ac_ext
4764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765 echo "${ECHO_T}$ac_header_preproc" >&6; }
4767 # So? What about this header?
4768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4771 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4773 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4777 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4778 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4780 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4782 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4784 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4786 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4788 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4792 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4793 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4794 if test "${ac_cv_header_minix_config_h+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 ac_cv_header_minix_config_h=$ac_header_preproc
4799 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4800 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4803 if test $ac_cv_header_minix_config_h = yes; then
4810 if test "$MINIX" = yes; then
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _POSIX_SOURCE 1
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _POSIX_1_SOURCE 2
4822 cat >>confdefs.h <<\_ACEOF
4831 ac_cpp='$CXXCPP $CPPFLAGS'
4832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 if test -z "$CXX"; then
4836 if test -n "$CCC"; then
4839 if test -n "$ac_tool_prefix"; then
4840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_CXX+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$CXX"; then
4850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 if test -n "$CXX"; then
4871 { echo "$as_me:$LINENO: result: $CXX" >&5
4872 echo "${ECHO_T}$CXX" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 test -n "$CXX" && break
4882 if test -z "$CXX"; then
4884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4886 # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$ac_ct_CXX"; then
4894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_ac_ct_CXX="$ac_prog"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4914 if test -n "$ac_ct_CXX"; then
4915 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4916 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4923 test -n "$ac_ct_CXX" && break
4926 if test "x$ac_ct_CXX" = x; then
4929 case $cross_compiling:$ac_tool_warned in
4931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet. If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&5
4934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet. If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4937 ac_tool_warned=yes ;;
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4947 ac_compiler=`set X $ac_compile; echo $2`
4948 { (ac_try="$ac_compiler --version >&5"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_compiler --version >&5") 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }
4958 { (ac_try="$ac_compiler -v >&5"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_compiler -v >&5") 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }
4968 { (ac_try="$ac_compiler -V >&5"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compiler -V >&5") 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }
4979 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4980 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4981 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5017 { (case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_try") 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_try") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5048 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5050 GXX=`test $ac_compiler_gnu = yes && echo yes`
5051 ac_test_CXXFLAGS=${CXXFLAGS+set}
5052 ac_save_CXXFLAGS=$CXXFLAGS
5053 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5054 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5055 if test "${ac_cv_prog_cxx_g+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5059 ac_cxx_werror_flag=yes
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5092 { (case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_try") 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_try") 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_prog_cxx_g=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5147 { (case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_try") 2>&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try='test -s conftest.$ac_objext'
5157 { (case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_try") 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5203 { (case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_try") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_prog_cxx_g=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5240 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5241 if test "$ac_test_CXXFLAGS" = set; then
5242 CXXFLAGS=$ac_save_CXXFLAGS
5243 elif test $ac_cv_prog_cxx_g = yes; then
5244 if test "$GXX" = yes; then
5250 if test "$GXX" = yes; then
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 depcc="$CXX" am_compiler_list=
5264 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5265 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5266 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5288 am_cv_CXX_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 for depmode in $am_compiler_list; do
5293 # Setup a source with many dependencies, because some compilers
5294 # like to wrap large dependency lists on column 80 (with \), and
5295 # we should not choose a depcomp mode which is confused by this.
5297 # We need to recreate these files for each test, as the compiler may
5298 # overwrite some of them when testing with obscure command lines.
5299 # This happens at least with the AIX C compiler.
5301 for i in 1 2 3 4 5 6; do
5302 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5304 # Solaris 8's {/usr,}/bin/sh.
5305 touch sub/conftst$i.h
5307 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5311 # after this tag, mechanisms are not by side-effect, so they'll
5312 # only be used when explicitly requested
5313 if test "x$enable_dependency_tracking" = xyes; then
5321 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5322 # mode. It turns out that the SunPro C++ compiler does not properly
5323 # handle `-M -o', and we need to detect this.
5324 if depmode=$depmode \
5325 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5328 >/dev/null 2>conftest.err &&
5329 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5330 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5331 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5332 # icc doesn't choke on unknown options, it will just issue warnings
5333 # or remarks (even with -Werror). So we grep stderr for any message
5334 # that says an option was ignored or not supported.
5335 # When given -MP, icc 7.0 and 7.1 complain thusly:
5336 # icc: Command line warning: ignoring option '-M'; no argument required
5337 # The diagnosis changed in icc 8.0:
5338 # icc: Command line remark: option '-MP' not supported
5339 if (grep 'ignoring option' conftest.err ||
5340 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5341 am_cv_CXX_dependencies_compiler_type=$depmode
5350 am_cv_CXX_dependencies_compiler_type=none
5354 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5355 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5356 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5361 test "x$enable_dependency_tracking" != xno \
5362 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5363 am__fastdepCXX_TRUE=
5364 am__fastdepCXX_FALSE='#'
5366 am__fastdepCXX_TRUE='#'
5367 am__fastdepCXX_FALSE=
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5377 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5378 if test -z "$CXXCPP"; then
5379 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 # Double quotes because CXXCPP needs to be expanded
5383 for CXXCPP in "$CXX -E" "/lib/cpp"
5386 for ac_cxx_preproc_warn_flag in '' yes
5388 # Use a header file that comes with gcc, so configuring glibc
5389 # with a fresh cross-compiler works.
5390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391 # <limits.h> exists even on freestanding compilers.
5392 # On the NeXT, cc -E runs the code through the compiler's parser,
5393 # not just through cpp. "Syntax error" is here to catch this case.
5394 cat >conftest.$ac_ext <<_ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5401 # include <limits.h>
5403 # include <assert.h>
5407 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null; then
5420 if test -s conftest.err; then
5421 ac_cpp_err=$ac_cxx_preproc_warn_flag
5422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5429 if test -z "$ac_cpp_err"; then
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 # Broken: fails on valid input.
5439 rm -f conftest.err conftest.$ac_ext
5441 # OK, works on sane cases. Now check whether nonexistent headers
5442 # can be detected and how.
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <ac_nonexistent.h>
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } >/dev/null; then
5464 if test -s conftest.err; then
5465 ac_cpp_err=$ac_cxx_preproc_warn_flag
5466 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5473 if test -z "$ac_cpp_err"; then
5474 # Broken: success on invalid input.
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 # Passes both tests.
5485 rm -f conftest.err conftest.$ac_ext
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then
5495 ac_cv_prog_CXXCPP=$CXXCPP
5498 CXXCPP=$ac_cv_prog_CXXCPP
5500 ac_cv_prog_CXXCPP=$CXXCPP
5502 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5503 echo "${ECHO_T}$CXXCPP" >&6; }
5505 for ac_cxx_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 # include <limits.h>
5522 # include <assert.h>
5526 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null; then
5539 if test -s conftest.err; then
5540 ac_cpp_err=$ac_cxx_preproc_warn_flag
5541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5548 if test -z "$ac_cpp_err"; then
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 # Broken: fails on valid input.
5558 rm -f conftest.err conftest.$ac_ext
5560 # OK, works on sane cases. Now check whether nonexistent headers
5561 # can be detected and how.
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <ac_nonexistent.h>
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null; then
5583 if test -s conftest.err; then
5584 ac_cpp_err=$ac_cxx_preproc_warn_flag
5585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5592 if test -z "$ac_cpp_err"; then
5593 # Broken: success on invalid input.
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 # Passes both tests.
5604 rm -f conftest.err conftest.$ac_ext
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then
5612 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5613 See \`config.log' for more details." >&5
5614 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5615 See \`config.log' for more details." >&2;}
5616 { (exit 1); exit 1; }; }
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632 ac_cpp='$CXXCPP $CPPFLAGS'
5633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5638 { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5639 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5640 if test "$cross_compiling" = yes; then
5641 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5642 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 main() { bool b1=true; bool b2=false; }
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_link") 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 { echo "$as_me:$LINENO: result: yes" >&5
5674 echo "${ECHO_T}yes" >&6; }
5676 echo "$as_me: program exited with status $ac_status" >&5
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5684 cat >>confdefs.h <<\_ACEOF
5685 #define CXX_HAS_NO_BOOL
5689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5694 { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5695 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <iostream.h>
5707 for (int i=0;i<10;i++) { }
5708 for (int i=0;i<10;i++) { }
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 { echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6; }
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5757 cat >>confdefs.h <<\_ACEOF
5758 #define CXX_HAS_BUGGY_FOR_LOOPS
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5766 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5767 # Check whether --enable-assert was given.
5768 if test "${enable_assert+set}" = set; then
5769 enableval=$enable_assert;
5770 cat >>confdefs.h <<\_ACEOF
5774 { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5777 { echo "$as_me:$LINENO: result: yes" >&5
5778 echo "${ECHO_T}yes" >&6; }
5782 { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5783 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5816 { (case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_try") 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_try") 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 { echo "$as_me:$LINENO: result: yes" >&5
5836 echo "${ECHO_T}yes" >&6; }
5838 cat >>confdefs.h <<\_ACEOF
5839 #define CXX_HAS_STD_ISNAN
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5862 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5864 # Check whether --with-warnings was given.
5865 if test "${with_warnings+set}" = set; then
5866 withval=$with_warnings; lf_warnings=yes
5871 lf_warnings=yes # hard code for now -eb
5872 { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5873 echo "${ECHO_T}$lf_warnings" >&6; }
5875 cc_warning_flags="-Wall"
5876 cxx_warning_flags="-Wall -Woverloaded-virtual"
5877 if test $lf_warnings = yes
5882 echo 'void f(){}' > conftest.c
5883 for i in $cc_warning_flags
5885 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5886 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5887 if test -z "`${CC} $i -c conftest.c 2>&1`"
5889 CFLAGS="${CFLAGS} $i"
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891 echo "${ECHO_T}yes" >&6; }
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5897 rm -f conftest.c conftest.o
5903 echo 'void f(){}' > conftest.cc
5904 for i in $cxx_warning_flags
5906 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5907 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5908 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5910 CXXFLAGS="${CXXFLAGS} $i"
5911 { echo "$as_me:$LINENO: result: yes" >&5
5912 echo "${ECHO_T}yes" >&6; }
5914 { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5918 rm -f conftest.cc conftest.o
5924 { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5925 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5927 # Check whether --with-gprof was given.
5928 if test "${with_gprof+set}" = set; then
5929 withval=$with_gprof;
5934 { echo "$as_me:$LINENO: result: $with_gprof" >&5
5935 echo "${ECHO_T}$with_gprof" >&6; }
5937 cc_profiling_flags="-pg"
5938 cxx_profiling_flags="-pg"
5939 ld_profiling_flags="-pg"
5940 if test $with_gprof = yes
5945 echo 'void f(){}' > conftest.c
5946 for i in $cc_profiling_flags
5948 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5949 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5950 if test -z "`${CC} $i -c conftest.c 2>&1`"
5952 CFLAGS="${CFLAGS} $i"
5953 { echo "$as_me:$LINENO: result: yes" >&5
5954 echo "${ECHO_T}yes" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5960 rm -f conftest.c conftest.o
5966 echo 'void f(){}' > conftest.cc
5967 for i in $cxx_profiling_flags
5969 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5970 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5971 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5973 CXXFLAGS="${CXXFLAGS} $i"
5974 { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5981 rm -f conftest.cc conftest.o
5987 { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5988 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5990 # Check whether --with-prof was given.
5991 if test "${with_prof+set}" = set; then
5997 { echo "$as_me:$LINENO: result: $with_prof" >&5
5998 echo "${ECHO_T}$with_prof" >&6; }
6000 cc_profiling_flags="-p"
6001 cxx_profiling_flags="-p"
6002 ld_profiling_flags="-p"
6003 if test $with_prof = yes
6008 echo 'void f(){}' > conftest.c
6009 for i in $cc_profiling_flags
6011 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6012 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
6013 if test -z "`${CC} $i -c conftest.c 2>&1`"
6015 CFLAGS="${CFLAGS} $i"
6016 { echo "$as_me:$LINENO: result: yes" >&5
6017 echo "${ECHO_T}yes" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6023 rm -f conftest.c conftest.o
6029 echo 'void f(){}' > conftest.cc
6030 for i in $cxx_profiling_flags
6032 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6033 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
6034 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6036 CXXFLAGS="${CXXFLAGS} $i"
6037 { echo "$as_me:$LINENO: result: yes" >&5
6038 echo "${ECHO_T}yes" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6044 rm -f conftest.cc conftest.o
6049 # By default we simply use the C compiler to build assembly code.
6051 test "${CCAS+set}" = set || CCAS=$CC
6052 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6056 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6059 if test "$LN_S" = "ln -s"; then
6060 { echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6; }
6063 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6064 echo "${ECHO_T}no, using $LN_S" >&6; }
6067 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6068 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6069 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6070 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.make <<\_ACEOF
6076 @echo '@@@%%%=$(MAKE)=@@@%%%'
6078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6079 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6081 eval ac_cv_prog_make_${ac_make}_set=yes;;
6083 eval ac_cv_prog_make_${ac_make}_set=no;;
6087 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6088 { echo "$as_me:$LINENO: result: yes" >&5
6089 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6094 SET_MAKE="MAKE=${MAKE-make}"
6097 # Find a good install program. We prefer a C program (faster),
6098 # so one script is as good as another. But avoid the broken or
6099 # incompatible versions:
6100 # SysV /etc/install, /usr/sbin/install
6101 # SunOS /usr/etc/install
6102 # IRIX /sbin/install
6104 # AmigaOS /C/install, which installs bootblocks on floppy discs
6105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6108 # OS/2's system install, which has a completely different semantic
6109 # ./install, which can be erroneously created by make from ./install.sh.
6110 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6111 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6112 if test -z "$INSTALL"; then
6113 if test "${ac_cv_path_install+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 # Account for people who put trailing slashes in PATH elements.
6123 ./ | .// | /cC/* | \
6124 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6125 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6128 # OSF1 and SCO ODT 3.0 have their own names for install.
6129 # Don't use installbsd from OSF since it installs stuff as root
6131 for ac_prog in ginstall scoinst install; do
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6134 if test $ac_prog = install &&
6135 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6136 # AIX install. It has an incompatible calling convention.
6138 elif test $ac_prog = install &&
6139 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6140 # program-specific install script used by HP pwplus--don't use.
6143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6156 if test "${ac_cv_path_install+set}" = set; then
6157 INSTALL=$ac_cv_path_install
6159 # As a last resort, use the slow shell script. Don't cache a
6160 # value for INSTALL within a source directory, because that will
6161 # break other packages using the cache if that directory is
6162 # removed, or if the value is a relative name.
6163 INSTALL=$ac_install_sh
6166 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6167 echo "${ECHO_T}$INSTALL" >&6; }
6169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6170 # It thinks the first close brace ends the variable substitution.
6171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6177 # Extract the first word of "rm", so it can be a program name with args.
6178 set dummy rm; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_RM_PROG+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 RM_PROG=$ac_cv_path_RM_PROG
6208 if test -n "$RM_PROG"; then
6209 { echo "$as_me:$LINENO: result: $RM_PROG" >&5
6210 echo "${ECHO_T}$RM_PROG" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6220 # Check whether --enable-shared was given.
6221 if test "${enable_shared+set}" = set; then
6222 enableval=$enable_shared; p=${PACKAGE-default}
6224 yes) enable_shared=yes ;;
6225 no) enable_shared=no ;;
6228 # Look at the argument we got. We use all the common list separators.
6229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6230 for pkg in $enableval; do
6232 if test "X$pkg" = "X$p"; then
6243 # Check whether --enable-static was given.
6244 if test "${enable_static+set}" = set; then
6245 enableval=$enable_static; p=${PACKAGE-default}
6247 yes) enable_static=yes ;;
6248 no) enable_static=no ;;
6251 # Look at the argument we got. We use all the common list separators.
6252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6253 for pkg in $enableval; do
6255 if test "X$pkg" = "X$p"; then
6267 # Check whether --enable-fast-install was given.
6268 if test "${enable_fast_install+set}" = set; then
6269 enableval=$enable_fast_install; p=${PACKAGE-default}
6271 yes) enable_fast_install=yes ;;
6272 no) enable_fast_install=no ;;
6274 enable_fast_install=no
6275 # Look at the argument we got. We use all the common list separators.
6276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6277 for pkg in $enableval; do
6279 if test "X$pkg" = "X$p"; then
6280 enable_fast_install=yes
6287 enable_fast_install=yes
6291 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6292 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6293 if test "${lt_cv_path_SED+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 # Loop through the user's path and test for sed and gsed.
6297 # Then use that list of sed's as ones to test for truncation.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for lt_ac_prog in sed gsed; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6306 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6313 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6314 # along with /bin/sed that truncates output.
6315 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6316 test ! -f $lt_ac_sed && continue
6317 cat /dev/null > conftest.in
6319 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6320 # Check for GNU sed and select it if it is found.
6321 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6322 lt_cv_path_SED=$lt_ac_sed
6326 cat conftest.in conftest.in >conftest.tmp
6327 mv conftest.tmp conftest.in
6328 cp conftest.in conftest.nl
6330 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6331 cmp -s conftest.out conftest.nl || break
6332 # 10000 chars as input seems more than enough
6333 test $lt_ac_count -gt 10 && break
6334 lt_ac_count=`expr $lt_ac_count + 1`
6335 if test $lt_ac_count -gt $lt_ac_max; then
6336 lt_ac_max=$lt_ac_count
6337 lt_cv_path_SED=$lt_ac_sed
6345 { echo "$as_me:$LINENO: result: $SED" >&5
6346 echo "${ECHO_T}$SED" >&6; }
6349 # Check whether --with-gnu-ld was given.
6350 if test "${with_gnu_ld+set}" = set; then
6351 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6357 if test "$GCC" = yes; then
6358 # Check if gcc -print-prog-name=ld gives a path.
6359 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6360 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6363 # gcc leaves a trailing carriage return which upsets mingw
6364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6369 # Accept absolute paths.
6371 re_direlt='/[^/][^/]*/\.\./'
6372 # Canonicalize the pathname of ld
6373 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6374 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6375 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6377 test -z "$LD" && LD="$ac_prog"
6380 # If it fails, then pretend we aren't using GCC.
6384 # If it is relative, then search for the first ld in PATH.
6388 elif test "$with_gnu_ld" = yes; then
6389 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6390 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6392 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6393 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6395 if test "${lt_cv_path_LD+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -z "$LD"; then
6399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400 for ac_dir in $PATH; do
6402 test -z "$ac_dir" && ac_dir=.
6403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6404 lt_cv_path_LD="$ac_dir/$ac_prog"
6405 # Check to see if the program is GNU ld. I'd rather use --version,
6406 # but apparently some variants of GNU ld only accept -v.
6407 # Break only if it was the GNU/non-GNU ld that we prefer.
6408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6409 *GNU* | *'with BFD'*)
6410 test "$with_gnu_ld" != no && break
6413 test "$with_gnu_ld" != yes && break
6420 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6425 if test -n "$LD"; then
6426 { echo "$as_me:$LINENO: result: $LD" >&5
6427 echo "${ECHO_T}$LD" >&6; }
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6432 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6433 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6434 { (exit 1); exit 1; }; }
6435 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6436 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6437 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6441 case `$LD -v 2>&1 </dev/null` in
6442 *GNU* | *'with BFD'*)
6443 lt_cv_prog_gnu_ld=yes
6446 lt_cv_prog_gnu_ld=no
6450 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6451 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6452 with_gnu_ld=$lt_cv_prog_gnu_ld
6455 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6456 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6457 if test "${lt_cv_ld_reload_flag+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 lt_cv_ld_reload_flag='-r'
6462 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6463 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6464 reload_flag=$lt_cv_ld_reload_flag
6465 case $reload_flag in
6467 *) reload_flag=" $reload_flag" ;;
6469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6472 if test "$GCC" = yes; then
6473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6480 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482 if test "${lt_cv_path_NM+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$NM"; then
6486 # Let the user override the test.
6489 lt_nm_to_check="${ac_tool_prefix}nm"
6490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491 lt_nm_to_check="$lt_nm_to_check nm"
6493 for lt_tmp_nm in $lt_nm_to_check; do
6494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497 test -z "$ac_dir" && ac_dir=.
6498 tmp_nm="$ac_dir/$lt_tmp_nm"
6499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500 # Check to see if the nm accepts a BSD-compat flag.
6501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6502 # nm: unknown option "B" ignored
6503 # Tru64's nm complains that /dev/null is an invalid object file
6504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505 */dev/null* | *'Invalid file or object type'*)
6506 lt_cv_path_NM="$tmp_nm -B"
6510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512 lt_cv_path_NM="$tmp_nm -p"
6516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517 continue # so that we can try to find one that supports BSD flags
6526 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6529 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6533 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6534 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6535 if test "${lt_cv_deplibs_check_method+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 lt_cv_file_magic_cmd='$MAGIC_CMD'
6539 lt_cv_file_magic_test_file=
6540 lt_cv_deplibs_check_method='unknown'
6541 # Need to set the preceding variable on all platforms that support
6542 # interlibrary dependencies.
6543 # 'none' -- dependencies not supported.
6544 # `unknown' -- same as none, but documents that we really don't know.
6545 # 'pass_all' -- all dependencies passed with no checks.
6546 # 'test_compile' -- check by making test program.
6547 # 'file_magic [[regex]]' -- check by looking for files in library path
6548 # which responds to the $file_magic_cmd with a given extended regex.
6549 # If you have `file' or equivalent on your system and you're not sure
6550 # whether `pass_all' will *always* work, you probably want this one.
6554 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6563 lt_cv_file_magic_cmd='/usr/bin/file -L'
6564 lt_cv_file_magic_test_file=/shlib/libc.so
6568 # func_win32_libid is a shell function defined in ltmain.sh
6569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6570 lt_cv_file_magic_cmd='func_win32_libid'
6574 # Base MSYS/MinGW do not provide the 'file' command needed by
6575 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6576 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6577 lt_cv_file_magic_cmd='$OBJDUMP -f'
6580 darwin* | rhapsody*)
6581 lt_cv_deplibs_check_method=pass_all
6584 freebsd* | dragonfly*)
6585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6588 # Not sure whether the presence of OpenBSD here was a mistake.
6589 # Let's accept both of them until this is cleared up.
6590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6591 lt_cv_file_magic_cmd=/usr/bin/file
6592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6596 lt_cv_deplibs_check_method=pass_all
6601 lt_cv_deplibs_check_method=pass_all
6604 hpux10.20* | hpux11*)
6605 lt_cv_file_magic_cmd=/usr/bin/file
6608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6612 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]'
6613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6617 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6627 irix5* | irix6* | nonstopux*)
6629 *-32|*"-32 ") libmagic=32-bit;;
6630 *-n32|*"-n32 ") libmagic=N32;;
6631 *-64|*"-64 ") libmagic=64-bit;;
6632 *) libmagic=never-match;;
6634 lt_cv_deplibs_check_method=pass_all
6637 # This must be Linux ELF.
6638 linux* | k*bsd*-gnu)
6639 lt_cv_deplibs_check_method=pass_all
6642 netbsd* | netbsdelf*-gnu)
6643 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6657 lt_cv_deplibs_check_method=unknown
6661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6668 osf3* | osf4* | osf5*)
6669 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method=pass_all
6677 case $host_vendor in
6679 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]'
6680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6683 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_file_magic_cmd='/bin/file'
6687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6690 lt_cv_file_magic_cmd='/bin/file'
6691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6692 lt_cv_file_magic_test_file=/lib/libc.so
6695 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_deplibs_check_method=pass_all
6703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6704 lt_cv_deplibs_check_method=pass_all
6709 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6710 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6711 file_magic_cmd=$lt_cv_file_magic_cmd
6712 deplibs_check_method=$lt_cv_deplibs_check_method
6713 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6718 # If no C compiler was specified, use CC.
6721 # If no C compiler flags were specified, use CFLAGS.
6722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6724 # Allow CC to be a program name with arguments.
6727 # Check whether --enable-libtool-lock was given.
6728 if test "${enable_libtool_lock+set}" = set; then
6729 enableval=$enable_libtool_lock;
6732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6734 # Some flags need to be propagated to the compiler or linker for good
6738 # Find out which ABI we are using.
6739 echo 'int i;' > conftest.$ac_ext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; then
6745 case `/usr/bin/file conftest.$ac_objext` in
6757 # Find out which ABI we are using.
6758 echo '#line 6758 "configure"' > conftest.$ac_ext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; then
6764 if test "$lt_cv_prog_gnu_ld" = yes; then
6765 case `/usr/bin/file conftest.$ac_objext` in
6767 LD="${LD-ld} -melf32bsmip"
6770 LD="${LD-ld} -melf32bmipn32"
6773 LD="${LD-ld} -melf64bmip"
6777 case `/usr/bin/file conftest.$ac_objext` in
6793 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6794 # Find out which ABI we are using.
6795 echo 'int i;' > conftest.$ac_ext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; then
6801 case `/usr/bin/file conftest.o` in
6805 LD="${LD-ld} -m elf_i386"
6807 ppc64-*linux*|powerpc64-*linux*)
6808 LD="${LD-ld} -m elf32ppclinux"
6811 LD="${LD-ld} -m elf_s390"
6814 LD="${LD-ld} -m elf32_sparc"
6821 LD="${LD-ld} -m elf_x86_64"
6823 ppc*-*linux*|powerpc*-*linux*)
6824 LD="${LD-ld} -m elf64ppc"
6827 LD="${LD-ld} -m elf64_s390"
6830 LD="${LD-ld} -m elf64_sparc"
6840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6841 SAVE_CFLAGS="$CFLAGS"
6842 CFLAGS="$CFLAGS -belf"
6843 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6844 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6845 if test "${lt_cv_cc_needs_belf+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (ac_try="$ac_link"
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_link") 2>conftest.er1
6878 grep -v '^ *+' conftest.er1 >conftest.err
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_try") 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6899 (eval "$ac_try") 2>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 lt_cv_cc_needs_belf=yes
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 lt_cv_cc_needs_belf=no
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6914 ac_cpp='$CPP $CPPFLAGS'
6915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6921 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6924 CFLAGS="$SAVE_CFLAGS"
6928 # Find out which ABI we are using.
6929 echo 'int i;' > conftest.$ac_ext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; then
6935 case `/usr/bin/file conftest.o` in
6937 case $lt_cv_prog_gnu_ld in
6938 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939 *) LD="${LD-ld} -64" ;;
6947 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 if test -n "$DLLTOOL"; then
6957 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 DLLTOOL=$ac_cv_prog_DLLTOOL
6977 if test -n "$DLLTOOL"; then
6978 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6979 echo "${ECHO_T}$DLLTOOL" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6987 if test -z "$ac_cv_prog_DLLTOOL"; then
6988 ac_ct_DLLTOOL=$DLLTOOL
6989 # Extract the first word of "dlltool", so it can be a program name with args.
6990 set dummy dlltool; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$ac_ct_DLLTOOL"; then
6997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7017 if test -n "$ac_ct_DLLTOOL"; then
7018 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7019 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7025 if test "x$ac_ct_DLLTOOL" = x; then
7028 case $cross_compiling:$ac_tool_warned in
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet. If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet. If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7038 DLLTOOL=$ac_ct_DLLTOOL
7041 DLLTOOL="$ac_cv_prog_DLLTOOL"
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}as; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_prog_AS+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 if test -n "$AS"; then
7053 ac_cv_prog_AS="$AS" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_AS="${ac_tool_prefix}as"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 if test -n "$AS"; then
7074 { echo "$as_me:$LINENO: result: $AS" >&5
7075 echo "${ECHO_T}$AS" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7083 if test -z "$ac_cv_prog_AS"; then
7085 # Extract the first word of "as", so it can be a program name with args.
7086 set dummy as; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$ac_ct_AS"; then
7093 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_ac_ct_AS="as"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7113 if test -n "$ac_ct_AS"; then
7114 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7115 echo "${ECHO_T}$ac_ct_AS" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7121 if test "x$ac_ct_AS" = x; then
7124 case $cross_compiling:$ac_tool_warned in
7126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127 whose name does not start with the host triplet. If you think this
7128 configuration is useful to you, please write to autoconf@gnu.org." >&5
7129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130 whose name does not start with the host triplet. If you think this
7131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7132 ac_tool_warned=yes ;;
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test -n "$OBJDUMP"; then
7149 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 OBJDUMP=$ac_cv_prog_OBJDUMP
7169 if test -n "$OBJDUMP"; then
7170 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7171 echo "${ECHO_T}$OBJDUMP" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7179 if test -z "$ac_cv_prog_OBJDUMP"; then
7180 ac_ct_OBJDUMP=$OBJDUMP
7181 # Extract the first word of "objdump", so it can be a program name with args.
7182 set dummy objdump; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$ac_ct_OBJDUMP"; then
7189 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7209 if test -n "$ac_ct_OBJDUMP"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7211 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7217 if test "x$ac_ct_OBJDUMP" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet. If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&5
7225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet. If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7228 ac_tool_warned=yes ;;
7230 OBJDUMP=$ac_ct_OBJDUMP
7233 OBJDUMP="$ac_cv_prog_OBJDUMP"
7240 need_locks="$enable_libtool_lock"
7244 for ac_header in dlfcn.h
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_res=`eval echo '${'$as_ac_Header'}'`
7254 { echo "$as_me:$LINENO: result: $ac_res" >&5
7255 echo "${ECHO_T}$ac_res" >&6; }
7257 # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 #include <$ac_header>
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7284 { (case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_try") 2>&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_try") 2>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_header_compiler=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_header_compiler=no
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7313 echo "${ECHO_T}$ac_header_compiler" >&6; }
7315 # Is the header present?
7316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 #include <$ac_header>
7326 if { (ac_try="$ac_cpp conftest.$ac_ext"
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_c_preproc_warn_flag
7341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7348 if test -z "$ac_cpp_err"; then
7349 ac_header_preproc=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_header_preproc=no
7357 rm -f conftest.err conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7359 echo "${ECHO_T}$ac_header_preproc" >&6; }
7361 # So? What about this header?
7362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7368 ac_header_preproc=yes
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 eval "$as_ac_Header=\$ac_header_preproc"
7393 ac_res=`eval echo '${'$as_ac_Header'}'`
7394 { echo "$as_me:$LINENO: result: $ac_res" >&5
7395 echo "${ECHO_T}$ac_res" >&6; }
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7409 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7410 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7411 (test "X$CXX" != "Xg++"))) ; then
7413 ac_cpp='$CXXCPP $CPPFLAGS'
7414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7417 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7418 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7419 if test -z "$CXXCPP"; then
7420 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 # Double quotes because CXXCPP needs to be expanded
7424 for CXXCPP in "$CXX -E" "/lib/cpp"
7427 for ac_cxx_preproc_warn_flag in '' yes
7429 # Use a header file that comes with gcc, so configuring glibc
7430 # with a fresh cross-compiler works.
7431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7432 # <limits.h> exists even on freestanding compilers.
7433 # On the NeXT, cc -E runs the code through the compiler's parser,
7434 # not just through cpp. "Syntax error" is here to catch this case.
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7442 # include <limits.h>
7444 # include <assert.h>
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null; then
7461 if test -s conftest.err; then
7462 ac_cpp_err=$ac_cxx_preproc_warn_flag
7463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7470 if test -z "$ac_cpp_err"; then
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 # Broken: fails on valid input.
7480 rm -f conftest.err conftest.$ac_ext
7482 # OK, works on sane cases. Now check whether nonexistent headers
7483 # can be detected and how.
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <ac_nonexistent.h>
7492 if { (ac_try="$ac_cpp conftest.$ac_ext"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null; then
7505 if test -s conftest.err; then
7506 ac_cpp_err=$ac_cxx_preproc_warn_flag
7507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7514 if test -z "$ac_cpp_err"; then
7515 # Broken: success on invalid input.
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 # Passes both tests.
7526 rm -f conftest.err conftest.$ac_ext
7529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530 rm -f conftest.err conftest.$ac_ext
7531 if $ac_preproc_ok; then
7536 ac_cv_prog_CXXCPP=$CXXCPP
7539 CXXCPP=$ac_cv_prog_CXXCPP
7541 ac_cv_prog_CXXCPP=$CXXCPP
7543 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7544 echo "${ECHO_T}$CXXCPP" >&6; }
7546 for ac_cxx_preproc_warn_flag in '' yes
7548 # Use a header file that comes with gcc, so configuring glibc
7549 # with a fresh cross-compiler works.
7550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551 # <limits.h> exists even on freestanding compilers.
7552 # On the NeXT, cc -E runs the code through the compiler's parser,
7553 # not just through cpp. "Syntax error" is here to catch this case.
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7561 # include <limits.h>
7563 # include <assert.h>
7567 if { (ac_try="$ac_cpp conftest.$ac_ext"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } >/dev/null; then
7580 if test -s conftest.err; then
7581 ac_cpp_err=$ac_cxx_preproc_warn_flag
7582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7589 if test -z "$ac_cpp_err"; then
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 # Broken: fails on valid input.
7599 rm -f conftest.err conftest.$ac_ext
7601 # OK, works on sane cases. Now check whether nonexistent headers
7602 # can be detected and how.
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <ac_nonexistent.h>
7611 if { (ac_try="$ac_cpp conftest.$ac_ext"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } >/dev/null; then
7624 if test -s conftest.err; then
7625 ac_cpp_err=$ac_cxx_preproc_warn_flag
7626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7633 if test -z "$ac_cpp_err"; then
7634 # Broken: success on invalid input.
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 # Passes both tests.
7645 rm -f conftest.err conftest.$ac_ext
7648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649 rm -f conftest.err conftest.$ac_ext
7650 if $ac_preproc_ok; then
7653 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7654 See \`config.log' for more details." >&5
7655 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7656 See \`config.log' for more details." >&2;}
7657 { (exit 1); exit 1; }; }
7661 ac_cpp='$CXXCPP $CPPFLAGS'
7662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7672 if test -n "$ac_tool_prefix"; then
7673 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
7675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_prog_F77+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$F77"; then
7683 ac_cv_prog_F77="$F77" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 if test -n "$F77"; then
7704 { echo "$as_me:$LINENO: result: $F77" >&5
7705 echo "${ECHO_T}$F77" >&6; }
7707 { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7712 test -n "$F77" && break
7715 if test -z "$F77"; then
7717 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
7719 # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 if test -n "$ac_ct_F77"; then
7727 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_ac_ct_F77="$ac_prog"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7747 if test -n "$ac_ct_F77"; then
7748 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7749 echo "${ECHO_T}$ac_ct_F77" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 test -n "$ac_ct_F77" && break
7759 if test "x$ac_ct_F77" = x; then
7762 case $cross_compiling:$ac_tool_warned in
7764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7765 whose name does not start with the host triplet. If you think this
7766 configuration is useful to you, please write to autoconf@gnu.org." >&5
7767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7768 whose name does not start with the host triplet. If you think this
7769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7770 ac_tool_warned=yes ;;
7777 # Provide some information about the compiler.
7778 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7779 ac_compiler=`set X $ac_compile; echo $2`
7780 { (ac_try="$ac_compiler --version >&5"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compiler --version >&5") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }
7790 { (ac_try="$ac_compiler -v >&5"
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_compiler -v >&5") 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }
7800 { (ac_try="$ac_compiler -V >&5"
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compiler -V >&5") 2>&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }
7812 # If we don't use `.F' as extension, the preprocessor is not run on the
7813 # input file. (Note that this only needs to work for GNU compilers.)
7816 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7817 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7818 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7875 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7876 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7878 ac_test_FFLAGS=${FFLAGS+set}
7879 ac_save_FFLAGS=$FFLAGS
7881 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7882 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7883 if test "${ac_cv_prog_f77_g+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_cv_prog_f77_g=yes
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7938 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7939 if test "$ac_test_FFLAGS" = set; then
7940 FFLAGS=$ac_save_FFLAGS
7941 elif test $ac_cv_prog_f77_g = yes; then
7942 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7948 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7955 G77=`test $ac_compiler_gnu = yes && echo yes`
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7964 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7966 # find the maximum length of command line arguments
7967 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7968 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 # On DJGPP, this test can blow up pretty badly due to problems in libc
7978 # (any single argument exceeding 2000 bytes causes a buffer overrun
7979 # during glob expansion). Even if it were fixed, the result of this
7980 # check would be larger than it should be.
7981 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7985 # Under GNU Hurd, this test is not required because there is
7986 # no limit to the length of command line arguments.
7987 # Libtool will interpret -1 as no limit whatsoever
7988 lt_cv_sys_max_cmd_len=-1;
7992 # On Win9x/ME, this test blows up -- it succeeds, but takes
7993 # about 5 minutes as the teststring grows exponentially.
7994 # Worse, since 9x/ME are not pre-emptively multitasking,
7995 # you end up with a "frozen" computer, even though with patience
7996 # the test eventually succeeds (with a max line length of 256k).
7997 # Instead, let's just punt: use the minimum linelength reported by
7998 # all of the supported platforms: 8192 (on NT/2K/XP).
7999 lt_cv_sys_max_cmd_len=8192;
8003 # On AmigaOS with pdksh, this test takes hours, literally.
8004 # So we just punt and use a minimum line length of 8192.
8005 lt_cv_sys_max_cmd_len=8192;
8008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8009 # This has been around since 386BSD, at least. Likely further.
8010 if test -x /sbin/sysctl; then
8011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8012 elif test -x /usr/sbin/sysctl; then
8013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8017 # And add a safety zone
8018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8024 lt_cv_sys_max_cmd_len=196608
8028 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8029 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8030 # nice to cause kernel panics so lets avoid the loop below.
8031 # First set a reasonable default.
8032 lt_cv_sys_max_cmd_len=16384
8034 if test -x /sbin/sysconfig; then
8035 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8036 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8041 lt_cv_sys_max_cmd_len=102400
8043 sysv5* | sco5v6* | sysv4.2uw2*)
8044 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8045 if test -n "$kargmax"; then
8046 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8048 lt_cv_sys_max_cmd_len=32768
8052 # If test is not a shell built-in, we'll probably end up computing a
8053 # maximum length that is only half of the actual maximum length, but
8055 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8056 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8057 = "XX$teststring") >/dev/null 2>&1 &&
8058 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8059 lt_cv_sys_max_cmd_len=$new_result &&
8060 test $i != 17 # 1/2 MB should be enough
8063 teststring=$teststring$teststring
8066 # Add a significant safety factor because C++ compilers can tack on massive
8067 # amounts of additional arguments before passing them to the linker.
8068 # It appears as though 1/2 is a usable value.
8069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8075 if test -n $lt_cv_sys_max_cmd_len ; then
8076 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8077 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8079 { echo "$as_me:$LINENO: result: none" >&5
8080 echo "${ECHO_T}none" >&6; }
8086 # Check for command to grab the raw symbol name followed by C symbol from nm.
8087 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8088 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8089 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 # These are sane defaults that work on at least a few old systems.
8094 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8096 # Character class describing NM global symbol codes.
8097 symcode='[BCDEGRST]'
8099 # Regexp to match symbols that can be accessed directly from C.
8100 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8102 # Transform an extracted symbol line into a proper C declaration
8103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8105 # Transform an extracted symbol line into symbol name and symbol address
8106 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'"
8108 # Define system-specific variables.
8113 cygwin* | mingw* | pw32*)
8114 symcode='[ABCDGISTW]'
8116 hpux*) # Its linker distinguishes data from code symbols
8117 if test "$host_cpu" = ia64; then
8118 symcode='[ABCDEGRST]'
8120 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8121 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'"
8123 linux* | k*bsd*-gnu)
8124 if test "$host_cpu" = ia64; then
8125 symcode='[ABCDGIRSTW]'
8126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8127 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'"
8131 symcode='[BCDEGRST]'
8134 symcode='[BCDEGQRST]'
8145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8153 # Handle CRLF in mingw tool chain
8157 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8161 # If we're using GNU nm, then use its standard symbol codes.
8162 case `$NM -V 2>&1` in
8163 *GNU* | *'with BFD'*)
8164 symcode='[ABCDGIRSTW]' ;;
8167 # Try without a prefix undercore, then with it.
8168 for ac_symprfx in "" "_"; do
8170 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8171 symxfrm="\\1 $ac_symprfx\\2 \\2"
8173 # Write the raw and C identifiers.
8174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8176 # Check to see that the pipe works correctly.
8180 cat > conftest.$ac_ext <<EOF
8185 void nm_test_func(){}
8189 int main(){nm_test_var='a';nm_test_func();return(0);}
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; then
8197 # Now try to grab the symbols.
8199 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && test -s "$nlist"; then
8204 # Try sorting and uniquifying the output.
8205 if sort "$nlist" | uniq > "$nlist"T; then
8206 mv -f "$nlist"T "$nlist"
8211 # Make sure that we snagged all the symbols we need.
8212 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8213 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8214 cat <<EOF > conftest.$ac_ext
8220 # Now generate the symbol file.
8221 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8223 cat <<EOF >> conftest.$ac_ext
8224 #if defined (__STDC__) && __STDC__
8225 # define lt_ptr_t void *
8227 # define lt_ptr_t char *
8231 /* The mapping between symbol names and symbols. */
8236 lt_preloaded_symbols[] =
8239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8240 cat <<\EOF >> conftest.$ac_ext
8248 # Now try linking the two files.
8249 mv conftest.$ac_objext conftstm.$ac_objext
8250 lt_save_LIBS="$LIBS"
8251 lt_save_CFLAGS="$CFLAGS"
8252 LIBS="conftstm.$ac_objext"
8253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8261 LIBS="$lt_save_LIBS"
8262 CFLAGS="$lt_save_CFLAGS"
8264 echo "cannot find nm_test_func in $nlist" >&5
8267 echo "cannot find nm_test_var in $nlist" >&5
8270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8273 echo "$progname: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 rm -f conftest* conftst*
8278 # Do not use the global_symbol_pipe unless it works.
8279 if test "$pipe_works" = yes; then
8282 lt_cv_sys_global_symbol_pipe=
8288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8289 lt_cv_sys_global_symbol_to_cdecl=
8291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8292 { echo "$as_me:$LINENO: result: failed" >&5
8293 echo "${ECHO_T}failed" >&6; }
8295 { echo "$as_me:$LINENO: result: ok" >&5
8296 echo "${ECHO_T}ok" >&6; }
8299 { echo "$as_me:$LINENO: checking for objdir" >&5
8300 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8301 if test "${lt_cv_objdir+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 rm -f .libs 2>/dev/null
8305 mkdir .libs 2>/dev/null
8306 if test -d .libs; then
8309 # MS-DOS does not allow filenames that begin with a dot.
8312 rmdir .libs 2>/dev/null
8314 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8315 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8316 objdir=$lt_cv_objdir
8324 # AIX sometimes has problems with the GCC collect2 program. For some
8325 # reason, if we set the COLLECT_NAMES environment variable, the problems
8326 # vanish in a puff of smoke.
8327 if test "X${COLLECT_NAMES+set}" != Xset; then
8329 export COLLECT_NAMES
8334 # Sed substitution that helps us do robust quoting. It backslashifies
8335 # metacharacters that are still active within double-quoted strings.
8336 Xsed='sed -e 1s/^X//'
8337 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8339 # Same as above, but do not quote variable references.
8340 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8342 # Sed substitution to delay expansion of an escaped shell variable in a
8343 # double_quote_subst'ed string.
8344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8346 # Sed substitution to avoid accidental globbing in evaled expressions
8347 no_glob_subst='s/\*/\\\*/g'
8353 default_ofile=libtool
8354 can_build_shared=yes
8356 # All known linkers require a `.a' archive for static linking (except MSVC,
8357 # which needs '.lib').
8359 ltmain="$ac_aux_dir/ltmain.sh"
8360 ofile="$default_ofile"
8361 with_gnu_ld="$lt_cv_prog_gnu_ld"
8363 if test -n "$ac_tool_prefix"; then
8364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8365 set dummy ${ac_tool_prefix}ar; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_prog_AR+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 if test -n "$AR"; then
8372 ac_cv_prog_AR="$AR" # Let the user override the test.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_prog_AR="${ac_tool_prefix}ar"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 if test -n "$AR"; then
8393 { echo "$as_me:$LINENO: result: $AR" >&5
8394 echo "${ECHO_T}$AR" >&6; }
8396 { echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6; }
8402 if test -z "$ac_cv_prog_AR"; then
8404 # Extract the first word of "ar", so it can be a program name with args.
8405 set dummy ar; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 if test -n "$ac_ct_AR"; then
8412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_ac_ct_AR="ar"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8432 if test -n "$ac_ct_AR"; then
8433 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8434 echo "${ECHO_T}$ac_ct_AR" >&6; }
8436 { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8440 if test "x$ac_ct_AR" = x; then
8443 case $cross_compiling:$ac_tool_warned in
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8464 if test "${ac_cv_prog_RANLIB+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 if test -n "$RANLIB"; then
8468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8490 echo "${ECHO_T}$RANLIB" >&6; }
8492 { echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6; }
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499 ac_ct_RANLIB=$RANLIB
8500 # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 if test -n "$ac_ct_RANLIB"; then
8508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_prog_ac_ct_RANLIB="ranlib"
8518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8532 { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8536 if test "x$ac_ct_RANLIB" = x; then
8539 case $cross_compiling:$ac_tool_warned in
8541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8542 whose name does not start with the host triplet. If you think this
8543 configuration is useful to you, please write to autoconf@gnu.org." >&5
8544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8545 whose name does not start with the host triplet. If you think this
8546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8547 ac_tool_warned=yes ;;
8549 RANLIB=$ac_ct_RANLIB
8552 RANLIB="$ac_cv_prog_RANLIB"
8555 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}strip; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_prog_STRIP+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 if test -n "$STRIP"; then
8564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 STRIP=$ac_cv_prog_STRIP
8584 if test -n "$STRIP"; then
8585 { echo "$as_me:$LINENO: result: $STRIP" >&5
8586 echo "${ECHO_T}$STRIP" >&6; }
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8594 if test -z "$ac_cv_prog_STRIP"; then
8596 # Extract the first word of "strip", so it can be a program name with args.
8597 set dummy strip; ac_word=$2
8598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 if test -n "$ac_ct_STRIP"; then
8604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_ac_ct_STRIP="strip"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8624 if test -n "$ac_ct_STRIP"; then
8625 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8626 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8628 { echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6; }
8632 if test "x$ac_ct_STRIP" = x; then
8635 case $cross_compiling:$ac_tool_warned in
8637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8638 whose name does not start with the host triplet. If you think this
8639 configuration is useful to you, please write to autoconf@gnu.org." >&5
8640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8641 whose name does not start with the host triplet. If you think this
8642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8643 ac_tool_warned=yes ;;
8648 STRIP="$ac_cv_prog_STRIP"
8653 old_CFLAGS="$CFLAGS"
8655 # Set sane defaults for various variables
8656 test -z "$AR" && AR=ar
8657 test -z "$AR_FLAGS" && AR_FLAGS=cru
8658 test -z "$AS" && AS=as
8659 test -z "$CC" && CC=cc
8660 test -z "$LTCC" && LTCC=$CC
8661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8662 test -z "$DLLTOOL" && DLLTOOL=dlltool
8663 test -z "$LD" && LD=ld
8664 test -z "$LN_S" && LN_S="ln -s"
8665 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8666 test -z "$NM" && NM=nm
8667 test -z "$SED" && SED=sed
8668 test -z "$OBJDUMP" && OBJDUMP=objdump
8669 test -z "$RANLIB" && RANLIB=:
8670 test -z "$STRIP" && STRIP=:
8671 test -z "$ac_objext" && ac_objext=o
8673 # Determine commands to create old-style static archives.
8674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8675 old_postinstall_cmds='chmod 644 $oldlib'
8676 old_postuninstall_cmds=
8678 if test -n "$RANLIB"; then
8681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8690 for cc_temp in $compiler""; do
8692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8701 # Only perform the check for file, if the check method requires it
8702 case $deplibs_check_method in
8704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8705 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8715 lt_save_MAGIC_CMD="$MAGIC_CMD"
8716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8717 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8718 for ac_dir in $ac_dummy; do
8720 test -z "$ac_dir" && ac_dir=.
8721 if test -f $ac_dir/${ac_tool_prefix}file; then
8722 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8723 if test -n "$file_magic_test_file"; then
8724 case $deplibs_check_method in
8726 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8729 $EGREP "$file_magic_regex" > /dev/null; then
8734 *** Warning: the command libtool uses to detect shared libraries,
8735 *** $file_magic_cmd, produces output that libtool cannot recognize.
8736 *** The result is that libtool may fail to recognize shared libraries
8737 *** as such. This will affect the creation of libtool libraries that
8738 *** depend on shared libraries, but programs linked with such libtool
8739 *** libraries will work regardless of this problem. Nevertheless, you
8740 *** may want to report the problem to your system manager and/or to
8741 *** bug-libtool@gnu.org
8751 MAGIC_CMD="$lt_save_MAGIC_CMD"
8756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8757 if test -n "$MAGIC_CMD"; then
8758 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8759 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8761 { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8765 if test -z "$lt_cv_path_MAGIC_CMD"; then
8766 if test -n "$ac_tool_prefix"; then
8767 { echo "$as_me:$LINENO: checking for file" >&5
8768 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8777 lt_save_MAGIC_CMD="$MAGIC_CMD"
8778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8780 for ac_dir in $ac_dummy; do
8782 test -z "$ac_dir" && ac_dir=.
8783 if test -f $ac_dir/file; then
8784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8785 if test -n "$file_magic_test_file"; then
8786 case $deplibs_check_method in
8788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8791 $EGREP "$file_magic_regex" > /dev/null; then
8796 *** Warning: the command libtool uses to detect shared libraries,
8797 *** $file_magic_cmd, produces output that libtool cannot recognize.
8798 *** The result is that libtool may fail to recognize shared libraries
8799 *** as such. This will affect the creation of libtool libraries that
8800 *** depend on shared libraries, but programs linked with such libtool
8801 *** libraries will work regardless of this problem. Nevertheless, you
8802 *** may want to report the problem to your system manager and/or to
8803 *** bug-libtool@gnu.org
8813 MAGIC_CMD="$lt_save_MAGIC_CMD"
8818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8819 if test -n "$MAGIC_CMD"; then
8820 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8821 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8837 enable_win32_dll=yes
8839 # Check whether --enable-libtool-lock was given.
8840 if test "${enable_libtool_lock+set}" = set; then
8841 enableval=$enable_libtool_lock;
8844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8847 # Check whether --with-pic was given.
8848 if test "${with_pic+set}" = set; then
8849 withval=$with_pic; pic_mode="$withval"
8854 test -z "$pic_mode" && pic_mode=default
8856 # Use C for the default configuration in the libtool script
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866 # Source file extension for C test sources.
8869 # Object file extension for compiled C test sources.
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;\n"
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}\n'
8880 # If no C compiler was specified, use CC.
8883 # If no C compiler flags were specified, use CFLAGS.
8884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8886 # Allow CC to be a program name with arguments.
8890 # save warnings/boilerplate of simple test code
8891 ac_outfile=conftest.$ac_objext
8892 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8894 _lt_compiler_boilerplate=`cat conftest.err`
8897 ac_outfile=conftest.$ac_objext
8898 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8900 _lt_linker_boilerplate=`cat conftest.err`
8905 lt_prog_compiler_no_builtin_flag=
8907 if test "$GCC" = yes; then
8908 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8911 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8912 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8913 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 lt_cv_prog_compiler_rtti_exceptions=no
8917 ac_outfile=conftest.$ac_objext
8918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-fno-rtti -fno-exceptions"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 # The option is referenced via a variable to avoid confusing sed.
8925 lt_compile=`echo "$ac_compile" | $SED \
8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928 -e 's:$: $lt_compiler_flag:'`
8929 (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
8930 (eval "$lt_compile" 2>conftest.err)
8932 cat conftest.err >&5
8933 echo "$as_me:8933: \$? = $ac_status" >&5
8934 if (exit $ac_status) && test -s "$ac_outfile"; then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings other than the usual output.
8937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_rtti_exceptions=yes
8946 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8947 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8957 lt_prog_compiler_wl=
8958 lt_prog_compiler_pic=
8959 lt_prog_compiler_static=
8961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8964 if test "$GCC" = yes; then
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_static='-static'
8970 # All AIX code is PIC.
8971 if test "$host_cpu" = ia64; then
8972 # AIX 5 now supports IA64 processor
8973 lt_prog_compiler_static='-Bstatic'
8978 # FIXME: we need at least 68020 code to build shared libraries, but
8979 # adding the `-m68020' flag to GCC prevents building anything better,
8981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8985 # PIC is the default for these OSes.
8988 mingw* | pw32* | os2*)
8989 # This hack is so that the source file can tell whether it is being
8990 # built for inclusion in a dll (and should export symbols for example).
8991 lt_prog_compiler_pic='-DDLL_EXPORT'
8994 darwin* | rhapsody*)
8995 # PIC is the default on this platform
8996 # Common symbols not allowed in MH_DYLIB files
8997 lt_prog_compiler_pic='-fno-common'
9001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9002 # Instead, we relocate shared libraries at runtime.
9006 # Just because we use GCC doesn't mean we suddenly get shared libraries
9007 # on systems that don't support them.
9008 lt_prog_compiler_can_build_shared=no
9013 if test -d /usr/nec; then
9014 lt_prog_compiler_pic=-Kconform_pic
9019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9026 lt_prog_compiler_pic='-fPIC'
9032 lt_prog_compiler_pic='-fPIC'
9036 # PORTME Check for flag to pass linker flags through the system compiler.
9039 lt_prog_compiler_wl='-Wl,'
9040 if test "$host_cpu" = ia64; then
9041 # AIX 5 now supports IA64 processor
9042 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9048 # PIC is the default on this platform
9049 # Common symbols not allowed in MH_DYLIB files
9050 case $cc_basename in
9052 lt_prog_compiler_pic='-qnocommon'
9053 lt_prog_compiler_wl='-Wl,'
9058 mingw* | pw32* | os2*)
9059 # This hack is so that the source file can tell whether it is being
9060 # built for inclusion in a dll (and should export symbols for example).
9061 lt_prog_compiler_pic='-DDLL_EXPORT'
9064 hpux9* | hpux10* | hpux11*)
9065 lt_prog_compiler_wl='-Wl,'
9066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9073 lt_prog_compiler_pic='+Z'
9076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9077 lt_prog_compiler_static='${wl}-a ${wl}archive'
9080 irix5* | irix6* | nonstopux*)
9081 lt_prog_compiler_wl='-Wl,'
9082 # PIC (with -KPIC) is the default.
9083 lt_prog_compiler_static='-non_shared'
9087 lt_prog_compiler_pic='-KPIC'
9088 lt_prog_compiler_static='-Bstatic'
9091 linux* | k*bsd*-gnu)
9092 case $cc_basename in
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-static'
9098 pgcc* | pgf77* | pgf90* | pgf95*)
9099 # Portland Group compilers (*not* the Pentium gcc compiler,
9100 # which looks to be a dead project)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_pic='-fpic'
9103 lt_prog_compiler_static='-Bstatic'
9106 lt_prog_compiler_wl='-Wl,'
9107 # All Alpha code is PIC.
9108 lt_prog_compiler_static='-non_shared'
9113 osf3* | osf4* | osf5*)
9114 lt_prog_compiler_wl='-Wl,'
9115 # All OSF/1 code is PIC.
9116 lt_prog_compiler_static='-non_shared'
9120 lt_prog_compiler_pic='-KPIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 case $cc_basename in
9124 lt_prog_compiler_wl='-Qoption ld ';;
9126 lt_prog_compiler_wl='-Wl,';;
9131 lt_prog_compiler_wl='-Qoption ld '
9132 lt_prog_compiler_pic='-PIC'
9133 lt_prog_compiler_static='-Bstatic'
9136 sysv4 | sysv4.2uw2* | sysv4.3*)
9137 lt_prog_compiler_wl='-Wl,'
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9143 if test -d /usr/nec ;then
9144 lt_prog_compiler_pic='-Kconform_pic'
9145 lt_prog_compiler_static='-Bstatic'
9149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-KPIC'
9152 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_can_build_shared=no
9161 lt_prog_compiler_pic='-pic'
9162 lt_prog_compiler_static='-Bstatic'
9166 lt_prog_compiler_can_build_shared=no
9171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9172 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9175 # Check to make sure the PIC flag actually works.
9177 if test -n "$lt_prog_compiler_pic"; then
9179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9181 if test "${lt_prog_compiler_pic_works+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 lt_prog_compiler_pic_works=no
9185 ac_outfile=conftest.$ac_objext
9186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:9197: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>conftest.err)
9200 cat conftest.err >&5
9201 echo "$as_me:9201: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_prog_compiler_pic_works=yes
9214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9215 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9217 if test x"$lt_prog_compiler_pic_works" = xyes; then
9218 case $lt_prog_compiler_pic in
9220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9223 lt_prog_compiler_pic=
9224 lt_prog_compiler_can_build_shared=no
9229 # For platforms which do not support PIC, -DPIC is meaningless:
9231 lt_prog_compiler_pic=
9234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9239 # Check to make sure the static flag actually works.
9241 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9244 if test "${lt_prog_compiler_static_works+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 lt_prog_compiler_static_works=no
9248 save_LDFLAGS="$LDFLAGS"
9249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9252 # The linker can only warn and ignore the option if not recognized
9253 # So say no if there are warnings
9254 if test -s conftest.err; then
9255 # Append any errors to the config.log.
9256 cat conftest.err 1>&5
9257 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9259 if diff conftest.exp conftest.er2 >/dev/null; then
9260 lt_prog_compiler_static_works=yes
9263 lt_prog_compiler_static_works=yes
9267 LDFLAGS="$save_LDFLAGS"
9270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9271 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9273 if test x"$lt_prog_compiler_static_works" = xyes; then
9276 lt_prog_compiler_static=
9280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9282 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 lt_cv_prog_compiler_c_o=no
9286 $rm -r conftest 2>/dev/null
9290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9292 lt_compiler_flag="-o out/conftest2.$ac_objext"
9293 # Insert the option either (1) after the last *FLAGS variable, or
9294 # (2) before a word containing "conftest.", or (3) at the end.
9295 # Note that $ac_compile itself does not contain backslashes and begins
9296 # with a dollar sign (not a hyphen), so the echo should work correctly.
9297 lt_compile=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:9301: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>out/conftest.err)
9304 cat out/conftest.err >&5
9305 echo "$as_me:9305: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9308 # The compiler can only warn and ignore the option if not recognized
9309 # So say no if there are warnings
9310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313 lt_cv_prog_compiler_c_o=yes
9318 # SGI C++ compiler will create directory out/ii_files/ for
9319 # template instantiation
9320 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9321 $rm out/* && rmdir out
9327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9331 hard_links="nottested"
9332 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9333 # do not overwrite the value of need_locks provided by the user
9334 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9340 ln conftest.a conftest.b 2>&5 || hard_links=no
9341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9342 { echo "$as_me:$LINENO: result: $hard_links" >&5
9343 echo "${ECHO_T}$hard_links" >&6; }
9344 if test "$hard_links" = no; then
9345 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9357 allow_undefined_flag=
9358 enable_shared_with_static_runtimes=no
9360 archive_expsym_cmds=
9361 old_archive_From_new_cmds=
9362 old_archive_from_expsyms_cmds=
9363 export_dynamic_flag_spec=
9364 whole_archive_flag_spec=
9365 thread_safe_flag_spec=
9366 hardcode_libdir_flag_spec=
9367 hardcode_libdir_flag_spec_ld=
9368 hardcode_libdir_separator=
9371 hardcode_shlibpath_var=unsupported
9372 link_all_deplibs=unknown
9373 hardcode_automatic=no
9376 always_export_symbols=no
9377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9378 # include_expsyms should be a list of space-separated symbols to be *always*
9379 # included in the symbol list
9381 # exclude_expsyms can be an extended regexp of symbols to exclude
9382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384 # as well as any symbol that contains `d'.
9385 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387 # platforms (ab)use it in PIC code, but their linkers get confused if
9388 # the symbol is explicitly referenced. Since portable code cannot
9389 # rely on this symbol name, it's probably fine to never include it in
9390 # preloaded symbol tables.
9391 extract_expsyms_cmds=
9392 # Just being paranoid about ensuring that cc_basename is set.
9393 for cc_temp in $compiler""; do
9395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9404 cygwin* | mingw* | pw32*)
9405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9406 # When not using gcc, we currently assume that we are using
9407 # Microsoft Visual C++.
9408 if test "$GCC" != yes; then
9413 # we just hope/assume this is gcc and not c89 (= MSVC++)
9422 if test "$with_gnu_ld" = yes; then
9423 # If archive_cmds runs LD, not CC, wlarc should be empty
9426 # Set some defaults for GNU ld with shared library support. These
9427 # are reset later if shared libraries are not supported. Putting them
9428 # here allows them to be overridden if necessary.
9429 runpath_var=LD_RUN_PATH
9430 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9431 export_dynamic_flag_spec='${wl}--export-dynamic'
9432 # ancient GNU ld didn't support --whole-archive et. al.
9433 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9436 whole_archive_flag_spec=
9438 supports_anon_versioning=no
9439 case `$LD -v 2>/dev/null` in
9440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9443 *\ 2.11.*) ;; # other 2.11 versions
9444 *) supports_anon_versioning=yes ;;
9447 # See if GNU ld supports shared libraries.
9449 aix3* | aix4* | aix5*)
9450 # On AIX/PPC, the GNU linker is very broken
9451 if test "$host_cpu" != ia64; then
9455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9456 *** to be unable to reliably create shared libraries on AIX.
9457 *** Therefore, libtool is disabling shared libraries support. If you
9458 *** really care for shared libraries, you may want to modify your PATH
9459 *** so that a non-GNU linker is found, and then restart.
9466 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)'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_minus_L=yes
9470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9471 # that the semantics of dynamic libraries on AmigaOS, at least up
9472 # to version 4, is to share data among multiple programs linked
9473 # with the same dynamic library. Since this doesn't match the
9474 # behavior of shared libraries on other platforms, we can't use
9480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9481 allow_undefined_flag=unsupported
9482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9483 # support --undefined. This deserves some investigation. FIXME
9484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 cygwin* | mingw* | pw32*)
9491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492 # as there is no search path for DLLs.
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 allow_undefined_flag=unsupported
9495 always_export_symbols=no
9496 enable_shared_with_static_runtimes=yes
9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501 # If the export-symbols file already is a .def file (1st line
9502 # is EXPORTS), use it as is; otherwise, prepend...
9503 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9504 cp $export_symbols $output_objdir/$soname.def;
9506 echo EXPORTS > $output_objdir/$soname.def;
9507 cat $export_symbols >> $output_objdir/$soname.def;
9509 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9517 hardcode_shlibpath_var=no
9518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 export_dynamic_flag_spec='${wl}-E'
9520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9521 # Instead, shared libraries are loaded at an image base (0x10000000 by
9522 # default) and relocated if they conflict, which is a slow very memory
9523 # consuming and fragmenting process. To avoid this, we pick a random,
9524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9527 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'
9530 linux* | k*bsd*-gnu)
9531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9533 case $cc_basename,$host_cpu in
9534 pgcc*) # Portland Group C compiler
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'
9538 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9539 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'
9540 tmp_addflag=' $pic_flag -Mnomain' ;;
9541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9542 tmp_addflag=' -i_dynamic' ;;
9543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9544 tmp_addflag=' -i_dynamic -nofor_main' ;;
9545 ifc* | ifort*) # Intel Fortran compiler
9546 tmp_addflag=' -nofor_main' ;;
9548 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 if test $supports_anon_versioning = yes; then
9551 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9553 $echo "local: *; };" >> $output_objdir/$libname.ver~
9554 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9562 netbsd* | netbsdelf*-gnu)
9563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9578 *** create shared libraries on Solaris systems. Therefore, libtool
9579 *** is disabling shared libraries support. We urge you to upgrade GNU
9580 *** binutils to release 2.9.1 or newer. Another option is to modify
9581 *** your PATH or compiler configuration so that the native linker is
9582 *** used, and then restart.
9585 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9594 case `$LD -v 2>&1` in
9595 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9600 *** reliably create shared libraries on SCO systems. Therefore, libtool
9601 *** is disabling shared libraries support. We urge you to upgrade GNU
9602 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9603 *** your PATH or compiler configuration so that the native linker is
9604 *** used, and then restart.
9609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9610 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_shlibpath_var=no
9628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637 if test "$ld_shlibs" = no; then
9639 hardcode_libdir_flag_spec=
9640 export_dynamic_flag_spec=
9641 whole_archive_flag_spec=
9644 # PORTME fill in a description of your system's linker (not GNU ld)
9647 allow_undefined_flag=unsupported
9648 always_export_symbols=yes
9649 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'
9650 # Note: this linker hardcodes the directories in LIBPATH if there
9651 # are no directories specified by -L.
9652 hardcode_minus_L=yes
9653 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9654 # Neither direct hardcoding nor static linking is supported with a
9656 hardcode_direct=unsupported
9661 if test "$host_cpu" = ia64; then
9662 # On IA64, the linker does run time linking by default, so we don't
9663 # have to do anything special.
9664 aix_use_runtimelinking=no
9665 exp_sym_flag='-Bexport'
9668 # If we're using GNU nm, then we don't want the "-C" option.
9669 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9670 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9671 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'
9673 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'
9675 aix_use_runtimelinking=no
9677 # Test if we are trying to use run time linking or normal
9678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679 # need to do runtime linking.
9680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9681 for ld_flag in $LDFLAGS; do
9682 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9683 aix_use_runtimelinking=yes
9690 exp_sym_flag='-bexport'
9691 no_entry_flag='-bnoentry'
9694 # When large executables or shared objects are built, AIX ld can
9695 # have problems creating the table of contents. If linking a library
9696 # or program results in "error TOC overflow" add -mminimal-toc to
9697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9702 hardcode_libdir_separator=':'
9703 link_all_deplibs=yes
9705 if test "$GCC" = yes; then
9706 case $host_os in aix4.[012]|aix4.[012].*)
9707 # We only want to do this on AIX 4.2 and lower, the check
9708 # below for broken collect2 doesn't work under 4.3+
9709 collect2name=`${CC} -print-prog-name=collect2`
9710 if test -f "$collect2name" && \
9711 strings "$collect2name" | grep resolve_lib_name >/dev/null
9713 # We have reworked collect2
9716 # We have old collect2
9717 hardcode_direct=unsupported
9718 # It fails to find uninstalled libraries when the uninstalled
9719 # path is not listed in the libpath. Setting hardcode_minus_L
9720 # to unsupported forces relinking
9721 hardcode_minus_L=yes
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_libdir_separator=
9727 shared_flag='-shared'
9728 if test "$aix_use_runtimelinking" = yes; then
9729 shared_flag="$shared_flag "'${wl}-G'
9733 if test "$host_cpu" = ia64; then
9734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9735 # chokes on -Wl,-G. The following line is correct:
9738 if test "$aix_use_runtimelinking" = yes; then
9739 shared_flag='${wl}-G'
9741 shared_flag='${wl}-bM:SRE'
9746 # It seems that -bexpall does not export symbols beginning with
9747 # underscore (_), so it is better to generate a list of symbols to export.
9748 always_export_symbols=yes
9749 if test "$aix_use_runtimelinking" = yes; then
9750 # Warning - without using the other runtime loading flags (-brtl),
9751 # -berok will link without error, but may produce a broken library.
9752 allow_undefined_flag='-berok'
9753 # Determine the default libpath from the value encoded in an empty executable.
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9806 # Check for a 64-bit object if we didn't find anything.
9807 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; }
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f core conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 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"
9823 if test "$host_cpu" = ia64; then
9824 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9825 allow_undefined_flag="-z nodefs"
9826 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"
9828 # Determine the default libpath from the value encoded in an empty executable.
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9881 # Check for a 64-bit object if we didn't find anything.
9882 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; }
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 # Warning - without using the other run time loading flags,
9897 # -berok will link without error, but may produce a broken library.
9898 no_undefined_flag=' ${wl}-bernotok'
9899 allow_undefined_flag=' ${wl}-berok'
9900 # Exported symbols can be pulled into shared objects from archives
9901 whole_archive_flag_spec='$convenience'
9902 archive_cmds_need_lc=yes
9903 # This is similar to how AIX traditionally builds its shared libraries.
9904 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'
9910 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)'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_minus_L=yes
9913 # see comment about different semantics on the GNU ld section
9918 export_dynamic_flag_spec=-rdynamic
9921 cygwin* | mingw* | pw32*)
9922 # When not using gcc, we currently assume that we are using
9923 # Microsoft Visual C++.
9924 # hardcode_libdir_flag_spec is actually meaningless, as there is
9925 # no search path for DLLs.
9926 hardcode_libdir_flag_spec=' '
9927 allow_undefined_flag=unsupported
9928 # Tell ltmain to make .lib files, not .a files.
9930 # Tell ltmain to make .dll files, not .so files.
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9934 # The linker will automatically build a .lib file if we build a DLL.
9935 old_archive_From_new_cmds='true'
9936 # FIXME: Should let the user specify the lib program.
9937 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9938 fix_srcfile_path='`cygpath -w "$srcfile"`'
9939 enable_shared_with_static_runtimes=yes
9942 darwin* | rhapsody*)
9944 rhapsody* | darwin1.[012])
9945 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9948 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9951 case ${MACOSX_DEPLOYMENT_TARGET} in
9953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9956 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9962 archive_cmds_need_lc=no
9964 hardcode_automatic=yes
9965 hardcode_shlibpath_var=unsupported
9966 whole_archive_flag_spec=''
9967 link_all_deplibs=yes
9968 if test "$GCC" = yes ; then
9969 output_verbose_link_cmd='echo'
9970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9973 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}'
9974 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}'
9976 case $cc_basename in
9978 output_verbose_link_cmd='echo'
9979 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9982 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}'
9983 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}'
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_shlibpath_var=no
10002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10003 # support. Future versions do this automatically, but an explicit c++rt0.o
10004 # does not break anything, and helps significantly (at the cost of a little
10007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_direct=yes
10017 hardcode_minus_L=yes
10018 hardcode_shlibpath_var=no
10021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10022 freebsd* | dragonfly*)
10023 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 hardcode_direct=yes
10026 hardcode_shlibpath_var=no
10030 if test "$GCC" = yes; then
10031 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'
10033 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'
10035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10036 hardcode_libdir_separator=:
10037 hardcode_direct=yes
10039 # hardcode_minus_L: Not really in the search PATH,
10040 # but as the default location of the library.
10041 hardcode_minus_L=yes
10042 export_dynamic_flag_spec='${wl}-E'
10046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10047 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10051 if test "$with_gnu_ld" = no; then
10052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10053 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056 export_dynamic_flag_spec='${wl}-E'
10058 # hardcode_minus_L: Not really in the search PATH,
10059 # but as the default location of the library.
10060 hardcode_minus_L=yes
10065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10090 if test "$with_gnu_ld" = no; then
10091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092 hardcode_libdir_separator=:
10096 hardcode_libdir_flag_spec_ld='+b $libdir'
10098 hardcode_shlibpath_var=no
10101 hardcode_direct=yes
10102 export_dynamic_flag_spec='${wl}-E'
10104 # hardcode_minus_L: Not really in the search PATH,
10105 # but as the default location of the library.
10106 hardcode_minus_L=yes
10112 irix5* | irix6* | nonstopux*)
10113 if test "$GCC" = yes; then
10114 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'
10116 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'
10117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 link_all_deplibs=yes
10124 netbsd* | netbsdelf*-gnu)
10125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10128 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10130 hardcode_libdir_flag_spec='-R$libdir'
10131 hardcode_direct=yes
10132 hardcode_shlibpath_var=no
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_direct=yes
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140 hardcode_shlibpath_var=no
10144 hardcode_direct=yes
10145 hardcode_shlibpath_var=no
10146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150 export_dynamic_flag_spec='${wl}-E'
10153 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_libdir_flag_spec='-R$libdir'
10158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_minus_L=yes
10168 allow_undefined_flag=unsupported
10169 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'
10170 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10174 if test "$GCC" = yes; then
10175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10176 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'
10178 allow_undefined_flag=' -expect_unresolved \*'
10179 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'
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10185 osf4* | osf5*) # as osf3* with the addition of -msym flag
10186 if test "$GCC" = yes; then
10187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10191 allow_undefined_flag=' -expect_unresolved \*'
10192 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'
10193 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10194 $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'
10196 # Both c and cxx compiler support -rpath directly
10197 hardcode_libdir_flag_spec='-rpath $libdir'
10199 hardcode_libdir_separator=:
10203 no_undefined_flag=' -z text'
10204 if test "$GCC" = yes; then
10206 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10208 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10215 hardcode_libdir_flag_spec='-R$libdir'
10216 hardcode_shlibpath_var=no
10218 solaris2.[0-5] | solaris2.[0-5].*) ;;
10220 # The compiler driver will combine linker options so we
10221 # cannot just pass the convience library names through
10222 # without $wl, iff we do not link with $LD.
10223 # Luckily, gcc supports the same syntax we need for Sun Studio.
10224 # Supported since Solaris 2.6 (maybe 2.5.1?)
10227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10229 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' ;;
10232 link_all_deplibs=yes
10236 if test "x$host_vendor" = xsequent; then
10237 # Use $CC to link under sequent, because it throws in some extra .o
10238 # files that make .init and .fini sections work.
10239 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_direct=yes
10245 hardcode_minus_L=yes
10246 hardcode_shlibpath_var=no
10250 case $host_vendor in
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_direct=yes # is this really true???
10256 ## LD is ld it makes a PLAMLIB
10257 ## CC just makes a GrossModule.
10258 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10259 reload_cmds='$CC -r -o $output$reload_objs'
10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10267 runpath_var='LD_RUN_PATH'
10268 hardcode_shlibpath_var=no
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_shlibpath_var=no
10274 export_dynamic_flag_spec='-Bexport'
10278 if test -d /usr/nec; then
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_shlibpath_var=no
10281 runpath_var=LD_RUN_PATH
10282 hardcode_runpath_var=yes
10287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10288 no_undefined_flag='${wl}-z,text'
10289 archive_cmds_need_lc=no
10290 hardcode_shlibpath_var=no
10291 runpath_var='LD_RUN_PATH'
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 sysv5* | sco3.2v5* | sco5v6*)
10303 # Note: We can NOT use -z defs as we might desire, because we do not
10304 # link with -lc, and that would cause any symbols used from libc to
10305 # always be unresolved, which means just about no library would
10306 # ever link correctly. If we're not using GNU ld we use -z text
10307 # though, which does catch some bad symbols but isn't as heavy-handed
10309 no_undefined_flag='${wl}-z,text'
10310 allow_undefined_flag='${wl}-z,nodefs'
10311 archive_cmds_need_lc=no
10312 hardcode_shlibpath_var=no
10313 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10314 hardcode_libdir_separator=':'
10315 link_all_deplibs=yes
10316 export_dynamic_flag_spec='${wl}-Bexport'
10317 runpath_var='LD_RUN_PATH'
10319 if test "$GCC" = yes; then
10320 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_libdir_flag_spec='-L$libdir'
10331 hardcode_shlibpath_var=no
10340 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10341 echo "${ECHO_T}$ld_shlibs" >&6; }
10342 test "$ld_shlibs" = no && can_build_shared=no
10345 # Do we need to explicitly link libc?
10347 case "x$archive_cmds_need_lc" in
10349 # Assume -lc should be added
10350 archive_cmds_need_lc=yes
10352 if test "$enable_shared" = yes && test "$GCC" = yes; then
10353 case $archive_cmds in
10355 # FIXME: we may have to deal with multi-command sequences.
10358 # Test whether the compiler implicitly links with -lc since on some
10359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10360 # to ld, don't add -lc before -lgcc.
10361 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } 2>conftest.err; then
10373 libobjs=conftest.$ac_objext
10375 wl=$lt_prog_compiler_wl
10376 pic_flag=$lt_prog_compiler_pic
10382 lt_save_allow_undefined_flag=$allow_undefined_flag
10383 allow_undefined_flag=
10384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10385 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }
10390 archive_cmds_need_lc=no
10392 archive_cmds_need_lc=yes
10394 allow_undefined_flag=$lt_save_allow_undefined_flag
10396 cat conftest.err 1>&5
10399 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10400 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10407 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10409 library_names_spec=
10410 libname_spec='lib$name'
10414 postuninstall_cmds=
10418 shlibpath_overrides_runpath=unknown
10420 dynamic_linker="$host_os ld.so"
10421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10422 if test "$GCC" = yes; then
10423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10424 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10425 # if the path contains ";" then we assume it to be the separator
10426 # otherwise default to the standard path separator (i.e. ":") - it is
10427 # assumed that no part of a normal pathname contains ";" but that should
10428 # okay in the real world where ";" in dirpaths is itself problematic.
10429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10436 need_lib_prefix=unknown
10437 hardcode_into_libs=no
10439 # when you set need_version to no, make sure it does not cause -set_version
10440 # flags to be left without arguments
10441 need_version=unknown
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10447 shlibpath_var=LIBPATH
10449 # AIX 3 has no versioning support, so we append a major version to the name.
10450 soname_spec='${libname}${release}${shared_ext}$major'
10457 hardcode_into_libs=yes
10458 if test "$host_cpu" = ia64; then
10459 # AIX 5 supports IA64
10460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10463 # With GCC up to 2.95.x, collect2 would create an import file
10464 # for dependence libraries. The import file would start with
10465 # the line `#! .'. This would cause the generated library to
10466 # depend on `.', always an invalid library. This was fixed in
10467 # development snapshots of GCC prior to 3.0.
10469 aix4 | aix4.[01] | aix4.[01].*)
10470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10475 can_build_shared=no
10479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10480 # soname into executable. Probably we can add versioning support to
10481 # collect2, so additional links can be useful in future.
10482 if test "$aix_use_runtimelinking" = yes; then
10483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10484 # instead of lib<name>.a to let people know that these are not
10485 # typical AIX shared libraries.
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 # We preserve .a as extension for shared libraries through AIX4.2
10489 # and later when we are not doing run time linking.
10490 library_names_spec='${libname}${release}.a $libname.a'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10493 shlibpath_var=LIBPATH
10498 library_names_spec='$libname.ixlibrary $libname.a'
10499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10500 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'
10504 library_names_spec='${libname}${shared_ext}'
10505 dynamic_linker="$host_os ld.so"
10506 shlibpath_var=LIBRARY_PATH
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10518 # the default ld.so.conf also contains /usr/contrib/lib and
10519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10520 # libtool to hard-code these into programs
10523 cygwin* | mingw* | pw32*)
10524 version_type=windows
10529 case $GCC,$host_os in
10530 yes,cygwin* | yes,mingw* | yes,pw32*)
10531 library_names_spec='$libname.dll.a'
10532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10533 postinstall_cmds='base_file=`basename \${file}`~
10534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10535 dldir=$destdir/`dirname \$dlpath`~
10536 test -d \$dldir || mkdir -p \$dldir~
10537 $install_prog $dir/$dlname \$dldir/$dlname~
10538 chmod a+x \$dldir/$dlname'
10539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10540 dlpath=$dir/\$dldll~
10542 shlibpath_overrides_runpath=yes
10546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10551 # MinGW DLLs use traditional 'lib' prefix
10552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10555 # It is most probably a Windows format PATH printed by
10556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10557 # path with ; separators, and with drive letters. We can handle the
10558 # drive letters (cygwin fileutils understands them), so leave them,
10559 # especially as we might pass files found there to a mingw objdump,
10560 # which wouldn't understand a cygwinified path. Ahh.
10561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10567 # pw32 DLLs use 'pw' prefix rather than 'lib'
10568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10577 dynamic_linker='Win32 ld.exe'
10578 # FIXME: first we should search . and the directory the executable is in
10582 darwin* | rhapsody*)
10583 dynamic_linker="$host_os dyld"
10584 version_type=darwin
10587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10588 soname_spec='${libname}${release}${major}$shared_ext'
10589 shlibpath_overrides_runpath=yes
10590 shlibpath_var=DYLD_LIBRARY_PATH
10591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10592 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10593 if test "$GCC" = yes; then
10594 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"`
10596 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10614 freebsd* | dragonfly*)
10615 # DragonFly does not have aout. When/if they implement a new
10616 # versioning mechanism, adjust this.
10617 if test -x /usr/bin/objformat; then
10618 objformat=`/usr/bin/objformat`
10621 freebsd[123]*) objformat=aout ;;
10622 *) objformat=elf ;;
10625 version_type=freebsd-$objformat
10626 case $version_type in
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10637 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10642 freebsd3.[01]* | freebsdelf3.[01]*)
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10651 freebsd*) # from 4.6 on
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 hardcode_into_libs=yes
10668 hpux9* | hpux10* | hpux11*)
10669 # Give a soname corresponding to the major version so that dld.sl refuses to
10670 # link against other versions.
10677 hardcode_into_libs=yes
10678 dynamic_linker="$host_os dld.so"
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 if test "X$HPUX_IA64_MODE" = X32; then
10684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10692 hardcode_into_libs=yes
10693 dynamic_linker="$host_os dld.sl"
10694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10703 dynamic_linker="$host_os dld.sl"
10704 shlibpath_var=SHLIB_PATH
10705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10711 postinstall_cmds='chmod 555 $lib'
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=no
10723 hardcode_into_libs=yes
10726 irix5* | irix6* | nonstopux*)
10728 nonstopux*) version_type=nonstopux ;;
10730 if test "$lt_cv_prog_gnu_ld" = yes; then
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10741 irix5* | nonstopux*)
10742 libsuff= shlibsuff=
10745 case $LD in # libtool.m4 will add one of these switches to LD
10746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10747 libsuff= shlibsuff= libmagic=32-bit;;
10748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10749 libsuff=32 shlibsuff=N32 libmagic=N32;;
10750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10752 *) libsuff= shlibsuff= libmagic=never-match;;
10756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10757 shlibpath_overrides_runpath=no
10758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10760 hardcode_into_libs=yes
10763 # No shared lib support for Linux oldld, aout, or coff.
10764 linux*oldld* | linux*aout* | linux*coff*)
10768 # This must be Linux ELF.
10769 linux* | k*bsd*-gnu)
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=no
10778 # This implies no fast_install, which is unacceptable.
10779 # Some rework will be needed to allow for fast_install
10780 # before this can be enabled.
10781 hardcode_into_libs=yes
10783 # Append ld.so.conf contents to the search path
10784 if test -f /etc/ld.so.conf; then
10785 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' ' '`
10786 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10789 # We used to test for /lib/ld.so.1 and disable shared libraries on
10790 # powerpc, because MkLinux only supported shared libraries with the
10791 # GNU dynamic linker. Since this was broken with cross compilers,
10792 # most powerpc-linux boxes support dynamic linking these days and
10793 # people can always --disable-shared, the test was removed, and we
10794 # assume the GNU/Linux dynamic linker is in use.
10795 dynamic_linker='GNU/Linux ld.so'
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=no
10806 hardcode_into_libs=yes
10807 dynamic_linker='NetBSD ld.elf_so'
10814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 dynamic_linker='NetBSD (a.out) ld.so'
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 dynamic_linker='NetBSD ld.elf_so'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10863 shlibpath_overrides_runpath=yes
10867 shlibpath_overrides_runpath=yes
10872 libname_spec='$name'
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10880 osf3* | osf4* | osf5*)
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 # ldd complains unless libraries are executable
10901 postinstall_cmds='chmod +x $lib'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 if test "$with_gnu_ld" = yes; then
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 case $host_vendor in
10923 shlibpath_overrides_runpath=no
10925 export_dynamic_flag_spec='${wl}-Blargedynsym'
10926 runpath_var=LD_RUN_PATH
10934 shlibpath_overrides_runpath=no
10935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10941 if test -d /usr/nec ;then
10943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10944 soname_spec='$libname${shared_ext}.$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10950 version_type=freebsd-elf
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 hardcode_into_libs=yes
10957 if test "$with_gnu_ld" = yes; then
10958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10959 shlibpath_overrides_runpath=no
10961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10962 shlibpath_overrides_runpath=yes
10965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10969 sys_lib_dlsearch_path_spec='/usr/lib'
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10983 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10984 echo "${ECHO_T}$dynamic_linker" >&6; }
10985 test "$dynamic_linker" = no && can_build_shared=no
10987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10988 if test "$GCC" = yes; then
10989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10992 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10995 if test -n "$hardcode_libdir_flag_spec" || \
10996 test -n "$runpath_var" || \
10997 test "X$hardcode_automatic" = "Xyes" ; then
10999 # We can hardcode non-existant directories.
11000 if test "$hardcode_direct" != no &&
11001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11002 # have to relink, otherwise we might link with an installed library
11003 # when we should be linking with a yet-to-be-installed one
11004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11005 test "$hardcode_minus_L" != no; then
11006 # Linking always hardcodes the temporary library directory.
11007 hardcode_action=relink
11009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11010 hardcode_action=immediate
11013 # We cannot hardcode anything, or else we can only hardcode existing
11015 hardcode_action=unsupported
11017 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11018 echo "${ECHO_T}$hardcode_action" >&6; }
11020 if test "$hardcode_action" = relink; then
11021 # Fast installation is not supported
11022 enable_fast_install=no
11023 elif test "$shlibpath_overrides_runpath" = yes ||
11024 test "$enable_shared" = no; then
11025 # Fast installation is not necessary
11026 enable_fast_install=needless
11031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11036 { echo "$as_me:$LINENO: result: yes" >&5
11037 echo "${ECHO_T}yes" >&6; }
11039 # FIXME - insert some real tests, host_os isn't really good enough
11042 if test -n "$STRIP" ; then
11043 striplib="$STRIP -x"
11044 { echo "$as_me:$LINENO: result: yes" >&5
11045 echo "${ECHO_T}yes" >&6; }
11047 { echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6; }
11052 { echo "$as_me:$LINENO: result: no" >&5
11053 echo "${ECHO_T}no" >&6; }
11058 if test "x$enable_dlopen" != xyes; then
11059 enable_dlopen=unknown
11060 enable_dlopen_self=unknown
11061 enable_dlopen_self_static=unknown
11068 lt_cv_dlopen="load_add_on"
11070 lt_cv_dlopen_self=yes
11074 lt_cv_dlopen="LoadLibrary"
11079 lt_cv_dlopen="dlopen"
11084 # if libdl is installed we need to link against it
11085 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_check_lib_save_LIBS=$LIBS
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_link") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1 >conftest.err
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_cv_lib_dl_dlopen=yes
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11153 ac_cv_lib_dl_dlopen=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11162 if test $ac_cv_lib_dl_dlopen = yes; then
11163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166 lt_cv_dlopen="dyld"
11168 lt_cv_dlopen_self=yes
11175 { echo "$as_me:$LINENO: checking for shl_load" >&5
11176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11177 if test "${ac_cv_func_shl_load+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11188 #define shl_load innocuous_shl_load
11190 /* System header to define __stub macros and hopefully few prototypes,
11191 which can conflict with char shl_load (); below.
11192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193 <limits.h> exists even on freestanding compilers. */
11196 # include <limits.h>
11198 # include <assert.h>
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11210 /* The GNU C library defines this for functions which it implements
11211 to always fail with ENOSYS. Some functions are actually named
11212 something starting with __ and the normal name is an alias. */
11213 #if defined __stub_shl_load || defined __stub___shl_load
11220 return shl_load ();
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (ac_try="$ac_link"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_link") 2>conftest.er1
11234 grep -v '^ *+' conftest.er1 >conftest.err
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11240 { (case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_try") 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_try") 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_cv_func_shl_load=yes
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 ac_cv_func_shl_load=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11270 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11271 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11272 if test $ac_cv_func_shl_load = yes; then
11273 lt_cv_dlopen="shl_load"
11275 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11276 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 ac_check_lib_save_LIBS=$LIBS
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11299 return shl_load ();
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_link") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_cv_lib_dld_shl_load=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_cv_lib_dld_shl_load=no
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11350 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11352 if test $ac_cv_lib_dld_shl_load = yes; then
11353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11355 { echo "$as_me:$LINENO: checking for dlopen" >&5
11356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11357 if test "${ac_cv_func_dlopen+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11368 #define dlopen innocuous_dlopen
11370 /* System header to define __stub macros and hopefully few prototypes,
11371 which can conflict with char dlopen (); below.
11372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 <limits.h> exists even on freestanding compilers. */
11376 # include <limits.h>
11378 # include <assert.h>
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined __stub_dlopen || defined __stub___dlopen
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (ac_try="$ac_link"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_link") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420 { (case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_try") 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest$ac_exeext'
11430 { (case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_try") 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_func_dlopen=yes
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_cv_func_dlopen=no
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11452 if test $ac_cv_func_dlopen = yes; then
11453 lt_cv_dlopen="dlopen"
11455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_check_lib_save_LIBS=$LIBS
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dl_dlopen=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_cv_lib_dl_dlopen=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11532 if test $ac_cv_lib_dl_dlopen = yes; then
11533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11535 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-lsvld $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579 { (case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_try") 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest$ac_exeext'
11589 { (case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_try") 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_lib_svld_dlopen=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_lib_svld_dlopen=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11610 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11611 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11612 if test $ac_cv_lib_svld_dlopen = yes; then
11613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11615 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11616 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11617 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 ac_check_lib_save_LIBS=$LIBS
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11639 return dld_link ();
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_link") 2>conftest.er1
11653 grep -v '^ *+' conftest.er1 >conftest.err
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11659 { (case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_try") 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dld_dld_link=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_lib_dld_dld_link=no
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11692 if test $ac_cv_lib_dld_dld_link = yes; then
11693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11714 if test "x$lt_cv_dlopen" != xno; then
11720 case $lt_cv_dlopen in
11722 save_CPPFLAGS="$CPPFLAGS"
11723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11725 save_LDFLAGS="$LDFLAGS"
11726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729 LIBS="$lt_cv_dlopen_libs $LIBS"
11731 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11733 if test "${lt_cv_dlopen_self+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 if test "$cross_compiling" = yes; then :
11737 lt_cv_dlopen_self=cross
11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740 lt_status=$lt_dlunknown
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11752 # define LT_DLGLOBAL RTLD_GLOBAL
11755 # define LT_DLGLOBAL DL_GLOBAL
11757 # define LT_DLGLOBAL 0
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762 find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11768 # define LT_DLLAZY_OR_NOW DL_LAZY
11771 # define LT_DLLAZY_OR_NOW RTLD_NOW
11774 # define LT_DLLAZY_OR_NOW DL_NOW
11776 # define LT_DLLAZY_OR_NOW 0
11784 extern "C" void exit (int);
11787 void fnord() { int i=42;}
11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791 int status = $lt_dlunknown;
11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11797 /* dlclose (self); */
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810 (./conftest; exit; ) >&5 2>/dev/null
11812 case x$lt_status in
11813 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11818 # compilation failed
11819 lt_cv_dlopen_self=no
11826 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11829 if test "x$lt_cv_dlopen_self" = xyes; then
11830 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11831 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11833 if test "${lt_cv_dlopen_self_static+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 if test "$cross_compiling" = yes; then :
11837 lt_cv_dlopen_self_static=cross
11839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840 lt_status=$lt_dlunknown
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11852 # define LT_DLGLOBAL RTLD_GLOBAL
11855 # define LT_DLGLOBAL DL_GLOBAL
11857 # define LT_DLGLOBAL 0
11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862 find out it does not work in some platform. */
11863 #ifndef LT_DLLAZY_OR_NOW
11865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11868 # define LT_DLLAZY_OR_NOW DL_LAZY
11871 # define LT_DLLAZY_OR_NOW RTLD_NOW
11874 # define LT_DLLAZY_OR_NOW DL_NOW
11876 # define LT_DLLAZY_OR_NOW 0
11884 extern "C" void exit (int);
11887 void fnord() { int i=42;}
11890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891 int status = $lt_dlunknown;
11895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897 /* dlclose (self); */
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11910 (./conftest; exit; ) >&5 2>/dev/null
11912 case x$lt_status in
11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11918 # compilation failed
11919 lt_cv_dlopen_self_static=no
11926 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11927 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11930 CPPFLAGS="$save_CPPFLAGS"
11931 LDFLAGS="$save_LDFLAGS"
11936 case $lt_cv_dlopen_self in
11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938 *) enable_dlopen_self=unknown ;;
11941 case $lt_cv_dlopen_self_static in
11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943 *) enable_dlopen_self_static=unknown ;;
11948 # Report which library types will actually be built
11949 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11951 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11952 echo "${ECHO_T}$can_build_shared" >&6; }
11954 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11956 test "$can_build_shared" = "no" && enable_shared=no
11958 # On AIX, shared libraries and static libraries use the same namespace, and
11959 # are all built from PIC.
11962 test "$enable_shared" = yes && enable_static=no
11963 if test -n "$RANLIB"; then
11964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11965 postinstall_cmds='$RANLIB $lib'
11970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11971 test "$enable_shared" = yes && enable_static=no
11975 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11976 echo "${ECHO_T}$enable_shared" >&6; }
11978 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11980 # Make sure either enable_shared or enable_static is yes.
11981 test "$enable_shared" = yes || enable_static=yes
11982 { echo "$as_me:$LINENO: result: $enable_static" >&5
11983 echo "${ECHO_T}$enable_static" >&6; }
11985 # The else clause should only fire when bootstrapping the
11986 # libtool distribution, otherwise you forgot to ship ltmain.sh
11987 # with your package, and you will get complaints that there are
11988 # no rules to generate ltmain.sh.
11989 if test -f "$ltmain"; then
11990 # See if we are running on zsh, and set the options which allow our commands through
11991 # without removal of \ escapes.
11992 if test -n "${ZSH_VERSION+set}" ; then
11993 setopt NO_GLOB_SUBST
11995 # Now quote all the things that may contain metacharacters while being
11996 # careful not to overquote the AC_SUBSTed values. We take copies of the
11997 # variables and quote the copies for generation of the libtool script.
11998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12002 deplibs_check_method reload_flag reload_cmds need_locks \
12003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12004 lt_cv_sys_global_symbol_to_c_name_address \
12005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12006 old_postinstall_cmds old_postuninstall_cmds \
12010 lt_prog_compiler_wl \
12011 lt_prog_compiler_pic \
12012 lt_prog_compiler_static \
12013 lt_prog_compiler_no_builtin_flag \
12014 export_dynamic_flag_spec \
12015 thread_safe_flag_spec \
12016 whole_archive_flag_spec \
12017 enable_shared_with_static_runtimes \
12019 old_archive_from_new_cmds \
12024 compiler_lib_search_path \
12026 archive_expsym_cmds \
12028 postuninstall_cmds \
12029 old_archive_from_expsyms_cmds \
12030 allow_undefined_flag \
12031 no_undefined_flag \
12032 export_symbols_cmds \
12033 hardcode_libdir_flag_spec \
12034 hardcode_libdir_flag_spec_ld \
12035 hardcode_libdir_separator \
12036 hardcode_automatic \
12038 module_expsym_cmds \
12039 lt_cv_prog_compiler_c_o \
12041 include_expsyms; do
12044 old_archive_cmds | \
12045 old_archive_from_new_cmds | \
12047 archive_expsym_cmds | \
12049 module_expsym_cmds | \
12050 old_archive_from_expsyms_cmds | \
12051 export_symbols_cmds | \
12052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12053 postinstall_cmds | postuninstall_cmds | \
12054 old_postinstall_cmds | old_postuninstall_cmds | \
12055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12056 # Double-quote double-evaled strings.
12057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12066 *'\$0 --fallback-echo"')
12067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12071 cfgfile="${ofile}T"
12072 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12074 { echo "$as_me:$LINENO: creating $ofile" >&5
12075 echo "$as_me: creating $ofile" >&6;}
12077 cat <<__EOF__ >> "$cfgfile"
12080 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12081 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12082 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12084 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12085 # Free Software Foundation, Inc.
12087 # This file is part of GNU Libtool:
12088 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12090 # This program is free software; you can redistribute it and/or modify
12091 # it under the terms of the GNU General Public License as published by
12092 # the Free Software Foundation; either version 2 of the License, or
12093 # (at your option) any later version.
12095 # This program is distributed in the hope that it will be useful, but
12096 # WITHOUT ANY WARRANTY; without even the implied warranty of
12097 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12098 # General Public License for more details.
12100 # You should have received a copy of the GNU General Public License
12101 # along with this program; if not, write to the Free Software
12102 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12104 # As a special exception to the GNU General Public License, if you
12105 # distribute this file as part of a program that contains a
12106 # configuration script generated by Autoconf, you may include it under
12107 # the same distribution terms that you use for the rest of that program.
12109 # A sed program that does not truncate output.
12112 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12113 Xsed="$SED -e 1s/^X//"
12115 # The HP-UX ksh and POSIX shell print the target directory to stdout
12116 # if CDPATH is set.
12117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12119 # The names of the tagged configurations supported by this script.
12122 # ### BEGIN LIBTOOL CONFIG
12124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12126 # Shell to use when invoking shell scripts.
12129 # Whether or not to build shared libraries.
12130 build_libtool_libs=$enable_shared
12132 # Whether or not to build static libraries.
12133 build_old_libs=$enable_static
12135 # Whether or not to add -lc for building shared libraries.
12136 build_libtool_need_lc=$archive_cmds_need_lc
12138 # Whether or not to disallow shared libs when runtime libs are static
12139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12141 # Whether or not to optimize for fast installation.
12142 fast_install=$enable_fast_install
12145 host_alias=$host_alias
12149 # The build system.
12150 build_alias=$build_alias
12154 # An echo program that does not interpret backslashes.
12159 AR_FLAGS=$lt_AR_FLAGS
12164 # LTCC compiler flags.
12165 LTCFLAGS=$lt_LTCFLAGS
12167 # A language-specific compiler.
12170 # Is the compiler the GNU C compiler?
12176 # The linker used to build libraries.
12179 # Whether we need hard or soft links.
12182 # A BSD-compatible nm program.
12185 # A symbol stripping program
12188 # Used to examine libraries when file_magic_cmd begins "file"
12189 MAGIC_CMD=$MAGIC_CMD
12191 # Used on cygwin: DLL creation program.
12194 # Used on cygwin: object dumper.
12197 # Used on cygwin: assembler.
12200 # The name of the directory that contains temporary libtool files.
12203 # How to create reloadable object files.
12204 reload_flag=$lt_reload_flag
12205 reload_cmds=$lt_reload_cmds
12207 # How to pass a linker flag through the compiler.
12208 wl=$lt_lt_prog_compiler_wl
12210 # Object file suffix (normally "o").
12211 objext="$ac_objext"
12213 # Old archive suffix (normally "a").
12216 # Shared library suffix (normally ".so").
12217 shrext_cmds='$shrext_cmds'
12219 # Executable file suffix (normally "").
12222 # Additional compiler flags for building library objects.
12223 pic_flag=$lt_lt_prog_compiler_pic
12226 # What is the maximum length of a command?
12227 max_cmd_len=$lt_cv_sys_max_cmd_len
12229 # Does compiler simultaneously support -c and -o options?
12230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12232 # Must we lock files when doing compilation?
12233 need_locks=$lt_need_locks
12235 # Do we need the lib prefix for modules?
12236 need_lib_prefix=$need_lib_prefix
12238 # Do we need a version for libraries?
12239 need_version=$need_version
12241 # Whether dlopen is supported.
12242 dlopen_support=$enable_dlopen
12244 # Whether dlopen of programs is supported.
12245 dlopen_self=$enable_dlopen_self
12247 # Whether dlopen of statically linked programs is supported.
12248 dlopen_self_static=$enable_dlopen_self_static
12250 # Compiler flag to prevent dynamic linking.
12251 link_static_flag=$lt_lt_prog_compiler_static
12253 # Compiler flag to turn off builtin functions.
12254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12256 # Compiler flag to allow reflexive dlopens.
12257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12259 # Compiler flag to generate shared objects directly from archives.
12260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12262 # Compiler flag to generate thread-safe objects.
12263 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12265 # Library versioning type.
12266 version_type=$version_type
12268 # Format of library name prefix.
12269 libname_spec=$lt_libname_spec
12271 # List of archive names. First name is the real one, the rest are links.
12272 # The last name is the one that the linker finds with -lNAME.
12273 library_names_spec=$lt_library_names_spec
12275 # The coded name of the library, if different from the real name.
12276 soname_spec=$lt_soname_spec
12278 # Commands used to build and install an old-style archive.
12280 old_archive_cmds=$lt_old_archive_cmds
12281 old_postinstall_cmds=$lt_old_postinstall_cmds
12282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12284 # Create an old-style archive from a shared archive.
12285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12287 # Create a temporary old-style archive to link instead of a shared archive.
12288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12290 # Commands used to build and install a shared archive.
12291 archive_cmds=$lt_archive_cmds
12292 archive_expsym_cmds=$lt_archive_expsym_cmds
12293 postinstall_cmds=$lt_postinstall_cmds
12294 postuninstall_cmds=$lt_postuninstall_cmds
12296 # Commands used to build a loadable module (assumed same as above if empty)
12297 module_cmds=$lt_module_cmds
12298 module_expsym_cmds=$lt_module_expsym_cmds
12300 # Commands to strip libraries.
12301 old_striplib=$lt_old_striplib
12302 striplib=$lt_striplib
12304 # Dependencies to place before the objects being linked to create a
12306 predep_objects=$lt_predep_objects
12308 # Dependencies to place after the objects being linked to create a
12310 postdep_objects=$lt_postdep_objects
12312 # Dependencies to place before the objects being linked to create a
12314 predeps=$lt_predeps
12316 # Dependencies to place after the objects being linked to create a
12318 postdeps=$lt_postdeps
12320 # The library search path used internally by the compiler when linking
12321 # a shared library.
12322 compiler_lib_search_path=$lt_compiler_lib_search_path
12324 # Method to check whether dependent libraries are shared objects.
12325 deplibs_check_method=$lt_deplibs_check_method
12327 # Command to use when deplibs_check_method == file_magic.
12328 file_magic_cmd=$lt_file_magic_cmd
12330 # Flag that allows shared libraries with undefined symbols to be built.
12331 allow_undefined_flag=$lt_allow_undefined_flag
12333 # Flag that forces no undefined symbols.
12334 no_undefined_flag=$lt_no_undefined_flag
12336 # Commands used to finish a libtool library installation in a directory.
12337 finish_cmds=$lt_finish_cmds
12339 # Same as above, but a single script fragment to be evaled but not shown.
12340 finish_eval=$lt_finish_eval
12342 # Take the output of nm and produce a listing of raw symbols and C names.
12343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12345 # Transform the output of nm in a proper C declaration
12346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12348 # Transform the output of nm in a C name address pair
12349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12351 # This is the shared library runtime path variable.
12352 runpath_var=$runpath_var
12354 # This is the shared library path variable.
12355 shlibpath_var=$shlibpath_var
12357 # Is shlibpath searched before the hard-coded library search path?
12358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12360 # How to hardcode a shared library path into an executable.
12361 hardcode_action=$hardcode_action
12363 # Whether we should hardcode library paths into libraries.
12364 hardcode_into_libs=$hardcode_into_libs
12366 # Flag to hardcode \$libdir into a binary during linking.
12367 # This must work even if \$libdir does not exist.
12368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12370 # If ld is used when linking, flag to hardcode \$libdir into
12371 # a binary during linking. This must work even if \$libdir does
12373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12375 # Whether we need a single -rpath flag with a separated argument.
12376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12379 # resulting binary.
12380 hardcode_direct=$hardcode_direct
12382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12383 # resulting binary.
12384 hardcode_minus_L=$hardcode_minus_L
12386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12387 # the resulting binary.
12388 hardcode_shlibpath_var=$hardcode_shlibpath_var
12390 # Set to yes if building a shared library automatically hardcodes DIR into the library
12391 # and all subsequent libraries and executables linked against it.
12392 hardcode_automatic=$hardcode_automatic
12394 # Variables whose values should be saved in libtool wrapper scripts and
12395 # restored at relink time.
12396 variables_saved_for_relink="$variables_saved_for_relink"
12398 # Whether libtool must link a program against all its dependency libraries.
12399 link_all_deplibs=$link_all_deplibs
12401 # Compile-time system search path for libraries
12402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12404 # Run-time system search path for libraries
12405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12407 # Fix the shell variable \$srcfile for the compiler.
12408 fix_srcfile_path="$fix_srcfile_path"
12410 # Set to yes if exported symbols are required.
12411 always_export_symbols=$always_export_symbols
12413 # The commands to list exported symbols.
12414 export_symbols_cmds=$lt_export_symbols_cmds
12416 # The commands to extract the exported symbol list from a shared archive.
12417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12419 # Symbols that should not be listed in the preloaded symbols.
12420 exclude_expsyms=$lt_exclude_expsyms
12422 # Symbols that must always be exported.
12423 include_expsyms=$lt_include_expsyms
12425 # ### END LIBTOOL CONFIG
12432 cat <<\EOF >> "$cfgfile"
12434 # AIX sometimes has problems with the GCC collect2 program. For some
12435 # reason, if we set the COLLECT_NAMES environment variable, the problems
12436 # vanish in a puff of smoke.
12437 if test "X${COLLECT_NAMES+set}" != Xset; then
12439 export COLLECT_NAMES
12445 # We use sed instead of cat because bash on DJGPP gets confused if
12446 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12447 # text mode, it properly converts lines to CR/LF. This bash problem
12448 # is reportedly fixed, but why not run on old versions too?
12449 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12451 mv -f "$cfgfile" "$ofile" || \
12452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12456 # If there is no Makefile yet, we rely on a make rule to execute
12457 # `config.status --recheck' to rerun these tests and create the
12458 # libtool script then.
12459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12460 if test -f "$ltmain_in"; then
12461 test -f Makefile && make "$ltmain"
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12475 # Check whether --with-tags was given.
12476 if test "${with_tags+set}" = set; then
12477 withval=$with_tags; tagnames="$withval"
12481 if test -f "$ltmain" && test -n "$tagnames"; then
12482 if test ! -f "${ofile}"; then
12483 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12484 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12487 if test -z "$LTCC"; then
12488 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12489 if test -z "$LTCC"; then
12490 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12491 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12494 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12497 if test -z "$LTCFLAGS"; then
12498 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12501 # Extract list of available tagged configurations in $ofile.
12502 # Note that this assumes the entire list is on one line.
12503 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12506 for tagname in $tagnames; do
12508 # Check whether tagname contains only valid characters
12509 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12511 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12512 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12513 { (exit 1); exit 1; }; }
12517 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12519 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12520 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12521 { (exit 1); exit 1; }; }
12524 # Update the list of available tags.
12525 if test -n "$tagname"; then
12526 echo appending configuration tag \"$tagname\" to $ofile
12530 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12531 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12532 (test "X$CXX" != "Xg++"))) ; then
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12542 archive_cmds_need_lc_CXX=no
12543 allow_undefined_flag_CXX=
12544 always_export_symbols_CXX=no
12545 archive_expsym_cmds_CXX=
12546 export_dynamic_flag_spec_CXX=
12547 hardcode_direct_CXX=no
12548 hardcode_libdir_flag_spec_CXX=
12549 hardcode_libdir_flag_spec_ld_CXX=
12550 hardcode_libdir_separator_CXX=
12551 hardcode_minus_L_CXX=no
12552 hardcode_shlibpath_var_CXX=unsupported
12553 hardcode_automatic_CXX=no
12555 module_expsym_cmds_CXX=
12556 link_all_deplibs_CXX=unknown
12557 old_archive_cmds_CXX=$old_archive_cmds
12558 no_undefined_flag_CXX=
12559 whole_archive_flag_spec_CXX=
12560 enable_shared_with_static_runtimes_CXX=no
12562 # Dependencies to place before and after the object being linked:
12563 predep_objects_CXX=
12564 postdep_objects_CXX=
12567 compiler_lib_search_path_CXX=
12569 # Source file extension for C++ test sources.
12572 # Object file extension for compiled C++ test sources.
12576 # Code to be used in simple compile tests
12577 lt_simple_compile_test_code="int some_variable = 0;\n"
12579 # Code to be used in simple link tests
12580 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12582 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12584 # If no C compiler was specified, use CC.
12587 # If no C compiler flags were specified, use CFLAGS.
12588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12590 # Allow CC to be a program name with arguments.
12594 # save warnings/boilerplate of simple test code
12595 ac_outfile=conftest.$ac_objext
12596 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12598 _lt_compiler_boilerplate=`cat conftest.err`
12601 ac_outfile=conftest.$ac_objext
12602 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_linker_boilerplate=`cat conftest.err`
12608 # Allow CC to be a program name with arguments.
12613 lt_save_with_gnu_ld=$with_gnu_ld
12614 lt_save_path_LD=$lt_cv_path_LD
12615 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12616 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12618 $as_unset lt_cv_prog_gnu_ld
12620 if test -n "${lt_cv_path_LDCXX+set}"; then
12621 lt_cv_path_LD=$lt_cv_path_LDCXX
12623 $as_unset lt_cv_path_LD
12625 test -z "${LDCXX+set}" || LD=$LDCXX
12629 for cc_temp in $compiler""; do
12631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12640 # We don't want -fno-exception wen compiling C++ code, so set the
12641 # no_builtin_flag separately
12642 if test "$GXX" = yes; then
12643 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12645 lt_prog_compiler_no_builtin_flag_CXX=
12648 if test "$GXX" = yes; then
12649 # Set up default GNU C++ configuration
12652 # Check whether --with-gnu-ld was given.
12653 if test "${with_gnu_ld+set}" = set; then
12654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12660 if test "$GCC" = yes; then
12661 # Check if gcc -print-prog-name=ld gives a path.
12662 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12663 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12666 # gcc leaves a trailing carriage return which upsets mingw
12667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672 # Accept absolute paths.
12674 re_direlt='/[^/][^/]*/\.\./'
12675 # Canonicalize the pathname of ld
12676 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12677 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12678 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12680 test -z "$LD" && LD="$ac_prog"
12683 # If it fails, then pretend we aren't using GCC.
12687 # If it is relative, then search for the first ld in PATH.
12688 with_gnu_ld=unknown
12691 elif test "$with_gnu_ld" = yes; then
12692 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12693 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12695 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12696 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12698 if test "${lt_cv_path_LD+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 if test -z "$LD"; then
12702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12703 for ac_dir in $PATH; do
12705 test -z "$ac_dir" && ac_dir=.
12706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12707 lt_cv_path_LD="$ac_dir/$ac_prog"
12708 # Check to see if the program is GNU ld. I'd rather use --version,
12709 # but apparently some variants of GNU ld only accept -v.
12710 # Break only if it was the GNU/non-GNU ld that we prefer.
12711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12712 *GNU* | *'with BFD'*)
12713 test "$with_gnu_ld" != no && break
12716 test "$with_gnu_ld" != yes && break
12723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12727 LD="$lt_cv_path_LD"
12728 if test -n "$LD"; then
12729 { echo "$as_me:$LINENO: result: $LD" >&5
12730 echo "${ECHO_T}$LD" >&6; }
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12735 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12736 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12737 { (exit 1); exit 1; }; }
12738 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12739 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746 lt_cv_prog_gnu_ld=yes
12749 lt_cv_prog_gnu_ld=no
12753 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12754 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12760 # archiving commands below assume that GNU ld is being used.
12761 if test "$with_gnu_ld" = yes; then
12762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763 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'
12765 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12768 # If archive_cmds runs LD, not CC, wlarc should be empty
12769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12770 # investigate it a little bit more. (MM)
12773 # ancient GNU ld didn't support --whole-archive et. al.
12774 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12775 grep 'no-whole-archive' > /dev/null; then
12776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12778 whole_archive_flag_spec_CXX=
12784 # A generic and very simple default shared library creation
12785 # command for GNU C++ for the case where it uses the native
12786 # linker, instead of GNU ld. If possible, this setting should
12787 # overridden to take advantage of the native linker features on
12788 # the platform it is being used on.
12789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12803 # PORTME: fill in a description of your system's C++ link characteristics
12804 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12805 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12809 # FIXME: insert proper C++ library support
12813 if test "$host_cpu" = ia64; then
12814 # On IA64, the linker does run time linking by default, so we don't
12815 # have to do anything special.
12816 aix_use_runtimelinking=no
12817 exp_sym_flag='-Bexport'
12820 aix_use_runtimelinking=no
12822 # Test if we are trying to use run time linking or normal
12823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824 # need to do runtime linking.
12825 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826 for ld_flag in $LDFLAGS; do
12829 aix_use_runtimelinking=yes
12837 exp_sym_flag='-bexport'
12838 no_entry_flag='-bnoentry'
12841 # When large executables or shared objects are built, AIX ld can
12842 # have problems creating the table of contents. If linking a library
12843 # or program results in "error TOC overflow" add -mminimal-toc to
12844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12847 archive_cmds_CXX=''
12848 hardcode_direct_CXX=yes
12849 hardcode_libdir_separator_CXX=':'
12850 link_all_deplibs_CXX=yes
12852 if test "$GXX" = yes; then
12853 case $host_os in aix4.[012]|aix4.[012].*)
12854 # We only want to do this on AIX 4.2 and lower, the check
12855 # below for broken collect2 doesn't work under 4.3+
12856 collect2name=`${CC} -print-prog-name=collect2`
12857 if test -f "$collect2name" && \
12858 strings "$collect2name" | grep resolve_lib_name >/dev/null
12860 # We have reworked collect2
12861 hardcode_direct_CXX=yes
12863 # We have old collect2
12864 hardcode_direct_CXX=unsupported
12865 # It fails to find uninstalled libraries when the uninstalled
12866 # path is not listed in the libpath. Setting hardcode_minus_L
12867 # to unsupported forces relinking
12868 hardcode_minus_L_CXX=yes
12869 hardcode_libdir_flag_spec_CXX='-L$libdir'
12870 hardcode_libdir_separator_CXX=
12874 shared_flag='-shared'
12875 if test "$aix_use_runtimelinking" = yes; then
12876 shared_flag="$shared_flag "'${wl}-G'
12880 if test "$host_cpu" = ia64; then
12881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12882 # chokes on -Wl,-G. The following line is correct:
12885 if test "$aix_use_runtimelinking" = yes; then
12886 shared_flag='${wl}-G'
12888 shared_flag='${wl}-bM:SRE'
12893 # It seems that -bexpall does not export symbols beginning with
12894 # underscore (_), so it is better to generate a list of symbols to export.
12895 always_export_symbols_CXX=yes
12896 if test "$aix_use_runtimelinking" = yes; then
12897 # Warning - without using the other runtime loading flags (-brtl),
12898 # -berok will link without error, but may produce a broken library.
12899 allow_undefined_flag_CXX='-berok'
12900 # Determine the default libpath from the value encoded in an empty executable.
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_link") 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_try") 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest$ac_exeext'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12953 # Check for a 64-bit object if we didn't find anything.
12954 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; }
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12969 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"
12971 if test "$host_cpu" = ia64; then
12972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973 allow_undefined_flag_CXX="-z nodefs"
12974 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"
12976 # Determine the default libpath from the value encoded in an empty executable.
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13029 # Check for a 64-bit object if we didn't find anything.
13030 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; }
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13044 # Warning - without using the other run time loading flags,
13045 # -berok will link without error, but may produce a broken library.
13046 no_undefined_flag_CXX=' ${wl}-bernotok'
13047 allow_undefined_flag_CXX=' ${wl}-berok'
13048 # Exported symbols can be pulled into shared objects from archives
13049 whole_archive_flag_spec_CXX='$convenience'
13050 archive_cmds_need_lc_CXX=yes
13051 # This is similar to how AIX traditionally builds its shared libraries.
13052 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'
13058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13059 allow_undefined_flag_CXX=unsupported
13060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13061 # support --undefined. This deserves some investigation. FIXME
13062 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13069 case $cc_basename in
13071 # FIXME: insert proper C++ library support
13077 cygwin* | mingw* | pw32*)
13078 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13079 # as there is no search path for DLLs.
13080 hardcode_libdir_flag_spec_CXX='-L$libdir'
13081 allow_undefined_flag_CXX=unsupported
13082 always_export_symbols_CXX=no
13083 enable_shared_with_static_runtimes_CXX=yes
13085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13086 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'
13087 # If the export-symbols file already is a .def file (1st line
13088 # is EXPORTS), use it as is; otherwise, prepend...
13089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13090 cp $export_symbols $output_objdir/$soname.def;
13092 echo EXPORTS > $output_objdir/$soname.def;
13093 cat $export_symbols >> $output_objdir/$soname.def;
13095 $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'
13100 darwin* | rhapsody*)
13102 rhapsody* | darwin1.[012])
13103 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13109 case ${MACOSX_DEPLOYMENT_TARGET} in
13111 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13114 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_direct_CXX=no
13122 hardcode_automatic_CXX=yes
13123 hardcode_shlibpath_var_CXX=unsupported
13124 whole_archive_flag_spec_CXX=''
13125 link_all_deplibs_CXX=yes
13127 if test "$GXX" = yes ; then
13128 lt_int_apple_cc_single_mod=no
13129 output_verbose_link_cmd='echo'
13130 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13131 lt_int_apple_cc_single_mod=yes
13133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13134 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13136 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'
13138 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13141 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}'
13143 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}'
13145 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}'
13147 case $cc_basename in
13149 output_verbose_link_cmd='echo'
13150 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'
13151 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13153 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}'
13154 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}'
13164 case $cc_basename in
13166 # FIXME: insert proper C++ library support
13170 # Green Hills C++ Compiler
13171 # FIXME: insert proper C++ library support
13175 # FIXME: insert proper C++ library support
13181 # C++ shared libraries reported to be fairly broken before switch to ELF
13185 archive_cmds_need_lc_CXX=no
13187 freebsd* | dragonfly*)
13188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 hardcode_direct_CXX=yes
13199 hardcode_minus_L_CXX=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13203 case $cc_basename in
13205 # FIXME: insert proper C++ library support
13209 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'
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13214 # There doesn't appear to be a way to prevent this compiler from
13215 # explicitly linking system object files so we need to strip them
13216 # from the output so that they don't get included in the library
13218 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'
13221 if test "$GXX" = yes; then
13222 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'
13224 # FIXME: insert proper C++ library support
13231 if test $with_gnu_ld = no; then
13232 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13233 hardcode_libdir_separator_CXX=:
13237 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13240 export_dynamic_flag_spec_CXX='${wl}-E'
13246 hardcode_direct_CXX=no
13247 hardcode_shlibpath_var_CXX=no
13250 hardcode_direct_CXX=yes
13251 hardcode_minus_L_CXX=yes # Not in the search PATH,
13252 # but as the default
13253 # location of the library.
13257 case $cc_basename in
13259 # FIXME: insert proper C++ library support
13265 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 # Commands to make compiler produce verbose output that lists
13275 # what "hidden" libraries, object files and flags are used when
13276 # linking a shared library.
13278 # There doesn't appear to be a way to prevent this compiler from
13279 # explicitly linking system object files so we need to strip them
13280 # from the output so that they don't get included in the library
13282 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'
13285 if test "$GXX" = yes; then
13286 if test $with_gnu_ld = no; then
13289 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 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'
13300 # FIXME: insert proper C++ library support
13307 hardcode_direct_CXX=no
13308 hardcode_shlibpath_var_CXX=no
13309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310 export_dynamic_flag_spec_CXX='${wl}-E'
13311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13312 # Instead, shared libraries are loaded at an image base (0x10000000 by
13313 # default) and relocated if they conflict, which is a slow very memory
13314 # consuming and fragmenting process. To avoid this, we pick a random,
13315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13317 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'
13318 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'
13321 case $cc_basename in
13324 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'
13326 # Archives containing C++ object files must be created using
13327 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13328 # necessary to make sure instantiated templates are included
13330 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13333 if test "$GXX" = yes; then
13334 if test "$with_gnu_ld" = no; then
13335 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'
13337 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'
13340 link_all_deplibs_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344 hardcode_libdir_separator_CXX=:
13346 linux* | k*bsd*-gnu)
13347 case $cc_basename in
13349 # Kuck and Associates, Inc. (KAI) C++ Compiler
13351 # KCC will only create a shared library if the output file
13352 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13353 # to its proper name (with version) after linking.
13354 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'
13355 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'
13356 # Commands to make compiler produce verbose output that lists
13357 # what "hidden" libraries, object files and flags are used when
13358 # linking a shared library.
13360 # There doesn't appear to be a way to prevent this compiler from
13361 # explicitly linking system object files so we need to strip them
13362 # from the output so that they don't get included in the library
13364 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'
13366 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13369 # Archives containing C++ object files must be created using
13370 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13371 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13376 # version 8.0 and above of icpc choke on multiply defined symbols
13377 # if we add $predep_objects and $postdep_objects, however 7.1 and
13378 # earlier do not add the objects themselves.
13379 case `$CC -V 2>&1` in
13381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13382 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'
13384 *) # Version 8.0 or newer
13387 ia64*) tmp_idyn=' -i_dynamic';;
13389 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390 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'
13393 archive_cmds_need_lc_CXX=no
13394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13396 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13399 # Portland Group C++ compiler
13400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13401 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'
13403 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13405 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'
13409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410 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'
13412 runpath_var=LD_RUN_PATH
13413 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13414 hardcode_libdir_separator_CXX=:
13416 # Commands to make compiler produce verbose output that lists
13417 # what "hidden" libraries, object files and flags are used when
13418 # linking a shared library.
13420 # There doesn't appear to be a way to prevent this compiler from
13421 # explicitly linking system object files so we need to strip them
13422 # from the output so that they don't get included in the library
13424 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'
13429 # FIXME: insert proper C++ library support
13433 # FIXME: insert proper C++ library support
13437 case $cc_basename in
13439 # FIXME: insert proper C++ library support
13443 # FIXME: insert proper C++ library support
13448 netbsd* | netbsdelf*-gnu)
13449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13450 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13452 hardcode_libdir_flag_spec_CXX='-R$libdir'
13453 hardcode_direct_CXX=yes
13454 hardcode_shlibpath_var_CXX=no
13456 # Workaround some broken pre-1.5 toolchains
13457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13460 # C++ shared libraries are fairly broken
13464 hardcode_direct_CXX=yes
13465 hardcode_shlibpath_var_CXX=no
13466 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13469 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13470 export_dynamic_flag_spec_CXX='${wl}-E'
13471 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13473 output_verbose_link_cmd='echo'
13476 case $cc_basename in
13478 # Kuck and Associates, Inc. (KAI) C++ Compiler
13480 # KCC will only create a shared library if the output file
13481 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13482 # to its proper name (with version) after linking.
13483 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'
13485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486 hardcode_libdir_separator_CXX=:
13488 # Archives containing C++ object files must be created using
13489 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13490 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13494 # Rational C++ 2.4.1
13495 # FIXME: insert proper C++ library support
13499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13500 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'
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 hardcode_libdir_separator_CXX=:
13505 # Commands to make compiler produce verbose output that lists
13506 # what "hidden" libraries, object files and flags are used when
13507 # linking a shared library.
13509 # There doesn't appear to be a way to prevent this compiler from
13510 # explicitly linking system object files so we need to strip them
13511 # from the output so that they don't get included in the library
13513 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'
13516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13517 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13518 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'
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator_CXX=:
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13529 # FIXME: insert proper C++ library support
13536 case $cc_basename in
13538 # Kuck and Associates, Inc. (KAI) C++ Compiler
13540 # KCC will only create a shared library if the output file
13541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13542 # to its proper name (with version) after linking.
13543 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'
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 hardcode_libdir_separator_CXX=:
13548 # Archives containing C++ object files must be created using
13549 # the KAI C++ compiler.
13550 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13553 # Rational C++ 2.4.1
13554 # FIXME: insert proper C++ library support
13558 allow_undefined_flag_CXX=' -expect_unresolved \*'
13559 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'
13560 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13561 echo "-hidden">> $lib.exp~
13562 $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~
13565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13566 hardcode_libdir_separator_CXX=:
13568 # Commands to make compiler produce verbose output that lists
13569 # what "hidden" libraries, object files and flags are used when
13570 # linking a shared library.
13572 # There doesn't appear to be a way to prevent this compiler from
13573 # explicitly linking system object files so we need to strip them
13574 # from the output so that they don't get included in the library
13576 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'
13579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13581 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'
13583 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13584 hardcode_libdir_separator_CXX=:
13586 # Commands to make compiler produce verbose output that lists
13587 # what "hidden" libraries, object files and flags are used when
13588 # linking a shared library.
13589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13592 # FIXME: insert proper C++ library support
13599 # FIXME: insert proper C++ library support
13603 case $cc_basename in
13606 # FIXME: insert proper C++ library support
13611 # FIXME: insert proper C++ library support
13615 # FIXME: insert proper C++ library support
13621 case $cc_basename in
13623 # Sun C++ 4.2, 5.x and Centerline C++
13624 archive_cmds_need_lc_CXX=yes
13625 no_undefined_flag_CXX=' -zdefs'
13626 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13627 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13628 $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'
13630 hardcode_libdir_flag_spec_CXX='-R$libdir'
13631 hardcode_shlibpath_var_CXX=no
13633 solaris2.[0-5] | solaris2.[0-5].*) ;;
13635 # The C++ compiler is used as linker so we must use $wl
13636 # flag to pass the commands to the underlying system
13637 # linker. We must also pass each convience library through
13638 # to the system linker between allextract/defaultextract.
13639 # The C++ compiler will combine linker options so we
13640 # cannot just pass the convience library names through
13642 # Supported since Solaris 2.6 (maybe 2.5.1?)
13643 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'
13646 link_all_deplibs_CXX=yes
13648 output_verbose_link_cmd='echo'
13650 # Archives containing C++ object files must be created using
13651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13657 # Green Hills C++ Compiler
13658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13660 # The C++ compiler must be used to create the archive.
13661 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13664 # GNU C++ compiler with Solaris linker
13665 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13666 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13667 if $CC --version | grep -v '^2\.7' > /dev/null; then
13668 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13669 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13670 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13672 # Commands to make compiler produce verbose output that lists
13673 # what "hidden" libraries, object files and flags are used when
13674 # linking a shared library.
13675 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13677 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13679 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13680 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13681 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13689 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13695 no_undefined_flag_CXX='${wl}-z,text'
13696 archive_cmds_need_lc_CXX=no
13697 hardcode_shlibpath_var_CXX=no
13698 runpath_var='LD_RUN_PATH'
13700 case $cc_basename in
13702 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 sysv5* | sco3.2v5* | sco5v6*)
13712 # Note: We can NOT use -z defs as we might desire, because we do not
13713 # link with -lc, and that would cause any symbols used from libc to
13714 # always be unresolved, which means just about no library would
13715 # ever link correctly. If we're not using GNU ld we use -z text
13716 # though, which does catch some bad symbols but isn't as heavy-handed
13718 # For security reasons, it is highly recommended that you always
13719 # use absolute paths for naming shared libraries, and exclude the
13720 # DT_RUNPATH tag from executables and libraries. But doing so
13721 # requires that you compile everything twice, which is a pain.
13722 # So that behaviour is only enabled if SCOABSPATH is set to a
13723 # non-empty value in the environment. Most likely only useful for
13724 # creating official distributions of packages.
13725 # This is a hack until libtool officially supports absolute path
13726 # names for shared libraries.
13727 no_undefined_flag_CXX='${wl}-z,text'
13728 allow_undefined_flag_CXX='${wl}-z,nodefs'
13729 archive_cmds_need_lc_CXX=no
13730 hardcode_shlibpath_var_CXX=no
13731 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13732 hardcode_libdir_separator_CXX=':'
13733 link_all_deplibs_CXX=yes
13734 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13735 runpath_var='LD_RUN_PATH'
13737 case $cc_basename in
13739 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 case $cc_basename in
13751 # NonStop-UX NCC 3.20
13752 # FIXME: insert proper C++ library support
13756 # FIXME: insert proper C++ library support
13762 # FIXME: insert proper C++ library support
13766 # FIXME: insert proper C++ library support
13770 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13771 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13772 test "$ld_shlibs_CXX" = no && can_build_shared=no
13778 cat > conftest.$ac_ext <<EOF
13782 Foo (void) { a = 0; }
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; then
13793 # Parse the compiler output and extract the necessary
13794 # objects, libraries and library flags.
13796 # Sentinel used to keep track of whether or not we are before
13797 # the conftest object file.
13798 pre_test_object_deps_done=no
13800 # The `*' in the case matches for architectures that use `case' in
13801 # $output_verbose_cmd can trigger glob expansion during the loop
13802 # eval without this substitution.
13803 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13805 for p in `eval $output_verbose_link_cmd`; do
13809 # Some compilers place space between "-{L,R}" and the path.
13810 # Remove the space.
13811 if test $p = "-L" \
13812 || test $p = "-R"; then
13819 if test "$pre_test_object_deps_done" = no; then
13822 # Internal compiler library paths should come after those
13823 # provided the user. The postdeps already come after the
13824 # user supplied libs so there is no need to process them.
13825 if test -z "$compiler_lib_search_path_CXX"; then
13826 compiler_lib_search_path_CXX="${prev}${p}"
13828 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13831 # The "-l" case would never come before the object being
13832 # linked, so don't bother handling this case.
13835 if test -z "$postdeps_CXX"; then
13836 postdeps_CXX="${prev}${p}"
13838 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13844 # This assumes that the test object file only shows up
13845 # once in the compiler output.
13846 if test "$p" = "conftest.$objext"; then
13847 pre_test_object_deps_done=yes
13851 if test "$pre_test_object_deps_done" = no; then
13852 if test -z "$predep_objects_CXX"; then
13853 predep_objects_CXX="$p"
13855 predep_objects_CXX="$predep_objects_CXX $p"
13858 if test -z "$postdep_objects_CXX"; then
13859 postdep_objects_CXX="$p"
13861 postdep_objects_CXX="$postdep_objects_CXX $p"
13866 *) ;; # Ignore the rest.
13874 echo "libtool.m4: error: problem compiling CXX test program"
13877 $rm -f confest.$objext
13879 # PORTME: override above test on systems where it is broken
13882 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13883 # hack all around it, let's just trust "g++" to DTRT.
13884 predep_objects_CXX=
13885 postdep_objects_CXX=
13890 case $cc_basename in
13892 # Adding this requires a known-good setup of shared libraries for
13893 # Sun compiler versions before 5.6, else PIC objects from an old
13894 # archive will be linked into the output, leading to subtle bugs.
13895 postdeps_CXX='-lCstd -lCrun'
13902 case " $postdeps_CXX " in
13903 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13906 lt_prog_compiler_wl_CXX=
13907 lt_prog_compiler_pic_CXX=
13908 lt_prog_compiler_static_CXX=
13910 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13913 # C++ specific cases for pic, static, wl, etc.
13914 if test "$GXX" = yes; then
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_static_CXX='-static'
13920 # All AIX code is PIC.
13921 if test "$host_cpu" = ia64; then
13922 # AIX 5 now supports IA64 processor
13923 lt_prog_compiler_static_CXX='-Bstatic'
13927 # FIXME: we need at least 68020 code to build shared libraries, but
13928 # adding the `-m68020' flag to GCC prevents building anything better,
13930 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13933 # PIC is the default for these OSes.
13935 mingw* | os2* | pw32*)
13936 # This hack is so that the source file can tell whether it is being
13937 # built for inclusion in a dll (and should export symbols for example).
13938 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13940 darwin* | rhapsody*)
13941 # PIC is the default on this platform
13942 # Common symbols not allowed in MH_DYLIB files
13943 lt_prog_compiler_pic_CXX='-fno-common'
13946 # DJGPP does not support shared libraries at all
13947 lt_prog_compiler_pic_CXX=
13950 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13951 # Instead, we relocate shared libraries at runtime.
13954 if test -d /usr/nec; then
13955 lt_prog_compiler_pic_CXX=-Kconform_pic
13959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13960 # not for PA HP-UX.
13965 lt_prog_compiler_pic_CXX='-fPIC'
13970 lt_prog_compiler_pic_CXX='-fPIC'
13976 # All AIX code is PIC.
13977 if test "$host_cpu" = ia64; then
13978 # AIX 5 now supports IA64 processor
13979 lt_prog_compiler_static_CXX='-Bstatic'
13981 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13985 case $cc_basename in
13987 # Green Hills C++ Compiler
13988 # _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"
13993 # PIC is the default on this platform
13994 # Common symbols not allowed in MH_DYLIB files
13995 case $cc_basename in
13997 lt_prog_compiler_pic_CXX='-qnocommon'
13998 lt_prog_compiler_wl_CXX='-Wl,'
14003 case $cc_basename in
14005 lt_prog_compiler_pic_CXX='-KPIC'
14008 # Green Hills C++ Compiler
14009 lt_prog_compiler_pic_CXX='-pic'
14015 freebsd* | dragonfly*)
14016 # FreeBSD uses GNU C++
14018 hpux9* | hpux10* | hpux11*)
14019 case $cc_basename in
14021 lt_prog_compiler_wl_CXX='-Wl,'
14022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023 if test "$host_cpu" != ia64; then
14024 lt_prog_compiler_pic_CXX='+Z'
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14035 lt_prog_compiler_pic_CXX='+Z'
14044 # This is c89, which is MS Visual C++ (no shared libs)
14045 # Anyone wants to do a port?
14047 irix5* | irix6* | nonstopux*)
14048 case $cc_basename in
14050 lt_prog_compiler_wl_CXX='-Wl,'
14051 lt_prog_compiler_static_CXX='-non_shared'
14052 # CC pic flag -KPIC is the default.
14058 linux* | k*bsd*-gnu)
14059 case $cc_basename in
14062 lt_prog_compiler_wl_CXX='--backend -Wl,'
14063 lt_prog_compiler_pic_CXX='-fPIC'
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_pic_CXX='-KPIC'
14069 lt_prog_compiler_static_CXX='-static'
14072 # Portland Group C++ compiler.
14073 lt_prog_compiler_wl_CXX='-Wl,'
14074 lt_prog_compiler_pic_CXX='-fpic'
14075 lt_prog_compiler_static_CXX='-Bstatic'
14079 # Make sure the PIC flag is empty. It appears that all Alpha
14080 # Linux and Compaq Tru64 Unix objects are PIC.
14081 lt_prog_compiler_pic_CXX=
14082 lt_prog_compiler_static_CXX='-non_shared'
14093 case $cc_basename in
14095 lt_prog_compiler_pic_CXX='-W c,exportall'
14101 netbsd* | netbsdelf*-gnu)
14103 osf3* | osf4* | osf5*)
14104 case $cc_basename in
14106 lt_prog_compiler_wl_CXX='--backend -Wl,'
14109 # Rational C++ 2.4.1
14110 lt_prog_compiler_pic_CXX='-pic'
14113 # Digital/Compaq C++
14114 lt_prog_compiler_wl_CXX='-Wl,'
14115 # Make sure the PIC flag is empty. It appears that all Alpha
14116 # Linux and Compaq Tru64 Unix objects are PIC.
14117 lt_prog_compiler_pic_CXX=
14118 lt_prog_compiler_static_CXX='-non_shared'
14127 case $cc_basename in
14129 # Sun C++ 4.2, 5.x and Centerline C++
14130 lt_prog_compiler_pic_CXX='-KPIC'
14131 lt_prog_compiler_static_CXX='-Bstatic'
14132 lt_prog_compiler_wl_CXX='-Qoption ld '
14135 # Green Hills C++ Compiler
14136 lt_prog_compiler_pic_CXX='-PIC'
14143 case $cc_basename in
14146 lt_prog_compiler_pic_CXX='-pic'
14147 lt_prog_compiler_static_CXX='-Bstatic'
14151 lt_prog_compiler_pic_CXX='-pic'
14158 case $cc_basename in
14160 # NonStop-UX NCC 3.20
14161 lt_prog_compiler_pic_CXX='-KPIC'
14167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14168 case $cc_basename in
14170 lt_prog_compiler_wl_CXX='-Wl,'
14171 lt_prog_compiler_pic_CXX='-KPIC'
14172 lt_prog_compiler_static_CXX='-Bstatic'
14179 lt_prog_compiler_can_build_shared_CXX=no
14184 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14185 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14188 # Check to make sure the PIC flag actually works.
14190 if test -n "$lt_prog_compiler_pic_CXX"; then
14192 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14193 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14194 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 lt_prog_compiler_pic_works_CXX=no
14198 ac_outfile=conftest.$ac_objext
14199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14201 # Insert the option either (1) after the last *FLAGS variable, or
14202 # (2) before a word containing "conftest.", or (3) at the end.
14203 # Note that $ac_compile itself does not contain backslashes and begins
14204 # with a dollar sign (not a hyphen), so the echo should work correctly.
14205 # The option is referenced via a variable to avoid confusing sed.
14206 lt_compile=`echo "$ac_compile" | $SED \
14207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14209 -e 's:$: $lt_compiler_flag:'`
14210 (eval echo "\"\$as_me:14210: $lt_compile\"" >&5)
14211 (eval "$lt_compile" 2>conftest.err)
14213 cat conftest.err >&5
14214 echo "$as_me:14214: \$? = $ac_status" >&5
14215 if (exit $ac_status) && test -s "$ac_outfile"; then
14216 # The compiler can only warn and ignore the option if not recognized
14217 # So say no if there are warnings other than the usual output.
14218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14221 lt_prog_compiler_pic_works_CXX=yes
14227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14228 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14230 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14231 case $lt_prog_compiler_pic_CXX in
14233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14236 lt_prog_compiler_pic_CXX=
14237 lt_prog_compiler_can_build_shared_CXX=no
14242 # For platforms which do not support PIC, -DPIC is meaningless:
14244 lt_prog_compiler_pic_CXX=
14247 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14252 # Check to make sure the static flag actually works.
14254 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14255 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14256 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14257 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 lt_prog_compiler_static_works_CXX=no
14261 save_LDFLAGS="$LDFLAGS"
14262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14263 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14265 # The linker can only warn and ignore the option if not recognized
14266 # So say no if there are warnings
14267 if test -s conftest.err; then
14268 # Append any errors to the config.log.
14269 cat conftest.err 1>&5
14270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272 if diff conftest.exp conftest.er2 >/dev/null; then
14273 lt_prog_compiler_static_works_CXX=yes
14276 lt_prog_compiler_static_works_CXX=yes
14280 LDFLAGS="$save_LDFLAGS"
14283 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14284 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14286 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14289 lt_prog_compiler_static_CXX=
14293 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14295 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 lt_cv_prog_compiler_c_o_CXX=no
14299 $rm -r conftest 2>/dev/null
14303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305 lt_compiler_flag="-o out/conftest2.$ac_objext"
14306 # Insert the option either (1) after the last *FLAGS variable, or
14307 # (2) before a word containing "conftest.", or (3) at the end.
14308 # Note that $ac_compile itself does not contain backslashes and begins
14309 # with a dollar sign (not a hyphen), so the echo should work correctly.
14310 lt_compile=`echo "$ac_compile" | $SED \
14311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313 -e 's:$: $lt_compiler_flag:'`
14314 (eval echo "\"\$as_me:14314: $lt_compile\"" >&5)
14315 (eval "$lt_compile" 2>out/conftest.err)
14317 cat out/conftest.err >&5
14318 echo "$as_me:14318: \$? = $ac_status" >&5
14319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14321 # The compiler can only warn and ignore the option if not recognized
14322 # So say no if there are warnings
14323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14326 lt_cv_prog_compiler_c_o_CXX=yes
14331 # SGI C++ compiler will create directory out/ii_files/ for
14332 # template instantiation
14333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14334 $rm out/* && rmdir out
14340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14344 hard_links="nottested"
14345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14346 # do not overwrite the value of need_locks provided by the user
14347 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14353 ln conftest.a conftest.b 2>&5 || hard_links=no
14354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14355 { echo "$as_me:$LINENO: result: $hard_links" >&5
14356 echo "${ECHO_T}$hard_links" >&6; }
14357 if test "$hard_links" = no; then
14358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14366 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14372 # If we're using GNU nm, then we don't want the "-C" option.
14373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14375 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'
14377 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'
14381 export_symbols_cmds_CXX="$ltdll_cmds"
14384 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'
14386 linux* | k*bsd*-gnu)
14387 link_all_deplibs_CXX=no
14390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14394 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14395 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14396 test "$ld_shlibs_CXX" = no && can_build_shared=no
14399 # Do we need to explicitly link libc?
14401 case "x$archive_cmds_need_lc_CXX" in
14403 # Assume -lc should be added
14404 archive_cmds_need_lc_CXX=yes
14406 if test "$enable_shared" = yes && test "$GCC" = yes; then
14407 case $archive_cmds_CXX in
14409 # FIXME: we may have to deal with multi-command sequences.
14412 # Test whether the compiler implicitly links with -lc since on some
14413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14414 # to ld, don't add -lc before -lgcc.
14415 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } 2>conftest.err; then
14427 libobjs=conftest.$ac_objext
14429 wl=$lt_prog_compiler_wl_CXX
14430 pic_flag=$lt_prog_compiler_pic_CXX
14436 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14437 allow_undefined_flag_CXX=
14438 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14439 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }
14444 archive_cmds_need_lc_CXX=no
14446 archive_cmds_need_lc_CXX=yes
14448 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14450 cat conftest.err 1>&5
14453 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14454 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14461 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14463 library_names_spec=
14464 libname_spec='lib$name'
14468 postuninstall_cmds=
14472 shlibpath_overrides_runpath=unknown
14474 dynamic_linker="$host_os ld.so"
14475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14476 if test "$GCC" = yes; then
14477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14478 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14479 # if the path contains ";" then we assume it to be the separator
14480 # otherwise default to the standard path separator (i.e. ":") - it is
14481 # assumed that no part of a normal pathname contains ";" but that should
14482 # okay in the real world where ";" in dirpaths is itself problematic.
14483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14490 need_lib_prefix=unknown
14491 hardcode_into_libs=no
14493 # when you set need_version to no, make sure it does not cause -set_version
14494 # flags to be left without arguments
14495 need_version=unknown
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14501 shlibpath_var=LIBPATH
14503 # AIX 3 has no versioning support, so we append a major version to the name.
14504 soname_spec='${libname}${release}${shared_ext}$major'
14511 hardcode_into_libs=yes
14512 if test "$host_cpu" = ia64; then
14513 # AIX 5 supports IA64
14514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14515 shlibpath_var=LD_LIBRARY_PATH
14517 # With GCC up to 2.95.x, collect2 would create an import file
14518 # for dependence libraries. The import file would start with
14519 # the line `#! .'. This would cause the generated library to
14520 # depend on `.', always an invalid library. This was fixed in
14521 # development snapshots of GCC prior to 3.0.
14523 aix4 | aix4.[01] | aix4.[01].*)
14524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14526 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14529 can_build_shared=no
14533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14534 # soname into executable. Probably we can add versioning support to
14535 # collect2, so additional links can be useful in future.
14536 if test "$aix_use_runtimelinking" = yes; then
14537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14538 # instead of lib<name>.a to let people know that these are not
14539 # typical AIX shared libraries.
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 # We preserve .a as extension for shared libraries through AIX4.2
14543 # and later when we are not doing run time linking.
14544 library_names_spec='${libname}${release}.a $libname.a'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LIBPATH
14552 library_names_spec='$libname.ixlibrary $libname.a'
14553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14554 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'
14558 library_names_spec='${libname}${shared_ext}'
14559 dynamic_linker="$host_os ld.so"
14560 shlibpath_var=LIBRARY_PATH
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14572 # the default ld.so.conf also contains /usr/contrib/lib and
14573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14574 # libtool to hard-code these into programs
14577 cygwin* | mingw* | pw32*)
14578 version_type=windows
14583 case $GCC,$host_os in
14584 yes,cygwin* | yes,mingw* | yes,pw32*)
14585 library_names_spec='$libname.dll.a'
14586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14587 postinstall_cmds='base_file=`basename \${file}`~
14588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14589 dldir=$destdir/`dirname \$dlpath`~
14590 test -d \$dldir || mkdir -p \$dldir~
14591 $install_prog $dir/$dlname \$dldir/$dlname~
14592 chmod a+x \$dldir/$dlname'
14593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14594 dlpath=$dir/\$dldll~
14596 shlibpath_overrides_runpath=yes
14600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14605 # MinGW DLLs use traditional 'lib' prefix
14606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14608 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14609 # It is most probably a Windows format PATH printed by
14610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14611 # path with ; separators, and with drive letters. We can handle the
14612 # drive letters (cygwin fileutils understands them), so leave them,
14613 # especially as we might pass files found there to a mingw objdump,
14614 # which wouldn't understand a cygwinified path. Ahh.
14615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14621 # pw32 DLLs use 'pw' prefix rather than 'lib'
14622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14631 dynamic_linker='Win32 ld.exe'
14632 # FIXME: first we should search . and the directory the executable is in
14636 darwin* | rhapsody*)
14637 dynamic_linker="$host_os dyld"
14638 version_type=darwin
14641 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14642 soname_spec='${libname}${release}${major}$shared_ext'
14643 shlibpath_overrides_runpath=yes
14644 shlibpath_var=DYLD_LIBRARY_PATH
14645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14646 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14647 if test "$GCC" = yes; then
14648 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"`
14650 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14652 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14668 freebsd* | dragonfly*)
14669 # DragonFly does not have aout. When/if they implement a new
14670 # versioning mechanism, adjust this.
14671 if test -x /usr/bin/objformat; then
14672 objformat=`/usr/bin/objformat`
14675 freebsd[123]*) objformat=aout ;;
14676 *) objformat=elf ;;
14679 version_type=freebsd-$objformat
14680 case $version_type in
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14691 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=yes
14696 freebsd3.[01]* | freebsdelf3.[01]*)
14697 shlibpath_overrides_runpath=yes
14698 hardcode_into_libs=yes
14700 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14701 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14702 shlibpath_overrides_runpath=no
14703 hardcode_into_libs=yes
14705 freebsd*) # from 4.6 on
14706 shlibpath_overrides_runpath=yes
14707 hardcode_into_libs=yes
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 hardcode_into_libs=yes
14722 hpux9* | hpux10* | hpux11*)
14723 # Give a soname corresponding to the major version so that dld.sl refuses to
14724 # link against other versions.
14731 hardcode_into_libs=yes
14732 dynamic_linker="$host_os dld.so"
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 if test "X$HPUX_IA64_MODE" = X32; then
14738 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14740 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14746 hardcode_into_libs=yes
14747 dynamic_linker="$host_os dld.sl"
14748 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14757 dynamic_linker="$host_os dld.sl"
14758 shlibpath_var=SHLIB_PATH
14759 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14764 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14765 postinstall_cmds='chmod 555 $lib'
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 hardcode_into_libs=yes
14780 irix5* | irix6* | nonstopux*)
14782 nonstopux*) version_type=nonstopux ;;
14784 if test "$lt_cv_prog_gnu_ld" = yes; then
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14795 irix5* | nonstopux*)
14796 libsuff= shlibsuff=
14799 case $LD in # libtool.m4 will add one of these switches to LD
14800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14801 libsuff= shlibsuff= libmagic=32-bit;;
14802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14803 libsuff=32 shlibsuff=N32 libmagic=N32;;
14804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14806 *) libsuff= shlibsuff= libmagic=never-match;;
14810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14811 shlibpath_overrides_runpath=no
14812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14814 hardcode_into_libs=yes
14817 # No shared lib support for Linux oldld, aout, or coff.
14818 linux*oldld* | linux*aout* | linux*coff*)
14822 # This must be Linux ELF.
14823 linux* | k*bsd*-gnu)
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=no
14832 # This implies no fast_install, which is unacceptable.
14833 # Some rework will be needed to allow for fast_install
14834 # before this can be enabled.
14835 hardcode_into_libs=yes
14837 # Append ld.so.conf contents to the search path
14838 if test -f /etc/ld.so.conf; then
14839 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' ' '`
14840 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14843 # We used to test for /lib/ld.so.1 and disable shared libraries on
14844 # powerpc, because MkLinux only supported shared libraries with the
14845 # GNU dynamic linker. Since this was broken with cross compilers,
14846 # most powerpc-linux boxes support dynamic linking these days and
14847 # people can always --disable-shared, the test was removed, and we
14848 # assume the GNU/Linux dynamic linker is in use.
14849 dynamic_linker='GNU/Linux ld.so'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14861 dynamic_linker='NetBSD ld.elf_so'
14868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871 dynamic_linker='NetBSD (a.out) ld.so'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 dynamic_linker='NetBSD ld.elf_so'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 hardcode_into_libs=yes
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 soname_spec='${libname}${release}${shared_ext}$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 shlibpath_overrides_runpath=yes
14901 sys_lib_dlsearch_path_spec="/usr/lib"
14903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14906 *) need_version=no ;;
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14913 openbsd2.[89] | openbsd2.[89].*)
14914 shlibpath_overrides_runpath=no
14917 shlibpath_overrides_runpath=yes
14921 shlibpath_overrides_runpath=yes
14926 libname_spec='$name'
14929 library_names_spec='$libname${shared_ext} $libname.a'
14930 dynamic_linker='OS/2 ld.exe'
14931 shlibpath_var=LIBPATH
14934 osf3* | osf4* | osf5*)
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 hardcode_into_libs=yes
14954 # ldd complains unless libraries are executable
14955 postinstall_cmds='chmod +x $lib'
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=yes
14964 if test "$with_gnu_ld" = yes; then
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 case $host_vendor in
14977 shlibpath_overrides_runpath=no
14979 export_dynamic_flag_spec='${wl}-Blargedynsym'
14980 runpath_var=LD_RUN_PATH
14988 shlibpath_overrides_runpath=no
14989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14995 if test -d /usr/nec ;then
14997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14998 soname_spec='$libname${shared_ext}.$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15004 version_type=freebsd-elf
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 hardcode_into_libs=yes
15011 if test "$with_gnu_ld" = yes; then
15012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15013 shlibpath_overrides_runpath=no
15015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15016 shlibpath_overrides_runpath=yes
15019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15023 sys_lib_dlsearch_path_spec='/usr/lib'
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15037 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15038 echo "${ECHO_T}$dynamic_linker" >&6; }
15039 test "$dynamic_linker" = no && can_build_shared=no
15041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15042 if test "$GCC" = yes; then
15043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15046 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15047 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15048 hardcode_action_CXX=
15049 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15050 test -n "$runpath_var_CXX" || \
15051 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15053 # We can hardcode non-existant directories.
15054 if test "$hardcode_direct_CXX" != no &&
15055 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15056 # have to relink, otherwise we might link with an installed library
15057 # when we should be linking with a yet-to-be-installed one
15058 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15059 test "$hardcode_minus_L_CXX" != no; then
15060 # Linking always hardcodes the temporary library directory.
15061 hardcode_action_CXX=relink
15063 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15064 hardcode_action_CXX=immediate
15067 # We cannot hardcode anything, or else we can only hardcode existing
15069 hardcode_action_CXX=unsupported
15071 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15072 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15074 if test "$hardcode_action_CXX" = relink; then
15075 # Fast installation is not supported
15076 enable_fast_install=no
15077 elif test "$shlibpath_overrides_runpath" = yes ||
15078 test "$enable_shared" = no; then
15079 # Fast installation is not necessary
15080 enable_fast_install=needless
15084 # The else clause should only fire when bootstrapping the
15085 # libtool distribution, otherwise you forgot to ship ltmain.sh
15086 # with your package, and you will get complaints that there are
15087 # no rules to generate ltmain.sh.
15088 if test -f "$ltmain"; then
15089 # See if we are running on zsh, and set the options which allow our commands through
15090 # without removal of \ escapes.
15091 if test -n "${ZSH_VERSION+set}" ; then
15092 setopt NO_GLOB_SUBST
15094 # Now quote all the things that may contain metacharacters while being
15095 # careful not to overquote the AC_SUBSTed values. We take copies of the
15096 # variables and quote the copies for generation of the libtool script.
15097 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15099 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15100 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15101 deplibs_check_method reload_flag reload_cmds need_locks \
15102 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15103 lt_cv_sys_global_symbol_to_c_name_address \
15104 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15105 old_postinstall_cmds old_postuninstall_cmds \
15109 lt_prog_compiler_wl_CXX \
15110 lt_prog_compiler_pic_CXX \
15111 lt_prog_compiler_static_CXX \
15112 lt_prog_compiler_no_builtin_flag_CXX \
15113 export_dynamic_flag_spec_CXX \
15114 thread_safe_flag_spec_CXX \
15115 whole_archive_flag_spec_CXX \
15116 enable_shared_with_static_runtimes_CXX \
15117 old_archive_cmds_CXX \
15118 old_archive_from_new_cmds_CXX \
15119 predep_objects_CXX \
15120 postdep_objects_CXX \
15123 compiler_lib_search_path_CXX \
15125 archive_expsym_cmds_CXX \
15126 postinstall_cmds_CXX \
15127 postuninstall_cmds_CXX \
15128 old_archive_from_expsyms_cmds_CXX \
15129 allow_undefined_flag_CXX \
15130 no_undefined_flag_CXX \
15131 export_symbols_cmds_CXX \
15132 hardcode_libdir_flag_spec_CXX \
15133 hardcode_libdir_flag_spec_ld_CXX \
15134 hardcode_libdir_separator_CXX \
15135 hardcode_automatic_CXX \
15137 module_expsym_cmds_CXX \
15138 lt_cv_prog_compiler_c_o_CXX \
15139 exclude_expsyms_CXX \
15140 include_expsyms_CXX; do
15143 old_archive_cmds_CXX | \
15144 old_archive_from_new_cmds_CXX | \
15145 archive_cmds_CXX | \
15146 archive_expsym_cmds_CXX | \
15147 module_cmds_CXX | \
15148 module_expsym_cmds_CXX | \
15149 old_archive_from_expsyms_cmds_CXX | \
15150 export_symbols_cmds_CXX | \
15151 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15152 postinstall_cmds | postuninstall_cmds | \
15153 old_postinstall_cmds | old_postuninstall_cmds | \
15154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15155 # Double-quote double-evaled strings.
15156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15165 *'\$0 --fallback-echo"')
15166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15172 cat <<__EOF__ >> "$cfgfile"
15173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15177 # Shell to use when invoking shell scripts.
15180 # Whether or not to build shared libraries.
15181 build_libtool_libs=$enable_shared
15183 # Whether or not to build static libraries.
15184 build_old_libs=$enable_static
15186 # Whether or not to add -lc for building shared libraries.
15187 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15189 # Whether or not to disallow shared libs when runtime libs are static
15190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15192 # Whether or not to optimize for fast installation.
15193 fast_install=$enable_fast_install
15196 host_alias=$host_alias
15200 # The build system.
15201 build_alias=$build_alias
15205 # An echo program that does not interpret backslashes.
15210 AR_FLAGS=$lt_AR_FLAGS
15215 # LTCC compiler flags.
15216 LTCFLAGS=$lt_LTCFLAGS
15218 # A language-specific compiler.
15219 CC=$lt_compiler_CXX
15221 # Is the compiler the GNU C compiler?
15227 # The linker used to build libraries.
15230 # Whether we need hard or soft links.
15233 # A BSD-compatible nm program.
15236 # A symbol stripping program
15239 # Used to examine libraries when file_magic_cmd begins "file"
15240 MAGIC_CMD=$MAGIC_CMD
15242 # Used on cygwin: DLL creation program.
15245 # Used on cygwin: object dumper.
15248 # Used on cygwin: assembler.
15251 # The name of the directory that contains temporary libtool files.
15254 # How to create reloadable object files.
15255 reload_flag=$lt_reload_flag
15256 reload_cmds=$lt_reload_cmds
15258 # How to pass a linker flag through the compiler.
15259 wl=$lt_lt_prog_compiler_wl_CXX
15261 # Object file suffix (normally "o").
15262 objext="$ac_objext"
15264 # Old archive suffix (normally "a").
15267 # Shared library suffix (normally ".so").
15268 shrext_cmds='$shrext_cmds'
15270 # Executable file suffix (normally "").
15273 # Additional compiler flags for building library objects.
15274 pic_flag=$lt_lt_prog_compiler_pic_CXX
15277 # What is the maximum length of a command?
15278 max_cmd_len=$lt_cv_sys_max_cmd_len
15280 # Does compiler simultaneously support -c and -o options?
15281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15283 # Must we lock files when doing compilation?
15284 need_locks=$lt_need_locks
15286 # Do we need the lib prefix for modules?
15287 need_lib_prefix=$need_lib_prefix
15289 # Do we need a version for libraries?
15290 need_version=$need_version
15292 # Whether dlopen is supported.
15293 dlopen_support=$enable_dlopen
15295 # Whether dlopen of programs is supported.
15296 dlopen_self=$enable_dlopen_self
15298 # Whether dlopen of statically linked programs is supported.
15299 dlopen_self_static=$enable_dlopen_self_static
15301 # Compiler flag to prevent dynamic linking.
15302 link_static_flag=$lt_lt_prog_compiler_static_CXX
15304 # Compiler flag to turn off builtin functions.
15305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15307 # Compiler flag to allow reflexive dlopens.
15308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15310 # Compiler flag to generate shared objects directly from archives.
15311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15313 # Compiler flag to generate thread-safe objects.
15314 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15316 # Library versioning type.
15317 version_type=$version_type
15319 # Format of library name prefix.
15320 libname_spec=$lt_libname_spec
15322 # List of archive names. First name is the real one, the rest are links.
15323 # The last name is the one that the linker finds with -lNAME.
15324 library_names_spec=$lt_library_names_spec
15326 # The coded name of the library, if different from the real name.
15327 soname_spec=$lt_soname_spec
15329 # Commands used to build and install an old-style archive.
15331 old_archive_cmds=$lt_old_archive_cmds_CXX
15332 old_postinstall_cmds=$lt_old_postinstall_cmds
15333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15335 # Create an old-style archive from a shared archive.
15336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15338 # Create a temporary old-style archive to link instead of a shared archive.
15339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15341 # Commands used to build and install a shared archive.
15342 archive_cmds=$lt_archive_cmds_CXX
15343 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15344 postinstall_cmds=$lt_postinstall_cmds
15345 postuninstall_cmds=$lt_postuninstall_cmds
15347 # Commands used to build a loadable module (assumed same as above if empty)
15348 module_cmds=$lt_module_cmds_CXX
15349 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15351 # Commands to strip libraries.
15352 old_striplib=$lt_old_striplib
15353 striplib=$lt_striplib
15355 # Dependencies to place before the objects being linked to create a
15357 predep_objects=$lt_predep_objects_CXX
15359 # Dependencies to place after the objects being linked to create a
15361 postdep_objects=$lt_postdep_objects_CXX
15363 # Dependencies to place before the objects being linked to create a
15365 predeps=$lt_predeps_CXX
15367 # Dependencies to place after the objects being linked to create a
15369 postdeps=$lt_postdeps_CXX
15371 # The library search path used internally by the compiler when linking
15372 # a shared library.
15373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15375 # Method to check whether dependent libraries are shared objects.
15376 deplibs_check_method=$lt_deplibs_check_method
15378 # Command to use when deplibs_check_method == file_magic.
15379 file_magic_cmd=$lt_file_magic_cmd
15381 # Flag that allows shared libraries with undefined symbols to be built.
15382 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15384 # Flag that forces no undefined symbols.
15385 no_undefined_flag=$lt_no_undefined_flag_CXX
15387 # Commands used to finish a libtool library installation in a directory.
15388 finish_cmds=$lt_finish_cmds
15390 # Same as above, but a single script fragment to be evaled but not shown.
15391 finish_eval=$lt_finish_eval
15393 # Take the output of nm and produce a listing of raw symbols and C names.
15394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15396 # Transform the output of nm in a proper C declaration
15397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15399 # Transform the output of nm in a C name address pair
15400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15402 # This is the shared library runtime path variable.
15403 runpath_var=$runpath_var
15405 # This is the shared library path variable.
15406 shlibpath_var=$shlibpath_var
15408 # Is shlibpath searched before the hard-coded library search path?
15409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15411 # How to hardcode a shared library path into an executable.
15412 hardcode_action=$hardcode_action_CXX
15414 # Whether we should hardcode library paths into libraries.
15415 hardcode_into_libs=$hardcode_into_libs
15417 # Flag to hardcode \$libdir into a binary during linking.
15418 # This must work even if \$libdir does not exist.
15419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15421 # If ld is used when linking, flag to hardcode \$libdir into
15422 # a binary during linking. This must work even if \$libdir does
15424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15426 # Whether we need a single -rpath flag with a separated argument.
15427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_direct=$hardcode_direct_CXX
15433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15434 # resulting binary.
15435 hardcode_minus_L=$hardcode_minus_L_CXX
15437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15438 # the resulting binary.
15439 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15441 # Set to yes if building a shared library automatically hardcodes DIR into the library
15442 # and all subsequent libraries and executables linked against it.
15443 hardcode_automatic=$hardcode_automatic_CXX
15445 # Variables whose values should be saved in libtool wrapper scripts and
15446 # restored at relink time.
15447 variables_saved_for_relink="$variables_saved_for_relink"
15449 # Whether libtool must link a program against all its dependency libraries.
15450 link_all_deplibs=$link_all_deplibs_CXX
15452 # Compile-time system search path for libraries
15453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15455 # Run-time system search path for libraries
15456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15458 # Fix the shell variable \$srcfile for the compiler.
15459 fix_srcfile_path="$fix_srcfile_path_CXX"
15461 # Set to yes if exported symbols are required.
15462 always_export_symbols=$always_export_symbols_CXX
15464 # The commands to list exported symbols.
15465 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15467 # The commands to extract the exported symbol list from a shared archive.
15468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15470 # Symbols that should not be listed in the preloaded symbols.
15471 exclude_expsyms=$lt_exclude_expsyms_CXX
15473 # Symbols that must always be exported.
15474 include_expsyms=$lt_include_expsyms_CXX
15476 # ### END LIBTOOL TAG CONFIG: $tagname
15482 # If there is no Makefile yet, we rely on a make rule to execute
15483 # `config.status --recheck' to rerun these tests and create the
15484 # libtool script then.
15485 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15486 if test -f "$ltmain_in"; then
15487 test -f Makefile && make "$ltmain"
15493 ac_cpp='$CPP $CPPFLAGS'
15494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502 with_gnu_ldcxx=$with_gnu_ld
15503 with_gnu_ld=$lt_save_with_gnu_ld
15504 lt_cv_path_LDCXX=$lt_cv_path_LD
15505 lt_cv_path_LD=$lt_save_path_LD
15506 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15507 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15515 if test -n "$F77" && test "X$F77" != "Xno"; then
15518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15523 archive_cmds_need_lc_F77=no
15524 allow_undefined_flag_F77=
15525 always_export_symbols_F77=no
15526 archive_expsym_cmds_F77=
15527 export_dynamic_flag_spec_F77=
15528 hardcode_direct_F77=no
15529 hardcode_libdir_flag_spec_F77=
15530 hardcode_libdir_flag_spec_ld_F77=
15531 hardcode_libdir_separator_F77=
15532 hardcode_minus_L_F77=no
15533 hardcode_automatic_F77=no
15535 module_expsym_cmds_F77=
15536 link_all_deplibs_F77=unknown
15537 old_archive_cmds_F77=$old_archive_cmds
15538 no_undefined_flag_F77=
15539 whole_archive_flag_spec_F77=
15540 enable_shared_with_static_runtimes_F77=no
15542 # Source file extension for f77 test sources.
15545 # Object file extension for compiled f77 test sources.
15549 # Code to be used in simple compile tests
15550 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15552 # Code to be used in simple link tests
15553 lt_simple_link_test_code=" program t\n end\n"
15555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15557 # If no C compiler was specified, use CC.
15560 # If no C compiler flags were specified, use CFLAGS.
15561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15563 # Allow CC to be a program name with arguments.
15567 # save warnings/boilerplate of simple test code
15568 ac_outfile=conftest.$ac_objext
15569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15571 _lt_compiler_boilerplate=`cat conftest.err`
15574 ac_outfile=conftest.$ac_objext
15575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15577 _lt_linker_boilerplate=`cat conftest.err`
15581 # Allow CC to be a program name with arguments.
15586 for cc_temp in $compiler""; do
15588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15597 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15598 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15599 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15600 echo "${ECHO_T}$can_build_shared" >&6; }
15602 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15603 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15604 test "$can_build_shared" = "no" && enable_shared=no
15606 # On AIX, shared libraries and static libraries use the same namespace, and
15607 # are all built from PIC.
15610 test "$enable_shared" = yes && enable_static=no
15611 if test -n "$RANLIB"; then
15612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15613 postinstall_cmds='$RANLIB $lib'
15617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15618 test "$enable_shared" = yes && enable_static=no
15622 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15623 echo "${ECHO_T}$enable_shared" >&6; }
15625 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15626 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15627 # Make sure either enable_shared or enable_static is yes.
15628 test "$enable_shared" = yes || enable_static=yes
15629 { echo "$as_me:$LINENO: result: $enable_static" >&5
15630 echo "${ECHO_T}$enable_static" >&6; }
15635 lt_prog_compiler_wl_F77=
15636 lt_prog_compiler_pic_F77=
15637 lt_prog_compiler_static_F77=
15639 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15642 if test "$GCC" = yes; then
15643 lt_prog_compiler_wl_F77='-Wl,'
15644 lt_prog_compiler_static_F77='-static'
15648 # All AIX code is PIC.
15649 if test "$host_cpu" = ia64; then
15650 # AIX 5 now supports IA64 processor
15651 lt_prog_compiler_static_F77='-Bstatic'
15656 # FIXME: we need at least 68020 code to build shared libraries, but
15657 # adding the `-m68020' flag to GCC prevents building anything better,
15659 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15662 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15663 # PIC is the default for these OSes.
15666 mingw* | pw32* | os2*)
15667 # This hack is so that the source file can tell whether it is being
15668 # built for inclusion in a dll (and should export symbols for example).
15669 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15672 darwin* | rhapsody*)
15673 # PIC is the default on this platform
15674 # Common symbols not allowed in MH_DYLIB files
15675 lt_prog_compiler_pic_F77='-fno-common'
15679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680 # Instead, we relocate shared libraries at runtime.
15684 # Just because we use GCC doesn't mean we suddenly get shared libraries
15685 # on systems that don't support them.
15686 lt_prog_compiler_can_build_shared_F77=no
15691 if test -d /usr/nec; then
15692 lt_prog_compiler_pic_F77=-Kconform_pic
15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698 # not for PA HP-UX.
15704 lt_prog_compiler_pic_F77='-fPIC'
15710 lt_prog_compiler_pic_F77='-fPIC'
15714 # PORTME Check for flag to pass linker flags through the system compiler.
15717 lt_prog_compiler_wl_F77='-Wl,'
15718 if test "$host_cpu" = ia64; then
15719 # AIX 5 now supports IA64 processor
15720 lt_prog_compiler_static_F77='-Bstatic'
15722 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15726 # PIC is the default on this platform
15727 # Common symbols not allowed in MH_DYLIB files
15728 case $cc_basename in
15730 lt_prog_compiler_pic_F77='-qnocommon'
15731 lt_prog_compiler_wl_F77='-Wl,'
15736 mingw* | pw32* | os2*)
15737 # This hack is so that the source file can tell whether it is being
15738 # built for inclusion in a dll (and should export symbols for example).
15739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15742 hpux9* | hpux10* | hpux11*)
15743 lt_prog_compiler_wl_F77='-Wl,'
15744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15745 # not for PA HP-UX.
15751 lt_prog_compiler_pic_F77='+Z'
15754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15758 irix5* | irix6* | nonstopux*)
15759 lt_prog_compiler_wl_F77='-Wl,'
15760 # PIC (with -KPIC) is the default.
15761 lt_prog_compiler_static_F77='-non_shared'
15765 lt_prog_compiler_pic_F77='-KPIC'
15766 lt_prog_compiler_static_F77='-Bstatic'
15769 linux* | k*bsd*-gnu)
15770 case $cc_basename in
15772 lt_prog_compiler_wl_F77='-Wl,'
15773 lt_prog_compiler_pic_F77='-KPIC'
15774 lt_prog_compiler_static_F77='-static'
15776 pgcc* | pgf77* | pgf90* | pgf95*)
15777 # Portland Group compilers (*not* the Pentium gcc compiler,
15778 # which looks to be a dead project)
15779 lt_prog_compiler_wl_F77='-Wl,'
15780 lt_prog_compiler_pic_F77='-fpic'
15781 lt_prog_compiler_static_F77='-Bstatic'
15784 lt_prog_compiler_wl_F77='-Wl,'
15785 # All Alpha code is PIC.
15786 lt_prog_compiler_static_F77='-non_shared'
15791 osf3* | osf4* | osf5*)
15792 lt_prog_compiler_wl_F77='-Wl,'
15793 # All OSF/1 code is PIC.
15794 lt_prog_compiler_static_F77='-non_shared'
15798 lt_prog_compiler_pic_F77='-KPIC'
15799 lt_prog_compiler_static_F77='-Bstatic'
15800 case $cc_basename in
15801 f77* | f90* | f95*)
15802 lt_prog_compiler_wl_F77='-Qoption ld ';;
15804 lt_prog_compiler_wl_F77='-Wl,';;
15809 lt_prog_compiler_wl_F77='-Qoption ld '
15810 lt_prog_compiler_pic_F77='-PIC'
15811 lt_prog_compiler_static_F77='-Bstatic'
15814 sysv4 | sysv4.2uw2* | sysv4.3*)
15815 lt_prog_compiler_wl_F77='-Wl,'
15816 lt_prog_compiler_pic_F77='-KPIC'
15817 lt_prog_compiler_static_F77='-Bstatic'
15821 if test -d /usr/nec ;then
15822 lt_prog_compiler_pic_F77='-Kconform_pic'
15823 lt_prog_compiler_static_F77='-Bstatic'
15827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15828 lt_prog_compiler_wl_F77='-Wl,'
15829 lt_prog_compiler_pic_F77='-KPIC'
15830 lt_prog_compiler_static_F77='-Bstatic'
15834 lt_prog_compiler_wl_F77='-Wl,'
15835 lt_prog_compiler_can_build_shared_F77=no
15839 lt_prog_compiler_pic_F77='-pic'
15840 lt_prog_compiler_static_F77='-Bstatic'
15844 lt_prog_compiler_can_build_shared_F77=no
15849 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15850 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15853 # Check to make sure the PIC flag actually works.
15855 if test -n "$lt_prog_compiler_pic_F77"; then
15857 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15859 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 lt_prog_compiler_pic_works_F77=no
15863 ac_outfile=conftest.$ac_objext
15864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15865 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15866 # Insert the option either (1) after the last *FLAGS variable, or
15867 # (2) before a word containing "conftest.", or (3) at the end.
15868 # Note that $ac_compile itself does not contain backslashes and begins
15869 # with a dollar sign (not a hyphen), so the echo should work correctly.
15870 # The option is referenced via a variable to avoid confusing sed.
15871 lt_compile=`echo "$ac_compile" | $SED \
15872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874 -e 's:$: $lt_compiler_flag:'`
15875 (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876 (eval "$lt_compile" 2>conftest.err)
15878 cat conftest.err >&5
15879 echo "$as_me:15879: \$? = $ac_status" >&5
15880 if (exit $ac_status) && test -s "$ac_outfile"; then
15881 # The compiler can only warn and ignore the option if not recognized
15882 # So say no if there are warnings other than the usual output.
15883 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15886 lt_prog_compiler_pic_works_F77=yes
15892 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15893 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15895 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15896 case $lt_prog_compiler_pic_F77 in
15898 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15901 lt_prog_compiler_pic_F77=
15902 lt_prog_compiler_can_build_shared_F77=no
15907 # For platforms which do not support PIC, -DPIC is meaningless:
15909 lt_prog_compiler_pic_F77=
15912 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15917 # Check to make sure the static flag actually works.
15919 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15920 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15921 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15922 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 lt_prog_compiler_static_works_F77=no
15926 save_LDFLAGS="$LDFLAGS"
15927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15928 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15930 # The linker can only warn and ignore the option if not recognized
15931 # So say no if there are warnings
15932 if test -s conftest.err; then
15933 # Append any errors to the config.log.
15934 cat conftest.err 1>&5
15935 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15937 if diff conftest.exp conftest.er2 >/dev/null; then
15938 lt_prog_compiler_static_works_F77=yes
15941 lt_prog_compiler_static_works_F77=yes
15945 LDFLAGS="$save_LDFLAGS"
15948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15949 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15951 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15954 lt_prog_compiler_static_F77=
15958 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15959 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15960 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 lt_cv_prog_compiler_c_o_F77=no
15964 $rm -r conftest 2>/dev/null
15968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15970 lt_compiler_flag="-o out/conftest2.$ac_objext"
15971 # Insert the option either (1) after the last *FLAGS variable, or
15972 # (2) before a word containing "conftest.", or (3) at the end.
15973 # Note that $ac_compile itself does not contain backslashes and begins
15974 # with a dollar sign (not a hyphen), so the echo should work correctly.
15975 lt_compile=`echo "$ac_compile" | $SED \
15976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978 -e 's:$: $lt_compiler_flag:'`
15979 (eval echo "\"\$as_me:15979: $lt_compile\"" >&5)
15980 (eval "$lt_compile" 2>out/conftest.err)
15982 cat out/conftest.err >&5
15983 echo "$as_me:15983: \$? = $ac_status" >&5
15984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15986 # The compiler can only warn and ignore the option if not recognized
15987 # So say no if there are warnings
15988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991 lt_cv_prog_compiler_c_o_F77=yes
15996 # SGI C++ compiler will create directory out/ii_files/ for
15997 # template instantiation
15998 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15999 $rm out/* && rmdir out
16005 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16006 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16009 hard_links="nottested"
16010 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16011 # do not overwrite the value of need_locks provided by the user
16012 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16013 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16018 ln conftest.a conftest.b 2>&5 || hard_links=no
16019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020 { echo "$as_me:$LINENO: result: $hard_links" >&5
16021 echo "${ECHO_T}$hard_links" >&6; }
16022 if test "$hard_links" = no; then
16023 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16024 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16031 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16032 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16035 allow_undefined_flag_F77=
16036 enable_shared_with_static_runtimes_F77=no
16038 archive_expsym_cmds_F77=
16039 old_archive_From_new_cmds_F77=
16040 old_archive_from_expsyms_cmds_F77=
16041 export_dynamic_flag_spec_F77=
16042 whole_archive_flag_spec_F77=
16043 thread_safe_flag_spec_F77=
16044 hardcode_libdir_flag_spec_F77=
16045 hardcode_libdir_flag_spec_ld_F77=
16046 hardcode_libdir_separator_F77=
16047 hardcode_direct_F77=no
16048 hardcode_minus_L_F77=no
16049 hardcode_shlibpath_var_F77=unsupported
16050 link_all_deplibs_F77=unknown
16051 hardcode_automatic_F77=no
16053 module_expsym_cmds_F77=
16054 always_export_symbols_F77=no
16055 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16056 # include_expsyms should be a list of space-separated symbols to be *always*
16057 # included in the symbol list
16058 include_expsyms_F77=
16059 # exclude_expsyms can be an extended regexp of symbols to exclude
16060 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16061 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16062 # as well as any symbol that contains `d'.
16063 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16064 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16065 # platforms (ab)use it in PIC code, but their linkers get confused if
16066 # the symbol is explicitly referenced. Since portable code cannot
16067 # rely on this symbol name, it's probably fine to never include it in
16068 # preloaded symbol tables.
16069 extract_expsyms_cmds=
16070 # Just being paranoid about ensuring that cc_basename is set.
16071 for cc_temp in $compiler""; do
16073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16082 cygwin* | mingw* | pw32*)
16083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 if test "$GCC" != yes; then
16091 # we just hope/assume this is gcc and not c89 (= MSVC++)
16100 if test "$with_gnu_ld" = yes; then
16101 # If archive_cmds runs LD, not CC, wlarc should be empty
16104 # Set some defaults for GNU ld with shared library support. These
16105 # are reset later if shared libraries are not supported. Putting them
16106 # here allows them to be overridden if necessary.
16107 runpath_var=LD_RUN_PATH
16108 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16109 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16110 # ancient GNU ld didn't support --whole-archive et. al.
16111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16112 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16114 whole_archive_flag_spec_F77=
16116 supports_anon_versioning=no
16117 case `$LD -v 2>/dev/null` in
16118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16121 *\ 2.11.*) ;; # other 2.11 versions
16122 *) supports_anon_versioning=yes ;;
16125 # See if GNU ld supports shared libraries.
16127 aix3* | aix4* | aix5*)
16128 # On AIX/PPC, the GNU linker is very broken
16129 if test "$host_cpu" != ia64; then
16133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16134 *** to be unable to reliably create shared libraries on AIX.
16135 *** Therefore, libtool is disabling shared libraries support. If you
16136 *** really care for shared libraries, you may want to modify your PATH
16137 *** so that a non-GNU linker is found, and then restart.
16144 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)'
16145 hardcode_libdir_flag_spec_F77='-L$libdir'
16146 hardcode_minus_L_F77=yes
16148 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16149 # that the semantics of dynamic libraries on AmigaOS, at least up
16150 # to version 4, is to share data among multiple programs linked
16151 # with the same dynamic library. Since this doesn't match the
16152 # behavior of shared libraries on other platforms, we can't use
16158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159 allow_undefined_flag_F77=unsupported
16160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16161 # support --undefined. This deserves some investigation. FIXME
16162 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 cygwin* | mingw* | pw32*)
16169 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16170 # as there is no search path for DLLs.
16171 hardcode_libdir_flag_spec_F77='-L$libdir'
16172 allow_undefined_flag_F77=unsupported
16173 always_export_symbols_F77=no
16174 enable_shared_with_static_runtimes_F77=yes
16175 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16178 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179 # If the export-symbols file already is a .def file (1st line
16180 # is EXPORTS), use it as is; otherwise, prepend...
16181 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16182 cp $export_symbols $output_objdir/$soname.def;
16184 echo EXPORTS > $output_objdir/$soname.def;
16185 cat $export_symbols >> $output_objdir/$soname.def;
16187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16194 hardcode_direct_F77=no
16195 hardcode_shlibpath_var_F77=no
16196 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16197 export_dynamic_flag_spec_F77='${wl}-E'
16198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16199 # Instead, shared libraries are loaded at an image base (0x10000000 by
16200 # default) and relocated if they conflict, which is a slow very memory
16201 # consuming and fragmenting process. To avoid this, we pick a random,
16202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16204 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'
16205 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'
16208 linux* | k*bsd*-gnu)
16209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16211 case $cc_basename,$host_cpu in
16212 pgcc*) # Portland Group C compiler
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'
16216 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16217 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'
16218 tmp_addflag=' $pic_flag -Mnomain' ;;
16219 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16220 tmp_addflag=' -i_dynamic' ;;
16221 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16222 tmp_addflag=' -i_dynamic -nofor_main' ;;
16223 ifc* | ifort*) # Intel Fortran compiler
16224 tmp_addflag=' -nofor_main' ;;
16226 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228 if test $supports_anon_versioning = yes; then
16229 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16231 $echo "local: *; };" >> $output_objdir/$libname.ver~
16232 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16234 link_all_deplibs_F77=no
16240 netbsd* | netbsdelf*-gnu)
16241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16242 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16256 *** create shared libraries on Solaris systems. Therefore, libtool
16257 *** is disabling shared libraries support. We urge you to upgrade GNU
16258 *** binutils to release 2.9.1 or newer. Another option is to modify
16259 *** your PATH or compiler configuration so that the native linker is
16260 *** used, and then restart.
16263 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16272 case `$LD -v 2>&1` in
16273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16278 *** reliably create shared libraries on SCO systems. Therefore, libtool
16279 *** is disabling shared libraries support. We urge you to upgrade GNU
16280 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16281 *** your PATH or compiler configuration so that the native linker is
16282 *** used, and then restart.
16287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16288 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16299 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_direct_F77=yes
16302 hardcode_shlibpath_var_F77=no
16306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16315 if test "$ld_shlibs_F77" = no; then
16317 hardcode_libdir_flag_spec_F77=
16318 export_dynamic_flag_spec_F77=
16319 whole_archive_flag_spec_F77=
16322 # PORTME fill in a description of your system's linker (not GNU ld)
16325 allow_undefined_flag_F77=unsupported
16326 always_export_symbols_F77=yes
16327 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'
16328 # Note: this linker hardcodes the directories in LIBPATH if there
16329 # are no directories specified by -L.
16330 hardcode_minus_L_F77=yes
16331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16332 # Neither direct hardcoding nor static linking is supported with a
16334 hardcode_direct_F77=unsupported
16339 if test "$host_cpu" = ia64; then
16340 # On IA64, the linker does run time linking by default, so we don't
16341 # have to do anything special.
16342 aix_use_runtimelinking=no
16343 exp_sym_flag='-Bexport'
16346 # If we're using GNU nm, then we don't want the "-C" option.
16347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16349 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'
16351 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'
16353 aix_use_runtimelinking=no
16355 # Test if we are trying to use run time linking or normal
16356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16357 # need to do runtime linking.
16358 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16359 for ld_flag in $LDFLAGS; do
16360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16361 aix_use_runtimelinking=yes
16368 exp_sym_flag='-bexport'
16369 no_entry_flag='-bnoentry'
16372 # When large executables or shared objects are built, AIX ld can
16373 # have problems creating the table of contents. If linking a library
16374 # or program results in "error TOC overflow" add -mminimal-toc to
16375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16378 archive_cmds_F77=''
16379 hardcode_direct_F77=yes
16380 hardcode_libdir_separator_F77=':'
16381 link_all_deplibs_F77=yes
16383 if test "$GCC" = yes; then
16384 case $host_os in aix4.[012]|aix4.[012].*)
16385 # We only want to do this on AIX 4.2 and lower, the check
16386 # below for broken collect2 doesn't work under 4.3+
16387 collect2name=`${CC} -print-prog-name=collect2`
16388 if test -f "$collect2name" && \
16389 strings "$collect2name" | grep resolve_lib_name >/dev/null
16391 # We have reworked collect2
16392 hardcode_direct_F77=yes
16394 # We have old collect2
16395 hardcode_direct_F77=unsupported
16396 # It fails to find uninstalled libraries when the uninstalled
16397 # path is not listed in the libpath. Setting hardcode_minus_L
16398 # to unsupported forces relinking
16399 hardcode_minus_L_F77=yes
16400 hardcode_libdir_flag_spec_F77='-L$libdir'
16401 hardcode_libdir_separator_F77=
16405 shared_flag='-shared'
16406 if test "$aix_use_runtimelinking" = yes; then
16407 shared_flag="$shared_flag "'${wl}-G'
16411 if test "$host_cpu" = ia64; then
16412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16413 # chokes on -Wl,-G. The following line is correct:
16416 if test "$aix_use_runtimelinking" = yes; then
16417 shared_flag='${wl}-G'
16419 shared_flag='${wl}-bM:SRE'
16424 # It seems that -bexpall does not export symbols beginning with
16425 # underscore (_), so it is better to generate a list of symbols to export.
16426 always_export_symbols_F77=yes
16427 if test "$aix_use_runtimelinking" = yes; then
16428 # Warning - without using the other runtime loading flags (-brtl),
16429 # -berok will link without error, but may produce a broken library.
16430 allow_undefined_flag_F77='-berok'
16431 # Determine the default libpath from the value encoded in an empty executable.
16432 cat >conftest.$ac_ext <<_ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_link") 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16474 # Check for a 64-bit object if we didn't find anything.
16475 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; }
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16484 rm -f core conftest.err conftest.$ac_objext \
16485 conftest$ac_exeext conftest.$ac_ext
16486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16489 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"
16491 if test "$host_cpu" = ia64; then
16492 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16493 allow_undefined_flag_F77="-z nodefs"
16494 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"
16496 # Determine the default libpath from the value encoded in an empty executable.
16497 cat >conftest.$ac_ext <<_ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_link") 2>conftest.er1
16511 grep -v '^ *+' conftest.er1 >conftest.err
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16539 # Check for a 64-bit object if we didn't find anything.
16540 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; }
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16553 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16554 # Warning - without using the other run time loading flags,
16555 # -berok will link without error, but may produce a broken library.
16556 no_undefined_flag_F77=' ${wl}-bernotok'
16557 allow_undefined_flag_F77=' ${wl}-berok'
16558 # Exported symbols can be pulled into shared objects from archives
16559 whole_archive_flag_spec_F77='$convenience'
16560 archive_cmds_need_lc_F77=yes
16561 # This is similar to how AIX traditionally builds its shared libraries.
16562 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'
16568 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)'
16569 hardcode_libdir_flag_spec_F77='-L$libdir'
16570 hardcode_minus_L_F77=yes
16571 # see comment about different semantics on the GNU ld section
16576 export_dynamic_flag_spec_F77=-rdynamic
16579 cygwin* | mingw* | pw32*)
16580 # When not using gcc, we currently assume that we are using
16581 # Microsoft Visual C++.
16582 # hardcode_libdir_flag_spec is actually meaningless, as there is
16583 # no search path for DLLs.
16584 hardcode_libdir_flag_spec_F77=' '
16585 allow_undefined_flag_F77=unsupported
16586 # Tell ltmain to make .lib files, not .a files.
16588 # Tell ltmain to make .dll files, not .so files.
16590 # FIXME: Setting linknames here is a bad hack.
16591 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16592 # The linker will automatically build a .lib file if we build a DLL.
16593 old_archive_From_new_cmds_F77='true'
16594 # FIXME: Should let the user specify the lib program.
16595 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16596 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16597 enable_shared_with_static_runtimes_F77=yes
16600 darwin* | rhapsody*)
16602 rhapsody* | darwin1.[012])
16603 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16609 case ${MACOSX_DEPLOYMENT_TARGET} in
16611 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16614 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16620 archive_cmds_need_lc_F77=no
16621 hardcode_direct_F77=no
16622 hardcode_automatic_F77=yes
16623 hardcode_shlibpath_var_F77=unsupported
16624 whole_archive_flag_spec_F77=''
16625 link_all_deplibs_F77=yes
16626 if test "$GCC" = yes ; then
16627 output_verbose_link_cmd='echo'
16628 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16629 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16631 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}'
16632 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}'
16634 case $cc_basename in
16636 output_verbose_link_cmd='echo'
16637 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16638 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16640 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}'
16641 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}'
16651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_libdir_flag_spec_F77='-L$libdir'
16653 hardcode_shlibpath_var_F77=no
16660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16661 # support. Future versions do this automatically, but an explicit c++rt0.o
16662 # does not break anything, and helps significantly (at the cost of a little
16665 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16666 hardcode_libdir_flag_spec_F77='-R$libdir'
16667 hardcode_direct_F77=yes
16668 hardcode_shlibpath_var_F77=no
16671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16673 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_direct_F77=yes
16675 hardcode_minus_L_F77=yes
16676 hardcode_shlibpath_var_F77=no
16679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16680 freebsd* | dragonfly*)
16681 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16682 hardcode_libdir_flag_spec_F77='-R$libdir'
16683 hardcode_direct_F77=yes
16684 hardcode_shlibpath_var_F77=no
16688 if test "$GCC" = yes; then
16689 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'
16691 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'
16693 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16694 hardcode_libdir_separator_F77=:
16695 hardcode_direct_F77=yes
16697 # hardcode_minus_L: Not really in the search PATH,
16698 # but as the default location of the library.
16699 hardcode_minus_L_F77=yes
16700 export_dynamic_flag_spec_F77='${wl}-E'
16704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16705 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16707 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16709 if test "$with_gnu_ld" = no; then
16710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16711 hardcode_libdir_separator_F77=:
16713 hardcode_direct_F77=yes
16714 export_dynamic_flag_spec_F77='${wl}-E'
16716 # hardcode_minus_L: Not really in the search PATH,
16717 # but as the default location of the library.
16718 hardcode_minus_L_F77=yes
16723 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16726 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16729 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16748 if test "$with_gnu_ld" = no; then
16749 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16750 hardcode_libdir_separator_F77=:
16754 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16755 hardcode_direct_F77=no
16756 hardcode_shlibpath_var_F77=no
16759 hardcode_direct_F77=yes
16760 export_dynamic_flag_spec_F77='${wl}-E'
16762 # hardcode_minus_L: Not really in the search PATH,
16763 # but as the default location of the library.
16764 hardcode_minus_L_F77=yes
16770 irix5* | irix6* | nonstopux*)
16771 if test "$GCC" = yes; then
16772 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'
16774 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'
16775 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16778 hardcode_libdir_separator_F77=:
16779 link_all_deplibs_F77=yes
16782 netbsd* | netbsdelf*-gnu)
16783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16784 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16786 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16788 hardcode_libdir_flag_spec_F77='-R$libdir'
16789 hardcode_direct_F77=yes
16790 hardcode_shlibpath_var_F77=no
16794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_direct_F77=yes
16796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16797 hardcode_libdir_separator_F77=:
16798 hardcode_shlibpath_var_F77=no
16802 hardcode_direct_F77=yes
16803 hardcode_shlibpath_var_F77=no
16804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16805 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16807 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16808 export_dynamic_flag_spec_F77='${wl}-E'
16811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16812 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16813 hardcode_libdir_flag_spec_F77='-R$libdir'
16816 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16817 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16824 hardcode_libdir_flag_spec_F77='-L$libdir'
16825 hardcode_minus_L_F77=yes
16826 allow_undefined_flag_F77=unsupported
16827 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'
16828 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16832 if test "$GCC" = yes; then
16833 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16834 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'
16836 allow_undefined_flag_F77=' -expect_unresolved \*'
16837 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'
16839 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16840 hardcode_libdir_separator_F77=:
16843 osf4* | osf5*) # as osf3* with the addition of -msym flag
16844 if test "$GCC" = yes; then
16845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16846 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'
16847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16849 allow_undefined_flag_F77=' -expect_unresolved \*'
16850 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'
16851 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~
16852 $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'
16854 # Both c and cxx compiler support -rpath directly
16855 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16857 hardcode_libdir_separator_F77=:
16861 no_undefined_flag_F77=' -z text'
16862 if test "$GCC" = yes; then
16864 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16866 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16869 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16870 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16873 hardcode_libdir_flag_spec_F77='-R$libdir'
16874 hardcode_shlibpath_var_F77=no
16876 solaris2.[0-5] | solaris2.[0-5].*) ;;
16878 # The compiler driver will combine linker options so we
16879 # cannot just pass the convience library names through
16880 # without $wl, iff we do not link with $LD.
16881 # Luckily, gcc supports the same syntax we need for Sun Studio.
16882 # Supported since Solaris 2.6 (maybe 2.5.1?)
16885 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16887 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' ;;
16890 link_all_deplibs_F77=yes
16894 if test "x$host_vendor" = xsequent; then
16895 # Use $CC to link under sequent, because it throws in some extra .o
16896 # files that make .init and .fini sections work.
16897 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16899 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_libdir_flag_spec_F77='-L$libdir'
16902 hardcode_direct_F77=yes
16903 hardcode_minus_L_F77=yes
16904 hardcode_shlibpath_var_F77=no
16908 case $host_vendor in
16910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_direct_F77=yes # is this really true???
16914 ## LD is ld it makes a PLAMLIB
16915 ## CC just makes a GrossModule.
16916 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16917 reload_cmds_F77='$CC -r -o $output$reload_objs'
16918 hardcode_direct_F77=no
16921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16922 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16925 runpath_var='LD_RUN_PATH'
16926 hardcode_shlibpath_var_F77=no
16930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_shlibpath_var_F77=no
16932 export_dynamic_flag_spec_F77='-Bexport'
16936 if test -d /usr/nec; then
16937 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_shlibpath_var_F77=no
16939 runpath_var=LD_RUN_PATH
16940 hardcode_runpath_var=yes
16945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16946 no_undefined_flag_F77='${wl}-z,text'
16947 archive_cmds_need_lc_F77=no
16948 hardcode_shlibpath_var_F77=no
16949 runpath_var='LD_RUN_PATH'
16951 if test "$GCC" = yes; then
16952 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16956 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 sysv5* | sco3.2v5* | sco5v6*)
16961 # Note: We can NOT use -z defs as we might desire, because we do not
16962 # link with -lc, and that would cause any symbols used from libc to
16963 # always be unresolved, which means just about no library would
16964 # ever link correctly. If we're not using GNU ld we use -z text
16965 # though, which does catch some bad symbols but isn't as heavy-handed
16967 no_undefined_flag_F77='${wl}-z,text'
16968 allow_undefined_flag_F77='${wl}-z,nodefs'
16969 archive_cmds_need_lc_F77=no
16970 hardcode_shlibpath_var_F77=no
16971 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16972 hardcode_libdir_separator_F77=':'
16973 link_all_deplibs_F77=yes
16974 export_dynamic_flag_spec_F77='${wl}-Bexport'
16975 runpath_var='LD_RUN_PATH'
16977 if test "$GCC" = yes; then
16978 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16982 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988 hardcode_libdir_flag_spec_F77='-L$libdir'
16989 hardcode_shlibpath_var_F77=no
16998 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16999 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17000 test "$ld_shlibs_F77" = no && can_build_shared=no
17003 # Do we need to explicitly link libc?
17005 case "x$archive_cmds_need_lc_F77" in
17007 # Assume -lc should be added
17008 archive_cmds_need_lc_F77=yes
17010 if test "$enable_shared" = yes && test "$GCC" = yes; then
17011 case $archive_cmds_F77 in
17013 # FIXME: we may have to deal with multi-command sequences.
17016 # Test whether the compiler implicitly links with -lc since on some
17017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17018 # to ld, don't add -lc before -lgcc.
17019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17025 (eval $ac_compile) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } 2>conftest.err; then
17031 libobjs=conftest.$ac_objext
17033 wl=$lt_prog_compiler_wl_F77
17034 pic_flag=$lt_prog_compiler_pic_F77
17040 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17041 allow_undefined_flag_F77=
17042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17043 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }
17048 archive_cmds_need_lc_F77=no
17050 archive_cmds_need_lc_F77=yes
17052 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17054 cat conftest.err 1>&5
17057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17058 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17067 library_names_spec=
17068 libname_spec='lib$name'
17072 postuninstall_cmds=
17076 shlibpath_overrides_runpath=unknown
17078 dynamic_linker="$host_os ld.so"
17079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17080 if test "$GCC" = yes; then
17081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17083 # if the path contains ";" then we assume it to be the separator
17084 # otherwise default to the standard path separator (i.e. ":") - it is
17085 # assumed that no part of a normal pathname contains ";" but that should
17086 # okay in the real world where ";" in dirpaths is itself problematic.
17087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17094 need_lib_prefix=unknown
17095 hardcode_into_libs=no
17097 # when you set need_version to no, make sure it does not cause -set_version
17098 # flags to be left without arguments
17099 need_version=unknown
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17105 shlibpath_var=LIBPATH
17107 # AIX 3 has no versioning support, so we append a major version to the name.
17108 soname_spec='${libname}${release}${shared_ext}$major'
17115 hardcode_into_libs=yes
17116 if test "$host_cpu" = ia64; then
17117 # AIX 5 supports IA64
17118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17119 shlibpath_var=LD_LIBRARY_PATH
17121 # With GCC up to 2.95.x, collect2 would create an import file
17122 # for dependence libraries. The import file would start with
17123 # the line `#! .'. This would cause the generated library to
17124 # depend on `.', always an invalid library. This was fixed in
17125 # development snapshots of GCC prior to 3.0.
17127 aix4 | aix4.[01] | aix4.[01].*)
17128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17133 can_build_shared=no
17137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17138 # soname into executable. Probably we can add versioning support to
17139 # collect2, so additional links can be useful in future.
17140 if test "$aix_use_runtimelinking" = yes; then
17141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17142 # instead of lib<name>.a to let people know that these are not
17143 # typical AIX shared libraries.
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 # We preserve .a as extension for shared libraries through AIX4.2
17147 # and later when we are not doing run time linking.
17148 library_names_spec='${libname}${release}.a $libname.a'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LIBPATH
17156 library_names_spec='$libname.ixlibrary $libname.a'
17157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17158 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'
17162 library_names_spec='${libname}${shared_ext}'
17163 dynamic_linker="$host_os ld.so"
17164 shlibpath_var=LIBRARY_PATH
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17176 # the default ld.so.conf also contains /usr/contrib/lib and
17177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17178 # libtool to hard-code these into programs
17181 cygwin* | mingw* | pw32*)
17182 version_type=windows
17187 case $GCC,$host_os in
17188 yes,cygwin* | yes,mingw* | yes,pw32*)
17189 library_names_spec='$libname.dll.a'
17190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17191 postinstall_cmds='base_file=`basename \${file}`~
17192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17193 dldir=$destdir/`dirname \$dlpath`~
17194 test -d \$dldir || mkdir -p \$dldir~
17195 $install_prog $dir/$dlname \$dldir/$dlname~
17196 chmod a+x \$dldir/$dlname'
17197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17198 dlpath=$dir/\$dldll~
17200 shlibpath_overrides_runpath=yes
17204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17209 # MinGW DLLs use traditional 'lib' prefix
17210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17213 # It is most probably a Windows format PATH printed by
17214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17215 # path with ; separators, and with drive letters. We can handle the
17216 # drive letters (cygwin fileutils understands them), so leave them,
17217 # especially as we might pass files found there to a mingw objdump,
17218 # which wouldn't understand a cygwinified path. Ahh.
17219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17225 # pw32 DLLs use 'pw' prefix rather than 'lib'
17226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17235 dynamic_linker='Win32 ld.exe'
17236 # FIXME: first we should search . and the directory the executable is in
17240 darwin* | rhapsody*)
17241 dynamic_linker="$host_os dyld"
17242 version_type=darwin
17245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17246 soname_spec='${libname}${release}${major}$shared_ext'
17247 shlibpath_overrides_runpath=yes
17248 shlibpath_var=DYLD_LIBRARY_PATH
17249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17251 if test "$GCC" = yes; then
17252 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"`
17254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 shlibpath_var=LD_LIBRARY_PATH
17272 freebsd* | dragonfly*)
17273 # DragonFly does not have aout. When/if they implement a new
17274 # versioning mechanism, adjust this.
17275 if test -x /usr/bin/objformat; then
17276 objformat=`/usr/bin/objformat`
17279 freebsd[123]*) objformat=aout ;;
17280 *) objformat=elf ;;
17283 version_type=freebsd-$objformat
17284 case $version_type in
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17295 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17300 freebsd3.[01]* | freebsdelf3.[01]*)
17301 shlibpath_overrides_runpath=yes
17302 hardcode_into_libs=yes
17304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17306 shlibpath_overrides_runpath=no
17307 hardcode_into_libs=yes
17309 freebsd*) # from 4.6 on
17310 shlibpath_overrides_runpath=yes
17311 hardcode_into_libs=yes
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 hardcode_into_libs=yes
17326 hpux9* | hpux10* | hpux11*)
17327 # Give a soname corresponding to the major version so that dld.sl refuses to
17328 # link against other versions.
17335 hardcode_into_libs=yes
17336 dynamic_linker="$host_os dld.so"
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 if test "X$HPUX_IA64_MODE" = X32; then
17342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17350 hardcode_into_libs=yes
17351 dynamic_linker="$host_os dld.sl"
17352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17361 dynamic_linker="$host_os dld.sl"
17362 shlibpath_var=SHLIB_PATH
17363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17369 postinstall_cmds='chmod 555 $lib'
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17381 hardcode_into_libs=yes
17384 irix5* | irix6* | nonstopux*)
17386 nonstopux*) version_type=nonstopux ;;
17388 if test "$lt_cv_prog_gnu_ld" = yes; then
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17399 irix5* | nonstopux*)
17400 libsuff= shlibsuff=
17403 case $LD in # libtool.m4 will add one of these switches to LD
17404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17405 libsuff= shlibsuff= libmagic=32-bit;;
17406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17407 libsuff=32 shlibsuff=N32 libmagic=N32;;
17408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17410 *) libsuff= shlibsuff= libmagic=never-match;;
17414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17415 shlibpath_overrides_runpath=no
17416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17418 hardcode_into_libs=yes
17421 # No shared lib support for Linux oldld, aout, or coff.
17422 linux*oldld* | linux*aout* | linux*coff*)
17426 # This must be Linux ELF.
17427 linux* | k*bsd*-gnu)
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=no
17436 # This implies no fast_install, which is unacceptable.
17437 # Some rework will be needed to allow for fast_install
17438 # before this can be enabled.
17439 hardcode_into_libs=yes
17441 # Append ld.so.conf contents to the search path
17442 if test -f /etc/ld.so.conf; then
17443 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' ' '`
17444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17447 # We used to test for /lib/ld.so.1 and disable shared libraries on
17448 # powerpc, because MkLinux only supported shared libraries with the
17449 # GNU dynamic linker. Since this was broken with cross compilers,
17450 # most powerpc-linux boxes support dynamic linking these days and
17451 # people can always --disable-shared, the test was removed, and we
17452 # assume the GNU/Linux dynamic linker is in use.
17453 dynamic_linker='GNU/Linux ld.so'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 dynamic_linker='NetBSD ld.elf_so'
17472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 dynamic_linker='NetBSD (a.out) ld.so'
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 dynamic_linker='NetBSD ld.elf_so'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 hardcode_into_libs=yes
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=yes
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17505 sys_lib_dlsearch_path_spec="/usr/lib"
17507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17510 *) need_version=no ;;
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17517 openbsd2.[89] | openbsd2.[89].*)
17518 shlibpath_overrides_runpath=no
17521 shlibpath_overrides_runpath=yes
17525 shlibpath_overrides_runpath=yes
17530 libname_spec='$name'
17533 library_names_spec='$libname${shared_ext} $libname.a'
17534 dynamic_linker='OS/2 ld.exe'
17535 shlibpath_var=LIBPATH
17538 osf3* | osf4* | osf5*)
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath=yes
17557 hardcode_into_libs=yes
17558 # ldd complains unless libraries are executable
17559 postinstall_cmds='chmod +x $lib'
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes
17568 if test "$with_gnu_ld" = yes; then
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 case $host_vendor in
17581 shlibpath_overrides_runpath=no
17583 export_dynamic_flag_spec='${wl}-Blargedynsym'
17584 runpath_var=LD_RUN_PATH
17592 shlibpath_overrides_runpath=no
17593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17599 if test -d /usr/nec ;then
17601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17602 soname_spec='$libname${shared_ext}.$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17608 version_type=freebsd-elf
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 hardcode_into_libs=yes
17615 if test "$with_gnu_ld" = yes; then
17616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17617 shlibpath_overrides_runpath=no
17619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17620 shlibpath_overrides_runpath=yes
17623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17627 sys_lib_dlsearch_path_spec='/usr/lib'
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17642 echo "${ECHO_T}$dynamic_linker" >&6; }
17643 test "$dynamic_linker" = no && can_build_shared=no
17645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17646 if test "$GCC" = yes; then
17647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17652 hardcode_action_F77=
17653 if test -n "$hardcode_libdir_flag_spec_F77" || \
17654 test -n "$runpath_var_F77" || \
17655 test "X$hardcode_automatic_F77" = "Xyes" ; then
17657 # We can hardcode non-existant directories.
17658 if test "$hardcode_direct_F77" != no &&
17659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17660 # have to relink, otherwise we might link with an installed library
17661 # when we should be linking with a yet-to-be-installed one
17662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17663 test "$hardcode_minus_L_F77" != no; then
17664 # Linking always hardcodes the temporary library directory.
17665 hardcode_action_F77=relink
17667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17668 hardcode_action_F77=immediate
17671 # We cannot hardcode anything, or else we can only hardcode existing
17673 hardcode_action_F77=unsupported
17675 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17676 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17678 if test "$hardcode_action_F77" = relink; then
17679 # Fast installation is not supported
17680 enable_fast_install=no
17681 elif test "$shlibpath_overrides_runpath" = yes ||
17682 test "$enable_shared" = no; then
17683 # Fast installation is not necessary
17684 enable_fast_install=needless
17688 # The else clause should only fire when bootstrapping the
17689 # libtool distribution, otherwise you forgot to ship ltmain.sh
17690 # with your package, and you will get complaints that there are
17691 # no rules to generate ltmain.sh.
17692 if test -f "$ltmain"; then
17693 # See if we are running on zsh, and set the options which allow our commands through
17694 # without removal of \ escapes.
17695 if test -n "${ZSH_VERSION+set}" ; then
17696 setopt NO_GLOB_SUBST
17698 # Now quote all the things that may contain metacharacters while being
17699 # careful not to overquote the AC_SUBSTed values. We take copies of the
17700 # variables and quote the copies for generation of the libtool script.
17701 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705 deplibs_check_method reload_flag reload_cmds need_locks \
17706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707 lt_cv_sys_global_symbol_to_c_name_address \
17708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709 old_postinstall_cmds old_postuninstall_cmds \
17713 lt_prog_compiler_wl_F77 \
17714 lt_prog_compiler_pic_F77 \
17715 lt_prog_compiler_static_F77 \
17716 lt_prog_compiler_no_builtin_flag_F77 \
17717 export_dynamic_flag_spec_F77 \
17718 thread_safe_flag_spec_F77 \
17719 whole_archive_flag_spec_F77 \
17720 enable_shared_with_static_runtimes_F77 \
17721 old_archive_cmds_F77 \
17722 old_archive_from_new_cmds_F77 \
17723 predep_objects_F77 \
17724 postdep_objects_F77 \
17727 compiler_lib_search_path_F77 \
17729 archive_expsym_cmds_F77 \
17730 postinstall_cmds_F77 \
17731 postuninstall_cmds_F77 \
17732 old_archive_from_expsyms_cmds_F77 \
17733 allow_undefined_flag_F77 \
17734 no_undefined_flag_F77 \
17735 export_symbols_cmds_F77 \
17736 hardcode_libdir_flag_spec_F77 \
17737 hardcode_libdir_flag_spec_ld_F77 \
17738 hardcode_libdir_separator_F77 \
17739 hardcode_automatic_F77 \
17741 module_expsym_cmds_F77 \
17742 lt_cv_prog_compiler_c_o_F77 \
17743 exclude_expsyms_F77 \
17744 include_expsyms_F77; do
17747 old_archive_cmds_F77 | \
17748 old_archive_from_new_cmds_F77 | \
17749 archive_cmds_F77 | \
17750 archive_expsym_cmds_F77 | \
17751 module_cmds_F77 | \
17752 module_expsym_cmds_F77 | \
17753 old_archive_from_expsyms_cmds_F77 | \
17754 export_symbols_cmds_F77 | \
17755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756 postinstall_cmds | postuninstall_cmds | \
17757 old_postinstall_cmds | old_postuninstall_cmds | \
17758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759 # Double-quote double-evaled strings.
17760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17769 *'\$0 --fallback-echo"')
17770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17776 cat <<__EOF__ >> "$cfgfile"
17777 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17781 # Shell to use when invoking shell scripts.
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17787 # Whether or not to build static libraries.
17788 build_old_libs=$enable_static
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc_F77
17793 # Whether or not to disallow shared libs when runtime libs are static
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17796 # Whether or not to optimize for fast installation.
17797 fast_install=$enable_fast_install
17800 host_alias=$host_alias
17804 # The build system.
17805 build_alias=$build_alias
17809 # An echo program that does not interpret backslashes.
17814 AR_FLAGS=$lt_AR_FLAGS
17819 # LTCC compiler flags.
17820 LTCFLAGS=$lt_LTCFLAGS
17822 # A language-specific compiler.
17823 CC=$lt_compiler_F77
17825 # Is the compiler the GNU C compiler?
17831 # The linker used to build libraries.
17834 # Whether we need hard or soft links.
17837 # A BSD-compatible nm program.
17840 # A symbol stripping program
17843 # Used to examine libraries when file_magic_cmd begins "file"
17844 MAGIC_CMD=$MAGIC_CMD
17846 # Used on cygwin: DLL creation program.
17849 # Used on cygwin: object dumper.
17852 # Used on cygwin: assembler.
17855 # The name of the directory that contains temporary libtool files.
17858 # How to create reloadable object files.
17859 reload_flag=$lt_reload_flag
17860 reload_cmds=$lt_reload_cmds
17862 # How to pass a linker flag through the compiler.
17863 wl=$lt_lt_prog_compiler_wl_F77
17865 # Object file suffix (normally "o").
17866 objext="$ac_objext"
17868 # Old archive suffix (normally "a").
17871 # Shared library suffix (normally ".so").
17872 shrext_cmds='$shrext_cmds'
17874 # Executable file suffix (normally "").
17877 # Additional compiler flags for building library objects.
17878 pic_flag=$lt_lt_prog_compiler_pic_F77
17881 # What is the maximum length of a command?
17882 max_cmd_len=$lt_cv_sys_max_cmd_len
17884 # Does compiler simultaneously support -c and -o options?
17885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17887 # Must we lock files when doing compilation?
17888 need_locks=$lt_need_locks
17890 # Do we need the lib prefix for modules?
17891 need_lib_prefix=$need_lib_prefix
17893 # Do we need a version for libraries?
17894 need_version=$need_version
17896 # Whether dlopen is supported.
17897 dlopen_support=$enable_dlopen
17899 # Whether dlopen of programs is supported.
17900 dlopen_self=$enable_dlopen_self
17902 # Whether dlopen of statically linked programs is supported.
17903 dlopen_self_static=$enable_dlopen_self_static
17905 # Compiler flag to prevent dynamic linking.
17906 link_static_flag=$lt_lt_prog_compiler_static_F77
17908 # Compiler flag to turn off builtin functions.
17909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17911 # Compiler flag to allow reflexive dlopens.
17912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17914 # Compiler flag to generate shared objects directly from archives.
17915 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17917 # Compiler flag to generate thread-safe objects.
17918 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17920 # Library versioning type.
17921 version_type=$version_type
17923 # Format of library name prefix.
17924 libname_spec=$lt_libname_spec
17926 # List of archive names. First name is the real one, the rest are links.
17927 # The last name is the one that the linker finds with -lNAME.
17928 library_names_spec=$lt_library_names_spec
17930 # The coded name of the library, if different from the real name.
17931 soname_spec=$lt_soname_spec
17933 # Commands used to build and install an old-style archive.
17935 old_archive_cmds=$lt_old_archive_cmds_F77
17936 old_postinstall_cmds=$lt_old_postinstall_cmds
17937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17939 # Create an old-style archive from a shared archive.
17940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17942 # Create a temporary old-style archive to link instead of a shared archive.
17943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17945 # Commands used to build and install a shared archive.
17946 archive_cmds=$lt_archive_cmds_F77
17947 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17948 postinstall_cmds=$lt_postinstall_cmds
17949 postuninstall_cmds=$lt_postuninstall_cmds
17951 # Commands used to build a loadable module (assumed same as above if empty)
17952 module_cmds=$lt_module_cmds_F77
17953 module_expsym_cmds=$lt_module_expsym_cmds_F77
17955 # Commands to strip libraries.
17956 old_striplib=$lt_old_striplib
17957 striplib=$lt_striplib
17959 # Dependencies to place before the objects being linked to create a
17961 predep_objects=$lt_predep_objects_F77
17963 # Dependencies to place after the objects being linked to create a
17965 postdep_objects=$lt_postdep_objects_F77
17967 # Dependencies to place before the objects being linked to create a
17969 predeps=$lt_predeps_F77
17971 # Dependencies to place after the objects being linked to create a
17973 postdeps=$lt_postdeps_F77
17975 # The library search path used internally by the compiler when linking
17976 # a shared library.
17977 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17979 # Method to check whether dependent libraries are shared objects.
17980 deplibs_check_method=$lt_deplibs_check_method
17982 # Command to use when deplibs_check_method == file_magic.
17983 file_magic_cmd=$lt_file_magic_cmd
17985 # Flag that allows shared libraries with undefined symbols to be built.
17986 allow_undefined_flag=$lt_allow_undefined_flag_F77
17988 # Flag that forces no undefined symbols.
17989 no_undefined_flag=$lt_no_undefined_flag_F77
17991 # Commands used to finish a libtool library installation in a directory.
17992 finish_cmds=$lt_finish_cmds
17994 # Same as above, but a single script fragment to be evaled but not shown.
17995 finish_eval=$lt_finish_eval
17997 # Take the output of nm and produce a listing of raw symbols and C names.
17998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18000 # Transform the output of nm in a proper C declaration
18001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18003 # Transform the output of nm in a C name address pair
18004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18006 # This is the shared library runtime path variable.
18007 runpath_var=$runpath_var
18009 # This is the shared library path variable.
18010 shlibpath_var=$shlibpath_var
18012 # Is shlibpath searched before the hard-coded library search path?
18013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18015 # How to hardcode a shared library path into an executable.
18016 hardcode_action=$hardcode_action_F77
18018 # Whether we should hardcode library paths into libraries.
18019 hardcode_into_libs=$hardcode_into_libs
18021 # Flag to hardcode \$libdir into a binary during linking.
18022 # This must work even if \$libdir does not exist.
18023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18025 # If ld is used when linking, flag to hardcode \$libdir into
18026 # a binary during linking. This must work even if \$libdir does
18028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18030 # Whether we need a single -rpath flag with a separated argument.
18031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18034 # resulting binary.
18035 hardcode_direct=$hardcode_direct_F77
18037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18038 # resulting binary.
18039 hardcode_minus_L=$hardcode_minus_L_F77
18041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18042 # the resulting binary.
18043 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18045 # Set to yes if building a shared library automatically hardcodes DIR into the library
18046 # and all subsequent libraries and executables linked against it.
18047 hardcode_automatic=$hardcode_automatic_F77
18049 # Variables whose values should be saved in libtool wrapper scripts and
18050 # restored at relink time.
18051 variables_saved_for_relink="$variables_saved_for_relink"
18053 # Whether libtool must link a program against all its dependency libraries.
18054 link_all_deplibs=$link_all_deplibs_F77
18056 # Compile-time system search path for libraries
18057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18059 # Run-time system search path for libraries
18060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18062 # Fix the shell variable \$srcfile for the compiler.
18063 fix_srcfile_path="$fix_srcfile_path_F77"
18065 # Set to yes if exported symbols are required.
18066 always_export_symbols=$always_export_symbols_F77
18068 # The commands to list exported symbols.
18069 export_symbols_cmds=$lt_export_symbols_cmds_F77
18071 # The commands to extract the exported symbol list from a shared archive.
18072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18074 # Symbols that should not be listed in the preloaded symbols.
18075 exclude_expsyms=$lt_exclude_expsyms_F77
18077 # Symbols that must always be exported.
18078 include_expsyms=$lt_include_expsyms_F77
18080 # ### END LIBTOOL TAG CONFIG: $tagname
18086 # If there is no Makefile yet, we rely on a make rule to execute
18087 # `config.status --recheck' to rerun these tests and create the
18088 # libtool script then.
18089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18090 if test -f "$ltmain_in"; then
18091 test -f Makefile && make "$ltmain"
18097 ac_cpp='$CPP $CPPFLAGS'
18098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18113 # Source file extension for Java test sources.
18116 # Object file extension for compiled Java test sources.
18120 # Code to be used in simple compile tests
18121 lt_simple_compile_test_code="class foo {}\n"
18123 # Code to be used in simple link tests
18124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18128 # If no C compiler was specified, use CC.
18131 # If no C compiler flags were specified, use CFLAGS.
18132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18134 # Allow CC to be a program name with arguments.
18138 # save warnings/boilerplate of simple test code
18139 ac_outfile=conftest.$ac_objext
18140 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18142 _lt_compiler_boilerplate=`cat conftest.err`
18145 ac_outfile=conftest.$ac_objext
18146 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18148 _lt_linker_boilerplate=`cat conftest.err`
18152 # Allow CC to be a program name with arguments.
18157 for cc_temp in $compiler""; do
18159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18169 archive_cmds_need_lc_GCJ=no
18171 old_archive_cmds_GCJ=$old_archive_cmds
18174 lt_prog_compiler_no_builtin_flag_GCJ=
18176 if test "$GCC" = yes; then
18177 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 lt_cv_prog_compiler_rtti_exceptions=no
18186 ac_outfile=conftest.$ac_objext
18187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18188 lt_compiler_flag="-fno-rtti -fno-exceptions"
18189 # Insert the option either (1) after the last *FLAGS variable, or
18190 # (2) before a word containing "conftest.", or (3) at the end.
18191 # Note that $ac_compile itself does not contain backslashes and begins
18192 # with a dollar sign (not a hyphen), so the echo should work correctly.
18193 # The option is referenced via a variable to avoid confusing sed.
18194 lt_compile=`echo "$ac_compile" | $SED \
18195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18197 -e 's:$: $lt_compiler_flag:'`
18198 (eval echo "\"\$as_me:18198: $lt_compile\"" >&5)
18199 (eval "$lt_compile" 2>conftest.err)
18201 cat conftest.err >&5
18202 echo "$as_me:18202: \$? = $ac_status" >&5
18203 if (exit $ac_status) && test -s "$ac_outfile"; then
18204 # The compiler can only warn and ignore the option if not recognized
18205 # So say no if there are warnings other than the usual output.
18206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18209 lt_cv_prog_compiler_rtti_exceptions=yes
18215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18226 lt_prog_compiler_wl_GCJ=
18227 lt_prog_compiler_pic_GCJ=
18228 lt_prog_compiler_static_GCJ=
18230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18233 if test "$GCC" = yes; then
18234 lt_prog_compiler_wl_GCJ='-Wl,'
18235 lt_prog_compiler_static_GCJ='-static'
18239 # All AIX code is PIC.
18240 if test "$host_cpu" = ia64; then
18241 # AIX 5 now supports IA64 processor
18242 lt_prog_compiler_static_GCJ='-Bstatic'
18247 # FIXME: we need at least 68020 code to build shared libraries, but
18248 # adding the `-m68020' flag to GCC prevents building anything better,
18250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18254 # PIC is the default for these OSes.
18257 mingw* | pw32* | os2*)
18258 # This hack is so that the source file can tell whether it is being
18259 # built for inclusion in a dll (and should export symbols for example).
18260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18263 darwin* | rhapsody*)
18264 # PIC is the default on this platform
18265 # Common symbols not allowed in MH_DYLIB files
18266 lt_prog_compiler_pic_GCJ='-fno-common'
18270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18271 # Instead, we relocate shared libraries at runtime.
18275 # Just because we use GCC doesn't mean we suddenly get shared libraries
18276 # on systems that don't support them.
18277 lt_prog_compiler_can_build_shared_GCJ=no
18282 if test -d /usr/nec; then
18283 lt_prog_compiler_pic_GCJ=-Kconform_pic
18288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18289 # not for PA HP-UX.
18295 lt_prog_compiler_pic_GCJ='-fPIC'
18301 lt_prog_compiler_pic_GCJ='-fPIC'
18305 # PORTME Check for flag to pass linker flags through the system compiler.
18308 lt_prog_compiler_wl_GCJ='-Wl,'
18309 if test "$host_cpu" = ia64; then
18310 # AIX 5 now supports IA64 processor
18311 lt_prog_compiler_static_GCJ='-Bstatic'
18313 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18317 # PIC is the default on this platform
18318 # Common symbols not allowed in MH_DYLIB files
18319 case $cc_basename in
18321 lt_prog_compiler_pic_GCJ='-qnocommon'
18322 lt_prog_compiler_wl_GCJ='-Wl,'
18327 mingw* | pw32* | os2*)
18328 # This hack is so that the source file can tell whether it is being
18329 # built for inclusion in a dll (and should export symbols for example).
18330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18333 hpux9* | hpux10* | hpux11*)
18334 lt_prog_compiler_wl_GCJ='-Wl,'
18335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18336 # not for PA HP-UX.
18342 lt_prog_compiler_pic_GCJ='+Z'
18345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18346 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18349 irix5* | irix6* | nonstopux*)
18350 lt_prog_compiler_wl_GCJ='-Wl,'
18351 # PIC (with -KPIC) is the default.
18352 lt_prog_compiler_static_GCJ='-non_shared'
18356 lt_prog_compiler_pic_GCJ='-KPIC'
18357 lt_prog_compiler_static_GCJ='-Bstatic'
18360 linux* | k*bsd*-gnu)
18361 case $cc_basename in
18363 lt_prog_compiler_wl_GCJ='-Wl,'
18364 lt_prog_compiler_pic_GCJ='-KPIC'
18365 lt_prog_compiler_static_GCJ='-static'
18367 pgcc* | pgf77* | pgf90* | pgf95*)
18368 # Portland Group compilers (*not* the Pentium gcc compiler,
18369 # which looks to be a dead project)
18370 lt_prog_compiler_wl_GCJ='-Wl,'
18371 lt_prog_compiler_pic_GCJ='-fpic'
18372 lt_prog_compiler_static_GCJ='-Bstatic'
18375 lt_prog_compiler_wl_GCJ='-Wl,'
18376 # All Alpha code is PIC.
18377 lt_prog_compiler_static_GCJ='-non_shared'
18382 osf3* | osf4* | osf5*)
18383 lt_prog_compiler_wl_GCJ='-Wl,'
18384 # All OSF/1 code is PIC.
18385 lt_prog_compiler_static_GCJ='-non_shared'
18389 lt_prog_compiler_pic_GCJ='-KPIC'
18390 lt_prog_compiler_static_GCJ='-Bstatic'
18391 case $cc_basename in
18392 f77* | f90* | f95*)
18393 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18395 lt_prog_compiler_wl_GCJ='-Wl,';;
18400 lt_prog_compiler_wl_GCJ='-Qoption ld '
18401 lt_prog_compiler_pic_GCJ='-PIC'
18402 lt_prog_compiler_static_GCJ='-Bstatic'
18405 sysv4 | sysv4.2uw2* | sysv4.3*)
18406 lt_prog_compiler_wl_GCJ='-Wl,'
18407 lt_prog_compiler_pic_GCJ='-KPIC'
18408 lt_prog_compiler_static_GCJ='-Bstatic'
18412 if test -d /usr/nec ;then
18413 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18414 lt_prog_compiler_static_GCJ='-Bstatic'
18418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18419 lt_prog_compiler_wl_GCJ='-Wl,'
18420 lt_prog_compiler_pic_GCJ='-KPIC'
18421 lt_prog_compiler_static_GCJ='-Bstatic'
18425 lt_prog_compiler_wl_GCJ='-Wl,'
18426 lt_prog_compiler_can_build_shared_GCJ=no
18430 lt_prog_compiler_pic_GCJ='-pic'
18431 lt_prog_compiler_static_GCJ='-Bstatic'
18435 lt_prog_compiler_can_build_shared_GCJ=no
18440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18441 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18444 # Check to make sure the PIC flag actually works.
18446 if test -n "$lt_prog_compiler_pic_GCJ"; then
18448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18450 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 lt_prog_compiler_pic_works_GCJ=no
18454 ac_outfile=conftest.$ac_objext
18455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18456 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18457 # Insert the option either (1) after the last *FLAGS variable, or
18458 # (2) before a word containing "conftest.", or (3) at the end.
18459 # Note that $ac_compile itself does not contain backslashes and begins
18460 # with a dollar sign (not a hyphen), so the echo should work correctly.
18461 # The option is referenced via a variable to avoid confusing sed.
18462 lt_compile=`echo "$ac_compile" | $SED \
18463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18465 -e 's:$: $lt_compiler_flag:'`
18466 (eval echo "\"\$as_me:18466: $lt_compile\"" >&5)
18467 (eval "$lt_compile" 2>conftest.err)
18469 cat conftest.err >&5
18470 echo "$as_me:18470: \$? = $ac_status" >&5
18471 if (exit $ac_status) && test -s "$ac_outfile"; then
18472 # The compiler can only warn and ignore the option if not recognized
18473 # So say no if there are warnings other than the usual output.
18474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18477 lt_prog_compiler_pic_works_GCJ=yes
18483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18487 case $lt_prog_compiler_pic_GCJ in
18489 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18492 lt_prog_compiler_pic_GCJ=
18493 lt_prog_compiler_can_build_shared_GCJ=no
18498 # For platforms which do not support PIC, -DPIC is meaningless:
18500 lt_prog_compiler_pic_GCJ=
18503 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18508 # Check to make sure the static flag actually works.
18510 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18513 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 lt_prog_compiler_static_works_GCJ=no
18517 save_LDFLAGS="$LDFLAGS"
18518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18519 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18521 # The linker can only warn and ignore the option if not recognized
18522 # So say no if there are warnings
18523 if test -s conftest.err; then
18524 # Append any errors to the config.log.
18525 cat conftest.err 1>&5
18526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18528 if diff conftest.exp conftest.er2 >/dev/null; then
18529 lt_prog_compiler_static_works_GCJ=yes
18532 lt_prog_compiler_static_works_GCJ=yes
18536 LDFLAGS="$save_LDFLAGS"
18539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18540 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18542 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18545 lt_prog_compiler_static_GCJ=
18549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18551 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 lt_cv_prog_compiler_c_o_GCJ=no
18555 $rm -r conftest 2>/dev/null
18559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18561 lt_compiler_flag="-o out/conftest2.$ac_objext"
18562 # Insert the option either (1) after the last *FLAGS variable, or
18563 # (2) before a word containing "conftest.", or (3) at the end.
18564 # Note that $ac_compile itself does not contain backslashes and begins
18565 # with a dollar sign (not a hyphen), so the echo should work correctly.
18566 lt_compile=`echo "$ac_compile" | $SED \
18567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18569 -e 's:$: $lt_compiler_flag:'`
18570 (eval echo "\"\$as_me:18570: $lt_compile\"" >&5)
18571 (eval "$lt_compile" 2>out/conftest.err)
18573 cat out/conftest.err >&5
18574 echo "$as_me:18574: \$? = $ac_status" >&5
18575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18577 # The compiler can only warn and ignore the option if not recognized
18578 # So say no if there are warnings
18579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18582 lt_cv_prog_compiler_c_o_GCJ=yes
18587 # SGI C++ compiler will create directory out/ii_files/ for
18588 # template instantiation
18589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18590 $rm out/* && rmdir out
18596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18600 hard_links="nottested"
18601 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18602 # do not overwrite the value of need_locks provided by the user
18603 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18609 ln conftest.a conftest.b 2>&5 || hard_links=no
18610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18611 { echo "$as_me:$LINENO: result: $hard_links" >&5
18612 echo "${ECHO_T}$hard_links" >&6; }
18613 if test "$hard_links" = no; then
18614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18626 allow_undefined_flag_GCJ=
18627 enable_shared_with_static_runtimes_GCJ=no
18629 archive_expsym_cmds_GCJ=
18630 old_archive_From_new_cmds_GCJ=
18631 old_archive_from_expsyms_cmds_GCJ=
18632 export_dynamic_flag_spec_GCJ=
18633 whole_archive_flag_spec_GCJ=
18634 thread_safe_flag_spec_GCJ=
18635 hardcode_libdir_flag_spec_GCJ=
18636 hardcode_libdir_flag_spec_ld_GCJ=
18637 hardcode_libdir_separator_GCJ=
18638 hardcode_direct_GCJ=no
18639 hardcode_minus_L_GCJ=no
18640 hardcode_shlibpath_var_GCJ=unsupported
18641 link_all_deplibs_GCJ=unknown
18642 hardcode_automatic_GCJ=no
18644 module_expsym_cmds_GCJ=
18645 always_export_symbols_GCJ=no
18646 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18647 # include_expsyms should be a list of space-separated symbols to be *always*
18648 # included in the symbol list
18649 include_expsyms_GCJ=
18650 # exclude_expsyms can be an extended regexp of symbols to exclude
18651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18653 # as well as any symbol that contains `d'.
18654 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18656 # platforms (ab)use it in PIC code, but their linkers get confused if
18657 # the symbol is explicitly referenced. Since portable code cannot
18658 # rely on this symbol name, it's probably fine to never include it in
18659 # preloaded symbol tables.
18660 extract_expsyms_cmds=
18661 # Just being paranoid about ensuring that cc_basename is set.
18662 for cc_temp in $compiler""; do
18664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18673 cygwin* | mingw* | pw32*)
18674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18675 # When not using gcc, we currently assume that we are using
18676 # Microsoft Visual C++.
18677 if test "$GCC" != yes; then
18682 # we just hope/assume this is gcc and not c89 (= MSVC++)
18691 if test "$with_gnu_ld" = yes; then
18692 # If archive_cmds runs LD, not CC, wlarc should be empty
18695 # Set some defaults for GNU ld with shared library support. These
18696 # are reset later if shared libraries are not supported. Putting them
18697 # here allows them to be overridden if necessary.
18698 runpath_var=LD_RUN_PATH
18699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18701 # ancient GNU ld didn't support --whole-archive et. al.
18702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18705 whole_archive_flag_spec_GCJ=
18707 supports_anon_versioning=no
18708 case `$LD -v 2>/dev/null` in
18709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18712 *\ 2.11.*) ;; # other 2.11 versions
18713 *) supports_anon_versioning=yes ;;
18716 # See if GNU ld supports shared libraries.
18718 aix3* | aix4* | aix5*)
18719 # On AIX/PPC, the GNU linker is very broken
18720 if test "$host_cpu" != ia64; then
18724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18725 *** to be unable to reliably create shared libraries on AIX.
18726 *** Therefore, libtool is disabling shared libraries support. If you
18727 *** really care for shared libraries, you may want to modify your PATH
18728 *** so that a non-GNU linker is found, and then restart.
18735 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)'
18736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18737 hardcode_minus_L_GCJ=yes
18739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18740 # that the semantics of dynamic libraries on AmigaOS, at least up
18741 # to version 4, is to share data among multiple programs linked
18742 # with the same dynamic library. Since this doesn't match the
18743 # behavior of shared libraries on other platforms, we can't use
18749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18750 allow_undefined_flag_GCJ=unsupported
18751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18752 # support --undefined. This deserves some investigation. FIXME
18753 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18759 cygwin* | mingw* | pw32*)
18760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18761 # as there is no search path for DLLs.
18762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18763 allow_undefined_flag_GCJ=unsupported
18764 always_export_symbols_GCJ=no
18765 enable_shared_with_static_runtimes_GCJ=yes
18766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18770 # If the export-symbols file already is a .def file (1st line
18771 # is EXPORTS), use it as is; otherwise, prepend...
18772 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18773 cp $export_symbols $output_objdir/$soname.def;
18775 echo EXPORTS > $output_objdir/$soname.def;
18776 cat $export_symbols >> $output_objdir/$soname.def;
18778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18785 hardcode_direct_GCJ=no
18786 hardcode_shlibpath_var_GCJ=no
18787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18788 export_dynamic_flag_spec_GCJ='${wl}-E'
18789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18790 # Instead, shared libraries are loaded at an image base (0x10000000 by
18791 # default) and relocated if they conflict, which is a slow very memory
18792 # consuming and fragmenting process. To avoid this, we pick a random,
18793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18795 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'
18796 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'
18799 linux* | k*bsd*-gnu)
18800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18802 case $cc_basename,$host_cpu in
18803 pgcc*) # Portland Group C compiler
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'
18807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18808 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'
18809 tmp_addflag=' $pic_flag -Mnomain' ;;
18810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18811 tmp_addflag=' -i_dynamic' ;;
18812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18813 tmp_addflag=' -i_dynamic -nofor_main' ;;
18814 ifc* | ifort*) # Intel Fortran compiler
18815 tmp_addflag=' -nofor_main' ;;
18817 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18819 if test $supports_anon_versioning = yes; then
18820 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18822 $echo "local: *; };" >> $output_objdir/$libname.ver~
18823 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18825 link_all_deplibs_GCJ=no
18831 netbsd* | netbsdelf*-gnu)
18832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18833 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18847 *** create shared libraries on Solaris systems. Therefore, libtool
18848 *** is disabling shared libraries support. We urge you to upgrade GNU
18849 *** binutils to release 2.9.1 or newer. Another option is to modify
18850 *** your PATH or compiler configuration so that the native linker is
18851 *** used, and then restart.
18854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18863 case `$LD -v 2>&1` in
18864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18869 *** reliably create shared libraries on SCO systems. Therefore, libtool
18870 *** is disabling shared libraries support. We urge you to upgrade GNU
18871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18872 *** your PATH or compiler configuration so that the native linker is
18873 *** used, and then restart.
18878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18879 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18881 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18890 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18892 hardcode_direct_GCJ=yes
18893 hardcode_shlibpath_var_GCJ=no
18897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18898 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18906 if test "$ld_shlibs_GCJ" = no; then
18908 hardcode_libdir_flag_spec_GCJ=
18909 export_dynamic_flag_spec_GCJ=
18910 whole_archive_flag_spec_GCJ=
18913 # PORTME fill in a description of your system's linker (not GNU ld)
18916 allow_undefined_flag_GCJ=unsupported
18917 always_export_symbols_GCJ=yes
18918 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'
18919 # Note: this linker hardcodes the directories in LIBPATH if there
18920 # are no directories specified by -L.
18921 hardcode_minus_L_GCJ=yes
18922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18923 # Neither direct hardcoding nor static linking is supported with a
18925 hardcode_direct_GCJ=unsupported
18930 if test "$host_cpu" = ia64; then
18931 # On IA64, the linker does run time linking by default, so we don't
18932 # have to do anything special.
18933 aix_use_runtimelinking=no
18934 exp_sym_flag='-Bexport'
18937 # If we're using GNU nm, then we don't want the "-C" option.
18938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18940 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'
18942 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'
18944 aix_use_runtimelinking=no
18946 # Test if we are trying to use run time linking or normal
18947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18948 # need to do runtime linking.
18949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18950 for ld_flag in $LDFLAGS; do
18951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18952 aix_use_runtimelinking=yes
18959 exp_sym_flag='-bexport'
18960 no_entry_flag='-bnoentry'
18963 # When large executables or shared objects are built, AIX ld can
18964 # have problems creating the table of contents. If linking a library
18965 # or program results in "error TOC overflow" add -mminimal-toc to
18966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18969 archive_cmds_GCJ=''
18970 hardcode_direct_GCJ=yes
18971 hardcode_libdir_separator_GCJ=':'
18972 link_all_deplibs_GCJ=yes
18974 if test "$GCC" = yes; then
18975 case $host_os in aix4.[012]|aix4.[012].*)
18976 # We only want to do this on AIX 4.2 and lower, the check
18977 # below for broken collect2 doesn't work under 4.3+
18978 collect2name=`${CC} -print-prog-name=collect2`
18979 if test -f "$collect2name" && \
18980 strings "$collect2name" | grep resolve_lib_name >/dev/null
18982 # We have reworked collect2
18983 hardcode_direct_GCJ=yes
18985 # We have old collect2
18986 hardcode_direct_GCJ=unsupported
18987 # It fails to find uninstalled libraries when the uninstalled
18988 # path is not listed in the libpath. Setting hardcode_minus_L
18989 # to unsupported forces relinking
18990 hardcode_minus_L_GCJ=yes
18991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18992 hardcode_libdir_separator_GCJ=
18996 shared_flag='-shared'
18997 if test "$aix_use_runtimelinking" = yes; then
18998 shared_flag="$shared_flag "'${wl}-G'
19002 if test "$host_cpu" = ia64; then
19003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19004 # chokes on -Wl,-G. The following line is correct:
19007 if test "$aix_use_runtimelinking" = yes; then
19008 shared_flag='${wl}-G'
19010 shared_flag='${wl}-bM:SRE'
19015 # It seems that -bexpall does not export symbols beginning with
19016 # underscore (_), so it is better to generate a list of symbols to export.
19017 always_export_symbols_GCJ=yes
19018 if test "$aix_use_runtimelinking" = yes; then
19019 # Warning - without using the other runtime loading flags (-brtl),
19020 # -berok will link without error, but may produce a broken library.
19021 allow_undefined_flag_GCJ='-berok'
19022 # Determine the default libpath from the value encoded in an empty executable.
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19075 # Check for a 64-bit object if we didn't find anything.
19076 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; }
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19089 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19090 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"
19092 if test "$host_cpu" = ia64; then
19093 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19094 allow_undefined_flag_GCJ="-z nodefs"
19095 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"
19097 # Determine the default libpath from the value encoded in an empty executable.
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19150 # Check for a 64-bit object if we didn't find anything.
19151 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; }
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19160 rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19164 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19165 # Warning - without using the other run time loading flags,
19166 # -berok will link without error, but may produce a broken library.
19167 no_undefined_flag_GCJ=' ${wl}-bernotok'
19168 allow_undefined_flag_GCJ=' ${wl}-berok'
19169 # Exported symbols can be pulled into shared objects from archives
19170 whole_archive_flag_spec_GCJ='$convenience'
19171 archive_cmds_need_lc_GCJ=yes
19172 # This is similar to how AIX traditionally builds its shared libraries.
19173 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'
19179 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)'
19180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19181 hardcode_minus_L_GCJ=yes
19182 # see comment about different semantics on the GNU ld section
19187 export_dynamic_flag_spec_GCJ=-rdynamic
19190 cygwin* | mingw* | pw32*)
19191 # When not using gcc, we currently assume that we are using
19192 # Microsoft Visual C++.
19193 # hardcode_libdir_flag_spec is actually meaningless, as there is
19194 # no search path for DLLs.
19195 hardcode_libdir_flag_spec_GCJ=' '
19196 allow_undefined_flag_GCJ=unsupported
19197 # Tell ltmain to make .lib files, not .a files.
19199 # Tell ltmain to make .dll files, not .so files.
19201 # FIXME: Setting linknames here is a bad hack.
19202 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19203 # The linker will automatically build a .lib file if we build a DLL.
19204 old_archive_From_new_cmds_GCJ='true'
19205 # FIXME: Should let the user specify the lib program.
19206 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19207 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19208 enable_shared_with_static_runtimes_GCJ=yes
19211 darwin* | rhapsody*)
19213 rhapsody* | darwin1.[012])
19214 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19217 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19218 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19220 case ${MACOSX_DEPLOYMENT_TARGET} in
19222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19225 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19231 archive_cmds_need_lc_GCJ=no
19232 hardcode_direct_GCJ=no
19233 hardcode_automatic_GCJ=yes
19234 hardcode_shlibpath_var_GCJ=unsupported
19235 whole_archive_flag_spec_GCJ=''
19236 link_all_deplibs_GCJ=yes
19237 if test "$GCC" = yes ; then
19238 output_verbose_link_cmd='echo'
19239 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19240 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19242 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}'
19243 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}'
19245 case $cc_basename in
19247 output_verbose_link_cmd='echo'
19248 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19249 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19251 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}'
19252 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}'
19262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19263 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19264 hardcode_shlibpath_var_GCJ=no
19271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19272 # support. Future versions do this automatically, but an explicit c++rt0.o
19273 # does not break anything, and helps significantly (at the cost of a little
19276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19278 hardcode_direct_GCJ=yes
19279 hardcode_shlibpath_var_GCJ=no
19282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19285 hardcode_direct_GCJ=yes
19286 hardcode_minus_L_GCJ=yes
19287 hardcode_shlibpath_var_GCJ=no
19290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19291 freebsd* | dragonfly*)
19292 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294 hardcode_direct_GCJ=yes
19295 hardcode_shlibpath_var_GCJ=no
19299 if test "$GCC" = yes; then
19300 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'
19302 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'
19304 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19305 hardcode_libdir_separator_GCJ=:
19306 hardcode_direct_GCJ=yes
19308 # hardcode_minus_L: Not really in the search PATH,
19309 # but as the default location of the library.
19310 hardcode_minus_L_GCJ=yes
19311 export_dynamic_flag_spec_GCJ='${wl}-E'
19315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19316 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19320 if test "$with_gnu_ld" = no; then
19321 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19322 hardcode_libdir_separator_GCJ=:
19324 hardcode_direct_GCJ=yes
19325 export_dynamic_flag_spec_GCJ='${wl}-E'
19327 # hardcode_minus_L: Not really in the search PATH,
19328 # but as the default location of the library.
19329 hardcode_minus_L_GCJ=yes
19334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19337 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19340 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19343 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19349 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19352 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19359 if test "$with_gnu_ld" = no; then
19360 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19361 hardcode_libdir_separator_GCJ=:
19365 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19366 hardcode_direct_GCJ=no
19367 hardcode_shlibpath_var_GCJ=no
19370 hardcode_direct_GCJ=yes
19371 export_dynamic_flag_spec_GCJ='${wl}-E'
19373 # hardcode_minus_L: Not really in the search PATH,
19374 # but as the default location of the library.
19375 hardcode_minus_L_GCJ=yes
19381 irix5* | irix6* | nonstopux*)
19382 if test "$GCC" = yes; then
19383 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'
19385 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'
19386 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19389 hardcode_libdir_separator_GCJ=:
19390 link_all_deplibs_GCJ=yes
19393 netbsd* | netbsdelf*-gnu)
19394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19395 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19397 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19399 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19400 hardcode_direct_GCJ=yes
19401 hardcode_shlibpath_var_GCJ=no
19405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19406 hardcode_direct_GCJ=yes
19407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19408 hardcode_libdir_separator_GCJ=:
19409 hardcode_shlibpath_var_GCJ=no
19413 hardcode_direct_GCJ=yes
19414 hardcode_shlibpath_var_GCJ=no
19415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19416 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19417 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19418 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19419 export_dynamic_flag_spec_GCJ='${wl}-E'
19422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19427 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19436 hardcode_minus_L_GCJ=yes
19437 allow_undefined_flag_GCJ=unsupported
19438 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'
19439 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19443 if test "$GCC" = yes; then
19444 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19445 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'
19447 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19448 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'
19450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19451 hardcode_libdir_separator_GCJ=:
19454 osf4* | osf5*) # as osf3* with the addition of -msym flag
19455 if test "$GCC" = yes; then
19456 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19457 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'
19458 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19460 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19461 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'
19462 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~
19463 $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'
19465 # Both c and cxx compiler support -rpath directly
19466 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19468 hardcode_libdir_separator_GCJ=:
19472 no_undefined_flag_GCJ=' -z text'
19473 if test "$GCC" = yes; then
19475 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19480 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19485 hardcode_shlibpath_var_GCJ=no
19487 solaris2.[0-5] | solaris2.[0-5].*) ;;
19489 # The compiler driver will combine linker options so we
19490 # cannot just pass the convience library names through
19491 # without $wl, iff we do not link with $LD.
19492 # Luckily, gcc supports the same syntax we need for Sun Studio.
19493 # Supported since Solaris 2.6 (maybe 2.5.1?)
19496 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19498 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' ;;
19501 link_all_deplibs_GCJ=yes
19505 if test "x$host_vendor" = xsequent; then
19506 # Use $CC to link under sequent, because it throws in some extra .o
19507 # files that make .init and .fini sections work.
19508 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19510 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19513 hardcode_direct_GCJ=yes
19514 hardcode_minus_L_GCJ=yes
19515 hardcode_shlibpath_var_GCJ=no
19519 case $host_vendor in
19521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19522 hardcode_direct_GCJ=yes # is this really true???
19525 ## LD is ld it makes a PLAMLIB
19526 ## CC just makes a GrossModule.
19527 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19528 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19529 hardcode_direct_GCJ=no
19532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19533 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19536 runpath_var='LD_RUN_PATH'
19537 hardcode_shlibpath_var_GCJ=no
19541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19542 hardcode_shlibpath_var_GCJ=no
19543 export_dynamic_flag_spec_GCJ='-Bexport'
19547 if test -d /usr/nec; then
19548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_shlibpath_var_GCJ=no
19550 runpath_var=LD_RUN_PATH
19551 hardcode_runpath_var=yes
19556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19557 no_undefined_flag_GCJ='${wl}-z,text'
19558 archive_cmds_need_lc_GCJ=no
19559 hardcode_shlibpath_var_GCJ=no
19560 runpath_var='LD_RUN_PATH'
19562 if test "$GCC" = yes; then
19563 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 sysv5* | sco3.2v5* | sco5v6*)
19572 # Note: We can NOT use -z defs as we might desire, because we do not
19573 # link with -lc, and that would cause any symbols used from libc to
19574 # always be unresolved, which means just about no library would
19575 # ever link correctly. If we're not using GNU ld we use -z text
19576 # though, which does catch some bad symbols but isn't as heavy-handed
19578 no_undefined_flag_GCJ='${wl}-z,text'
19579 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19580 archive_cmds_need_lc_GCJ=no
19581 hardcode_shlibpath_var_GCJ=no
19582 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19583 hardcode_libdir_separator_GCJ=':'
19584 link_all_deplibs_GCJ=yes
19585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19586 runpath_var='LD_RUN_PATH'
19588 if test "$GCC" = yes; then
19589 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19600 hardcode_shlibpath_var_GCJ=no
19609 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19610 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19611 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19614 # Do we need to explicitly link libc?
19616 case "x$archive_cmds_need_lc_GCJ" in
19618 # Assume -lc should be added
19619 archive_cmds_need_lc_GCJ=yes
19621 if test "$enable_shared" = yes && test "$GCC" = yes; then
19622 case $archive_cmds_GCJ in
19624 # FIXME: we may have to deal with multi-command sequences.
19627 # Test whether the compiler implicitly links with -lc since on some
19628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19629 # to ld, don't add -lc before -lgcc.
19630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636 (eval $ac_compile) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } 2>conftest.err; then
19642 libobjs=conftest.$ac_objext
19644 wl=$lt_prog_compiler_wl_GCJ
19645 pic_flag=$lt_prog_compiler_pic_GCJ
19651 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19652 allow_undefined_flag_GCJ=
19653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19654 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }
19659 archive_cmds_need_lc_GCJ=no
19661 archive_cmds_need_lc_GCJ=yes
19663 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19665 cat conftest.err 1>&5
19668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19669 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19678 library_names_spec=
19679 libname_spec='lib$name'
19683 postuninstall_cmds=
19687 shlibpath_overrides_runpath=unknown
19689 dynamic_linker="$host_os ld.so"
19690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19691 if test "$GCC" = yes; then
19692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19694 # if the path contains ";" then we assume it to be the separator
19695 # otherwise default to the standard path separator (i.e. ":") - it is
19696 # assumed that no part of a normal pathname contains ";" but that should
19697 # okay in the real world where ";" in dirpaths is itself problematic.
19698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19705 need_lib_prefix=unknown
19706 hardcode_into_libs=no
19708 # when you set need_version to no, make sure it does not cause -set_version
19709 # flags to be left without arguments
19710 need_version=unknown
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19716 shlibpath_var=LIBPATH
19718 # AIX 3 has no versioning support, so we append a major version to the name.
19719 soname_spec='${libname}${release}${shared_ext}$major'
19726 hardcode_into_libs=yes
19727 if test "$host_cpu" = ia64; then
19728 # AIX 5 supports IA64
19729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19730 shlibpath_var=LD_LIBRARY_PATH
19732 # With GCC up to 2.95.x, collect2 would create an import file
19733 # for dependence libraries. The import file would start with
19734 # the line `#! .'. This would cause the generated library to
19735 # depend on `.', always an invalid library. This was fixed in
19736 # development snapshots of GCC prior to 3.0.
19738 aix4 | aix4.[01] | aix4.[01].*)
19739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19744 can_build_shared=no
19748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19749 # soname into executable. Probably we can add versioning support to
19750 # collect2, so additional links can be useful in future.
19751 if test "$aix_use_runtimelinking" = yes; then
19752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19753 # instead of lib<name>.a to let people know that these are not
19754 # typical AIX shared libraries.
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757 # We preserve .a as extension for shared libraries through AIX4.2
19758 # and later when we are not doing run time linking.
19759 library_names_spec='${libname}${release}.a $libname.a'
19760 soname_spec='${libname}${release}${shared_ext}$major'
19762 shlibpath_var=LIBPATH
19767 library_names_spec='$libname.ixlibrary $libname.a'
19768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19769 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'
19773 library_names_spec='${libname}${shared_ext}'
19774 dynamic_linker="$host_os ld.so"
19775 shlibpath_var=LIBRARY_PATH
19781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19782 soname_spec='${libname}${release}${shared_ext}$major'
19783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19787 # the default ld.so.conf also contains /usr/contrib/lib and
19788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19789 # libtool to hard-code these into programs
19792 cygwin* | mingw* | pw32*)
19793 version_type=windows
19798 case $GCC,$host_os in
19799 yes,cygwin* | yes,mingw* | yes,pw32*)
19800 library_names_spec='$libname.dll.a'
19801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19802 postinstall_cmds='base_file=`basename \${file}`~
19803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19804 dldir=$destdir/`dirname \$dlpath`~
19805 test -d \$dldir || mkdir -p \$dldir~
19806 $install_prog $dir/$dlname \$dldir/$dlname~
19807 chmod a+x \$dldir/$dlname'
19808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19809 dlpath=$dir/\$dldll~
19811 shlibpath_overrides_runpath=yes
19815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19820 # MinGW DLLs use traditional 'lib' prefix
19821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19824 # It is most probably a Windows format PATH printed by
19825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19826 # path with ; separators, and with drive letters. We can handle the
19827 # drive letters (cygwin fileutils understands them), so leave them,
19828 # especially as we might pass files found there to a mingw objdump,
19829 # which wouldn't understand a cygwinified path. Ahh.
19830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19836 # pw32 DLLs use 'pw' prefix rather than 'lib'
19837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19846 dynamic_linker='Win32 ld.exe'
19847 # FIXME: first we should search . and the directory the executable is in
19851 darwin* | rhapsody*)
19852 dynamic_linker="$host_os dyld"
19853 version_type=darwin
19856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19857 soname_spec='${libname}${release}${major}$shared_ext'
19858 shlibpath_overrides_runpath=yes
19859 shlibpath_var=DYLD_LIBRARY_PATH
19860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19862 if test "$GCC" = yes; then
19863 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"`
19865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19876 shlibpath_var=LD_LIBRARY_PATH
19883 freebsd* | dragonfly*)
19884 # DragonFly does not have aout. When/if they implement a new
19885 # versioning mechanism, adjust this.
19886 if test -x /usr/bin/objformat; then
19887 objformat=`/usr/bin/objformat`
19890 freebsd[123]*) objformat=aout ;;
19891 *) objformat=elf ;;
19894 version_type=freebsd-$objformat
19895 case $version_type in
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19906 shlibpath_var=LD_LIBRARY_PATH
19909 shlibpath_overrides_runpath=yes
19911 freebsd3.[01]* | freebsdelf3.[01]*)
19912 shlibpath_overrides_runpath=yes
19913 hardcode_into_libs=yes
19915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19917 shlibpath_overrides_runpath=no
19918 hardcode_into_libs=yes
19920 freebsd*) # from 4.6 on
19921 shlibpath_overrides_runpath=yes
19922 hardcode_into_libs=yes
19931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19932 soname_spec='${libname}${release}${shared_ext}$major'
19933 shlibpath_var=LD_LIBRARY_PATH
19934 hardcode_into_libs=yes
19937 hpux9* | hpux10* | hpux11*)
19938 # Give a soname corresponding to the major version so that dld.sl refuses to
19939 # link against other versions.
19946 hardcode_into_libs=yes
19947 dynamic_linker="$host_os dld.so"
19948 shlibpath_var=LD_LIBRARY_PATH
19949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 if test "X$HPUX_IA64_MODE" = X32; then
19953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19961 hardcode_into_libs=yes
19962 dynamic_linker="$host_os dld.sl"
19963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19972 dynamic_linker="$host_os dld.sl"
19973 shlibpath_var=SHLIB_PATH
19974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19979 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19980 postinstall_cmds='chmod 555 $lib'
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 shlibpath_overrides_runpath=no
19992 hardcode_into_libs=yes
19995 irix5* | irix6* | nonstopux*)
19997 nonstopux*) version_type=nonstopux ;;
19999 if test "$lt_cv_prog_gnu_ld" = yes; then
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20010 irix5* | nonstopux*)
20011 libsuff= shlibsuff=
20014 case $LD in # libtool.m4 will add one of these switches to LD
20015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20016 libsuff= shlibsuff= libmagic=32-bit;;
20017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20018 libsuff=32 shlibsuff=N32 libmagic=N32;;
20019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20021 *) libsuff= shlibsuff= libmagic=never-match;;
20025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20026 shlibpath_overrides_runpath=no
20027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20029 hardcode_into_libs=yes
20032 # No shared lib support for Linux oldld, aout, or coff.
20033 linux*oldld* | linux*aout* | linux*coff*)
20037 # This must be Linux ELF.
20038 linux* | k*bsd*-gnu)
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20045 shlibpath_var=LD_LIBRARY_PATH
20046 shlibpath_overrides_runpath=no
20047 # This implies no fast_install, which is unacceptable.
20048 # Some rework will be needed to allow for fast_install
20049 # before this can be enabled.
20050 hardcode_into_libs=yes
20052 # Append ld.so.conf contents to the search path
20053 if test -f /etc/ld.so.conf; then
20054 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' ' '`
20055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20058 # We used to test for /lib/ld.so.1 and disable shared libraries on
20059 # powerpc, because MkLinux only supported shared libraries with the
20060 # GNU dynamic linker. Since this was broken with cross compilers,
20061 # most powerpc-linux boxes support dynamic linking these days and
20062 # people can always --disable-shared, the test was removed, and we
20063 # assume the GNU/Linux dynamic linker is in use.
20064 dynamic_linker='GNU/Linux ld.so'
20071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072 soname_spec='${libname}${release}${shared_ext}$major'
20073 shlibpath_var=LD_LIBRARY_PATH
20074 shlibpath_overrides_runpath=no
20075 hardcode_into_libs=yes
20076 dynamic_linker='NetBSD ld.elf_so'
20083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20086 dynamic_linker='NetBSD (a.out) ld.so'
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 dynamic_linker='NetBSD ld.elf_so'
20092 shlibpath_var=LD_LIBRARY_PATH
20093 shlibpath_overrides_runpath=yes
20094 hardcode_into_libs=yes
20099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20100 shlibpath_var=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath=yes
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=yes
20116 sys_lib_dlsearch_path_spec="/usr/lib"
20118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20121 *) need_version=no ;;
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20128 openbsd2.[89] | openbsd2.[89].*)
20129 shlibpath_overrides_runpath=no
20132 shlibpath_overrides_runpath=yes
20136 shlibpath_overrides_runpath=yes
20141 libname_spec='$name'
20144 library_names_spec='$libname${shared_ext} $libname.a'
20145 dynamic_linker='OS/2 ld.exe'
20146 shlibpath_var=LIBPATH
20149 osf3* | osf4* | osf5*)
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155 shlibpath_var=LD_LIBRARY_PATH
20156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 shlibpath_overrides_runpath=yes
20168 hardcode_into_libs=yes
20169 # ldd complains unless libraries are executable
20170 postinstall_cmds='chmod +x $lib'
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 shlibpath_overrides_runpath=yes
20179 if test "$with_gnu_ld" = yes; then
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 case $host_vendor in
20192 shlibpath_overrides_runpath=no
20194 export_dynamic_flag_spec='${wl}-Blargedynsym'
20195 runpath_var=LD_RUN_PATH
20203 shlibpath_overrides_runpath=no
20204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20210 if test -d /usr/nec ;then
20212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20213 soname_spec='$libname${shared_ext}.$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20219 version_type=freebsd-elf
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 hardcode_into_libs=yes
20226 if test "$with_gnu_ld" = yes; then
20227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20228 shlibpath_overrides_runpath=no
20230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20231 shlibpath_overrides_runpath=yes
20234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20238 sys_lib_dlsearch_path_spec='/usr/lib'
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 shlibpath_var=LD_LIBRARY_PATH
20252 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20253 echo "${ECHO_T}$dynamic_linker" >&6; }
20254 test "$dynamic_linker" = no && can_build_shared=no
20256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20257 if test "$GCC" = yes; then
20258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20263 hardcode_action_GCJ=
20264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20265 test -n "$runpath_var_GCJ" || \
20266 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20268 # We can hardcode non-existant directories.
20269 if test "$hardcode_direct_GCJ" != no &&
20270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20271 # have to relink, otherwise we might link with an installed library
20272 # when we should be linking with a yet-to-be-installed one
20273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20274 test "$hardcode_minus_L_GCJ" != no; then
20275 # Linking always hardcodes the temporary library directory.
20276 hardcode_action_GCJ=relink
20278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20279 hardcode_action_GCJ=immediate
20282 # We cannot hardcode anything, or else we can only hardcode existing
20284 hardcode_action_GCJ=unsupported
20286 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20287 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20289 if test "$hardcode_action_GCJ" = relink; then
20290 # Fast installation is not supported
20291 enable_fast_install=no
20292 elif test "$shlibpath_overrides_runpath" = yes ||
20293 test "$enable_shared" = no; then
20294 # Fast installation is not necessary
20295 enable_fast_install=needless
20299 # The else clause should only fire when bootstrapping the
20300 # libtool distribution, otherwise you forgot to ship ltmain.sh
20301 # with your package, and you will get complaints that there are
20302 # no rules to generate ltmain.sh.
20303 if test -f "$ltmain"; then
20304 # See if we are running on zsh, and set the options which allow our commands through
20305 # without removal of \ escapes.
20306 if test -n "${ZSH_VERSION+set}" ; then
20307 setopt NO_GLOB_SUBST
20309 # Now quote all the things that may contain metacharacters while being
20310 # careful not to overquote the AC_SUBSTed values. We take copies of the
20311 # variables and quote the copies for generation of the libtool script.
20312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20316 deplibs_check_method reload_flag reload_cmds need_locks \
20317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20318 lt_cv_sys_global_symbol_to_c_name_address \
20319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20320 old_postinstall_cmds old_postuninstall_cmds \
20324 lt_prog_compiler_wl_GCJ \
20325 lt_prog_compiler_pic_GCJ \
20326 lt_prog_compiler_static_GCJ \
20327 lt_prog_compiler_no_builtin_flag_GCJ \
20328 export_dynamic_flag_spec_GCJ \
20329 thread_safe_flag_spec_GCJ \
20330 whole_archive_flag_spec_GCJ \
20331 enable_shared_with_static_runtimes_GCJ \
20332 old_archive_cmds_GCJ \
20333 old_archive_from_new_cmds_GCJ \
20334 predep_objects_GCJ \
20335 postdep_objects_GCJ \
20338 compiler_lib_search_path_GCJ \
20340 archive_expsym_cmds_GCJ \
20341 postinstall_cmds_GCJ \
20342 postuninstall_cmds_GCJ \
20343 old_archive_from_expsyms_cmds_GCJ \
20344 allow_undefined_flag_GCJ \
20345 no_undefined_flag_GCJ \
20346 export_symbols_cmds_GCJ \
20347 hardcode_libdir_flag_spec_GCJ \
20348 hardcode_libdir_flag_spec_ld_GCJ \
20349 hardcode_libdir_separator_GCJ \
20350 hardcode_automatic_GCJ \
20352 module_expsym_cmds_GCJ \
20353 lt_cv_prog_compiler_c_o_GCJ \
20354 exclude_expsyms_GCJ \
20355 include_expsyms_GCJ; do
20358 old_archive_cmds_GCJ | \
20359 old_archive_from_new_cmds_GCJ | \
20360 archive_cmds_GCJ | \
20361 archive_expsym_cmds_GCJ | \
20362 module_cmds_GCJ | \
20363 module_expsym_cmds_GCJ | \
20364 old_archive_from_expsyms_cmds_GCJ | \
20365 export_symbols_cmds_GCJ | \
20366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20367 postinstall_cmds | postuninstall_cmds | \
20368 old_postinstall_cmds | old_postuninstall_cmds | \
20369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20370 # Double-quote double-evaled strings.
20371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20380 *'\$0 --fallback-echo"')
20381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20387 cat <<__EOF__ >> "$cfgfile"
20388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20392 # Shell to use when invoking shell scripts.
20395 # Whether or not to build shared libraries.
20396 build_libtool_libs=$enable_shared
20398 # Whether or not to build static libraries.
20399 build_old_libs=$enable_static
20401 # Whether or not to add -lc for building shared libraries.
20402 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20404 # Whether or not to disallow shared libs when runtime libs are static
20405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20407 # Whether or not to optimize for fast installation.
20408 fast_install=$enable_fast_install
20411 host_alias=$host_alias
20415 # The build system.
20416 build_alias=$build_alias
20420 # An echo program that does not interpret backslashes.
20425 AR_FLAGS=$lt_AR_FLAGS
20430 # LTCC compiler flags.
20431 LTCFLAGS=$lt_LTCFLAGS
20433 # A language-specific compiler.
20434 CC=$lt_compiler_GCJ
20436 # Is the compiler the GNU C compiler?
20442 # The linker used to build libraries.
20445 # Whether we need hard or soft links.
20448 # A BSD-compatible nm program.
20451 # A symbol stripping program
20454 # Used to examine libraries when file_magic_cmd begins "file"
20455 MAGIC_CMD=$MAGIC_CMD
20457 # Used on cygwin: DLL creation program.
20460 # Used on cygwin: object dumper.
20463 # Used on cygwin: assembler.
20466 # The name of the directory that contains temporary libtool files.
20469 # How to create reloadable object files.
20470 reload_flag=$lt_reload_flag
20471 reload_cmds=$lt_reload_cmds
20473 # How to pass a linker flag through the compiler.
20474 wl=$lt_lt_prog_compiler_wl_GCJ
20476 # Object file suffix (normally "o").
20477 objext="$ac_objext"
20479 # Old archive suffix (normally "a").
20482 # Shared library suffix (normally ".so").
20483 shrext_cmds='$shrext_cmds'
20485 # Executable file suffix (normally "").
20488 # Additional compiler flags for building library objects.
20489 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20492 # What is the maximum length of a command?
20493 max_cmd_len=$lt_cv_sys_max_cmd_len
20495 # Does compiler simultaneously support -c and -o options?
20496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20498 # Must we lock files when doing compilation?
20499 need_locks=$lt_need_locks
20501 # Do we need the lib prefix for modules?
20502 need_lib_prefix=$need_lib_prefix
20504 # Do we need a version for libraries?
20505 need_version=$need_version
20507 # Whether dlopen is supported.
20508 dlopen_support=$enable_dlopen
20510 # Whether dlopen of programs is supported.
20511 dlopen_self=$enable_dlopen_self
20513 # Whether dlopen of statically linked programs is supported.
20514 dlopen_self_static=$enable_dlopen_self_static
20516 # Compiler flag to prevent dynamic linking.
20517 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20519 # Compiler flag to turn off builtin functions.
20520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20522 # Compiler flag to allow reflexive dlopens.
20523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20525 # Compiler flag to generate shared objects directly from archives.
20526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20528 # Compiler flag to generate thread-safe objects.
20529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20531 # Library versioning type.
20532 version_type=$version_type
20534 # Format of library name prefix.
20535 libname_spec=$lt_libname_spec
20537 # List of archive names. First name is the real one, the rest are links.
20538 # The last name is the one that the linker finds with -lNAME.
20539 library_names_spec=$lt_library_names_spec
20541 # The coded name of the library, if different from the real name.
20542 soname_spec=$lt_soname_spec
20544 # Commands used to build and install an old-style archive.
20546 old_archive_cmds=$lt_old_archive_cmds_GCJ
20547 old_postinstall_cmds=$lt_old_postinstall_cmds
20548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20550 # Create an old-style archive from a shared archive.
20551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20553 # Create a temporary old-style archive to link instead of a shared archive.
20554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20556 # Commands used to build and install a shared archive.
20557 archive_cmds=$lt_archive_cmds_GCJ
20558 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20559 postinstall_cmds=$lt_postinstall_cmds
20560 postuninstall_cmds=$lt_postuninstall_cmds
20562 # Commands used to build a loadable module (assumed same as above if empty)
20563 module_cmds=$lt_module_cmds_GCJ
20564 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20566 # Commands to strip libraries.
20567 old_striplib=$lt_old_striplib
20568 striplib=$lt_striplib
20570 # Dependencies to place before the objects being linked to create a
20572 predep_objects=$lt_predep_objects_GCJ
20574 # Dependencies to place after the objects being linked to create a
20576 postdep_objects=$lt_postdep_objects_GCJ
20578 # Dependencies to place before the objects being linked to create a
20580 predeps=$lt_predeps_GCJ
20582 # Dependencies to place after the objects being linked to create a
20584 postdeps=$lt_postdeps_GCJ
20586 # The library search path used internally by the compiler when linking
20587 # a shared library.
20588 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20590 # Method to check whether dependent libraries are shared objects.
20591 deplibs_check_method=$lt_deplibs_check_method
20593 # Command to use when deplibs_check_method == file_magic.
20594 file_magic_cmd=$lt_file_magic_cmd
20596 # Flag that allows shared libraries with undefined symbols to be built.
20597 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20599 # Flag that forces no undefined symbols.
20600 no_undefined_flag=$lt_no_undefined_flag_GCJ
20602 # Commands used to finish a libtool library installation in a directory.
20603 finish_cmds=$lt_finish_cmds
20605 # Same as above, but a single script fragment to be evaled but not shown.
20606 finish_eval=$lt_finish_eval
20608 # Take the output of nm and produce a listing of raw symbols and C names.
20609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20611 # Transform the output of nm in a proper C declaration
20612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20614 # Transform the output of nm in a C name address pair
20615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20617 # This is the shared library runtime path variable.
20618 runpath_var=$runpath_var
20620 # This is the shared library path variable.
20621 shlibpath_var=$shlibpath_var
20623 # Is shlibpath searched before the hard-coded library search path?
20624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20626 # How to hardcode a shared library path into an executable.
20627 hardcode_action=$hardcode_action_GCJ
20629 # Whether we should hardcode library paths into libraries.
20630 hardcode_into_libs=$hardcode_into_libs
20632 # Flag to hardcode \$libdir into a binary during linking.
20633 # This must work even if \$libdir does not exist.
20634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20636 # If ld is used when linking, flag to hardcode \$libdir into
20637 # a binary during linking. This must work even if \$libdir does
20639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20641 # Whether we need a single -rpath flag with a separated argument.
20642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20645 # resulting binary.
20646 hardcode_direct=$hardcode_direct_GCJ
20648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20649 # resulting binary.
20650 hardcode_minus_L=$hardcode_minus_L_GCJ
20652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20653 # the resulting binary.
20654 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20656 # Set to yes if building a shared library automatically hardcodes DIR into the library
20657 # and all subsequent libraries and executables linked against it.
20658 hardcode_automatic=$hardcode_automatic_GCJ
20660 # Variables whose values should be saved in libtool wrapper scripts and
20661 # restored at relink time.
20662 variables_saved_for_relink="$variables_saved_for_relink"
20664 # Whether libtool must link a program against all its dependency libraries.
20665 link_all_deplibs=$link_all_deplibs_GCJ
20667 # Compile-time system search path for libraries
20668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20670 # Run-time system search path for libraries
20671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20673 # Fix the shell variable \$srcfile for the compiler.
20674 fix_srcfile_path="$fix_srcfile_path_GCJ"
20676 # Set to yes if exported symbols are required.
20677 always_export_symbols=$always_export_symbols_GCJ
20679 # The commands to list exported symbols.
20680 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20682 # The commands to extract the exported symbol list from a shared archive.
20683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20685 # Symbols that should not be listed in the preloaded symbols.
20686 exclude_expsyms=$lt_exclude_expsyms_GCJ
20688 # Symbols that must always be exported.
20689 include_expsyms=$lt_include_expsyms_GCJ
20691 # ### END LIBTOOL TAG CONFIG: $tagname
20697 # If there is no Makefile yet, we rely on a make rule to execute
20698 # `config.status --recheck' to rerun these tests and create the
20699 # libtool script then.
20700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20701 if test -f "$ltmain_in"; then
20702 test -f Makefile && make "$ltmain"
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723 # Source file extension for RC test sources.
20726 # Object file extension for compiled RC test sources.
20730 # Code to be used in simple compile tests
20731 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20733 # Code to be used in simple link tests
20734 lt_simple_link_test_code="$lt_simple_compile_test_code"
20736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20738 # If no C compiler was specified, use CC.
20741 # If no C compiler flags were specified, use CFLAGS.
20742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20744 # Allow CC to be a program name with arguments.
20748 # save warnings/boilerplate of simple test code
20749 ac_outfile=conftest.$ac_objext
20750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20752 _lt_compiler_boilerplate=`cat conftest.err`
20755 ac_outfile=conftest.$ac_objext
20756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20758 _lt_linker_boilerplate=`cat conftest.err`
20762 # Allow CC to be a program name with arguments.
20767 for cc_temp in $compiler""; do
20769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20777 lt_cv_prog_compiler_c_o_RC=yes
20779 # The else clause should only fire when bootstrapping the
20780 # libtool distribution, otherwise you forgot to ship ltmain.sh
20781 # with your package, and you will get complaints that there are
20782 # no rules to generate ltmain.sh.
20783 if test -f "$ltmain"; then
20784 # See if we are running on zsh, and set the options which allow our commands through
20785 # without removal of \ escapes.
20786 if test -n "${ZSH_VERSION+set}" ; then
20787 setopt NO_GLOB_SUBST
20789 # Now quote all the things that may contain metacharacters while being
20790 # careful not to overquote the AC_SUBSTed values. We take copies of the
20791 # variables and quote the copies for generation of the libtool script.
20792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20796 deplibs_check_method reload_flag reload_cmds need_locks \
20797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20798 lt_cv_sys_global_symbol_to_c_name_address \
20799 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20800 old_postinstall_cmds old_postuninstall_cmds \
20804 lt_prog_compiler_wl_RC \
20805 lt_prog_compiler_pic_RC \
20806 lt_prog_compiler_static_RC \
20807 lt_prog_compiler_no_builtin_flag_RC \
20808 export_dynamic_flag_spec_RC \
20809 thread_safe_flag_spec_RC \
20810 whole_archive_flag_spec_RC \
20811 enable_shared_with_static_runtimes_RC \
20812 old_archive_cmds_RC \
20813 old_archive_from_new_cmds_RC \
20814 predep_objects_RC \
20815 postdep_objects_RC \
20818 compiler_lib_search_path_RC \
20820 archive_expsym_cmds_RC \
20821 postinstall_cmds_RC \
20822 postuninstall_cmds_RC \
20823 old_archive_from_expsyms_cmds_RC \
20824 allow_undefined_flag_RC \
20825 no_undefined_flag_RC \
20826 export_symbols_cmds_RC \
20827 hardcode_libdir_flag_spec_RC \
20828 hardcode_libdir_flag_spec_ld_RC \
20829 hardcode_libdir_separator_RC \
20830 hardcode_automatic_RC \
20832 module_expsym_cmds_RC \
20833 lt_cv_prog_compiler_c_o_RC \
20834 exclude_expsyms_RC \
20835 include_expsyms_RC; do
20838 old_archive_cmds_RC | \
20839 old_archive_from_new_cmds_RC | \
20840 archive_cmds_RC | \
20841 archive_expsym_cmds_RC | \
20843 module_expsym_cmds_RC | \
20844 old_archive_from_expsyms_cmds_RC | \
20845 export_symbols_cmds_RC | \
20846 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20847 postinstall_cmds | postuninstall_cmds | \
20848 old_postinstall_cmds | old_postuninstall_cmds | \
20849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20850 # Double-quote double-evaled strings.
20851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20860 *'\$0 --fallback-echo"')
20861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20867 cat <<__EOF__ >> "$cfgfile"
20868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20872 # Shell to use when invoking shell scripts.
20875 # Whether or not to build shared libraries.
20876 build_libtool_libs=$enable_shared
20878 # Whether or not to build static libraries.
20879 build_old_libs=$enable_static
20881 # Whether or not to add -lc for building shared libraries.
20882 build_libtool_need_lc=$archive_cmds_need_lc_RC
20884 # Whether or not to disallow shared libs when runtime libs are static
20885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20887 # Whether or not to optimize for fast installation.
20888 fast_install=$enable_fast_install
20891 host_alias=$host_alias
20895 # The build system.
20896 build_alias=$build_alias
20900 # An echo program that does not interpret backslashes.
20905 AR_FLAGS=$lt_AR_FLAGS
20910 # LTCC compiler flags.
20911 LTCFLAGS=$lt_LTCFLAGS
20913 # A language-specific compiler.
20916 # Is the compiler the GNU C compiler?
20922 # The linker used to build libraries.
20925 # Whether we need hard or soft links.
20928 # A BSD-compatible nm program.
20931 # A symbol stripping program
20934 # Used to examine libraries when file_magic_cmd begins "file"
20935 MAGIC_CMD=$MAGIC_CMD
20937 # Used on cygwin: DLL creation program.
20940 # Used on cygwin: object dumper.
20943 # Used on cygwin: assembler.
20946 # The name of the directory that contains temporary libtool files.
20949 # How to create reloadable object files.
20950 reload_flag=$lt_reload_flag
20951 reload_cmds=$lt_reload_cmds
20953 # How to pass a linker flag through the compiler.
20954 wl=$lt_lt_prog_compiler_wl_RC
20956 # Object file suffix (normally "o").
20957 objext="$ac_objext"
20959 # Old archive suffix (normally "a").
20962 # Shared library suffix (normally ".so").
20963 shrext_cmds='$shrext_cmds'
20965 # Executable file suffix (normally "").
20968 # Additional compiler flags for building library objects.
20969 pic_flag=$lt_lt_prog_compiler_pic_RC
20972 # What is the maximum length of a command?
20973 max_cmd_len=$lt_cv_sys_max_cmd_len
20975 # Does compiler simultaneously support -c and -o options?
20976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20978 # Must we lock files when doing compilation?
20979 need_locks=$lt_need_locks
20981 # Do we need the lib prefix for modules?
20982 need_lib_prefix=$need_lib_prefix
20984 # Do we need a version for libraries?
20985 need_version=$need_version
20987 # Whether dlopen is supported.
20988 dlopen_support=$enable_dlopen
20990 # Whether dlopen of programs is supported.
20991 dlopen_self=$enable_dlopen_self
20993 # Whether dlopen of statically linked programs is supported.
20994 dlopen_self_static=$enable_dlopen_self_static
20996 # Compiler flag to prevent dynamic linking.
20997 link_static_flag=$lt_lt_prog_compiler_static_RC
20999 # Compiler flag to turn off builtin functions.
21000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21002 # Compiler flag to allow reflexive dlopens.
21003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21005 # Compiler flag to generate shared objects directly from archives.
21006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21008 # Compiler flag to generate thread-safe objects.
21009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21011 # Library versioning type.
21012 version_type=$version_type
21014 # Format of library name prefix.
21015 libname_spec=$lt_libname_spec
21017 # List of archive names. First name is the real one, the rest are links.
21018 # The last name is the one that the linker finds with -lNAME.
21019 library_names_spec=$lt_library_names_spec
21021 # The coded name of the library, if different from the real name.
21022 soname_spec=$lt_soname_spec
21024 # Commands used to build and install an old-style archive.
21026 old_archive_cmds=$lt_old_archive_cmds_RC
21027 old_postinstall_cmds=$lt_old_postinstall_cmds
21028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21030 # Create an old-style archive from a shared archive.
21031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21033 # Create a temporary old-style archive to link instead of a shared archive.
21034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21036 # Commands used to build and install a shared archive.
21037 archive_cmds=$lt_archive_cmds_RC
21038 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21039 postinstall_cmds=$lt_postinstall_cmds
21040 postuninstall_cmds=$lt_postuninstall_cmds
21042 # Commands used to build a loadable module (assumed same as above if empty)
21043 module_cmds=$lt_module_cmds_RC
21044 module_expsym_cmds=$lt_module_expsym_cmds_RC
21046 # Commands to strip libraries.
21047 old_striplib=$lt_old_striplib
21048 striplib=$lt_striplib
21050 # Dependencies to place before the objects being linked to create a
21052 predep_objects=$lt_predep_objects_RC
21054 # Dependencies to place after the objects being linked to create a
21056 postdep_objects=$lt_postdep_objects_RC
21058 # Dependencies to place before the objects being linked to create a
21060 predeps=$lt_predeps_RC
21062 # Dependencies to place after the objects being linked to create a
21064 postdeps=$lt_postdeps_RC
21066 # The library search path used internally by the compiler when linking
21067 # a shared library.
21068 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21070 # Method to check whether dependent libraries are shared objects.
21071 deplibs_check_method=$lt_deplibs_check_method
21073 # Command to use when deplibs_check_method == file_magic.
21074 file_magic_cmd=$lt_file_magic_cmd
21076 # Flag that allows shared libraries with undefined symbols to be built.
21077 allow_undefined_flag=$lt_allow_undefined_flag_RC
21079 # Flag that forces no undefined symbols.
21080 no_undefined_flag=$lt_no_undefined_flag_RC
21082 # Commands used to finish a libtool library installation in a directory.
21083 finish_cmds=$lt_finish_cmds
21085 # Same as above, but a single script fragment to be evaled but not shown.
21086 finish_eval=$lt_finish_eval
21088 # Take the output of nm and produce a listing of raw symbols and C names.
21089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21091 # Transform the output of nm in a proper C declaration
21092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21094 # Transform the output of nm in a C name address pair
21095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21097 # This is the shared library runtime path variable.
21098 runpath_var=$runpath_var
21100 # This is the shared library path variable.
21101 shlibpath_var=$shlibpath_var
21103 # Is shlibpath searched before the hard-coded library search path?
21104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21106 # How to hardcode a shared library path into an executable.
21107 hardcode_action=$hardcode_action_RC
21109 # Whether we should hardcode library paths into libraries.
21110 hardcode_into_libs=$hardcode_into_libs
21112 # Flag to hardcode \$libdir into a binary during linking.
21113 # This must work even if \$libdir does not exist.
21114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21116 # If ld is used when linking, flag to hardcode \$libdir into
21117 # a binary during linking. This must work even if \$libdir does
21119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21121 # Whether we need a single -rpath flag with a separated argument.
21122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_direct=$hardcode_direct_RC
21128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21129 # resulting binary.
21130 hardcode_minus_L=$hardcode_minus_L_RC
21132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21133 # the resulting binary.
21134 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21136 # Set to yes if building a shared library automatically hardcodes DIR into the library
21137 # and all subsequent libraries and executables linked against it.
21138 hardcode_automatic=$hardcode_automatic_RC
21140 # Variables whose values should be saved in libtool wrapper scripts and
21141 # restored at relink time.
21142 variables_saved_for_relink="$variables_saved_for_relink"
21144 # Whether libtool must link a program against all its dependency libraries.
21145 link_all_deplibs=$link_all_deplibs_RC
21147 # Compile-time system search path for libraries
21148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21150 # Run-time system search path for libraries
21151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21153 # Fix the shell variable \$srcfile for the compiler.
21154 fix_srcfile_path="$fix_srcfile_path_RC"
21156 # Set to yes if exported symbols are required.
21157 always_export_symbols=$always_export_symbols_RC
21159 # The commands to list exported symbols.
21160 export_symbols_cmds=$lt_export_symbols_cmds_RC
21162 # The commands to extract the exported symbol list from a shared archive.
21163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21165 # Symbols that should not be listed in the preloaded symbols.
21166 exclude_expsyms=$lt_exclude_expsyms_RC
21168 # Symbols that must always be exported.
21169 include_expsyms=$lt_include_expsyms_RC
21171 # ### END LIBTOOL TAG CONFIG: $tagname
21177 # If there is no Makefile yet, we rely on a make rule to execute
21178 # `config.status --recheck' to rerun these tests and create the
21179 # libtool script then.
21180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21181 if test -f "$ltmain_in"; then
21182 test -f Makefile && make "$ltmain"
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21199 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21200 { (exit 1); exit 1; }; }
21204 # Append the new tag name to the list of available tags.
21205 if test -n "$tagname" ; then
21206 available_tags="$available_tags $tagname"
21212 # Now substitute the updated list of available tags.
21213 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21214 mv "${ofile}T" "$ofile"
21218 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21219 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21220 { (exit 1); exit 1; }; }
21226 # This can be used to rebuild libtool when needed
21227 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21229 # Always use our own libtool.
21230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21232 # Prevent multiple expansion
21254 # Check whether --enable-fortran was given.
21255 if test "${enable_fortran+set}" = set; then
21256 enableval=$enable_fortran;
21263 if test "x$enable_fortran" = xyes; then
21264 ENABLE_FORTRAN_TRUE=
21265 ENABLE_FORTRAN_FALSE='#'
21267 ENABLE_FORTRAN_TRUE='#'
21268 ENABLE_FORTRAN_FALSE=
21272 if test "x$enable_fortran" = xyes
21275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21278 if test -n "$ac_tool_prefix"; then
21279 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
21281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21285 if test "${ac_cv_prog_F77+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 if test -n "$F77"; then
21289 ac_cv_prog_F77="$F77" # Let the user override the test.
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21295 test -z "$as_dir" && as_dir=.
21296 for ac_exec_ext in '' $ac_executable_extensions; do
21297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21298 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
21299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21308 F77=$ac_cv_prog_F77
21309 if test -n "$F77"; then
21310 { echo "$as_me:$LINENO: result: $F77" >&5
21311 echo "${ECHO_T}$F77" >&6; }
21313 { echo "$as_me:$LINENO: result: no" >&5
21314 echo "${ECHO_T}no" >&6; }
21318 test -n "$F77" && break
21321 if test -z "$F77"; then
21323 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
21325 # Extract the first word of "$ac_prog", so it can be a program name with args.
21326 set dummy $ac_prog; ac_word=$2
21327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21329 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 if test -n "$ac_ct_F77"; then
21333 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
21335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336 for as_dir in $PATH
21339 test -z "$as_dir" && as_dir=.
21340 for ac_exec_ext in '' $ac_executable_extensions; do
21341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21342 ac_cv_prog_ac_ct_F77="$ac_prog"
21343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21352 ac_ct_F77=$ac_cv_prog_ac_ct_F77
21353 if test -n "$ac_ct_F77"; then
21354 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
21355 echo "${ECHO_T}$ac_ct_F77" >&6; }
21357 { echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6; }
21362 test -n "$ac_ct_F77" && break
21365 if test "x$ac_ct_F77" = x; then
21368 case $cross_compiling:$ac_tool_warned in
21370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21371 whose name does not start with the host triplet. If you think this
21372 configuration is useful to you, please write to autoconf@gnu.org." >&5
21373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21374 whose name does not start with the host triplet. If you think this
21375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21376 ac_tool_warned=yes ;;
21383 # Provide some information about the compiler.
21384 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
21385 ac_compiler=`set X $ac_compile; echo $2`
21386 { (ac_try="$ac_compiler --version >&5"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_compiler --version >&5") 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }
21396 { (ac_try="$ac_compiler -v >&5"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_compiler -v >&5") 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }
21406 { (ac_try="$ac_compiler -V >&5"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compiler -V >&5") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }
21418 # If we don't use `.F' as extension, the preprocessor is not run on the
21419 # input file. (Note that this only needs to work for GNU compilers.)
21420 ac_save_ext=$ac_ext
21422 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
21423 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
21424 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_compiler_gnu=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
21481 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
21482 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
21483 ac_ext=$ac_save_ext
21484 ac_test_FFLAGS=${FFLAGS+set}
21485 ac_save_FFLAGS=$FFLAGS
21487 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
21488 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
21489 if test "${ac_cv_prog_f77_g+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_compile") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21513 { (case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_try") 2>&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest.$ac_objext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_try") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21532 ac_cv_prog_f77_g=yes
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_cv_prog_f77_g=no
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
21544 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
21545 if test "$ac_test_FFLAGS" = set; then
21546 FFLAGS=$ac_save_FFLAGS
21547 elif test $ac_cv_prog_f77_g = yes; then
21548 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21554 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21561 G77=`test $ac_compiler_gnu = yes && echo yes`
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21569 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21570 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21571 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21572 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
21573 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
21574 if test "${ac_cv_prog_f77_v+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.$ac_ext <<_ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_compile") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest.$ac_objext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21617 # Try some options frequently used verbose output
21618 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
21619 cat >conftest.$ac_ext <<_ACEOF
21625 # Compile and link our simple test program by passing a flag (argument
21626 # 1 to this macro) to the Fortran compiler in order to get
21627 # "verbose" output that we can then parse for the Fortran linker
21629 ac_save_FFLAGS=$FFLAGS
21630 FFLAGS="$FFLAGS $ac_verb"
21631 eval "set x $ac_link"
21633 echo "$as_me:$LINENO: $*" >&5
21634 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21635 echo "$ac_f77_v_output" >&5
21636 FFLAGS=$ac_save_FFLAGS
21640 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21641 # /foo, /bar, and /baz are search directories for the Fortran linker.
21642 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21643 ac_f77_v_output="`echo $ac_f77_v_output |
21645 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21647 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21648 # that detects unbalanced quotes in FLIBS should be implemented
21649 # and (ugh) tested at some point.
21650 case $ac_f77_v_output in
21651 # If we are using xlf then replace all the commas with spaces.
21653 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21655 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21656 # $LIBS confuse us, and the libraries appear later in the output anyway).
21657 *mGLOB_options_string*)
21658 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21660 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21661 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21662 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21663 *-cmdline\ * | *-ignore\ * | *-def\ *)
21664 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21665 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21666 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21667 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21669 # If we are using Cray Fortran then delete quotes.
21671 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21675 # look for -l* and *.a constructs in the output
21676 for ac_arg in $ac_f77_v_output; do
21678 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
21679 ac_cv_prog_f77_v=$ac_verb
21684 if test -z "$ac_cv_prog_f77_v"; then
21685 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
21686 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21693 echo "$as_me: WARNING: compilation failed" >&2;}
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21700 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21701 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21702 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21703 if test "${ac_cv_f77_libs+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 if test "x$FLIBS" != "x"; then
21707 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21710 cat >conftest.$ac_ext <<_ACEOF
21716 # Compile and link our simple test program by passing a flag (argument
21717 # 1 to this macro) to the Fortran compiler in order to get
21718 # "verbose" output that we can then parse for the Fortran linker
21720 ac_save_FFLAGS=$FFLAGS
21721 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21722 eval "set x $ac_link"
21724 echo "$as_me:$LINENO: $*" >&5
21725 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21726 echo "$ac_f77_v_output" >&5
21727 FFLAGS=$ac_save_FFLAGS
21731 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21732 # /foo, /bar, and /baz are search directories for the Fortran linker.
21733 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21734 ac_f77_v_output="`echo $ac_f77_v_output |
21736 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21738 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21739 # that detects unbalanced quotes in FLIBS should be implemented
21740 # and (ugh) tested at some point.
21741 case $ac_f77_v_output in
21742 # If we are using xlf then replace all the commas with spaces.
21744 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21746 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21747 # $LIBS confuse us, and the libraries appear later in the output anyway).
21748 *mGLOB_options_string*)
21749 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21751 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21752 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21753 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21754 *-cmdline\ * | *-ignore\ * | *-def\ *)
21755 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21756 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21757 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21758 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21760 # If we are using Cray Fortran then delete quotes.
21762 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21769 # Save positional arguments (if any)
21770 ac_save_positional="$@"
21772 set X $ac_f77_v_output
21773 while test $# != 1; do
21777 [\\/]*.a | ?:[\\/]*.a)
21779 for ac_i in $ac_cv_f77_libs; do
21780 if test x"$ac_arg" = x"$ac_i"; then
21786 if test x"$ac_exists" = xtrue; then
21789 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21795 for ac_i in $ac_cv_f77_libs; do
21796 if test x"$ac_arg" = x"$ac_i"; then
21802 if test x"$ac_exists" = xtrue; then
21805 if test "$ac_compiler_gnu" = yes; then
21806 for ac_link_opt in $ac_arg; do
21807 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21810 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21815 # Ignore these flags.
21816 -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21819 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21822 # These flags, when seen by themselves, take an argument.
21823 # We remove the space between option and argument and re-iterate
21824 # unless we find an empty arg or a new option (starting with -)
21835 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21837 for ac_i in $ac_cv_f77_libs; do
21838 if test x"$ac_j" = x"$ac_i"; then
21844 if test x"$ac_exists" = xtrue; then
21847 ac_arg="$ac_arg $ac_j"
21848 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21855 for ac_i in $ac_cv_f77_libs; do
21856 if test x"$ac_arg" = x"$ac_i"; then
21862 if test x"$ac_exists" = xtrue; then
21865 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21869 -zallextract*| -zdefaultextract)
21870 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21872 # Ignore everything else.
21875 # restore positional arguments
21876 set X $ac_save_positional; shift
21878 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
21879 # then we insist that the "run path" must be an absolute path (i.e. it
21880 # must begin with a "/").
21881 case `(uname -sr) 2>/dev/null` in
21883 ac_ld_run_path=`echo $ac_f77_v_output |
21884 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21885 test "x$ac_ld_run_path" != x &&
21886 if test "$ac_compiler_gnu" = yes; then
21887 for ac_link_opt in $ac_ld_run_path; do
21888 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21891 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21895 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21898 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21899 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21900 FLIBS="$ac_cv_f77_libs"
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915 case "${host_os}" in
21916 *mingw* | *cygwin*)
21918 # on MinGW/Cygwin extra LDFLAGS are required
21919 no_undefined="-no-undefined"
21922 NO_UNDEFINED=$no_undefined
21928 # Find any Python interpreter.
21929 if test -z "$PYTHON"; then
21930 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21932 # Extract the first word of "$ac_prog", so it can be a program name with args.
21933 set dummy $ac_prog; ac_word=$2
21934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21936 if test "${ac_cv_path_PYTHON+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in $PATH
21948 test -z "$as_dir" && as_dir=.
21949 for ac_exec_ext in '' $ac_executable_extensions; do
21950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21951 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21962 PYTHON=$ac_cv_path_PYTHON
21963 if test -n "$PYTHON"; then
21964 { echo "$as_me:$LINENO: result: $PYTHON" >&5
21965 echo "${ECHO_T}$PYTHON" >&6; }
21967 { echo "$as_me:$LINENO: result: no" >&5
21968 echo "${ECHO_T}no" >&6; }
21972 test -n "$PYTHON" && break
21974 test -n "$PYTHON" || PYTHON=":"
21977 am_display_PYTHON=python
21980 if test "$PYTHON" = :; then
21981 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21983 { (exit 1); exit 1; }; }
21987 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21989 if test "${am_cv_python_version+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21995 echo "${ECHO_T}$am_cv_python_version" >&6; }
21996 PYTHON_VERSION=$am_cv_python_version
22000 PYTHON_PREFIX='${prefix}'
22002 PYTHON_EXEC_PREFIX='${exec_prefix}'
22006 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22008 if test "${am_cv_python_platform+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22015 PYTHON_PLATFORM=$am_cv_python_platform
22020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22022 if test "${am_cv_python_pythondir+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22026 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22030 pythondir=$am_cv_python_pythondir
22034 pkgpythondir=\${pythondir}/$PACKAGE
22037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22039 if test "${am_cv_python_pyexecdir+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22043 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22047 pyexecdir=$am_cv_python_pyexecdir
22051 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22062 # Check for Python include path
22063 { echo "$as_me:$LINENO: checking for Python include path" >&5
22064 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22065 if test -z "$PYTHON" ; then
22066 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22067 echo "$as_me: error: cannot find Python path" >&2;}
22068 { (exit 1); exit 1; }; }
22071 # ask distutils which include path we should use
22073 import distutils.sysconfig
22075 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22077 path = path.replace("\\", "/")
22080 python_path=`$PYTHON -c "$python_cmd"`
22081 { echo "$as_me:$LINENO: result: $python_path" >&5
22082 echo "${ECHO_T}$python_path" >&6; }
22083 if test -z "$python_path" ; then
22084 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22085 echo "$as_me: error: cannot find Python include path" >&2;}
22086 { (exit 1); exit 1; }; }
22089 PYTHON_CPPFLAGS=-I$python_path
22092 # Check for Python headers usability
22093 python_save_CPPFLAGS=$CPPFLAGS
22094 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22096 for ac_header in Python.h
22098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106 { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22109 # Is the header compilable?
22110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 $ac_includes_default
22119 #include <$ac_header>
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_compile") 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136 { (case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_try") 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest.$ac_objext'
22146 { (case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_try") 2>&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
22155 ac_header_compiler=yes
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ac_header_compiler=no
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22165 echo "${ECHO_T}$ac_header_compiler" >&6; }
22167 # Is the header present?
22168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22170 cat >conftest.$ac_ext <<_ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22176 #include <$ac_header>
22178 if { (ac_try="$ac_cpp conftest.$ac_ext"
22179 case "(($ac_try" in
22180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181 *) ac_try_echo=$ac_try;;
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22186 grep -v '^ *+' conftest.er1 >conftest.err
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } >/dev/null; then
22191 if test -s conftest.err; then
22192 ac_cpp_err=$ac_c_preproc_warn_flag
22193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22200 if test -z "$ac_cpp_err"; then
22201 ac_header_preproc=yes
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ac_header_preproc=no
22209 rm -f conftest.err conftest.$ac_ext
22210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22211 echo "${ECHO_T}$ac_header_preproc" >&6; }
22213 # So? What about this header?
22214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22220 ac_header_preproc=yes
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 eval "$as_ac_Header=\$ac_header_preproc"
22245 ac_res=`eval echo '${'$as_ac_Header'}'`
22246 { echo "$as_me:$LINENO: result: $ac_res" >&5
22247 echo "${ECHO_T}$ac_res" >&6; }
22250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22256 { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22257 echo "$as_me: error: cannot find usable Python headers" >&2;}
22258 { (exit 1); exit 1; }; }
22263 CPPFLAGS="$python_save_CPPFLAGS"
22265 # Only set this on mingw and cygwin hosts, (only implemented
22266 # for mingw host, for crosscompiling you need to trick this)
22270 *mingw* | *cygwin* )
22271 { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22272 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22275 import distutils.sysconfig
22277 path = distutils.sysconfig.get_config_var("LIBPL")
22279 path = distutils.sysconfig.PREFIX + "/libs"
22281 path = path.replace("\\", "/")
22284 python_stdlib_path=`$PYTHON -c "$python_cmd"`
22286 python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22287 libpython_name="python$PYTHON_VERSION"
22289 # Standard install of python for win32 has libpython24.a
22290 # instead of libpython2.4.a so we check for the library
22291 # without the dot in the version number.
22293 python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22294 if test -n "$python_stdlib_filename" ; then
22295 libpython_name="python$python_version_nodot"
22298 PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22299 { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22300 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22301 # Replace all backslashes in PYTHON Paths with forward slashes
22302 { echo "$as_me:$LINENO: checking for pythondir" >&5
22303 echo $ECHO_N "checking for pythondir... $ECHO_C" >&6; }
22304 pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22305 { echo "$as_me:$LINENO: result: $pythondir" >&5
22306 echo "${ECHO_T}$pythondir" >&6; }
22308 { echo "$as_me:$LINENO: checking for pkgpythondir" >&5
22309 echo $ECHO_N "checking for pkgpythondir... $ECHO_C" >&6; }
22310 pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22311 { echo "$as_me:$LINENO: result: $pkgpythondir" >&5
22312 echo "${ECHO_T}$pkgpythondir" >&6; }
22314 { echo "$as_me:$LINENO: checking for pyexecdir" >&5
22315 echo $ECHO_N "checking for pyexecdir... $ECHO_C" >&6; }
22316 pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22317 { echo "$as_me:$LINENO: result: $pyexecdir" >&5
22318 echo "${ECHO_T}$pyexecdir" >&6; }
22320 { echo "$as_me:$LINENO: checking for pkgpyexecdir" >&5
22321 echo $ECHO_N "checking for pkgpyexecdir... $ECHO_C" >&6; }
22322 pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22323 { echo "$as_me:$LINENO: result: $pkgpyexecdir" >&5
22324 echo "${ECHO_T}$pkgpyexecdir" >&6; }
22338 # Extract the first word of "swig", so it can be a program name with args.
22339 set dummy swig; ac_word=$2
22340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22342 if test "${ac_cv_prog_SWIG+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 if test -n "$SWIG"; then
22346 ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22349 for as_dir in $PATH
22352 test -z "$as_dir" && as_dir=.
22353 for ac_exec_ext in '' $ac_executable_extensions; do
22354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22355 ac_cv_prog_SWIG="`which swig`"
22356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22365 SWIG=$ac_cv_prog_SWIG
22366 if test -n "$SWIG"; then
22367 { echo "$as_me:$LINENO: result: $SWIG" >&5
22368 echo "${ECHO_T}$SWIG" >&6; }
22370 { echo "$as_me:$LINENO: result: no" >&5
22371 echo "${ECHO_T}no" >&6; }
22375 if test -z "$SWIG" ; then
22376 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&5
22377 echo "$as_me: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&2;}
22378 { (exit 1); exit 1; }; }
22380 elif test -n "1.3.23" ; then
22381 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22382 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22383 swig_version=`$SWIG -version 2>&1 | \
22384 awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22385 { echo "$as_me:$LINENO: result: $swig_version" >&5
22386 echo "${ECHO_T}$swig_version" >&6; }
22387 if test -n "$swig_version" ; then
22388 swig_version=`echo $swig_version | \
22389 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22390 swig_required_version=`echo 1.3.23 | \
22391 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22392 if test $swig_required_version -gt $swig_version ; then
22393 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22394 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22395 { (exit 1); exit 1; }; }
22398 { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22399 echo "$as_me: error: cannot determine SWIG version" >&2;}
22400 { (exit 1); exit 1; }; }
22407 if test "$SWIG" != "false" ; then
22414 if test "$SWIG" != "false" ; then
22415 SWIG_PYTHON_LIB=-lswigpy
22417 SWIG_PYTHON_OPT=-python
22420 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22425 # Extract the first word of "xmlto", so it can be a program name with args.
22426 set dummy xmlto; ac_word=$2
22427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22429 if test "${ac_cv_prog_XMLTO+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 if test -n "$XMLTO"; then
22433 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22436 for as_dir in $PATH
22439 test -z "$as_dir" && as_dir=.
22440 for ac_exec_ext in '' $ac_executable_extensions; do
22441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22442 ac_cv_prog_XMLTO="yes"
22443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22452 XMLTO=$ac_cv_prog_XMLTO
22453 if test -n "$XMLTO"; then
22454 { echo "$as_me:$LINENO: result: $XMLTO" >&5
22455 echo "${ECHO_T}$XMLTO" >&6; }
22457 { echo "$as_me:$LINENO: result: no" >&5
22458 echo "${ECHO_T}no" >&6; }
22464 if test x$XMLTO = xyes; then
22466 HAS_XMLTO_FALSE='#'
22474 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22475 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22476 if test "${ac_cv_lib_socket_socket+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 ac_check_lib_save_LIBS=$LIBS
22480 LIBS="-lsocket $LIBS"
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22488 /* Override any GCC internal prototype to avoid an error.
22489 Use char because int might match the return type of a GCC
22490 builtin and then its argument prototype would still apply. */
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (ac_try="$ac_link"
22505 case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_link") 2>conftest.er1
22512 grep -v '^ *+' conftest.er1 >conftest.err
22514 cat conftest.err >&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } &&
22517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22518 { (case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_try") 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; } &&
22527 { ac_try='test -s conftest$ac_exeext'
22528 { (case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_try") 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 ac_cv_lib_socket_socket=yes
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 ac_cv_lib_socket_socket=no
22545 rm -f core conftest.err conftest.$ac_objext \
22546 conftest$ac_exeext conftest.$ac_ext
22547 LIBS=$ac_check_lib_save_LIBS
22549 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22550 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22551 if test $ac_cv_lib_socket_socket = yes; then
22552 cat >>confdefs.h <<_ACEOF
22553 #define HAVE_LIBSOCKET 1
22556 LIBS="-lsocket $LIBS"
22562 # Check first for POSIX
22567 ac_cpp='$CPP $CPPFLAGS'
22568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22574 # We used to check for pthread.h first, but this fails if pthread.h
22575 # requires special compiler flags (e.g. on True64 or Sequent).
22576 # It gets checked for in the link test anyway.
22578 # First of all, check if the user has set any of the PTHREAD_LIBS,
22579 # etcetera environment variables, and if threads linking works using
22581 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22582 save_CFLAGS="$CFLAGS"
22583 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22585 LIBS="$PTHREAD_LIBS $LIBS"
22586 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22587 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22595 /* Override any GCC internal prototype to avoid an error.
22596 Use char because int might match the return type of a GCC
22597 builtin and then its argument prototype would still apply. */
22601 char pthread_join ();
22605 return pthread_join ();
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (ac_try="$ac_link"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_link") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } &&
22624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22625 { (case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_try") 2>&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest$ac_exeext'
22635 { (case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_try") 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22652 rm -f core conftest.err conftest.$ac_objext \
22653 conftest$ac_exeext conftest.$ac_ext
22654 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22655 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22656 if test x"$acx_pthread_ok" = xno; then
22661 CFLAGS="$save_CFLAGS"
22664 # We must check for the threads library under a number of different
22665 # names; the ordering is very important because some systems
22666 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22667 # libraries is broken (non-POSIX).
22669 # Create a list of thread flags to try. Items starting with a "-" are
22670 # C compiler flags, and other items are library names, except for "none"
22671 # which indicates that we try without any flags at all.
22673 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22675 # The ordering *is* (sometimes) important. Some notes on the
22676 # individual items follow:
22678 # pthreads: AIX (must check this before -lpthread)
22679 # none: in case threads are in libc; should be tried before -Kthread and
22680 # other compiler flags to prevent continual compiler warnings
22681 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22682 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22683 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22684 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22685 # -pthreads: Solaris/gcc
22686 # -mthreads: Mingw32/gcc, Lynx/gcc
22687 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22688 # doesn't hurt to check since this sometimes defines pthreads too;
22689 # also defines -D_REENTRANT)
22690 # pthread: Linux, etcetera
22691 # --thread-safe: KAI C++
22693 case "${host_cpu}-${host_os}" in
22696 # On Solaris (at least, for some versions), libc contains stubbed
22697 # (non-functional) versions of the pthreads routines, so link-based
22698 # tests will erroneously succeed. (We need to link with -pthread or
22699 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22700 # a function called by this macro, so we could check for that, but
22701 # who knows whether they'll stub that too in a future libc.) So,
22702 # we'll just look for -pthreads and -lpthread first:
22704 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22708 if test x"$acx_pthread_ok" = xno; then
22709 for flag in $acx_pthread_flags; do
22713 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22714 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22718 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22719 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22720 PTHREAD_CFLAGS="$flag"
22724 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22725 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22726 PTHREAD_LIBS="-l$flag"
22731 save_CFLAGS="$CFLAGS"
22732 LIBS="$PTHREAD_LIBS $LIBS"
22733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22735 # Check for various functions. We must include pthread.h,
22736 # since some functions may be macros. (On the Sequent, we
22737 # need a special flag -Kthread to make this header compile.)
22738 # We check for pthread_join because it is in -lpthread on IRIX
22739 # while pthread_create is in libc. We check for pthread_attr_init
22740 # due to DEC craziness with -lpthreads. We check for
22741 # pthread_cleanup_push because it is one of the few pthread
22742 # functions on Solaris that doesn't have a non-functional libc stub.
22743 # We try pthread_create on general principles.
22744 cat >conftest.$ac_ext <<_ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 #include <pthread.h>
22754 pthread_t th; pthread_join(th, 0);
22755 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22756 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22761 rm -f conftest.$ac_objext conftest$ac_exeext
22762 if { (ac_try="$ac_link"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_link") 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22776 { (case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_try") 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; } &&
22785 { ac_try='test -s conftest$ac_exeext'
22786 { (case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_try") 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22803 rm -f core conftest.err conftest.$ac_objext \
22804 conftest$ac_exeext conftest.$ac_ext
22807 CFLAGS="$save_CFLAGS"
22809 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22810 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22811 if test "x$acx_pthread_ok" = xyes; then
22820 # Various other checks:
22821 if test "x$acx_pthread_ok" = xyes; then
22823 LIBS="$PTHREAD_LIBS $LIBS"
22824 save_CFLAGS="$CFLAGS"
22825 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22827 # Detect AIX lossage: threads are created detached by default
22828 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22829 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22830 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 #include <pthread.h>
22841 int attr=PTHREAD_CREATE_JOINABLE;
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
22860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861 { (case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866 (eval "$ac_try") 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest$ac_exeext'
22871 { (case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_try") 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 ok=PTHREAD_CREATE_JOINABLE
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22888 rm -f core conftest.err conftest.$ac_objext \
22889 conftest$ac_exeext conftest.$ac_ext
22890 if test x"$ok" = xunknown; then
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 #include <pthread.h>
22901 int attr=PTHREAD_CREATE_UNDETACHED;
22906 rm -f conftest.$ac_objext conftest$ac_exeext
22907 if { (ac_try="$ac_link"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_link") 2>conftest.er1
22915 grep -v '^ *+' conftest.er1 >conftest.err
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
22920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22921 { (case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_try") 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest$ac_exeext'
22931 { (case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_try") 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; }; then
22940 ok=PTHREAD_CREATE_UNDETACHED
22942 echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22948 rm -f core conftest.err conftest.$ac_objext \
22949 conftest$ac_exeext conftest.$ac_ext
22951 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define PTHREAD_CREATE_JOINABLE $ok
22958 { echo "$as_me:$LINENO: result: ${ok}" >&5
22959 echo "${ECHO_T}${ok}" >&6; }
22960 if test x"$ok" = xunknown; then
22961 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22962 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22965 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22966 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22968 case "${host_cpu}-${host_os}" in
22969 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22970 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22972 { echo "$as_me:$LINENO: result: ${flag}" >&5
22973 echo "${ECHO_T}${flag}" >&6; }
22974 if test "x$flag" != xno; then
22975 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22979 CFLAGS="$save_CFLAGS"
22981 # More AIX lossage: must compile with cc_r
22982 # Extract the first word of "cc_r", so it can be a program name with args.
22983 set dummy cc_r; ac_word=$2
22984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22986 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22989 if test -n "$PTHREAD_CC"; then
22990 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22993 for as_dir in $PATH
22996 test -z "$as_dir" && as_dir=.
22997 for ac_exec_ext in '' $ac_executable_extensions; do
22998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22999 ac_cv_prog_PTHREAD_CC="cc_r"
23000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23007 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23010 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23011 if test -n "$PTHREAD_CC"; then
23012 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23013 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23015 { echo "$as_me:$LINENO: result: no" >&5
23016 echo "${ECHO_T}no" >&6; }
23028 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23029 if test x"$acx_pthread_ok" = xyes; then
23032 cat >>confdefs.h <<\_ACEOF
23033 #define OMNITHREAD_POSIX 1
23041 # If no POSIX support found, then check for NT threads
23042 { echo "$as_me:$LINENO: checking for NT threads" >&5
23043 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23045 cat >conftest.$ac_ext <<_ACEOF
23047 #include <windows.h>
23048 #include <winbase.h>
23049 int main() { InitializeCriticalSection(NULL); return 0; }
23052 rm -f conftest.$ac_objext conftest$ac_exeext
23053 if { (ac_try="$ac_link"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_link") 2>conftest.er1
23061 grep -v '^ *+' conftest.er1 >conftest.err
23063 cat conftest.err >&5
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } &&
23066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23067 { (case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_try") 2>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; } &&
23076 { ac_try='test -s conftest$ac_exeext'
23077 { (case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_try") 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define OMNITHREAD_NT 1
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads. pthreads not found.
23099 See \`config.log' for more details." >&5
23100 echo "$as_me: error: GNU Radio requires POSIX threads. pthreads not found.
23101 See \`config.log' for more details." >&2;}
23102 { (exit 1); exit 1; }; }
23106 rm -f core conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
23108 { echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6; }
23113 ac_cpp='$CPP $CPPFLAGS'
23114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23121 if test "x$ot_posix" = xyes; then
23122 OMNITHREAD_POSIX_TRUE=
23123 OMNITHREAD_POSIX_FALSE='#'
23125 OMNITHREAD_POSIX_TRUE='#'
23126 OMNITHREAD_POSIX_FALSE=
23131 if test "x$ot_nt" = xyes; then
23132 OMNITHREAD_NT_TRUE=
23133 OMNITHREAD_NT_FALSE='#'
23135 OMNITHREAD_NT_TRUE='#'
23136 OMNITHREAD_NT_FALSE=
23141 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23142 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23143 if test "${ac_cv_search_clock_gettime+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 ac_func_search_save_LIBS=$LIBS
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23154 /* Override any GCC internal prototype to avoid an error.
23155 Use char because int might match the return type of a GCC
23156 builtin and then its argument prototype would still apply. */
23160 char clock_gettime ();
23164 return clock_gettime ();
23169 for ac_lib in '' rt; do
23170 if test -z "$ac_lib"; then
23171 ac_res="none required"
23174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (ac_try="$ac_link"
23178 case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_link") 2>conftest.er1
23185 grep -v '^ *+' conftest.er1 >conftest.err
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } &&
23190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23191 { (case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_try") 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; } &&
23200 { ac_try='test -s conftest$ac_exeext'
23201 { (case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_try") 2>&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; }; then
23210 ac_cv_search_clock_gettime=$ac_res
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23218 rm -f core conftest.err conftest.$ac_objext \
23220 if test "${ac_cv_search_clock_gettime+set}" = set; then
23224 if test "${ac_cv_search_clock_gettime+set}" = set; then
23227 ac_cv_search_clock_gettime=no
23229 rm conftest.$ac_ext
23230 LIBS=$ac_func_search_save_LIBS
23232 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23233 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23234 ac_res=$ac_cv_search_clock_gettime
23235 if test "$ac_res" != no; then
23236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23237 PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23243 for ac_func in clock_gettime gettimeofday nanosleep
23245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23259 #define $ac_func innocuous_$ac_func
23261 /* System header to define __stub macros and hopefully few prototypes,
23262 which can conflict with char $ac_func (); below.
23263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23264 <limits.h> exists even on freestanding compilers. */
23267 # include <limits.h>
23269 # include <assert.h>
23274 /* Override any GCC internal prototype to avoid an error.
23275 Use char because int might match the return type of a GCC
23276 builtin and then its argument prototype would still apply. */
23281 /* The GNU C library defines this for functions which it implements
23282 to always fail with ENOSYS. Some functions are actually named
23283 something starting with __ and the normal name is an alias. */
23284 #if defined __stub_$ac_func || defined __stub___$ac_func
23291 return $ac_func ();
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>conftest.er1
23305 grep -v '^ *+' conftest.er1 >conftest.err
23307 cat conftest.err >&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } &&
23310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23311 { (case "(($ac_try" in
23312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_try") 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest$ac_exeext'
23321 { (case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_try") 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 eval "$as_ac_var=yes"
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 eval "$as_ac_var=no"
23338 rm -f core conftest.err conftest.$ac_objext \
23339 conftest$ac_exeext conftest.$ac_ext
23341 ac_res=`eval echo '${'$as_ac_var'}'`
23342 { echo "$as_me:$LINENO: result: $ac_res" >&5
23343 echo "${ECHO_T}$ac_res" >&6; }
23344 if test `eval echo '${'$as_ac_var'}'` = yes; then
23345 cat >>confdefs.h <<_ACEOF
23346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23354 #AC_SUBST(PTHREAD_CFLAGS)
23355 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23356 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23358 if test "x$CXX_FOR_BUILD" = x
23360 CXX_FOR_BUILD=${CXX}
23367 ac_cpp='$CPP $CPPFLAGS'
23368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23375 for ac_header in sys/ipc.h sys/shm.h
23377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 ac_res=`eval echo '${'$as_ac_Header'}'`
23385 { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23388 # Is the header compilable?
23389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 #include <$ac_header>
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407 (eval "$ac_compile") 2>conftest.er1
23409 grep -v '^ *+' conftest.er1 >conftest.err
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } &&
23414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23415 { (case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_try") 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } &&
23424 { ac_try='test -s conftest.$ac_objext'
23425 { (case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_try") 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ac_header_compiler=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_compiler=no
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23444 echo "${ECHO_T}$ac_header_compiler" >&6; }
23446 # Is the header present?
23447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <$ac_header>
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23465 grep -v '^ *+' conftest.er1 >conftest.err
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } >/dev/null; then
23470 if test -s conftest.err; then
23471 ac_cpp_err=$ac_c_preproc_warn_flag
23472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23479 if test -z "$ac_cpp_err"; then
23480 ac_header_preproc=yes
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_header_preproc=no
23488 rm -f conftest.err conftest.$ac_ext
23489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23490 echo "${ECHO_T}$ac_header_preproc" >&6; }
23492 # So? What about this header?
23493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23499 ac_header_preproc=yes
23502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
23522 eval "$as_ac_Header=\$ac_header_preproc"
23524 ac_res=`eval echo '${'$as_ac_Header'}'`
23525 { echo "$as_me:$LINENO: result: $ac_res" >&5
23526 echo "${ECHO_T}$ac_res" >&6; }
23529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23530 cat >>confdefs.h <<_ACEOF
23531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23540 { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23541 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23542 if test "${ac_cv_search_shmat+set}" = set; then
23543 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 ac_func_search_save_LIBS=$LIBS
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23553 /* Override any GCC internal prototype to avoid an error.
23554 Use char because int might match the return type of a GCC
23555 builtin and then its argument prototype would still apply. */
23568 for ac_lib in '' cygipc ipc; do
23569 if test -z "$ac_lib"; then
23570 ac_res="none required"
23573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } &&
23589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23590 { (case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_try") 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest$ac_exeext'
23600 { (case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605 (eval "$ac_try") 2>&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 ac_cv_search_shmat=$ac_res
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23617 rm -f core conftest.err conftest.$ac_objext \
23619 if test "${ac_cv_search_shmat+set}" = set; then
23623 if test "${ac_cv_search_shmat+set}" = set; then
23626 ac_cv_search_shmat=no
23628 rm conftest.$ac_ext
23629 LIBS=$ac_func_search_save_LIBS
23631 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23632 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23633 ac_res=$ac_cv_search_shmat
23634 if test "$ac_res" != no; then
23635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23638 { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23639 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23646 ac_cpp='$CPP $CPPFLAGS'
23647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23654 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23655 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23656 if test "${ac_cv_header_stdc+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 #include <stdlib.h>
23666 #include <stdarg.h>
23667 #include <string.h>
23678 rm -f conftest.$ac_objext
23679 if { (ac_try="$ac_compile"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_compile") 2>conftest.er1
23687 grep -v '^ *+' conftest.er1 >conftest.err
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } &&
23692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23693 { (case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_try") 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; } &&
23702 { ac_try='test -s conftest.$ac_objext'
23703 { (case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708 (eval "$ac_try") 2>&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); }; }; then
23712 ac_cv_header_stdc=yes
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ac_cv_header_stdc=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 if test $ac_cv_header_stdc = yes; then
23723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23724 cat >conftest.$ac_ext <<_ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h. */
23730 #include <string.h>
23733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23734 $EGREP "memchr" >/dev/null 2>&1; then
23737 ac_cv_header_stdc=no
23743 if test $ac_cv_header_stdc = yes; then
23744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 #include <stdlib.h>
23754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23755 $EGREP "free" >/dev/null 2>&1; then
23758 ac_cv_header_stdc=no
23764 if test $ac_cv_header_stdc = yes; then
23765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23766 if test "$cross_compiling" = yes; then
23769 cat >conftest.$ac_ext <<_ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23776 #include <stdlib.h>
23777 #if ((' ' & 0x0FF) == 0x020)
23778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23781 # define ISLOWER(c) \
23782 (('a' <= (c) && (c) <= 'i') \
23783 || ('j' <= (c) && (c) <= 'r') \
23784 || ('s' <= (c) && (c) <= 'z'))
23785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23793 for (i = 0; i < 256; i++)
23794 if (XOR (islower (i), ISLOWER (i))
23795 || toupper (i) != TOUPPER (i))
23800 rm -f conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>&5
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23811 { (case "(($ac_try" in
23812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_try") 2>&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23822 echo "$as_me: program exited with status $ac_status" >&5
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23826 ( exit $ac_status )
23827 ac_cv_header_stdc=no
23829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23837 if test $ac_cv_header_stdc = yes; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define STDC_HEADERS 1
23845 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 cat >conftest.$ac_ext <<_ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23856 #include <sys/types.h>
23857 #include <sys/wait.h>
23858 #ifndef WEXITSTATUS
23859 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23875 rm -f conftest.$ac_objext
23876 if { (ac_try="$ac_compile"
23877 case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_compile") 2>conftest.er1
23884 grep -v '^ *+' conftest.er1 >conftest.err
23886 cat conftest.err >&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } &&
23889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23890 { (case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_try") 2>&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; } &&
23899 { ac_try='test -s conftest.$ac_objext'
23900 { (case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905 (eval "$ac_try") 2>&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; }; then
23909 ac_cv_header_sys_wait_h=yes
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 ac_cv_header_sys_wait_h=no
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23920 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23921 if test $ac_cv_header_sys_wait_h = yes; then
23923 cat >>confdefs.h <<\_ACEOF
23924 #define HAVE_SYS_WAIT_H 1
23936 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 ac_res=`eval echo '${'$as_ac_Header'}'`
23946 { echo "$as_me:$LINENO: result: $ac_res" >&5
23947 echo "${ECHO_T}$ac_res" >&6; }
23949 # Is the header compilable?
23950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 $ac_includes_default
23959 #include <$ac_header>
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23970 grep -v '^ *+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
23975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23976 { (case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_try") 2>&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; } &&
23985 { ac_try='test -s conftest.$ac_objext'
23986 { (case "(($ac_try" in
23987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988 *) ac_try_echo=$ac_try;;
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991 (eval "$ac_try") 2>&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; }; then
23995 ac_header_compiler=yes
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 ac_header_compiler=no
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6; }
24007 # Is the header present?
24008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24010 cat >conftest.$ac_ext <<_ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24016 #include <$ac_header>
24018 if { (ac_try="$ac_cpp conftest.$ac_ext"
24019 case "(($ac_try" in
24020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021 *) ac_try_echo=$ac_try;;
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } >/dev/null; then
24031 if test -s conftest.err; then
24032 ac_cpp_err=$ac_c_preproc_warn_flag
24033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24040 if test -z "$ac_cpp_err"; then
24041 ac_header_preproc=yes
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 ac_header_preproc=no
24049 rm -f conftest.err conftest.$ac_ext
24050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24051 echo "${ECHO_T}$ac_header_preproc" >&6; }
24053 # So? What about this header?
24054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24060 ac_header_preproc=yes
24063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 eval "$as_ac_Header=\$ac_header_preproc"
24085 ac_res=`eval echo '${'$as_ac_Header'}'`
24086 { echo "$as_me:$LINENO: result: $ac_res" >&5
24087 echo "${ECHO_T}$ac_res" >&6; }
24090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24091 cat >>confdefs.h <<_ACEOF
24092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24103 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
24112 ac_res=`eval echo '${'$as_ac_Header'}'`
24113 { echo "$as_me:$LINENO: result: $ac_res" >&5
24114 echo "${ECHO_T}$ac_res" >&6; }
24116 # Is the header compilable?
24117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 $ac_includes_default
24126 #include <$ac_header>
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
24130 case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24137 grep -v '^ *+' conftest.er1 >conftest.err
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } &&
24142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24143 { (case "(($ac_try" in
24144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145 *) ac_try_echo=$ac_try;;
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148 (eval "$ac_try") 2>&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; } &&
24152 { ac_try='test -s conftest.$ac_objext'
24153 { (case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_try") 2>&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 ac_header_compiler=yes
24164 echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24167 ac_header_compiler=no
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24172 echo "${ECHO_T}$ac_header_compiler" >&6; }
24174 # Is the header present?
24175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24177 cat >conftest.$ac_ext <<_ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24183 #include <$ac_header>
24185 if { (ac_try="$ac_cpp conftest.$ac_ext"
24186 case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24193 grep -v '^ *+' conftest.er1 >conftest.err
24195 cat conftest.err >&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } >/dev/null; then
24198 if test -s conftest.err; then
24199 ac_cpp_err=$ac_c_preproc_warn_flag
24200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24207 if test -z "$ac_cpp_err"; then
24208 ac_header_preproc=yes
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_header_preproc=no
24216 rm -f conftest.err conftest.$ac_ext
24217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24218 echo "${ECHO_T}$ac_header_preproc" >&6; }
24220 # So? What about this header?
24221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24227 ac_header_preproc=yes
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24248 echo $ECHO_N "(cached) $ECHO_C" >&6
24250 eval "$as_ac_Header=\$ac_header_preproc"
24252 ac_res=`eval echo '${'$as_ac_Header'}'`
24253 { echo "$as_me:$LINENO: result: $ac_res" >&5
24254 echo "${ECHO_T}$ac_res" >&6; }
24257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24258 cat >>confdefs.h <<_ACEOF
24259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24269 for ac_header in sys/resource.h stdint.h sched.h
24271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279 { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24282 # Is the header compilable?
24283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24292 #include <$ac_header>
24294 rm -f conftest.$ac_objext
24295 if { (ac_try="$ac_compile"
24296 case "(($ac_try" in
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298 *) ac_try_echo=$ac_try;;
24300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24303 grep -v '^ *+' conftest.er1 >conftest.err
24305 cat conftest.err >&5
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } &&
24308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24309 { (case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_try") 2>&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; } &&
24318 { ac_try='test -s conftest.$ac_objext'
24319 { (case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_try") 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_header_compiler=yes
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_header_compiler=no
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24338 echo "${ECHO_T}$ac_header_compiler" >&6; }
24340 # Is the header present?
24341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24349 #include <$ac_header>
24351 if { (ac_try="$ac_cpp conftest.$ac_ext"
24352 case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24359 grep -v '^ *+' conftest.er1 >conftest.err
24361 cat conftest.err >&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } >/dev/null; then
24364 if test -s conftest.err; then
24365 ac_cpp_err=$ac_c_preproc_warn_flag
24366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24373 if test -z "$ac_cpp_err"; then
24374 ac_header_preproc=yes
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24379 ac_header_preproc=no
24382 rm -f conftest.err conftest.$ac_ext
24383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24384 echo "${ECHO_T}$ac_header_preproc" >&6; }
24386 # So? What about this header?
24387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24393 ac_header_preproc=yes
24396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 eval "$as_ac_Header=\$ac_header_preproc"
24418 ac_res=`eval echo '${'$as_ac_Header'}'`
24419 { echo "$as_me:$LINENO: result: $ac_res" >&5
24420 echo "${ECHO_T}$ac_res" >&6; }
24423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24424 cat >>confdefs.h <<_ACEOF
24425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24435 if test "${ac_cv_c_const+set}" = set; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24448 /* FIXME: Include the comments suggested by Paul. */
24449 #ifndef __cplusplus
24450 /* Ultrix mips cc rejects this. */
24451 typedef int charset[2];
24453 /* SunOS 4.1.1 cc rejects this. */
24454 char const *const *ccp;
24456 /* NEC SVR4.0.2 mips cc rejects this. */
24457 struct point {int x, y;};
24458 static struct point const zero = {0,0};
24459 /* AIX XL C 1.02.0.0 rejects this.
24460 It does not let you subtract one const X* pointer from another in
24461 an arm of an if-expression whose if-part is not a constant
24463 const char *g = "string";
24464 ccp = &g + (g ? g-g : 0);
24465 /* HPUX 7.0 cc rejects these. */
24468 ccp = (char const *const *) p;
24469 { /* SCO 3.2v4 cc rejects this. */
24471 char const *s = 0 ? (char *) 0 : (char const *) 0;
24476 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24477 int x[] = {25, 17};
24478 const int *foo = &x[0];
24481 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24482 typedef const int *iptr;
24486 { /* AIX XL C 1.02.0.0 rejects this saying
24487 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24488 struct s { int j; const int *ap[3]; };
24489 struct s *b; b->j = 5;
24491 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24492 const int foo = 10;
24493 if (!foo) return 0;
24495 return !x[0] && !zero.x;
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } &&
24516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24517 { (case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_try") 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest.$ac_objext'
24527 { (case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_try") 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24547 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24548 if test $ac_cv_c_const = no; then
24550 cat >>confdefs.h <<\_ACEOF
24556 { echo "$as_me:$LINENO: checking for inline" >&5
24557 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24558 if test "${ac_cv_c_inline+set}" = set; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 for ac_kw in inline __inline__ __inline; do
24563 cat >conftest.$ac_ext <<_ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24569 #ifndef __cplusplus
24571 static $ac_kw foo_t static_foo () {return 0; }
24572 $ac_kw foo_t foo () {return 0; }
24576 rm -f conftest.$ac_objext
24577 if { (ac_try="$ac_compile"
24578 case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_compile") 2>conftest.er1
24585 grep -v '^ *+' conftest.er1 >conftest.err
24587 cat conftest.err >&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } &&
24590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24591 { (case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_try") 2>&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); }; } &&
24600 { ac_try='test -s conftest.$ac_objext'
24601 { (case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_try") 2>&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; }; then
24610 ac_cv_c_inline=$ac_kw
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 test "$ac_cv_c_inline" != no && break
24623 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24624 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24627 case $ac_cv_c_inline in
24630 case $ac_cv_c_inline in
24632 *) ac_val=$ac_cv_c_inline;;
24634 cat >>confdefs.h <<_ACEOF
24635 #ifndef __cplusplus
24636 #define inline $ac_val
24642 { echo "$as_me:$LINENO: checking for size_t" >&5
24643 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24644 if test "${ac_cv_type_size_t+set}" = set; then
24645 echo $ECHO_N "(cached) $ECHO_C" >&6
24647 cat >conftest.$ac_ext <<_ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 $ac_includes_default
24654 typedef size_t ac__type_new_;
24658 if ((ac__type_new_ *) 0)
24660 if (sizeof (ac__type_new_))
24666 rm -f conftest.$ac_objext
24667 if { (ac_try="$ac_compile"
24668 case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_compile") 2>conftest.er1
24675 grep -v '^ *+' conftest.er1 >conftest.err
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } &&
24680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24681 { (case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_try") 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest.$ac_objext'
24691 { (case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_try") 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; }; then
24700 ac_cv_type_size_t=yes
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24705 ac_cv_type_size_t=no
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24711 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24712 if test $ac_cv_type_size_t = yes; then
24716 cat >>confdefs.h <<_ACEOF
24717 #define size_t unsigned int
24722 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24724 if test "${ac_cv_header_time+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 cat >conftest.$ac_ext <<_ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 #include <sys/types.h>
24734 #include <sys/time.h>
24740 if ((struct tm *) 0)
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761 { (case "(($ac_try" in
24762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763 *) ac_try_echo=$ac_try;;
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766 (eval "$ac_try") 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest.$ac_objext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_header_time=yes
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ac_cv_header_time=no
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24791 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24792 if test $ac_cv_header_time = yes; then
24794 cat >>confdefs.h <<\_ACEOF
24795 #define TIME_WITH_SYS_TIME 1
24800 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24801 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24802 if test "${ac_cv_c_bigendian+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 # See if sys/param.h defines the BYTE_ORDER macro.
24806 cat >conftest.$ac_ext <<_ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 #include <sys/types.h>
24813 #include <sys/param.h>
24818 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24819 bogus endian macros
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
24840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24841 { (case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 (eval "$ac_try") 2>&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); }; } &&
24850 { ac_try='test -s conftest.$ac_objext'
24851 { (case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_try") 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 # It does; now see whether it defined to BIG_ENDIAN or not.
24861 cat >conftest.$ac_ext <<_ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 #include <sys/types.h>
24868 #include <sys/param.h>
24873 #if BYTE_ORDER != BIG_ENDIAN
24881 rm -f conftest.$ac_objext
24882 if { (ac_try="$ac_compile"
24883 case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888 (eval "$ac_compile") 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); } &&
24895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24896 { (case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_try") 2>&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; } &&
24905 { ac_try='test -s conftest.$ac_objext'
24906 { (case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911 (eval "$ac_try") 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_c_bigendian=yes
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_cv_c_bigendian=no
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 # It does not; compile a test program.
24929 if test "$cross_compiling" = yes; then
24930 # try to guess the endianness by grepping values into an object file
24931 ac_cv_c_bigendian=unknown
24932 cat >conftest.$ac_ext <<_ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24939 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24940 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24941 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24942 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24943 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24947 _ascii (); _ebcdic ();
24952 rm -f conftest.$ac_objext
24953 if { (ac_try="$ac_compile"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24961 grep -v '^ *+' conftest.er1 >conftest.err
24963 cat conftest.err >&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } &&
24966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24967 { (case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24972 (eval "$ac_try") 2>&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); }; } &&
24976 { ac_try='test -s conftest.$ac_objext'
24977 { (case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_try") 2>&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; }; then
24986 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24987 ac_cv_c_bigendian=yes
24989 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24990 if test "$ac_cv_c_bigendian" = unknown; then
24991 ac_cv_c_bigendian=no
24993 # finding both strings is unlikely to happen, but who knows?
24994 ac_cv_c_bigendian=unknown
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 cat >conftest.$ac_ext <<_ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h. */
25012 $ac_includes_default
25017 /* Are we little or big endian? From Harbison&Steele. */
25021 char c[sizeof (long int)];
25024 return u.c[sizeof (long int) - 1] == 1;
25030 rm -f conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_link") 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25041 { (case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_try") 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_cv_c_bigendian=no
25052 echo "$as_me: program exited with status $ac_status" >&5
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ( exit $ac_status )
25057 ac_cv_c_bigendian=yes
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25068 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25069 case $ac_cv_c_bigendian in
25072 cat >>confdefs.h <<\_ACEOF
25073 #define WORDS_BIGENDIAN 1
25079 { { echo "$as_me:$LINENO: error: unknown endianness
25080 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25081 echo "$as_me: error: unknown endianness
25082 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25083 { (exit 1); exit 1; }; } ;;
25086 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25087 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25088 if test "${ac_cv_struct_tm+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 #include <sys/types.h>
25103 struct tm *tp; tp->tm_sec;
25108 rm -f conftest.$ac_objext
25109 if { (ac_try="$ac_compile"
25110 case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_compile") 2>conftest.er1
25117 grep -v '^ *+' conftest.er1 >conftest.err
25119 cat conftest.err >&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } &&
25122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25123 { (case "(($ac_try" in
25124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_try") 2>&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; } &&
25132 { ac_try='test -s conftest.$ac_objext'
25133 { (case "(($ac_try" in
25134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135 *) ac_try_echo=$ac_try;;
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138 (eval "$ac_try") 2>&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 ac_cv_struct_tm=time.h
25144 echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25147 ac_cv_struct_tm=sys/time.h
25150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25152 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25153 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25154 if test $ac_cv_struct_tm = sys/time.h; then
25156 cat >>confdefs.h <<\_ACEOF
25157 #define TM_IN_SYS_TIME 1
25163 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25164 # for constant arguments. Useless!
25165 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25166 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25167 if test "${ac_cv_working_alloca_h+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 #include <alloca.h>
25180 char *p = (char *) alloca (2 * sizeof (int));
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (ac_try="$ac_link"
25188 case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193 (eval "$ac_link") 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25201 { (case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_try") 2>&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest$ac_exeext'
25211 { (case "(($ac_try" in
25212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213 *) ac_try_echo=$ac_try;;
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_try") 2>&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25220 ac_cv_working_alloca_h=yes
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ac_cv_working_alloca_h=no
25228 rm -f core conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
25231 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25232 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25233 if test $ac_cv_working_alloca_h = yes; then
25235 cat >>confdefs.h <<\_ACEOF
25236 #define HAVE_ALLOCA_H 1
25241 { echo "$as_me:$LINENO: checking for alloca" >&5
25242 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25243 if test "${ac_cv_func_alloca_works+set}" = set; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 cat >conftest.$ac_ext <<_ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25253 # define alloca __builtin_alloca
25256 # include <malloc.h>
25257 # define alloca _alloca
25260 # include <alloca.h>
25265 # ifndef alloca /* predefined by HP cc +Olibcalls */
25276 char *p = (char *) alloca (1);
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (ac_try="$ac_link"
25284 case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_link") 2>conftest.er1
25291 grep -v '^ *+' conftest.er1 >conftest.err
25293 cat conftest.err >&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } &&
25296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25297 { (case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302 (eval "$ac_try") 2>&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; } &&
25306 { ac_try='test -s conftest$ac_exeext'
25307 { (case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_try") 2>&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
25316 ac_cv_func_alloca_works=yes
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_cv_func_alloca_works=no
25324 rm -f core conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25328 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25330 if test $ac_cv_func_alloca_works = yes; then
25332 cat >>confdefs.h <<\_ACEOF
25333 #define HAVE_ALLOCA 1
25337 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25338 # that cause trouble. Some versions do not even contain alloca or
25339 # contain a buggy version. If you still want to use their alloca,
25340 # use ar to extract alloca.o from them instead of compiling alloca.c.
25342 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25344 cat >>confdefs.h <<\_ACEOF
25349 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25350 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25351 if test "${ac_cv_os_cray+set}" = set; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25354 cat >conftest.$ac_ext <<_ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h. */
25360 #if defined CRAY && ! defined CRAY2
25367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25368 $EGREP "webecray" >/dev/null 2>&1; then
25376 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25377 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25378 if test $ac_cv_os_cray = yes; then
25379 for ac_func in _getb67 GETB67 getb67; do
25380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25394 #define $ac_func innocuous_$ac_func
25396 /* System header to define __stub macros and hopefully few prototypes,
25397 which can conflict with char $ac_func (); below.
25398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25399 <limits.h> exists even on freestanding compilers. */
25402 # include <limits.h>
25404 # include <assert.h>
25409 /* Override any GCC internal prototype to avoid an error.
25410 Use char because int might match the return type of a GCC
25411 builtin and then its argument prototype would still apply. */
25416 /* The GNU C library defines this for functions which it implements
25417 to always fail with ENOSYS. Some functions are actually named
25418 something starting with __ and the normal name is an alias. */
25419 #if defined __stub_$ac_func || defined __stub___$ac_func
25426 return $ac_func ();
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
25433 case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_link") 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } &&
25445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25446 { (case "(($ac_try" in
25447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448 *) ac_try_echo=$ac_try;;
25450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25451 (eval "$ac_try") 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest$ac_exeext'
25456 { (case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_try") 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 eval "$as_ac_var=yes"
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25470 eval "$as_ac_var=no"
25473 rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25476 ac_res=`eval echo '${'$as_ac_var'}'`
25477 { echo "$as_me:$LINENO: result: $ac_res" >&5
25478 echo "${ECHO_T}$ac_res" >&6; }
25479 if test `eval echo '${'$as_ac_var'}'` = yes; then
25481 cat >>confdefs.h <<_ACEOF
25482 #define CRAY_STACKSEG_END $ac_func
25491 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25492 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25493 if test "${ac_cv_c_stack_direction+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 if test "$cross_compiling" = yes; then
25497 ac_cv_c_stack_direction=0
25499 cat >conftest.$ac_ext <<_ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 $ac_includes_default
25507 find_stack_direction ()
25509 static char *addr = 0;
25514 return find_stack_direction ();
25517 return (&dummy > addr) ? 1 : -1;
25523 return find_stack_direction () < 0;
25526 rm -f conftest$ac_exeext
25527 if { (ac_try="$ac_link"
25528 case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533 (eval "$ac_link") 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25537 { (case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_try") 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 ac_cv_c_stack_direction=1
25548 echo "$as_me: program exited with status $ac_status" >&5
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25552 ( exit $ac_status )
25553 ac_cv_c_stack_direction=-1
25555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25560 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25561 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25563 cat >>confdefs.h <<_ACEOF
25564 #define STACK_DIRECTION $ac_cv_c_stack_direction
25570 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25571 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25572 if test "$ac_cv_prog_cc_c89" != no; then
25573 { echo "$as_me:$LINENO: result: yes" >&5
25574 echo "${ECHO_T}yes" >&6; }
25576 cat >>confdefs.h <<\_ACEOF
25577 #define PROTOTYPES 1
25581 cat >>confdefs.h <<\_ACEOF
25582 #define __PROTOTYPES 1
25586 { echo "$as_me:$LINENO: result: no" >&5
25587 echo "${ECHO_T}no" >&6; }
25590 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25591 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25592 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 ac_cv_func_setvbuf_reversed=no
25596 cat >conftest.$ac_ext <<_ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25604 int (setvbuf) (FILE *, int, char *, size_t);
25609 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25614 rm -f conftest.$ac_objext conftest$ac_exeext
25615 if { (ac_try="$ac_link"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_link") 2>conftest.er1
25623 grep -v '^ *+' conftest.er1 >conftest.err
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } &&
25628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25629 { (case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634 (eval "$ac_try") 2>&5
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); }; } &&
25638 { ac_try='test -s conftest$ac_exeext'
25639 { (case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_try") 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; }; then
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25656 int (setvbuf) (FILE *, int, char *, size_t);
25661 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (ac_try="$ac_link"
25668 case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_link") 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } &&
25680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25681 { (case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25686 (eval "$ac_try") 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
25690 { ac_try='test -s conftest$ac_exeext'
25691 { (case "(($ac_try" in
25692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693 *) ac_try_echo=$ac_try;;
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696 (eval "$ac_try") 2>&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; }; then
25700 # It compiles and links either way, so it must not be declared
25701 # with a prototype and most likely this is a K&R C compiler.
25703 if test "$cross_compiling" = yes; then
25704 : # Assume setvbuf is not reversed when cross-compiling.
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 $ac_includes_default
25716 /* This call has the arguments reversed.
25717 A reversed system may check and see that the address of buf
25718 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
25720 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25723 return 0; /* Non-reversed systems SEGV here. */
25728 rm -f conftest$ac_exeext
25729 if { (ac_try="$ac_link"
25730 case "(($ac_try" in
25731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732 *) ac_try_echo=$ac_try;;
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735 (eval "$ac_link") 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25739 { (case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25744 (eval "$ac_try") 2>&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; }; then
25748 ac_cv_func_setvbuf_reversed=yes
25750 echo "$as_me: program exited with status $ac_status" >&5
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25759 ac_cv_func_setvbuf_reversed=yes
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25767 rm -f core conftest.err conftest.$ac_objext \
25768 conftest$ac_exeext conftest.$ac_ext
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25776 rm -f core conftest.err conftest.$ac_objext \
25777 conftest$ac_exeext conftest.$ac_ext
25779 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25780 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25781 if test $ac_cv_func_setvbuf_reversed = yes; then
25783 cat >>confdefs.h <<\_ACEOF
25784 #define SETVBUF_REVERSED 1
25790 for ac_func in vprintf
25792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25806 #define $ac_func innocuous_$ac_func
25808 /* System header to define __stub macros and hopefully few prototypes,
25809 which can conflict with char $ac_func (); below.
25810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25811 <limits.h> exists even on freestanding compilers. */
25814 # include <limits.h>
25816 # include <assert.h>
25821 /* Override any GCC internal prototype to avoid an error.
25822 Use char because int might match the return type of a GCC
25823 builtin and then its argument prototype would still apply. */
25828 /* The GNU C library defines this for functions which it implements
25829 to always fail with ENOSYS. Some functions are actually named
25830 something starting with __ and the normal name is an alias. */
25831 #if defined __stub_$ac_func || defined __stub___$ac_func
25838 return $ac_func ();
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (ac_try="$ac_link"
25845 case "(($ac_try" in
25846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25847 *) ac_try_echo=$ac_try;;
25849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25850 (eval "$ac_link") 2>conftest.er1
25852 grep -v '^ *+' conftest.er1 >conftest.err
25854 cat conftest.err >&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } &&
25857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25858 { (case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_try") 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; } &&
25867 { ac_try='test -s conftest$ac_exeext'
25868 { (case "(($ac_try" in
25869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870 *) ac_try_echo=$ac_try;;
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873 (eval "$ac_try") 2>&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; }; then
25877 eval "$as_ac_var=yes"
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25882 eval "$as_ac_var=no"
25885 rm -f core conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
25888 ac_res=`eval echo '${'$as_ac_var'}'`
25889 { echo "$as_me:$LINENO: result: $ac_res" >&5
25890 echo "${ECHO_T}$ac_res" >&6; }
25891 if test `eval echo '${'$as_ac_var'}'` = yes; then
25892 cat >>confdefs.h <<_ACEOF
25893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25896 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25897 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25898 if test "${ac_cv_func__doprnt+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25909 #define _doprnt innocuous__doprnt
25911 /* System header to define __stub macros and hopefully few prototypes,
25912 which can conflict with char _doprnt (); below.
25913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914 <limits.h> exists even on freestanding compilers. */
25917 # include <limits.h>
25919 # include <assert.h>
25924 /* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25931 /* The GNU C library defines this for functions which it implements
25932 to always fail with ENOSYS. Some functions are actually named
25933 something starting with __ and the normal name is an alias. */
25934 #if defined __stub__doprnt || defined __stub____doprnt
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_link") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } &&
25960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25961 { (case "(($ac_try" in
25962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963 *) ac_try_echo=$ac_try;;
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966 (eval "$ac_try") 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; } &&
25970 { ac_try='test -s conftest$ac_exeext'
25971 { (case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_try") 2>&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; }; then
25980 ac_cv_func__doprnt=yes
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 ac_cv_func__doprnt=no
25988 rm -f core conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25991 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25992 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25993 if test $ac_cv_func__doprnt = yes; then
25995 cat >>confdefs.h <<\_ACEOF
25996 #define HAVE_DOPRNT 1
26013 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26029 #define $ac_func innocuous_$ac_func
26031 /* System header to define __stub macros and hopefully few prototypes,
26032 which can conflict with char $ac_func (); below.
26033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034 <limits.h> exists even on freestanding compilers. */
26037 # include <limits.h>
26039 # include <assert.h>
26044 /* Override any GCC internal prototype to avoid an error.
26045 Use char because int might match the return type of a GCC
26046 builtin and then its argument prototype would still apply. */
26051 /* The GNU C library defines this for functions which it implements
26052 to always fail with ENOSYS. Some functions are actually named
26053 something starting with __ and the normal name is an alias. */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26061 return $ac_func ();
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
26068 case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_link") 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
26080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26081 { (case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_try") 2>&5
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; } &&
26090 { ac_try='test -s conftest$ac_exeext'
26091 { (case "(($ac_try" in
26092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093 *) ac_try_echo=$ac_try;;
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096 (eval "$ac_try") 2>&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; }; then
26100 eval "$as_ac_var=yes"
26102 echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26105 eval "$as_ac_var=no"
26108 rm -f core conftest.err conftest.$ac_objext \
26109 conftest$ac_exeext conftest.$ac_ext
26111 ac_res=`eval echo '${'$as_ac_var'}'`
26112 { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26114 if test `eval echo '${'$as_ac_var'}'` = yes; then
26115 cat >>confdefs.h <<_ACEOF
26116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26126 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26132 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 cat >conftest.$ac_ext <<_ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h. */
26140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26142 #define $ac_func innocuous_$ac_func
26144 /* System header to define __stub macros and hopefully few prototypes,
26145 which can conflict with char $ac_func (); below.
26146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26147 <limits.h> exists even on freestanding compilers. */
26150 # include <limits.h>
26152 # include <assert.h>
26157 /* Override any GCC internal prototype to avoid an error.
26158 Use char because int might match the return type of a GCC
26159 builtin and then its argument prototype would still apply. */
26164 /* The GNU C library defines this for functions which it implements
26165 to always fail with ENOSYS. Some functions are actually named
26166 something starting with __ and the normal name is an alias. */
26167 #if defined __stub_$ac_func || defined __stub___$ac_func
26174 return $ac_func ();
26179 rm -f conftest.$ac_objext conftest$ac_exeext
26180 if { (ac_try="$ac_link"
26181 case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186 (eval "$ac_link") 2>conftest.er1
26188 grep -v '^ *+' conftest.er1 >conftest.err
26190 cat conftest.err >&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } &&
26193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26194 { (case "(($ac_try" in
26195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196 *) ac_try_echo=$ac_try;;
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199 (eval "$ac_try") 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; } &&
26203 { ac_try='test -s conftest$ac_exeext'
26204 { (case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_try") 2>&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 eval "$as_ac_var=yes"
26215 echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26218 eval "$as_ac_var=no"
26221 rm -f core conftest.err conftest.$ac_objext \
26222 conftest$ac_exeext conftest.$ac_ext
26224 ac_res=`eval echo '${'$as_ac_var'}'`
26225 { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26227 if test `eval echo '${'$as_ac_var'}'` = yes; then
26228 cat >>confdefs.h <<_ACEOF
26229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26237 for ac_func in modf sqrt
26239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26253 #define $ac_func innocuous_$ac_func
26255 /* System header to define __stub macros and hopefully few prototypes,
26256 which can conflict with char $ac_func (); below.
26257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26258 <limits.h> exists even on freestanding compilers. */
26261 # include <limits.h>
26263 # include <assert.h>
26268 /* Override any GCC internal prototype to avoid an error.
26269 Use char because int might match the return type of a GCC
26270 builtin and then its argument prototype would still apply. */
26275 /* The GNU C library defines this for functions which it implements
26276 to always fail with ENOSYS. Some functions are actually named
26277 something starting with __ and the normal name is an alias. */
26278 #if defined __stub_$ac_func || defined __stub___$ac_func
26285 return $ac_func ();
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (ac_try="$ac_link"
26292 case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_link") 2>conftest.er1
26299 grep -v '^ *+' conftest.er1 >conftest.err
26301 cat conftest.err >&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } &&
26304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26305 { (case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_try") 2>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); }; } &&
26314 { ac_try='test -s conftest$ac_exeext'
26315 { (case "(($ac_try" in
26316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317 *) ac_try_echo=$ac_try;;
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320 (eval "$ac_try") 2>&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 eval "$as_ac_var=yes"
26326 echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26329 eval "$as_ac_var=no"
26332 rm -f core conftest.err conftest.$ac_objext \
26333 conftest$ac_exeext conftest.$ac_ext
26335 ac_res=`eval echo '${'$as_ac_var'}'`
26336 { echo "$as_me:$LINENO: result: $ac_res" >&5
26337 echo "${ECHO_T}$ac_res" >&6; }
26338 if test `eval echo '${'$as_ac_var'}'` = yes; then
26339 cat >>confdefs.h <<_ACEOF
26340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26347 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26348 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26349 if test "${ac_cv_lib_m_sincos+set}" = set; then
26350 echo $ECHO_N "(cached) $ECHO_C" >&6
26352 ac_check_lib_save_LIBS=$LIBS
26354 cat >conftest.$ac_ext <<_ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h. */
26361 /* Override any GCC internal prototype to avoid an error.
26362 Use char because int might match the return type of a GCC
26363 builtin and then its argument prototype would still apply. */
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (ac_try="$ac_link"
26378 case "(($ac_try" in
26379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380 *) ac_try_echo=$ac_try;;
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383 (eval "$ac_link") 2>conftest.er1
26385 grep -v '^ *+' conftest.er1 >conftest.err
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } &&
26390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26391 { (case "(($ac_try" in
26392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26393 *) ac_try_echo=$ac_try;;
26395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26396 (eval "$ac_try") 2>&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; } &&
26400 { ac_try='test -s conftest$ac_exeext'
26401 { (case "(($ac_try" in
26402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403 *) ac_try_echo=$ac_try;;
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406 (eval "$ac_try") 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 ac_cv_lib_m_sincos=yes
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 ac_cv_lib_m_sincos=no
26418 rm -f core conftest.err conftest.$ac_objext \
26419 conftest$ac_exeext conftest.$ac_ext
26420 LIBS=$ac_check_lib_save_LIBS
26422 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26423 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26424 if test $ac_cv_lib_m_sincos = yes; then
26426 cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_SINCOS 1
26432 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26433 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26434 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 ac_check_lib_save_LIBS=$LIBS
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26446 /* Override any GCC internal prototype to avoid an error.
26447 Use char because int might match the return type of a GCC
26448 builtin and then its argument prototype would still apply. */
26461 rm -f conftest.$ac_objext conftest$ac_exeext
26462 if { (ac_try="$ac_link"
26463 case "(($ac_try" in
26464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465 *) ac_try_echo=$ac_try;;
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468 (eval "$ac_link") 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
26475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26476 { (case "(($ac_try" in
26477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478 *) ac_try_echo=$ac_try;;
26480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26481 (eval "$ac_try") 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try='test -s conftest$ac_exeext'
26486 { (case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_try") 2>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; }; then
26495 ac_cv_lib_m_sincosf=yes
26497 echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26500 ac_cv_lib_m_sincosf=no
26503 rm -f core conftest.err conftest.$ac_objext \
26504 conftest$ac_exeext conftest.$ac_ext
26505 LIBS=$ac_check_lib_save_LIBS
26507 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26508 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26509 if test $ac_cv_lib_m_sincosf = yes; then
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_SINCOSF 1
26517 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26518 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26519 if test "${ac_cv_lib_m_sinf+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26522 ac_check_lib_save_LIBS=$LIBS
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26531 /* Override any GCC internal prototype to avoid an error.
26532 Use char because int might match the return type of a GCC
26533 builtin and then its argument prototype would still apply. */
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } &&
26560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26561 { (case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566 (eval "$ac_try") 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest$ac_exeext'
26571 { (case "(($ac_try" in
26572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573 *) ac_try_echo=$ac_try;;
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576 (eval "$ac_try") 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; }; then
26580 ac_cv_lib_m_sinf=yes
26582 echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 ac_cv_lib_m_sinf=no
26588 rm -f core conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
26590 LIBS=$ac_check_lib_save_LIBS
26592 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26593 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26594 if test $ac_cv_lib_m_sinf = yes; then
26596 cat >>confdefs.h <<\_ACEOF
26597 #define HAVE_SINF 1
26602 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26603 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26604 if test "${ac_cv_lib_m_cosf+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26607 ac_check_lib_save_LIBS=$LIBS
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26616 /* Override any GCC internal prototype to avoid an error.
26617 Use char because int might match the return type of a GCC
26618 builtin and then its argument prototype would still apply. */
26631 rm -f conftest.$ac_objext conftest$ac_exeext
26632 if { (ac_try="$ac_link"
26633 case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638 (eval "$ac_link") 2>conftest.er1
26640 grep -v '^ *+' conftest.er1 >conftest.err
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
26645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26646 { (case "(($ac_try" in
26647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648 *) ac_try_echo=$ac_try;;
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651 (eval "$ac_try") 2>&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; } &&
26655 { ac_try='test -s conftest$ac_exeext'
26656 { (case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_try") 2>&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; }; then
26665 ac_cv_lib_m_cosf=yes
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ac_cv_lib_m_cosf=no
26673 rm -f core conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
26675 LIBS=$ac_check_lib_save_LIBS
26677 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26678 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26679 if test $ac_cv_lib_m_cosf = yes; then
26681 cat >>confdefs.h <<\_ACEOF
26682 #define HAVE_COSF 1
26687 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26688 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26689 if test "${ac_cv_lib_m_trunc+set}" = set; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26692 ac_check_lib_save_LIBS=$LIBS
26694 cat >conftest.$ac_ext <<_ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26701 /* Override any GCC internal prototype to avoid an error.
26702 Use char because int might match the return type of a GCC
26703 builtin and then its argument prototype would still apply. */
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (ac_try="$ac_link"
26718 case "(($ac_try" in
26719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720 *) ac_try_echo=$ac_try;;
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723 (eval "$ac_link") 2>conftest.er1
26725 grep -v '^ *+' conftest.er1 >conftest.err
26727 cat conftest.err >&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); } &&
26730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26731 { (case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_try") 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; } &&
26740 { ac_try='test -s conftest$ac_exeext'
26741 { (case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746 (eval "$ac_try") 2>&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750 ac_cv_lib_m_trunc=yes
26752 echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26755 ac_cv_lib_m_trunc=no
26758 rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
26760 LIBS=$ac_check_lib_save_LIBS
26762 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26763 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26764 if test $ac_cv_lib_m_trunc = yes; then
26766 cat >>confdefs.h <<\_ACEOF
26767 #define HAVE_TRUNC 1
26772 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26773 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26774 if test "${ac_cv_lib_m_exp10+set}" = set; then
26775 echo $ECHO_N "(cached) $ECHO_C" >&6
26777 ac_check_lib_save_LIBS=$LIBS
26779 cat >conftest.$ac_ext <<_ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h. */
26786 /* Override any GCC internal prototype to avoid an error.
26787 Use char because int might match the return type of a GCC
26788 builtin and then its argument prototype would still apply. */
26801 rm -f conftest.$ac_objext conftest$ac_exeext
26802 if { (ac_try="$ac_link"
26803 case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808 (eval "$ac_link") 2>conftest.er1
26810 grep -v '^ *+' conftest.er1 >conftest.err
26812 cat conftest.err >&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); } &&
26815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26816 { (case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_try") 2>&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; } &&
26825 { ac_try='test -s conftest$ac_exeext'
26826 { (case "(($ac_try" in
26827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828 *) ac_try_echo=$ac_try;;
26830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831 (eval "$ac_try") 2>&5
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; }; then
26835 ac_cv_lib_m_exp10=yes
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_cv_lib_m_exp10=no
26843 rm -f core conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
26845 LIBS=$ac_check_lib_save_LIBS
26847 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26848 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26849 if test $ac_cv_lib_m_exp10 = yes; then
26851 cat >>confdefs.h <<\_ACEOF
26852 #define HAVE_EXP10 1
26865 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26866 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26867 if test "${ac_cv_search_shm_open+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26870 ac_func_search_save_LIBS=$LIBS
26871 cat >conftest.$ac_ext <<_ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26878 /* Override any GCC internal prototype to avoid an error.
26879 Use char because int might match the return type of a GCC
26880 builtin and then its argument prototype would still apply. */
26888 return shm_open ();
26893 for ac_lib in '' rt; do
26894 if test -z "$ac_lib"; then
26895 ac_res="none required"
26898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (ac_try="$ac_link"
26902 case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907 (eval "$ac_link") 2>conftest.er1
26909 grep -v '^ *+' conftest.er1 >conftest.err
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26915 { (case "(($ac_try" in
26916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917 *) ac_try_echo=$ac_try;;
26919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26920 (eval "$ac_try") 2>&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; } &&
26924 { ac_try='test -s conftest$ac_exeext'
26925 { (case "(($ac_try" in
26926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927 *) ac_try_echo=$ac_try;;
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930 (eval "$ac_try") 2>&5
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); }; }; then
26934 ac_cv_search_shm_open=$ac_res
26936 echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26942 rm -f core conftest.err conftest.$ac_objext \
26944 if test "${ac_cv_search_shm_open+set}" = set; then
26948 if test "${ac_cv_search_shm_open+set}" = set; then
26951 ac_cv_search_shm_open=no
26953 rm conftest.$ac_ext
26954 LIBS=$ac_func_search_save_LIBS
26956 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26957 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26958 ac_res=$ac_cv_search_shm_open
26959 if test "$ac_res" != no; then
26960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26961 SHM_OPEN_LIBS="$LIBS"
26965 for ac_func in shm_open
26967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26973 cat >conftest.$ac_ext <<_ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h. */
26979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26981 #define $ac_func innocuous_$ac_func
26983 /* System header to define __stub macros and hopefully few prototypes,
26984 which can conflict with char $ac_func (); below.
26985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26986 <limits.h> exists even on freestanding compilers. */
26989 # include <limits.h>
26991 # include <assert.h>
26996 /* Override any GCC internal prototype to avoid an error.
26997 Use char because int might match the return type of a GCC
26998 builtin and then its argument prototype would still apply. */
27003 /* The GNU C library defines this for functions which it implements
27004 to always fail with ENOSYS. Some functions are actually named
27005 something starting with __ and the normal name is an alias. */
27006 #if defined __stub_$ac_func || defined __stub___$ac_func
27013 return $ac_func ();
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>conftest.er1
27027 grep -v '^ *+' conftest.er1 >conftest.err
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest$ac_exeext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 eval "$as_ac_var=yes"
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27057 eval "$as_ac_var=no"
27060 rm -f core conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
27063 ac_res=`eval echo '${'$as_ac_var'}'`
27064 { echo "$as_me:$LINENO: result: $ac_res" >&5
27065 echo "${ECHO_T}$ac_res" >&6; }
27066 if test `eval echo '${'$as_ac_var'}'` = yes; then
27067 cat >>confdefs.h <<_ACEOF
27068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27079 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27080 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27082 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27083 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27084 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27086 # libtool requires the quotes
27087 LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27088 { echo "$as_me:$LINENO: result: yes" >&5
27089 echo "${ECHO_T}yes" >&6; }
27091 { echo "$as_me:$LINENO: result: no" >&5
27092 echo "${ECHO_T}no" >&6; }
27099 { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27100 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27101 cat >conftest.$ac_ext <<_ACEOF
27103 #include <windows.h>
27104 int main (int argc, char **argv)
27108 char seg_name[1024];
27109 handle = CreateFileMapping(
27110 INVALID_HANDLE_VALUE, // use paging file
27111 NULL, // default security
27112 PAGE_READWRITE, // read/write access
27113 0, // max. object size
27114 size, // buffer size
27115 seg_name); // name of mapping object
27120 rm -f conftest.$ac_objext
27121 if { (ac_try="$ac_compile"
27122 case "(($ac_try" in
27123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124 *) ac_try_echo=$ac_try;;
27126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27127 (eval "$ac_compile") 2>conftest.er1
27129 grep -v '^ *+' conftest.er1 >conftest.err
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } &&
27134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27135 { (case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_try") 2>&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } &&
27144 { ac_try='test -s conftest.$ac_objext'
27145 { (case "(($ac_try" in
27146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147 *) ac_try_echo=$ac_try;;
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150 (eval "$ac_try") 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 HAVE_CREATEFILEMAPPING=yes
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_CREATEFILEMAPPING 1
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27164 HAVE_CREATEFILEMAPPING=no
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27170 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27173 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27174 HAVE_CREATEFILEMAPPING_TRUE=
27175 HAVE_CREATEFILEMAPPING_FALSE='#'
27177 HAVE_CREATEFILEMAPPING_TRUE='#'
27178 HAVE_CREATEFILEMAPPING_FALSE=
27188 for ac_header in sys/types.h fcntl.h io.h
27190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27197 ac_res=`eval echo '${'$as_ac_Header'}'`
27198 { echo "$as_me:$LINENO: result: $ac_res" >&5
27199 echo "${ECHO_T}$ac_res" >&6; }
27201 # Is the header compilable?
27202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27204 cat >conftest.$ac_ext <<_ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 $ac_includes_default
27211 #include <$ac_header>
27213 rm -f conftest.$ac_objext
27214 if { (ac_try="$ac_compile"
27215 case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_compile") 2>conftest.er1
27222 grep -v '^ *+' conftest.er1 >conftest.err
27224 cat conftest.err >&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
27227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27228 { (case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_try") 2>&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; } &&
27237 { ac_try='test -s conftest.$ac_objext'
27238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; }; then
27247 ac_header_compiler=yes
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_header_compiler=no
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27257 echo "${ECHO_T}$ac_header_compiler" >&6; }
27259 # Is the header present?
27260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 #include <$ac_header>
27270 if { (ac_try="$ac_cpp conftest.$ac_ext"
27271 case "(($ac_try" in
27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273 *) ac_try_echo=$ac_try;;
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27278 grep -v '^ *+' conftest.er1 >conftest.err
27280 cat conftest.err >&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } >/dev/null; then
27283 if test -s conftest.err; then
27284 ac_cpp_err=$ac_c_preproc_warn_flag
27285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27292 if test -z "$ac_cpp_err"; then
27293 ac_header_preproc=yes
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27298 ac_header_preproc=no
27301 rm -f conftest.err conftest.$ac_ext
27302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27303 echo "${ECHO_T}$ac_header_preproc" >&6; }
27305 # So? What about this header?
27306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27312 ac_header_preproc=yes
27315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 eval "$as_ac_Header=\$ac_header_preproc"
27337 ac_res=`eval echo '${'$as_ac_Header'}'`
27338 { echo "$as_me:$LINENO: result: $ac_res" >&5
27339 echo "${ECHO_T}$ac_res" >&6; }
27342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27343 cat >>confdefs.h <<_ACEOF
27344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27352 for ac_header in windows.h
27354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 ac_res=`eval echo '${'$as_ac_Header'}'`
27362 { echo "$as_me:$LINENO: result: $ac_res" >&5
27363 echo "${ECHO_T}$ac_res" >&6; }
27365 # Is the header compilable?
27366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27374 $ac_includes_default
27375 #include <$ac_header>
27377 rm -f conftest.$ac_objext
27378 if { (ac_try="$ac_compile"
27379 case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384 (eval "$ac_compile") 2>conftest.er1
27386 grep -v '^ *+' conftest.er1 >conftest.err
27388 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } &&
27391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27392 { (case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_try") 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; } &&
27401 { ac_try='test -s conftest.$ac_objext'
27402 { (case "(($ac_try" in
27403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_try") 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 ac_header_compiler=yes
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 ac_header_compiler=no
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27421 echo "${ECHO_T}$ac_header_compiler" >&6; }
27423 # Is the header present?
27424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27432 #include <$ac_header>
27434 if { (ac_try="$ac_cpp conftest.$ac_ext"
27435 case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } >/dev/null; then
27447 if test -s conftest.err; then
27448 ac_cpp_err=$ac_c_preproc_warn_flag
27449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27456 if test -z "$ac_cpp_err"; then
27457 ac_header_preproc=yes
27459 echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27462 ac_header_preproc=no
27465 rm -f conftest.err conftest.$ac_ext
27466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27467 echo "${ECHO_T}$ac_header_preproc" >&6; }
27469 # So? What about this header?
27470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27476 ac_header_preproc=yes
27479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27499 eval "$as_ac_Header=\$ac_header_preproc"
27501 ac_res=`eval echo '${'$as_ac_Header'}'`
27502 { echo "$as_me:$LINENO: result: $ac_res" >&5
27503 echo "${ECHO_T}$ac_res" >&6; }
27506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27507 cat >>confdefs.h <<_ACEOF
27508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27517 for ac_header in winioctl.h winbase.h
27519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 cat >conftest.$ac_ext <<_ACEOF
27528 cat confdefs.h >>conftest.$ac_ext
27529 cat >>conftest.$ac_ext <<_ACEOF
27530 /* end confdefs.h. */
27533 #include <windows.h>
27537 #include <$ac_header>
27539 rm -f conftest.$ac_objext
27540 if { (ac_try="$ac_compile"
27541 case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_compile") 2>conftest.er1
27548 grep -v '^ *+' conftest.er1 >conftest.err
27550 cat conftest.err >&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } &&
27553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554 { (case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_try") 2>&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; } &&
27563 { ac_try='test -s conftest.$ac_objext'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 eval "$as_ac_Header=yes"
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 eval "$as_ac_Header=no"
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 ac_res=`eval echo '${'$as_ac_Header'}'`
27584 { echo "$as_me:$LINENO: result: $ac_res" >&5
27585 echo "${ECHO_T}$ac_res" >&6; }
27586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27587 cat >>confdefs.h <<_ACEOF
27588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27606 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27612 echo $ECHO_N "(cached) $ECHO_C" >&6
27614 cat >conftest.$ac_ext <<_ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h. */
27620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27622 #define $ac_func innocuous_$ac_func
27624 /* System header to define __stub macros and hopefully few prototypes,
27625 which can conflict with char $ac_func (); below.
27626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27627 <limits.h> exists even on freestanding compilers. */
27630 # include <limits.h>
27632 # include <assert.h>
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27644 /* The GNU C library defines this for functions which it implements
27645 to always fail with ENOSYS. Some functions are actually named
27646 something starting with __ and the normal name is an alias. */
27647 #if defined __stub_$ac_func || defined __stub___$ac_func
27654 return $ac_func ();
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (ac_try="$ac_link"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_link") 2>conftest.er1
27668 grep -v '^ *+' conftest.er1 >conftest.err
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
27693 eval "$as_ac_var=yes"
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27698 eval "$as_ac_var=no"
27701 rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
27704 ac_res=`eval echo '${'$as_ac_var'}'`
27705 { echo "$as_me:$LINENO: result: $ac_res" >&5
27706 echo "${ECHO_T}$ac_res" >&6; }
27707 if test `eval echo '${'$as_ac_var'}'` = yes; then
27708 cat >>confdefs.h <<_ACEOF
27709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27715 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27716 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27717 if test "${ac_cv_type_struct_timezone+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27727 #if HAVE_SYS_TYPES_H
27728 # include <sys/types.h>
27730 #if TIME_WITH_SYS_TIME
27731 # include <sys/time.h>
27734 # if HAVE_SYS_TIME_H
27735 # include <sys/time.h>
27742 typedef struct timezone ac__type_new_;
27746 if ((ac__type_new_ *) 0)
27748 if (sizeof (ac__type_new_))
27754 rm -f conftest.$ac_objext
27755 if { (ac_try="$ac_compile"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_compile") 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest.$ac_objext'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
27788 ac_cv_type_struct_timezone=yes
27790 echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27793 ac_cv_type_struct_timezone=no
27796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27799 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27800 if test $ac_cv_type_struct_timezone = yes; then
27802 cat >>confdefs.h <<_ACEOF
27803 #define HAVE_STRUCT_TIMEZONE 1
27808 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27809 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27810 if test "${ac_cv_type_struct_timespec+set}" = set; then
27811 echo $ECHO_N "(cached) $ECHO_C" >&6
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27820 #if HAVE_SYS_TYPES_H
27821 # include <sys/types.h>
27823 #if TIME_WITH_SYS_TIME
27824 # include <sys/time.h>
27827 # if HAVE_SYS_TIME_H
27828 # include <sys/time.h>
27835 typedef struct timespec ac__type_new_;
27839 if ((ac__type_new_ *) 0)
27841 if (sizeof (ac__type_new_))
27847 rm -f conftest.$ac_objext
27848 if { (ac_try="$ac_compile"
27849 case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_compile") 2>conftest.er1
27856 grep -v '^ *+' conftest.er1 >conftest.err
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } &&
27861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27862 { (case "(($ac_try" in
27863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27864 *) ac_try_echo=$ac_try;;
27866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27867 (eval "$ac_try") 2>&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } &&
27871 { ac_try='test -s conftest.$ac_objext'
27872 { (case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_try") 2>&5
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
27881 ac_cv_type_struct_timespec=yes
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27886 ac_cv_type_struct_timespec=no
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27891 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27892 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27893 if test $ac_cv_type_struct_timespec = yes; then
27895 cat >>confdefs.h <<_ACEOF
27896 #define HAVE_STRUCT_TIMESPEC 1
27901 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27902 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27903 if test "${ac_cv_type_ssize_t+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27906 cat >conftest.$ac_ext <<_ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h. */
27913 #if HAVE_SYS_TYPES_H
27914 # include <sys/types.h>
27916 #if TIME_WITH_SYS_TIME
27917 # include <sys/time.h>
27920 # if HAVE_SYS_TIME_H
27921 # include <sys/time.h>
27928 typedef ssize_t ac__type_new_;
27932 if ((ac__type_new_ *) 0)
27934 if (sizeof (ac__type_new_))
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_compile") 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955 { (case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960 (eval "$ac_try") 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest.$ac_objext'
27965 { (case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_try") 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 ac_cv_type_ssize_t=yes
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 ac_cv_type_ssize_t=no
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27985 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27986 if test $ac_cv_type_ssize_t = yes; then
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_SSIZE_T 1
27999 for ac_func in getopt usleep gettimeofday
28001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28015 #define $ac_func innocuous_$ac_func
28017 /* System header to define __stub macros and hopefully few prototypes,
28018 which can conflict with char $ac_func (); below.
28019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020 <limits.h> exists even on freestanding compilers. */
28023 # include <limits.h>
28025 # include <assert.h>
28030 /* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
28037 /* The GNU C library defines this for functions which it implements
28038 to always fail with ENOSYS. Some functions are actually named
28039 something starting with __ and the normal name is an alias. */
28040 #if defined __stub_$ac_func || defined __stub___$ac_func
28047 return $ac_func ();
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 eval "$as_ac_var=yes"
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 eval "$as_ac_var=no"
28094 rm -f core conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
28097 ac_res=`eval echo '${'$as_ac_var'}'`
28098 { echo "$as_me:$LINENO: result: $ac_res" >&5
28099 echo "${ECHO_T}$ac_res" >&6; }
28100 if test `eval echo '${'$as_ac_var'}'` = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28106 case " $LIBOBJS " in
28107 *" $ac_func.$ac_objext "* ) ;;
28108 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28118 { echo "$as_me:$LINENO: checking for Sleep" >&5
28119 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28120 cat >conftest.$ac_ext <<_ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28126 #include <windows.h>
28127 #include <winbase.h>
28137 rm -f conftest.$ac_objext conftest$ac_exeext
28138 if { (ac_try="$ac_link"
28139 case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_link") 2>conftest.er1
28146 grep -v '^ *+' conftest.er1 >conftest.err
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } &&
28151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28152 { (case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157 (eval "$ac_try") 2>&5
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; } &&
28161 { ac_try='test -s conftest$ac_exeext'
28162 { (case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167 (eval "$ac_try") 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); }; }; then
28172 cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_SSLEEP 1
28176 { echo "$as_me:$LINENO: result: yes" >&5
28177 echo "${ECHO_T}yes" >&6; }
28179 echo "$as_me: failed program was:" >&5
28180 sed 's/^/| /' conftest.$ac_ext >&5
28182 { echo "$as_me:$LINENO: result: no" >&5
28183 echo "${ECHO_T}no" >&6; }
28187 rm -f core conftest.err conftest.$ac_objext \
28188 conftest$ac_exeext conftest.$ac_ext
28190 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28191 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28192 cat >conftest.$ac_ext <<_ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h. */
28198 #include <sys/types.h>
28199 #include <sys/stat.h>
28211 rm -f conftest.$ac_objext
28212 if { (ac_try="$ac_compile"
28213 case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_compile") 2>conftest.er1
28220 grep -v '^ *+' conftest.er1 >conftest.err
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226 { (case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_try") 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
28236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 { echo "$as_me:$LINENO: result: yes" >&5
28246 echo "${ECHO_T}yes" >&6; }
28248 cat >>confdefs.h <<\_ACEOF
28249 #define MKDIR_TAKES_ONE_ARG
28253 echo "$as_me: failed program was:" >&5
28254 sed 's/^/| /' conftest.$ac_ext >&5
28256 { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28269 # Extract the first word of "dot", so it can be a program name with args.
28270 set dummy dot; ac_word=$2
28271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28273 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28276 if test -n "$HAVE_DOT"; then
28277 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28280 for as_dir in $PATH
28283 test -z "$as_dir" && as_dir=.
28284 for ac_exec_ext in '' $ac_executable_extensions; do
28285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28286 ac_cv_prog_HAVE_DOT="YES"
28287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28294 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28297 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28298 if test -n "$HAVE_DOT"; then
28299 { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28300 echo "${ECHO_T}$HAVE_DOT" >&6; }
28302 { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28311 if test -z "$PKG_CONFIG"; then
28312 # Extract the first word of "pkg-config", so it can be a program name with args.
28313 set dummy pkg-config; ac_word=$2
28314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 case $PKG_CONFIG in
28321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28325 for as_dir in $PATH
28328 test -z "$as_dir" && as_dir=.
28329 for ac_exec_ext in '' $ac_executable_extensions; do
28330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28339 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28344 if test -n "$PKG_CONFIG"; then
28345 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28346 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28348 { echo "$as_me:$LINENO: result: no" >&5
28349 echo "${ECHO_T}no" >&6; }
28355 if test "$PKG_CONFIG" = "no" ; then
28356 echo "*** The pkg-config script could not be found. Make sure it is"
28357 echo "*** in your path, or set the PKG_CONFIG environment variable"
28358 echo "*** to the full path to pkg-config."
28359 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28361 if test -z "$PKG_CONFIG_PATH"; then
28362 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28365 PKG_CONFIG_MIN_VERSION=0.9.0
28366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28367 { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28368 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28370 if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28371 { echo "$as_me:$LINENO: result: yes" >&5
28372 echo "${ECHO_T}yes" >&6; }
28375 { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28376 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28377 FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28378 { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28379 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28381 { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28382 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28383 FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28384 { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28385 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28387 { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28388 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28389 FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28390 { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28391 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28395 ## If we have a custom action on failure, don't print errors, but
28396 ## do set a variable so people can do so.
28397 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28398 echo $FFTW3F_PKG_ERRORS
28405 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28406 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28410 if test $succeeded = yes; then
28413 { { 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
28414 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;}
28415 { (exit 1); exit 1; }; }
28421 # Check whether --enable-doxygen was given.
28422 if test "${enable_doxygen+set}" = set; then
28423 enableval=$enable_doxygen;
28426 # Check whether --enable-dot was given.
28427 if test "${enable_dot+set}" = set; then
28428 enableval=$enable_dot;
28431 # Check whether --enable-html-docs was given.
28432 if test "${enable_html_docs+set}" = set; then
28433 enableval=$enable_html_docs;
28435 enable_html_docs=yes
28438 # Check whether --enable-latex-docs was given.
28439 if test "${enable_latex_docs+set}" = set; then
28440 enableval=$enable_latex_docs;
28442 enable_latex_docs=no
28446 if test "x$enable_doxygen" = xyes; then
28447 # Extract the first word of "doxygen", so it can be a program name with args.
28448 set dummy doxygen; ac_word=$2
28449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28451 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28460 for as_dir in $PATH
28463 test -z "$as_dir" && as_dir=.
28464 for ac_exec_ext in '' $ac_executable_extensions; do
28465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28466 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28477 DOXYGEN=$ac_cv_path_DOXYGEN
28478 if test -n "$DOXYGEN"; then
28479 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28480 echo "${ECHO_T}$DOXYGEN" >&6; }
28482 { echo "$as_me:$LINENO: result: no" >&5
28483 echo "${ECHO_T}no" >&6; }
28487 if test x$DOXYGEN = x; then
28488 if test "x$enable_doxygen" = xyes; then
28489 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28490 echo "$as_me: error: could not find doxygen" >&2;}
28491 { (exit 1); exit 1; }; }
28498 # Extract the first word of "dot", so it can be a program name with args.
28499 set dummy dot; ac_word=$2
28500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28502 if test "${ac_cv_path_DOT+set}" = set; then
28503 echo $ECHO_N "(cached) $ECHO_C" >&6
28507 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28511 for as_dir in $PATH
28514 test -z "$as_dir" && as_dir=.
28515 for ac_exec_ext in '' $ac_executable_extensions; do
28516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28517 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28528 DOT=$ac_cv_path_DOT
28529 if test -n "$DOT"; then
28530 { echo "$as_me:$LINENO: result: $DOT" >&5
28531 echo "${ECHO_T}$DOT" >&6; }
28533 { echo "$as_me:$LINENO: result: no" >&5
28534 echo "${ECHO_T}no" >&6; }
28545 if test x$enable_doc = xyes; then
28554 if test x$DOT = x; then
28555 if test "x$enable_dot" = xyes; then
28556 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28557 echo "$as_me: error: could not find dot" >&2;}
28558 { (exit 1); exit 1; }; }
28572 # Check whether --with-md-cpu was given.
28573 if test "${with_md_cpu+set}" = set; then
28574 withval=$with_md_cpu; cf_with_md_cpu="$withval"
28576 cf_with_md_cpu="$host_cpu"
28580 { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28581 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28582 case "$cf_with_md_cpu" in
28583 x86 | i[3-7]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
28584 x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
28585 # sparc) MD_CPU=sparc ;;
28586 *) MD_CPU=generic ;;
28588 { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28589 echo "${ECHO_T}$MD_CPU" >&6; }
28595 if test "$MD_CPU" = "x86"; then
28597 MD_CPU_x86_FALSE='#'
28599 MD_CPU_x86_TRUE='#'
28605 if test "$MD_SUBCPU" = "x86_64"; then
28606 MD_SUBCPU_x86_64_TRUE=
28607 MD_SUBCPU_x86_64_FALSE='#'
28609 MD_SUBCPU_x86_64_TRUE='#'
28610 MD_SUBCPU_x86_64_FALSE=
28615 if test "$MD_CPU" = "generic"; then
28616 MD_CPU_generic_TRUE=
28617 MD_CPU_generic_FALSE='#'
28619 MD_CPU_generic_TRUE='#'
28620 MD_CPU_generic_FALSE=
28628 # Check whether --with-cppunit-prefix was given.
28629 if test "${with_cppunit_prefix+set}" = set; then
28630 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28632 cppunit_config_prefix=""
28636 # Check whether --with-cppunit-exec-prefix was given.
28637 if test "${with_cppunit_exec_prefix+set}" = set; then
28638 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28640 cppunit_config_exec_prefix=""
28644 if test x$cppunit_config_exec_prefix != x ; then
28645 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28646 if test x${CPPUNIT_CONFIG+set} != xset ; then
28647 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28650 if test x$cppunit_config_prefix != x ; then
28651 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28652 if test x${CPPUNIT_CONFIG+set} != xset ; then
28653 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28657 # Extract the first word of "cppunit-config", so it can be a program name with args.
28658 set dummy cppunit-config; ac_word=$2
28659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28661 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28664 case $CPPUNIT_CONFIG in
28666 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28670 for as_dir in $PATH
28673 test -z "$as_dir" && as_dir=.
28674 for ac_exec_ext in '' $ac_executable_extensions; do
28675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28676 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28684 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28688 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28689 if test -n "$CPPUNIT_CONFIG"; then
28690 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28691 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28693 { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28698 cppunit_version_min=1.9.14
28700 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28701 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28703 if test "$CPPUNIT_CONFIG" = "no" ; then
28706 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28707 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28708 cppunit_version=`$CPPUNIT_CONFIG --version`
28710 cppunit_major_version=`echo $cppunit_version | \
28711 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28712 cppunit_minor_version=`echo $cppunit_version | \
28713 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28714 cppunit_micro_version=`echo $cppunit_version | \
28715 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28717 cppunit_major_min=`echo $cppunit_version_min | \
28718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28719 cppunit_minor_min=`echo $cppunit_version_min | \
28720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28721 cppunit_micro_min=`echo $cppunit_version_min | \
28722 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28724 cppunit_version_proper=`expr \
28725 $cppunit_major_version \> $cppunit_major_min \| \
28726 $cppunit_major_version \= $cppunit_major_min \& \
28727 $cppunit_minor_version \> $cppunit_minor_min \| \
28728 $cppunit_major_version \= $cppunit_major_min \& \
28729 $cppunit_minor_version \= $cppunit_minor_min \& \
28730 $cppunit_micro_version \>= $cppunit_micro_min `
28732 if test "$cppunit_version_proper" = "1" ; then
28733 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28734 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28736 { echo "$as_me:$LINENO: result: no" >&5
28737 echo "${ECHO_T}no" >&6; }
28742 if test "x$no_cppunit" = x ; then
28747 { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit. Stop" >&5
28748 echo "$as_me: error: GNU Radio requires cppunit. Stop" >&2;}
28749 { (exit 1); exit 1; }; }
28756 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28762 ac_cpp='$CXXCPP $CPPFLAGS'
28763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28767 gr_boost_include_dir=
28769 # Check whether --with-boost-include-dir was given.
28770 if test "${with_boost_include_dir+set}" = set; then
28771 withval=$with_boost_include_dir;
28772 # "yes" and "no" are bogus answers
28773 if test x"$with_boost_include_dir" = xyes ||
28774 test x"$with_boost_include_dir" = xno; then
28775 gr_boost_include_dir=
28777 gr_boost_include_dir=$with_boost_include_dir
28782 echo "gr_boost_include_dir = $gr_boost_include_dir"
28783 if test x$gr_boost_include_dir != x; then
28785 # If the user specified a directory, then we use it
28787 OLD_CPPFLAGS=$CPPFLAGS
28788 CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28789 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28790 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28791 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28792 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28793 echo $ECHO_N "(cached) $ECHO_C" >&6
28795 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28796 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28798 # Is the header compilable?
28799 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28800 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28801 cat >conftest.$ac_ext <<_ACEOF
28804 cat confdefs.h >>conftest.$ac_ext
28805 cat >>conftest.$ac_ext <<_ACEOF
28806 /* end confdefs.h. */
28807 $ac_includes_default
28808 #include <boost/shared_ptr.hpp>
28810 rm -f conftest.$ac_objext
28811 if { (ac_try="$ac_compile"
28812 case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_compile") 2>conftest.er1
28819 grep -v '^ *+' conftest.er1 >conftest.err
28821 cat conftest.err >&5
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); } &&
28824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28825 { (case "(($ac_try" in
28826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827 *) ac_try_echo=$ac_try;;
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830 (eval "$ac_try") 2>&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; } &&
28834 { ac_try='test -s conftest.$ac_objext'
28835 { (case "(($ac_try" in
28836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837 *) ac_try_echo=$ac_try;;
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840 (eval "$ac_try") 2>&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; }; then
28844 ac_header_compiler=yes
28846 echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28849 ac_header_compiler=no
28852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28854 echo "${ECHO_T}$ac_header_compiler" >&6; }
28856 # Is the header present?
28857 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28858 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 #include <boost/shared_ptr.hpp>
28867 if { (ac_try="$ac_cpp conftest.$ac_ext"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28875 grep -v '^ *+' conftest.er1 >conftest.err
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } >/dev/null; then
28880 if test -s conftest.err; then
28881 ac_cpp_err=$ac_cxx_preproc_warn_flag
28882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28889 if test -z "$ac_cpp_err"; then
28890 ac_header_preproc=yes
28892 echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28895 ac_header_preproc=no
28898 rm -f conftest.err conftest.$ac_ext
28899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28900 echo "${ECHO_T}$ac_header_preproc" >&6; }
28902 # So? What about this header?
28903 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28905 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28906 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28908 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28909 ac_header_preproc=yes
28912 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28913 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
28915 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28917 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
28919 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28921 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28923 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28927 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28928 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28929 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28932 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28934 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28935 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28938 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28939 BOOST_CFLAGS="-I$gr_boost_include_dir"
28941 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28942 Try using --with-boost-include-dir=<path>,
28943 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28944 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28945 Try using --with-boost-include-dir=<path>,
28946 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28947 { (exit 1); exit 1; }; }
28951 CPPFLAGS=$OLD_CPPFLAGS
28954 # Otherwise we check in the default places
28956 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28957 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28958 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28959 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28963 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28965 # Is the header compilable?
28966 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28967 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28968 cat >conftest.$ac_ext <<_ACEOF
28971 cat confdefs.h >>conftest.$ac_ext
28972 cat >>conftest.$ac_ext <<_ACEOF
28973 /* end confdefs.h. */
28974 $ac_includes_default
28975 #include <boost/shared_ptr.hpp>
28977 rm -f conftest.$ac_objext
28978 if { (ac_try="$ac_compile"
28979 case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_compile") 2>conftest.er1
28986 grep -v '^ *+' conftest.er1 >conftest.err
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28992 { (case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_try") 2>&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; } &&
29001 { ac_try='test -s conftest.$ac_objext'
29002 { (case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_try") 2>&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29011 ac_header_compiler=yes
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 ac_header_compiler=no
29019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29021 echo "${ECHO_T}$ac_header_compiler" >&6; }
29023 # Is the header present?
29024 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29025 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29026 cat >conftest.$ac_ext <<_ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h. */
29032 #include <boost/shared_ptr.hpp>
29034 if { (ac_try="$ac_cpp conftest.$ac_ext"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } >/dev/null; then
29047 if test -s conftest.err; then
29048 ac_cpp_err=$ac_cxx_preproc_warn_flag
29049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29056 if test -z "$ac_cpp_err"; then
29057 ac_header_preproc=yes
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29062 ac_header_preproc=no
29065 rm -f conftest.err conftest.$ac_ext
29066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29067 echo "${ECHO_T}$ac_header_preproc" >&6; }
29069 # So? What about this header?
29070 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29072 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29073 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29074 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29075 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29076 ac_header_preproc=yes
29079 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29080 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29082 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29084 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29086 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29088 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29090 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29094 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29095 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29096 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29097 echo $ECHO_N "(cached) $ECHO_C" >&6
29099 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29101 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29102 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29105 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29108 # Nope, look for latest version if any in $prefix/include/boost-*
29110 # Wipe out cached value. KLUDGE: AC should have API for this
29111 unset ac_cv_header_boost_shared_ptr_hpp
29113 boost_last_match(){
29114 #echo "boost_last_match: [$]*"
29117 if test "$pattern" = "$1"
29121 shift `expr $# - 1`
29124 #echo "LM(1)='[$]LM'"
29127 pattern="/usr/local/include/boost-*"
29128 boost_last_match "$pattern" $pattern
29129 #echo "LM(2)='$LM'"
29131 OLD_CPPFLAGS=$CPP_FLAGS
29132 CPPFLAGS="$CPPFLAGS -I$LM"
29133 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29134 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29135 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29136 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29140 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29142 # Is the header compilable?
29143 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29144 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29145 cat >conftest.$ac_ext <<_ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h. */
29151 $ac_includes_default
29152 #include <boost/shared_ptr.hpp>
29154 rm -f conftest.$ac_objext
29155 if { (ac_try="$ac_compile"
29156 case "(($ac_try" in
29157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158 *) ac_try_echo=$ac_try;;
29160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161 (eval "$ac_compile") 2>conftest.er1
29163 grep -v '^ *+' conftest.er1 >conftest.err
29165 cat conftest.err >&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); } &&
29168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29169 { (case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_try") 2>&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; } &&
29178 { ac_try='test -s conftest.$ac_objext'
29179 { (case "(($ac_try" in
29180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181 *) ac_try_echo=$ac_try;;
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184 (eval "$ac_try") 2>&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
29188 ac_header_compiler=yes
29190 echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29193 ac_header_compiler=no
29196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29198 echo "${ECHO_T}$ac_header_compiler" >&6; }
29200 # Is the header present?
29201 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29202 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29203 cat >conftest.$ac_ext <<_ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h. */
29209 #include <boost/shared_ptr.hpp>
29211 if { (ac_try="$ac_cpp conftest.$ac_ext"
29212 case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29219 grep -v '^ *+' conftest.er1 >conftest.err
29221 cat conftest.err >&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); } >/dev/null; then
29224 if test -s conftest.err; then
29225 ac_cpp_err=$ac_cxx_preproc_warn_flag
29226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29233 if test -z "$ac_cpp_err"; then
29234 ac_header_preproc=yes
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29239 ac_header_preproc=no
29242 rm -f conftest.err conftest.$ac_ext
29243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29244 echo "${ECHO_T}$ac_header_preproc" >&6; }
29246 # So? What about this header?
29247 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29249 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29250 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29251 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29252 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29253 ac_header_preproc=yes
29256 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29257 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29258 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29259 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29261 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29263 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29265 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29267 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29271 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29272 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29273 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29274 echo $ECHO_N "(cached) $ECHO_C" >&6
29276 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29278 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29279 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29282 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29283 BOOST_CFLAGS="-I$LM"
29285 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29286 Try using --with-boost-include-dir=<path>,
29287 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29288 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29289 Try using --with-boost-include-dir=<path>,
29290 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29291 { (exit 1); exit 1; }; }
29295 CPPFLAGS=$OLD_CPPFLAGS
29302 unset boost_last_match LM
29304 ac_cpp='$CPP $CPPFLAGS'
29305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29315 # Check whether --enable-all-components was given.
29316 if test "${enable_all_components+set}" = set; then
29317 enableval=$enable_all_components;
29321 build_dirs="config"
29324 # Check whether --enable-gnuradio-core was given.
29325 if test "${enable_gnuradio_core+set}" = set; then
29326 enableval=$enable_gnuradio_core;
29328 enable_gnuradio_core=$enable_all_components
29333 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"
29338 if test x$passed = xno; then
29339 skipped_dirs="$skipped_dirs gnuradio-core"
29340 if test x$enable_gnuradio_core = xyes; then
29341 { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29342 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29343 { (exit 1); exit 1; }; }
29345 { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29346 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29349 if test x$enable_gnuradio_core != xno; then
29351 ac_config_commands="$ac_config_commands run_tests_core"
29354 ac_config_commands="$ac_config_commands swig_deps"
29357 build_dirs="$build_dirs gnuradio-core"
29358 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29359 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29361 skipped_dirs="$skipped_dirs gnuradio-core"
29362 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29363 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29370 # Check whether --enable-gnuradio-examples was given.
29371 if test "${enable_gnuradio_examples+set}" = set; then
29372 enableval=$enable_gnuradio_examples;
29374 enable_gnuradio_examples=$enable_all_components
29379 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"
29384 if test x$passed = xno; then
29385 skipped_dirs="$skipped_dirs gnuradio-examples"
29386 if test x$enable_gnuradio_examples = xyes; then
29387 { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29388 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29389 { (exit 1); exit 1; }; }
29391 { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29392 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29395 if test x$enable_gnuradio_examples != xno; then
29397 build_dirs="$build_dirs gnuradio-examples"
29398 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29399 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29401 skipped_dirs="$skipped_dirs gnuradio-examples"
29402 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29403 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29408 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29409 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29410 if test "${ac_cv_header_stat_broken+set}" = set; then
29411 echo $ECHO_N "(cached) $ECHO_C" >&6
29413 cat >conftest.$ac_ext <<_ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h. */
29419 #include <sys/types.h>
29420 #include <sys/stat.h>
29422 #if defined S_ISBLK && defined S_IFDIR
29423 # if S_ISBLK (S_IFDIR)
29428 #if defined S_ISBLK && defined S_IFCHR
29429 # if S_ISBLK (S_IFCHR)
29434 #if defined S_ISLNK && defined S_IFREG
29435 # if S_ISLNK (S_IFREG)
29440 #if defined S_ISSOCK && defined S_IFREG
29441 # if S_ISSOCK (S_IFREG)
29447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29448 $EGREP "You lose" >/dev/null 2>&1; then
29449 ac_cv_header_stat_broken=yes
29451 ac_cv_header_stat_broken=no
29456 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29457 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29458 if test $ac_cv_header_stat_broken = yes; then
29460 cat >>confdefs.h <<\_ACEOF
29461 #define STAT_MACROS_BROKEN 1
29468 for ac_header in fcntl.h
29470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 ac_res=`eval echo '${'$as_ac_Header'}'`
29478 { echo "$as_me:$LINENO: result: $ac_res" >&5
29479 echo "${ECHO_T}$ac_res" >&6; }
29481 # Is the header compilable?
29482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29484 cat >conftest.$ac_ext <<_ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h. */
29490 $ac_includes_default
29491 #include <$ac_header>
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
29495 case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_compile") 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
29507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_try") 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; } &&
29517 { ac_try='test -s conftest.$ac_objext'
29518 { (case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_try") 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; }; then
29527 ac_header_compiler=yes
29529 echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29532 ac_header_compiler=no
29535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29537 echo "${ECHO_T}$ac_header_compiler" >&6; }
29539 # Is the header present?
29540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29542 cat >conftest.$ac_ext <<_ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h. */
29548 #include <$ac_header>
29550 if { (ac_try="$ac_cpp conftest.$ac_ext"
29551 case "(($ac_try" in
29552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553 *) ac_try_echo=$ac_try;;
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29558 grep -v '^ *+' conftest.er1 >conftest.err
29560 cat conftest.err >&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); } >/dev/null; then
29563 if test -s conftest.err; then
29564 ac_cpp_err=$ac_c_preproc_warn_flag
29565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29572 if test -z "$ac_cpp_err"; then
29573 ac_header_preproc=yes
29575 echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29578 ac_header_preproc=no
29581 rm -f conftest.err conftest.$ac_ext
29582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29583 echo "${ECHO_T}$ac_header_preproc" >&6; }
29585 # So? What about this header?
29586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29592 ac_header_preproc=yes
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29613 echo $ECHO_N "(cached) $ECHO_C" >&6
29615 eval "$as_ac_Header=\$ac_header_preproc"
29617 ac_res=`eval echo '${'$as_ac_Header'}'`
29618 { echo "$as_me:$LINENO: result: $ac_res" >&5
29619 echo "${ECHO_T}$ac_res" >&6; }
29622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29623 cat >>confdefs.h <<_ACEOF
29624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29634 for ac_header in sys/time.h
29636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29641 echo $ECHO_N "(cached) $ECHO_C" >&6
29643 ac_res=`eval echo '${'$as_ac_Header'}'`
29644 { echo "$as_me:$LINENO: result: $ac_res" >&5
29645 echo "${ECHO_T}$ac_res" >&6; }
29647 # Is the header compilable?
29648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29650 cat >conftest.$ac_ext <<_ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h. */
29656 $ac_includes_default
29657 #include <$ac_header>
29659 rm -f conftest.$ac_objext
29660 if { (ac_try="$ac_compile"
29661 case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_compile") 2>conftest.er1
29668 grep -v '^ *+' conftest.er1 >conftest.err
29670 cat conftest.err >&5
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); } &&
29673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29674 { (case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_try") 2>&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; } &&
29683 { ac_try='test -s conftest.$ac_objext'
29684 { (case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_try") 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 ac_header_compiler=yes
29695 echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29698 ac_header_compiler=no
29701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29703 echo "${ECHO_T}$ac_header_compiler" >&6; }
29705 # Is the header present?
29706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29708 cat >conftest.$ac_ext <<_ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29714 #include <$ac_header>
29716 if { (ac_try="$ac_cpp conftest.$ac_ext"
29717 case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29724 grep -v '^ *+' conftest.er1 >conftest.err
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } >/dev/null; then
29729 if test -s conftest.err; then
29730 ac_cpp_err=$ac_c_preproc_warn_flag
29731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29738 if test -z "$ac_cpp_err"; then
29739 ac_header_preproc=yes
29741 echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29744 ac_header_preproc=no
29747 rm -f conftest.err conftest.$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29749 echo "${ECHO_T}$ac_header_preproc" >&6; }
29751 # So? What about this header?
29752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29758 ac_header_preproc=yes
29761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29781 eval "$as_ac_Header=\$ac_header_preproc"
29783 ac_res=`eval echo '${'$as_ac_Header'}'`
29784 { echo "$as_me:$LINENO: result: $ac_res" >&5
29785 echo "${ECHO_T}$ac_res" >&6; }
29788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29789 cat >>confdefs.h <<_ACEOF
29790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29800 for ac_header in unistd.h
29802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29807 echo $ECHO_N "(cached) $ECHO_C" >&6
29809 ac_res=`eval echo '${'$as_ac_Header'}'`
29810 { echo "$as_me:$LINENO: result: $ac_res" >&5
29811 echo "${ECHO_T}$ac_res" >&6; }
29813 # Is the header compilable?
29814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29816 cat >conftest.$ac_ext <<_ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h. */
29822 $ac_includes_default
29823 #include <$ac_header>
29825 rm -f conftest.$ac_objext
29826 if { (ac_try="$ac_compile"
29827 case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_compile") 2>conftest.er1
29834 grep -v '^ *+' conftest.er1 >conftest.err
29836 cat conftest.err >&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
29839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29840 { (case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845 (eval "$ac_try") 2>&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; } &&
29849 { ac_try='test -s conftest.$ac_objext'
29850 { (case "(($ac_try" in
29851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852 *) ac_try_echo=$ac_try;;
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855 (eval "$ac_try") 2>&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; }; then
29859 ac_header_compiler=yes
29861 echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29864 ac_header_compiler=no
29867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29869 echo "${ECHO_T}$ac_header_compiler" >&6; }
29871 # Is the header present?
29872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29874 cat >conftest.$ac_ext <<_ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h. */
29880 #include <$ac_header>
29882 if { (ac_try="$ac_cpp conftest.$ac_ext"
29883 case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } >/dev/null; then
29895 if test -s conftest.err; then
29896 ac_cpp_err=$ac_c_preproc_warn_flag
29897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29904 if test -z "$ac_cpp_err"; then
29905 ac_header_preproc=yes
29907 echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29910 ac_header_preproc=no
29913 rm -f conftest.err conftest.$ac_ext
29914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29915 echo "${ECHO_T}$ac_header_preproc" >&6; }
29917 # So? What about this header?
29918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29924 ac_header_preproc=yes
29927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29947 eval "$as_ac_Header=\$ac_header_preproc"
29949 ac_res=`eval echo '${'$as_ac_Header'}'`
29950 { echo "$as_me:$LINENO: result: $ac_res" >&5
29951 echo "${ECHO_T}$ac_res" >&6; }
29954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29955 cat >>confdefs.h <<_ACEOF
29956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29965 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29966 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29967 if test "${ac_cv_have_decl_getenv+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29970 cat >conftest.$ac_ext <<_ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h. */
29976 $ac_includes_default
29981 char *p = (char *) getenv;
29989 rm -f conftest.$ac_objext
29990 if { (ac_try="$ac_compile"
29991 case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_compile") 2>conftest.er1
29998 grep -v '^ *+' conftest.er1 >conftest.err
30000 cat conftest.err >&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } &&
30003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; } &&
30013 { ac_try='test -s conftest.$ac_objext'
30014 { (case "(($ac_try" in
30015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016 *) ac_try_echo=$ac_try;;
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019 (eval "$ac_try") 2>&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; }; then
30023 ac_cv_have_decl_getenv=yes
30025 echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30028 ac_cv_have_decl_getenv=no
30031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30034 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30035 if test $ac_cv_have_decl_getenv = yes; then
30037 cat >>confdefs.h <<_ACEOF
30038 #define HAVE_DECL_GETENV 1
30043 cat >>confdefs.h <<_ACEOF
30044 #define HAVE_DECL_GETENV 0
30054 # Check whether --enable-usrp was given.
30055 if test "${enable_usrp+set}" = set; then
30056 enableval=$enable_usrp;
30058 enable_usrp=$enable_all_components
30063 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"
30067 # FIXME: this needs to fail gracefully and continue, not implemented yet
30069 for ac_func in mkstemp
30071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30077 cat >conftest.$ac_ext <<_ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h. */
30083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30085 #define $ac_func innocuous_$ac_func
30087 /* System header to define __stub macros and hopefully few prototypes,
30088 which can conflict with char $ac_func (); below.
30089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30090 <limits.h> exists even on freestanding compilers. */
30093 # include <limits.h>
30095 # include <assert.h>
30100 /* Override any GCC internal prototype to avoid an error.
30101 Use char because int might match the return type of a GCC
30102 builtin and then its argument prototype would still apply. */
30107 /* The GNU C library defines this for functions which it implements
30108 to always fail with ENOSYS. Some functions are actually named
30109 something starting with __ and the normal name is an alias. */
30110 #if defined __stub_$ac_func || defined __stub___$ac_func
30117 return $ac_func ();
30122 rm -f conftest.$ac_objext conftest$ac_exeext
30123 if { (ac_try="$ac_link"
30124 case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_link") 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } &&
30136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137 { (case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_try") 2>&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest$ac_exeext'
30147 { (case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_try") 2>&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; }; then
30156 eval "$as_ac_var=yes"
30158 echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30161 eval "$as_ac_var=no"
30164 rm -f core conftest.err conftest.$ac_objext \
30165 conftest$ac_exeext conftest.$ac_ext
30167 ac_res=`eval echo '${'$as_ac_var'}'`
30168 { echo "$as_me:$LINENO: result: $ac_res" >&5
30169 echo "${ECHO_T}$ac_res" >&6; }
30170 if test `eval echo '${'$as_ac_var'}'` = yes; then
30171 cat >>confdefs.h <<_ACEOF
30172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30176 case " $LIBOBJS " in
30177 *" $ac_func.$ac_objext "* ) ;;
30178 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30186 if test $ac_cv_func_mkstemp = no; then
30187 utils_cv_func_mkstemp_limitations=yes
30189 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30190 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30191 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30195 if test "$cross_compiling" = yes; then
30196 utils_cv_func_mkstemp_limitations=yes
30199 cat >conftest.$ac_ext <<_ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30206 # include <stdlib.h>
30210 for (i = 0; i < 70; i++)
30212 char template[] = "conftestXXXXXX";
30213 int fd = mkstemp (template);
30222 rm -f conftest$ac_exeext
30223 if { (ac_try="$ac_link"
30224 case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_link") 2>&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30233 { (case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_try") 2>&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242 utils_cv_func_mkstemp_limitations=no
30244 echo "$as_me: program exited with status $ac_status" >&5
30245 echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30248 ( exit $ac_status )
30249 utils_cv_func_mkstemp_limitations=yes
30251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30258 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30259 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30262 if test $utils_cv_func_mkstemp_limitations = yes; then
30263 case " $LIBOBJS " in
30264 *" mkstemp.$ac_objext "* ) ;;
30265 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30269 case " $LIBOBJS " in
30270 *" tempname.$ac_objext "* ) ;;
30271 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30276 cat >>confdefs.h <<\_ACEOF
30277 #define mkstemp rpl_mkstemp
30300 for ac_header in stdint.h
30302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30307 echo $ECHO_N "(cached) $ECHO_C" >&6
30309 ac_res=`eval echo '${'$as_ac_Header'}'`
30310 { echo "$as_me:$LINENO: result: $ac_res" >&5
30311 echo "${ECHO_T}$ac_res" >&6; }
30313 # Is the header compilable?
30314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30316 cat >conftest.$ac_ext <<_ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h. */
30322 $ac_includes_default
30323 #include <$ac_header>
30325 rm -f conftest.$ac_objext
30326 if { (ac_try="$ac_compile"
30327 case "(($ac_try" in
30328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329 *) ac_try_echo=$ac_try;;
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332 (eval "$ac_compile") 2>conftest.er1
30334 grep -v '^ *+' conftest.er1 >conftest.err
30336 cat conftest.err >&5
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } &&
30339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30340 { (case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_try") 2>&5
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); }; } &&
30349 { ac_try='test -s conftest.$ac_objext'
30350 { (case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_try") 2>&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 ac_header_compiler=yes
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30364 ac_header_compiler=no
30367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30369 echo "${ECHO_T}$ac_header_compiler" >&6; }
30371 # Is the header present?
30372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30374 cat >conftest.$ac_ext <<_ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 #include <$ac_header>
30382 if { (ac_try="$ac_cpp conftest.$ac_ext"
30383 case "(($ac_try" in
30384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385 *) ac_try_echo=$ac_try;;
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30390 grep -v '^ *+' conftest.er1 >conftest.err
30392 cat conftest.err >&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); } >/dev/null; then
30395 if test -s conftest.err; then
30396 ac_cpp_err=$ac_c_preproc_warn_flag
30397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30404 if test -z "$ac_cpp_err"; then
30405 ac_header_preproc=yes
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30410 ac_header_preproc=no
30413 rm -f conftest.err conftest.$ac_ext
30414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30415 echo "${ECHO_T}$ac_header_preproc" >&6; }
30417 # So? What about this header?
30418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30424 ac_header_preproc=yes
30427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445 echo $ECHO_N "(cached) $ECHO_C" >&6
30447 eval "$as_ac_Header=\$ac_header_preproc"
30449 ac_res=`eval echo '${'$as_ac_Header'}'`
30450 { echo "$as_me:$LINENO: result: $ac_res" >&5
30451 echo "${ECHO_T}$ac_res" >&6; }
30454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30455 cat >>confdefs.h <<_ACEOF
30456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30466 for ac_func in __secure_getenv gettimeofday lstat
30468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30472 echo $ECHO_N "(cached) $ECHO_C" >&6
30474 cat >conftest.$ac_ext <<_ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h. */
30480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30482 #define $ac_func innocuous_$ac_func
30484 /* System header to define __stub macros and hopefully few prototypes,
30485 which can conflict with char $ac_func (); below.
30486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30487 <limits.h> exists even on freestanding compilers. */
30490 # include <limits.h>
30492 # include <assert.h>
30497 /* Override any GCC internal prototype to avoid an error.
30498 Use char because int might match the return type of a GCC
30499 builtin and then its argument prototype would still apply. */
30504 /* The GNU C library defines this for functions which it implements
30505 to always fail with ENOSYS. Some functions are actually named
30506 something starting with __ and the normal name is an alias. */
30507 #if defined __stub_$ac_func || defined __stub___$ac_func
30514 return $ac_func ();
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (ac_try="$ac_link"
30521 case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_link") 2>conftest.er1
30528 grep -v '^ *+' conftest.er1 >conftest.err
30530 cat conftest.err >&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534 { (case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
30543 { ac_try='test -s conftest$ac_exeext'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
30553 eval "$as_ac_var=yes"
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30558 eval "$as_ac_var=no"
30561 rm -f core conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
30564 ac_res=`eval echo '${'$as_ac_var'}'`
30565 { echo "$as_me:$LINENO: result: $ac_res" >&5
30566 echo "${ECHO_T}$ac_res" >&6; }
30567 if test `eval echo '${'$as_ac_var'}'` = yes; then
30568 cat >>confdefs.h <<_ACEOF
30569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30582 # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30584 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30585 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30586 cat >conftest.$ac_ext <<_ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h. */
30592 #include <sys/types.h>
30593 #include <sys/stat.h>
30605 rm -f conftest.$ac_objext
30606 if { (ac_try="$ac_compile"
30607 case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_compile") 2>conftest.er1
30614 grep -v '^ *+' conftest.er1 >conftest.err
30616 cat conftest.err >&5
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); } &&
30619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30620 { (case "(($ac_try" in
30621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622 *) ac_try_echo=$ac_try;;
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625 (eval "$ac_try") 2>&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest.$ac_objext'
30630 { (case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_try") 2>&5
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639 { echo "$as_me:$LINENO: result: yes" >&5
30640 echo "${ECHO_T}yes" >&6; }
30642 cat >>confdefs.h <<\_ACEOF
30643 #define MKDIR_TAKES_ONE_ARG
30647 echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.$ac_ext >&5
30650 { echo "$as_me:$LINENO: result: no" >&5
30651 echo "${ECHO_T}no" >&6; }
30655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30660 # These checks don't fail
30661 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30662 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30663 if test "${ac_cv_c_bigendian+set}" = set; then
30664 echo $ECHO_N "(cached) $ECHO_C" >&6
30666 # See if sys/param.h defines the BYTE_ORDER macro.
30667 cat >conftest.$ac_ext <<_ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h. */
30673 #include <sys/types.h>
30674 #include <sys/param.h>
30679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30680 bogus endian macros
30687 rm -f conftest.$ac_objext
30688 if { (ac_try="$ac_compile"
30689 case "(($ac_try" in
30690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30691 *) ac_try_echo=$ac_try;;
30693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694 (eval "$ac_compile") 2>conftest.er1
30696 grep -v '^ *+' conftest.er1 >conftest.err
30698 cat conftest.err >&5
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); } &&
30701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30702 { (case "(($ac_try" in
30703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30704 *) ac_try_echo=$ac_try;;
30706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30707 (eval "$ac_try") 2>&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; } &&
30711 { ac_try='test -s conftest.$ac_objext'
30712 { (case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_try") 2>&5
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; }; then
30721 # It does; now see whether it defined to BIG_ENDIAN or not.
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 #include <sys/types.h>
30729 #include <sys/param.h>
30734 #if BYTE_ORDER != BIG_ENDIAN
30742 rm -f conftest.$ac_objext
30743 if { (ac_try="$ac_compile"
30744 case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_compile") 2>conftest.er1
30751 grep -v '^ *+' conftest.er1 >conftest.err
30753 cat conftest.err >&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); } &&
30756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30757 { (case "(($ac_try" in
30758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759 *) ac_try_echo=$ac_try;;
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762 (eval "$ac_try") 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest.$ac_objext'
30767 { (case "(($ac_try" in
30768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769 *) ac_try_echo=$ac_try;;
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772 (eval "$ac_try") 2>&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; }; then
30776 ac_cv_c_bigendian=yes
30778 echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30781 ac_cv_c_bigendian=no
30784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30786 echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30789 # It does not; compile a test program.
30790 if test "$cross_compiling" = yes; then
30791 # try to guess the endianness by grepping values into an object file
30792 ac_cv_c_bigendian=unknown
30793 cat >conftest.$ac_ext <<_ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h. */
30799 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30800 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30801 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30802 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30803 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30804 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30808 _ascii (); _ebcdic ();
30813 rm -f conftest.$ac_objext
30814 if { (ac_try="$ac_compile"
30815 case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_compile") 2>conftest.er1
30822 grep -v '^ *+' conftest.er1 >conftest.err
30824 cat conftest.err >&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); } &&
30827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; } &&
30837 { ac_try='test -s conftest.$ac_objext'
30838 { (case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_try") 2>&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; }; then
30847 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30848 ac_cv_c_bigendian=yes
30850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30851 if test "$ac_cv_c_bigendian" = unknown; then
30852 ac_cv_c_bigendian=no
30854 # finding both strings is unlikely to happen, but who knows?
30855 ac_cv_c_bigendian=unknown
30859 echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30867 cat >conftest.$ac_ext <<_ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 $ac_includes_default
30878 /* Are we little or big endian? From Harbison&Steele. */
30882 char c[sizeof (long int)];
30885 return u.c[sizeof (long int) - 1] == 1;
30891 rm -f conftest$ac_exeext
30892 if { (ac_try="$ac_link"
30893 case "(($ac_try" in
30894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895 *) ac_try_echo=$ac_try;;
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898 (eval "$ac_link") 2>&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30902 { (case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_try") 2>&5
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
30911 ac_cv_c_bigendian=no
30913 echo "$as_me: program exited with status $ac_status" >&5
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30917 ( exit $ac_status )
30918 ac_cv_c_bigendian=yes
30920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30928 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30929 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30930 case $ac_cv_c_bigendian in
30933 cat >>confdefs.h <<\_ACEOF
30934 #define WORDS_BIGENDIAN 1
30940 { { echo "$as_me:$LINENO: error: unknown endianness
30941 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30942 echo "$as_me: error: unknown endianness
30943 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30944 { (exit 1); exit 1; }; } ;;
30949 for ac_header in byteswap.h linux/compiler.h
30951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30958 ac_res=`eval echo '${'$as_ac_Header'}'`
30959 { echo "$as_me:$LINENO: result: $ac_res" >&5
30960 echo "${ECHO_T}$ac_res" >&6; }
30962 # Is the header compilable?
30963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30965 cat >conftest.$ac_ext <<_ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h. */
30971 $ac_includes_default
30972 #include <$ac_header>
30974 rm -f conftest.$ac_objext
30975 if { (ac_try="$ac_compile"
30976 case "(($ac_try" in
30977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 (eval "$ac_compile") 2>conftest.er1
30983 grep -v '^ *+' conftest.er1 >conftest.err
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } &&
30988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30989 { (case "(($ac_try" in
30990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30991 *) ac_try_echo=$ac_try;;
30993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30994 (eval "$ac_try") 2>&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; } &&
30998 { ac_try='test -s conftest.$ac_objext'
30999 { (case "(($ac_try" in
31000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31001 *) ac_try_echo=$ac_try;;
31003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31004 (eval "$ac_try") 2>&5
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; }; then
31008 ac_header_compiler=yes
31010 echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31013 ac_header_compiler=no
31016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31018 echo "${ECHO_T}$ac_header_compiler" >&6; }
31020 # Is the header present?
31021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31023 cat >conftest.$ac_ext <<_ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h. */
31029 #include <$ac_header>
31031 if { (ac_try="$ac_cpp conftest.$ac_ext"
31032 case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31039 grep -v '^ *+' conftest.er1 >conftest.err
31041 cat conftest.err >&5
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); } >/dev/null; then
31044 if test -s conftest.err; then
31045 ac_cpp_err=$ac_c_preproc_warn_flag
31046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31053 if test -z "$ac_cpp_err"; then
31054 ac_header_preproc=yes
31056 echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31059 ac_header_preproc=no
31062 rm -f conftest.err conftest.$ac_ext
31063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31064 echo "${ECHO_T}$ac_header_preproc" >&6; }
31066 # So? What about this header?
31067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31073 ac_header_preproc=yes
31076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31094 echo $ECHO_N "(cached) $ECHO_C" >&6
31096 eval "$as_ac_Header=\$ac_header_preproc"
31098 ac_res=`eval echo '${'$as_ac_Header'}'`
31099 { echo "$as_me:$LINENO: result: $ac_res" >&5
31100 echo "${ECHO_T}$ac_res" >&6; }
31103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31104 cat >>confdefs.h <<_ACEOF
31105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31114 for ac_func in getrusage sched_setscheduler
31116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31120 echo $ECHO_N "(cached) $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31130 #define $ac_func innocuous_$ac_func
31132 /* System header to define __stub macros and hopefully few prototypes,
31133 which can conflict with char $ac_func (); below.
31134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31135 <limits.h> exists even on freestanding compilers. */
31138 # include <limits.h>
31140 # include <assert.h>
31145 /* Override any GCC internal prototype to avoid an error.
31146 Use char because int might match the return type of a GCC
31147 builtin and then its argument prototype would still apply. */
31152 /* The GNU C library defines this for functions which it implements
31153 to always fail with ENOSYS. Some functions are actually named
31154 something starting with __ and the normal name is an alias. */
31155 #if defined __stub_$ac_func || defined __stub___$ac_func
31162 return $ac_func ();
31167 rm -f conftest.$ac_objext conftest$ac_exeext
31168 if { (ac_try="$ac_link"
31169 case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_link") 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } &&
31181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31182 { (case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_try") 2>&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; } &&
31191 { ac_try='test -s conftest$ac_exeext'
31192 { (case "(($ac_try" in
31193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194 *) ac_try_echo=$ac_try;;
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197 (eval "$ac_try") 2>&5
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); }; }; then
31201 eval "$as_ac_var=yes"
31203 echo "$as_me: failed program was:" >&5
31204 sed 's/^/| /' conftest.$ac_ext >&5
31206 eval "$as_ac_var=no"
31209 rm -f core conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
31212 ac_res=`eval echo '${'$as_ac_var'}'`
31213 { echo "$as_me:$LINENO: result: $ac_res" >&5
31214 echo "${ECHO_T}$ac_res" >&6; }
31215 if test `eval echo '${'$as_ac_var'}'` = yes; then
31216 cat >>confdefs.h <<_ACEOF
31217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31225 for ac_func in sigaction snprintf
31227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 cat >conftest.$ac_ext <<_ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h. */
31239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31241 #define $ac_func innocuous_$ac_func
31243 /* System header to define __stub macros and hopefully few prototypes,
31244 which can conflict with char $ac_func (); below.
31245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31246 <limits.h> exists even on freestanding compilers. */
31249 # include <limits.h>
31251 # include <assert.h>
31256 /* Override any GCC internal prototype to avoid an error.
31257 Use char because int might match the return type of a GCC
31258 builtin and then its argument prototype would still apply. */
31263 /* The GNU C library defines this for functions which it implements
31264 to always fail with ENOSYS. Some functions are actually named
31265 something starting with __ and the normal name is an alias. */
31266 #if defined __stub_$ac_func || defined __stub___$ac_func
31273 return $ac_func ();
31278 rm -f conftest.$ac_objext conftest$ac_exeext
31279 if { (ac_try="$ac_link"
31280 case "(($ac_try" in
31281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282 *) ac_try_echo=$ac_try;;
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_link") 2>conftest.er1
31287 grep -v '^ *+' conftest.er1 >conftest.err
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
31292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; } &&
31302 { ac_try='test -s conftest$ac_exeext'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
31312 eval "$as_ac_var=yes"
31314 echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31317 eval "$as_ac_var=no"
31320 rm -f core conftest.err conftest.$ac_objext \
31321 conftest$ac_exeext conftest.$ac_ext
31323 ac_res=`eval echo '${'$as_ac_var'}'`
31324 { echo "$as_me:$LINENO: result: $ac_res" >&5
31325 echo "${ECHO_T}$ac_res" >&6; }
31326 if test `eval echo '${'$as_ac_var'}'` = yes; then
31327 cat >>confdefs.h <<_ACEOF
31328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31338 ac_cpp='$CPP $CPPFLAGS'
31339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31346 for ac_header in usb.h
31348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31355 ac_res=`eval echo '${'$as_ac_Header'}'`
31356 { echo "$as_me:$LINENO: result: $ac_res" >&5
31357 echo "${ECHO_T}$ac_res" >&6; }
31359 # Is the header compilable?
31360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31362 cat >conftest.$ac_ext <<_ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h. */
31368 $ac_includes_default
31369 #include <$ac_header>
31371 rm -f conftest.$ac_objext
31372 if { (ac_try="$ac_compile"
31373 case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_compile") 2>conftest.er1
31380 grep -v '^ *+' conftest.er1 >conftest.err
31382 cat conftest.err >&5
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384 (exit $ac_status); } &&
31385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386 { (case "(($ac_try" in
31387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388 *) ac_try_echo=$ac_try;;
31390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391 (eval "$ac_try") 2>&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest.$ac_objext'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 ac_header_compiler=yes
31407 echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31410 ac_header_compiler=no
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31415 echo "${ECHO_T}$ac_header_compiler" >&6; }
31417 # Is the header present?
31418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31420 cat >conftest.$ac_ext <<_ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h. */
31426 #include <$ac_header>
31428 if { (ac_try="$ac_cpp conftest.$ac_ext"
31429 case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31436 grep -v '^ *+' conftest.er1 >conftest.err
31438 cat conftest.err >&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } >/dev/null; then
31441 if test -s conftest.err; then
31442 ac_cpp_err=$ac_c_preproc_warn_flag
31443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31450 if test -z "$ac_cpp_err"; then
31451 ac_header_preproc=yes
31453 echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31456 ac_header_preproc=no
31459 rm -f conftest.err conftest.$ac_ext
31460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31461 echo "${ECHO_T}$ac_header_preproc" >&6; }
31463 # So? What about this header?
31464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31470 ac_header_preproc=yes
31473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 eval "$as_ac_Header=\$ac_header_preproc"
31495 ac_res=`eval echo '${'$as_ac_Header'}'`
31496 { echo "$as_me:$LINENO: result: $ac_res" >&5
31497 echo "${ECHO_T}$ac_res" >&6; }
31500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31501 cat >>confdefs.h <<_ACEOF
31502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31507 { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31508 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31517 darwin*) LIBS="$LIBS -lIOKit" ;;
31520 { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31521 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31522 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31523 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 ac_func_search_save_LIBS=$LIBS
31526 cat >conftest.$ac_ext <<_ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h. */
31533 /* Override any GCC internal prototype to avoid an error.
31534 Use char because int might match the return type of a GCC
31535 builtin and then its argument prototype would still apply. */
31539 char usb_bulk_write ();
31543 return usb_bulk_write ();
31548 for ac_lib in '' usb; do
31549 if test -z "$ac_lib"; then
31550 ac_res="none required"
31553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31555 rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
31557 case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_link") 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570 { (case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_try") 2>&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); }; } &&
31579 { ac_try='test -s conftest$ac_exeext'
31580 { (case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_try") 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; }; then
31589 ac_cv_search_usb_bulk_write=$ac_res
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31597 rm -f core conftest.err conftest.$ac_objext \
31599 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31603 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31606 ac_cv_search_usb_bulk_write=no
31608 rm conftest.$ac_ext
31609 LIBS=$ac_func_search_save_LIBS
31611 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31612 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31613 ac_res=$ac_cv_search_usb_bulk_write
31614 if test "$ac_res" != no; then
31615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31619 { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31620 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31627 ac_cpp='$CPP $CPPFLAGS'
31628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31633 if test $libusbok = yes; then
31637 passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31638 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31643 # Check whether --with-fusb-tech was given.
31644 if test "${with_fusb_tech+set}" = set; then
31645 withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31647 cf_with_fusb_tech="$host_os"
31652 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31653 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31654 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31655 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31658 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31659 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31661 # Is the header compilable?
31662 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31663 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31664 cat >conftest.$ac_ext <<_ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h. */
31670 $ac_includes_default
31671 #include <linux/usbdevice_fs.h>
31673 rm -f conftest.$ac_objext
31674 if { (ac_try="$ac_compile"
31675 case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_compile") 2>conftest.er1
31682 grep -v '^ *+' conftest.er1 >conftest.err
31684 cat conftest.err >&5
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); } &&
31687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31688 { (case "(($ac_try" in
31689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690 *) ac_try_echo=$ac_try;;
31692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693 (eval "$ac_try") 2>&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
31698 { (case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_try") 2>&5
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 ac_header_compiler=yes
31709 echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31712 ac_header_compiler=no
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31717 echo "${ECHO_T}$ac_header_compiler" >&6; }
31719 # Is the header present?
31720 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31721 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31722 cat >conftest.$ac_ext <<_ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h. */
31728 #include <linux/usbdevice_fs.h>
31730 if { (ac_try="$ac_cpp conftest.$ac_ext"
31731 case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31738 grep -v '^ *+' conftest.er1 >conftest.err
31740 cat conftest.err >&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); } >/dev/null; then
31743 if test -s conftest.err; then
31744 ac_cpp_err=$ac_c_preproc_warn_flag
31745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31752 if test -z "$ac_cpp_err"; then
31753 ac_header_preproc=yes
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31758 ac_header_preproc=no
31761 rm -f conftest.err conftest.$ac_ext
31762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31763 echo "${ECHO_T}$ac_header_preproc" >&6; }
31765 # So? What about this header?
31766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31768 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31769 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31772 ac_header_preproc=yes
31775 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31776 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31777 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&5
31778 echo "$as_me: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&2;}
31779 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31780 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31781 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&5
31782 echo "$as_me: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
31783 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31784 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31785 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31786 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31790 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31791 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31792 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31793 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31797 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31798 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31801 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31802 x_have_usbdevice_fs_h=yes
31804 x_have_usbdevice_fs_h=no
31809 { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31810 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31811 case "$cf_with_fusb_tech" in
31812 linux*) if test x${x_have_usbdevice_fs_h} = xyes;
31819 darwin*) FUSB_TECH=darwin ;;
31820 cygwin*|win*|mingw*) FUSB_TECH=win32 ;;
31822 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31823 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 #include <dev/usb/usb.h>
31834 struct usb_bulk_ra_wb_opt o;
31835 ioctl(0, USB_SET_BULK_RA, &o);
31840 rm -f conftest.$ac_objext
31841 if { (ac_try="$ac_compile"
31842 case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_compile") 2>conftest.er1
31849 grep -v '^ *+' conftest.er1 >conftest.err
31851 cat conftest.err >&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); } &&
31854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31855 { (case "(($ac_try" in
31856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857 *) ac_try_echo=$ac_try;;
31859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860 (eval "$ac_try") 2>&5
31862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863 (exit $ac_status); }; } &&
31864 { ac_try='test -s conftest.$ac_objext'
31865 { (case "(($ac_try" in
31866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31867 *) ac_try_echo=$ac_try;;
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870 (eval "$ac_try") 2>&5
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; }; then
31876 echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
31883 *) FUSB_TECH=generic ;;
31886 { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31887 echo "${ECHO_T}$FUSB_TECH" >&6; }
31892 if test $FUSB_TECH = darwin; then
31893 FUSB_TECH_darwin_TRUE=
31894 FUSB_TECH_darwin_FALSE='#'
31896 FUSB_TECH_darwin_TRUE='#'
31897 FUSB_TECH_darwin_FALSE=
31902 if test $FUSB_TECH = win32; then
31903 FUSB_TECH_win32_TRUE=
31904 FUSB_TECH_win32_FALSE='#'
31906 FUSB_TECH_win32_TRUE='#'
31907 FUSB_TECH_win32_FALSE=
31912 if test $FUSB_TECH = generic; then
31913 FUSB_TECH_generic_TRUE=
31914 FUSB_TECH_generic_FALSE='#'
31916 FUSB_TECH_generic_TRUE='#'
31917 FUSB_TECH_generic_FALSE=
31922 if test $FUSB_TECH = linux; then
31923 FUSB_TECH_linux_TRUE=
31924 FUSB_TECH_linux_FALSE='#'
31926 FUSB_TECH_linux_TRUE='#'
31927 FUSB_TECH_linux_FALSE=
31932 if test $FUSB_TECH = ra_wb; then
31933 FUSB_TECH_ra_wb_TRUE=
31934 FUSB_TECH_ra_wb_FALSE='#'
31936 FUSB_TECH_ra_wb_TRUE='#'
31937 FUSB_TECH_ra_wb_FALSE=
31943 # Extract the first word of "sdcc", so it can be a program name with args.
31944 set dummy sdcc; ac_word=$2
31945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31947 if test "${ac_cv_prog_XCC+set}" = set; then
31948 echo $ECHO_N "(cached) $ECHO_C" >&6
31950 if test -n "$XCC"; then
31951 ac_cv_prog_XCC="$XCC" # Let the user override the test.
31953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31954 for as_dir in $PATH
31957 test -z "$as_dir" && as_dir=.
31958 for ac_exec_ext in '' $ac_executable_extensions; do
31959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31960 ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31968 test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31971 XCC=$ac_cv_prog_XCC
31972 if test -n "$XCC"; then
31973 { echo "$as_me:$LINENO: result: $XCC" >&5
31974 echo "${ECHO_T}$XCC" >&6; }
31976 { echo "$as_me:$LINENO: result: no" >&5
31977 echo "${ECHO_T}no" >&6; }
31981 # Extract the first word of "asx8051", so it can be a program name with args.
31982 set dummy asx8051; ac_word=$2
31983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31985 if test "${ac_cv_prog_XAS+set}" = set; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 if test -n "$XAS"; then
31989 ac_cv_prog_XAS="$XAS" # Let the user override the test.
31991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31992 for as_dir in $PATH
31995 test -z "$as_dir" && as_dir=.
31996 for ac_exec_ext in '' $ac_executable_extensions; do
31997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31998 ac_cv_prog_XAS="asx8051 -plosgff"
31999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32006 test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
32009 XAS=$ac_cv_prog_XAS
32010 if test -n "$XAS"; then
32011 { echo "$as_me:$LINENO: result: $XAS" >&5
32012 echo "${ECHO_T}$XAS" >&6; }
32014 { echo "$as_me:$LINENO: result: no" >&5
32015 echo "${ECHO_T}no" >&6; }
32020 if test "$XCC" = "no" -o "$XAS" = "no" ; then
32021 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32022 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32025 sdcc_version_min=2.4.0
32027 sdcc_version=`sdcc --version 2>&1 | \
32028 sed 's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32030 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32031 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32033 sdcc_major_version=`echo $sdcc_version | \
32034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32035 sdcc_minor_version=`echo $sdcc_version | \
32036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32037 sdcc_micro_version=`echo $sdcc_version | \
32038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32040 sdcc_major_min=`echo $sdcc_version_min | \
32041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32042 sdcc_minor_min=`echo $sdcc_version_min | \
32043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32044 sdcc_micro_min=`echo $sdcc_version_min | \
32045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32047 sdcc_version_proper=`expr \
32048 "$sdcc_major_version" \> "$sdcc_major_min" \| \
32049 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32050 "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32051 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32052 "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32053 "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32055 if test "$sdcc_version_proper" = "1" ; then
32056 { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32057 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32060 { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32061 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32068 if test $sdccok = yes; then
32071 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32072 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32077 if test x$passed = xno; then
32078 skipped_dirs="$skipped_dirs usrp"
32079 if test x$enable_usrp = xyes; then
32080 { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32081 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32082 { (exit 1); exit 1; }; }
32084 { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32085 echo "${ECHO_T}Not building component usrp." >&6; }
32088 if test x$enable_usrp != xno; then
32090 build_dirs="$build_dirs usrp"
32091 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32092 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32094 skipped_dirs="$skipped_dirs usrp"
32095 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32096 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32103 # Check whether --enable-gr-usrp was given.
32104 if test "${enable_gr_usrp+set}" = set; then
32105 enableval=$enable_gr_usrp;
32107 enable_gr_usrp=$enable_all_components
32112 ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32116 # Don't do gr-usrp if usrp skipped
32117 # There *has* to be a better way to check if a value is in a string
32118 for dir in $skipped_dirs
32120 if test x$dir = xusrp; then
32121 { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32122 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32128 if test x$passed = xno; then
32129 skipped_dirs="$skipped_dirs gr-usrp"
32130 if test x$enable_gr_usrp = xyes; then
32131 { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32132 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32133 { (exit 1); exit 1; }; }
32135 { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32136 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32139 if test x$enable_gr_usrp != xno; then
32141 ac_config_commands="$ac_config_commands run_tests_usrp"
32144 build_dirs="$build_dirs gr-usrp"
32145 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32146 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32148 skipped_dirs="$skipped_dirs gr-usrp"
32149 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32150 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32156 # Check whether --enable-gr-audio-alsa was given.
32157 if test "${enable_gr_audio_alsa+set}" = set; then
32158 enableval=$enable_gr_audio_alsa;
32160 enable_gr_audio_alsa=$enable_all_components
32165 ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32172 if test -z "$PKG_CONFIG"; then
32173 # Extract the first word of "pkg-config", so it can be a program name with args.
32174 set dummy pkg-config; ac_word=$2
32175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32180 case $PKG_CONFIG in
32182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32186 for as_dir in $PATH
32189 test -z "$as_dir" && as_dir=.
32190 for ac_exec_ext in '' $ac_executable_extensions; do
32191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32205 if test -n "$PKG_CONFIG"; then
32206 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32207 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32209 { echo "$as_me:$LINENO: result: no" >&5
32210 echo "${ECHO_T}no" >&6; }
32216 if test "$PKG_CONFIG" = "no" ; then
32217 echo "*** The pkg-config script could not be found. Make sure it is"
32218 echo "*** in your path, or set the PKG_CONFIG environment variable"
32219 echo "*** to the full path to pkg-config."
32220 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32222 if test -z "$PKG_CONFIG_PATH"; then
32223 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32226 PKG_CONFIG_MIN_VERSION=0.9.0
32227 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32228 { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32229 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32231 if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32232 { echo "$as_me:$LINENO: result: yes" >&5
32233 echo "${ECHO_T}yes" >&6; }
32236 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32237 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32238 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32239 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32240 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32242 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32243 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32244 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32245 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32246 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32248 { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32249 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32250 ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32251 { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32252 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32256 ## If we have a custom action on failure, don't print errors, but
32257 ## do set a variable so people can do so.
32258 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32271 if test $succeeded = yes; then
32274 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32275 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32280 if test x$passed = xno; then
32281 skipped_dirs="$skipped_dirs gr-audio-alsa"
32282 if test x$enable_gr_audio_alsa = xyes; then
32283 { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32284 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32285 { (exit 1); exit 1; }; }
32287 { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32288 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32291 if test x$enable_gr_audio_alsa != xno; then
32294 ac_config_commands="$ac_config_commands run_tests_alsa"
32297 build_dirs="$build_dirs gr-audio-alsa"
32298 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32299 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32301 skipped_dirs="$skipped_dirs gr-audio-alsa"
32302 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32303 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32310 # Check whether --enable-gr-audio-jack was given.
32311 if test "${enable_gr_audio_jack+set}" = set; then
32312 enableval=$enable_gr_audio_jack;
32314 enable_gr_audio_jack=$enable_all_components
32319 ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32326 if test -z "$PKG_CONFIG"; then
32327 # Extract the first word of "pkg-config", so it can be a program name with args.
32328 set dummy pkg-config; ac_word=$2
32329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32331 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32332 echo $ECHO_N "(cached) $ECHO_C" >&6
32334 case $PKG_CONFIG in
32336 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32340 for as_dir in $PATH
32343 test -z "$as_dir" && as_dir=.
32344 for ac_exec_ext in '' $ac_executable_extensions; do
32345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32346 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32354 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32358 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32359 if test -n "$PKG_CONFIG"; then
32360 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32361 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32363 { echo "$as_me:$LINENO: result: no" >&5
32364 echo "${ECHO_T}no" >&6; }
32370 if test "$PKG_CONFIG" = "no" ; then
32371 echo "*** The pkg-config script could not be found. Make sure it is"
32372 echo "*** in your path, or set the PKG_CONFIG environment variable"
32373 echo "*** to the full path to pkg-config."
32374 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32376 if test -z "$PKG_CONFIG_PATH"; then
32377 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32380 PKG_CONFIG_MIN_VERSION=0.9.0
32381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32382 { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32383 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32385 if $PKG_CONFIG --exists "jack >= 0.8" ; then
32386 { echo "$as_me:$LINENO: result: yes" >&5
32387 echo "${ECHO_T}yes" >&6; }
32390 { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32391 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32392 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32393 { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32394 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32396 { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32397 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32398 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32399 { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32400 echo "${ECHO_T}$JACK_LIBS" >&6; }
32402 { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32403 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32404 JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32405 { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32406 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32410 ## If we have a custom action on failure, don't print errors, but
32411 ## do set a variable so people can do so.
32412 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32425 if test $succeeded = yes; then
32428 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32429 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32434 if test x$passed = xno; then
32435 skipped_dirs="$skipped_dirs gr-audio-jack"
32436 if test x$enable_gr_audio_jack = xyes; then
32437 { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32438 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32439 { (exit 1); exit 1; }; }
32441 { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32442 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32445 if test x$enable_gr_audio_jack != xno; then
32448 ac_config_commands="$ac_config_commands run_tests_jack"
32451 build_dirs="$build_dirs gr-audio-jack"
32452 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32453 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32455 skipped_dirs="$skipped_dirs gr-audio-jack"
32456 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32457 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32464 # Check whether --enable-gr-audio-oss was given.
32465 if test "${enable_gr_audio_oss+set}" = set; then
32466 enableval=$enable_gr_audio_oss;
32468 enable_gr_audio_oss=$enable_all_components
32473 ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32480 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32481 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32482 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32483 echo $ECHO_N "(cached) $ECHO_C" >&6
32485 ac_check_lib_save_LIBS=$LIBS
32486 LIBS="-lossaudio $LIBS"
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (ac_try="$ac_link"
32505 case "(($ac_try" in
32506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507 *) ac_try_echo=$ac_try;;
32509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510 (eval "$ac_link") 2>conftest.er1
32512 grep -v '^ *+' conftest.er1 >conftest.err
32514 cat conftest.err >&5
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); } &&
32517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32518 { (case "(($ac_try" in
32519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520 *) ac_try_echo=$ac_try;;
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523 (eval "$ac_try") 2>&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; } &&
32527 { ac_try='test -s conftest$ac_exeext'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; }; then
32537 ac_cv_lib_ossaudio_main=yes
32539 echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32542 ac_cv_lib_ossaudio_main=no
32545 rm -f core conftest.err conftest.$ac_objext \
32546 conftest$ac_exeext conftest.$ac_ext
32547 LIBS=$ac_check_lib_save_LIBS
32549 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32550 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32551 if test $ac_cv_lib_ossaudio_main = yes; then
32552 cat >>confdefs.h <<_ACEOF
32553 #define HAVE_LIBOSSAUDIO 1
32556 LIBS="-lossaudio $LIBS"
32559 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32560 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32562 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32564 if test x$passed != xno; then
32565 OSS_LIBS=-lossaudio
32566 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32567 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32571 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32572 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32573 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32574 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32578 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32580 # Is the header compilable?
32581 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32582 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32583 cat >conftest.$ac_ext <<_ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h. */
32589 $ac_includes_default
32590 #include <sys/soundcard.h>
32592 rm -f conftest.$ac_objext
32593 if { (ac_try="$ac_compile"
32594 case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_compile") 2>conftest.er1
32601 grep -v '^ *+' conftest.er1 >conftest.err
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); } &&
32606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest.$ac_objext'
32617 { (case "(($ac_try" in
32618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619 *) ac_try_echo=$ac_try;;
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622 (eval "$ac_try") 2>&5
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
32626 ac_header_compiler=yes
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32631 ac_header_compiler=no
32634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32636 echo "${ECHO_T}$ac_header_compiler" >&6; }
32638 # Is the header present?
32639 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32640 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32641 cat >conftest.$ac_ext <<_ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h. */
32647 #include <sys/soundcard.h>
32649 if { (ac_try="$ac_cpp conftest.$ac_ext"
32650 case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32657 grep -v '^ *+' conftest.er1 >conftest.err
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } >/dev/null; then
32662 if test -s conftest.err; then
32663 ac_cpp_err=$ac_c_preproc_warn_flag
32664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32671 if test -z "$ac_cpp_err"; then
32672 ac_header_preproc=yes
32674 echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32677 ac_header_preproc=no
32680 rm -f conftest.err conftest.$ac_ext
32681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32682 echo "${ECHO_T}$ac_header_preproc" >&6; }
32684 # So? What about this header?
32685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32687 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32688 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32689 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32691 ac_header_preproc=yes
32694 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32695 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32696 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
32697 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
32698 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32699 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32700 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
32701 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
32702 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32703 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32704 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32705 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32709 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32710 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32711 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32712 echo $ECHO_N "(cached) $ECHO_C" >&6
32714 ac_cv_header_sys_soundcard_h=$ac_header_preproc
32716 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32717 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32720 if test $ac_cv_header_sys_soundcard_h = yes; then
32723 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32724 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32731 if test x$passed = xno; then
32732 skipped_dirs="$skipped_dirs gr-audio-oss"
32733 if test x$enable_gr_audio_oss = xyes; then
32734 { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32735 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32736 { (exit 1); exit 1; }; }
32738 { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32739 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32742 if test x$enable_gr_audio_oss != xno; then
32745 ac_config_commands="$ac_config_commands run_tests_oss"
32748 build_dirs="$build_dirs gr-audio-oss"
32749 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32750 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32752 skipped_dirs="$skipped_dirs gr-audio-oss"
32753 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32754 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32761 # Check whether --enable-gr-audio-osx was given.
32762 if test "${enable_gr_audio_osx+set}" = set; then
32763 enableval=$enable_gr_audio_osx;
32765 enable_gr_audio_osx=$enable_all_components
32770 ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32780 { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32781 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32785 for ac_header in AudioUnit/AudioUnit.h
32787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32792 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 ac_res=`eval echo '${'$as_ac_Header'}'`
32795 { echo "$as_me:$LINENO: result: $ac_res" >&5
32796 echo "${ECHO_T}$ac_res" >&6; }
32798 # Is the header compilable?
32799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h. */
32807 $ac_includes_default
32808 #include <$ac_header>
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
32824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32825 { (case "(($ac_try" in
32826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827 *) ac_try_echo=$ac_try;;
32829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830 (eval "$ac_try") 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; } &&
32834 { ac_try='test -s conftest.$ac_objext'
32835 { (case "(($ac_try" in
32836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837 *) ac_try_echo=$ac_try;;
32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840 (eval "$ac_try") 2>&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 ac_header_compiler=yes
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 ac_header_compiler=no
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6; }
32856 # Is the header present?
32857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32859 cat >conftest.$ac_ext <<_ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <$ac_header>
32867 if { (ac_try="$ac_cpp conftest.$ac_ext"
32868 case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32875 grep -v '^ *+' conftest.er1 >conftest.err
32877 cat conftest.err >&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } >/dev/null; then
32880 if test -s conftest.err; then
32881 ac_cpp_err=$ac_c_preproc_warn_flag
32882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32889 if test -z "$ac_cpp_err"; then
32890 ac_header_preproc=yes
32892 echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32895 ac_header_preproc=no
32898 rm -f conftest.err conftest.$ac_ext
32899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32900 echo "${ECHO_T}$ac_header_preproc" >&6; }
32902 # So? What about this header?
32903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32909 ac_header_preproc=yes
32912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32932 eval "$as_ac_Header=\$ac_header_preproc"
32934 ac_res=`eval echo '${'$as_ac_Header'}'`
32935 { echo "$as_me:$LINENO: result: $ac_res" >&5
32936 echo "${ECHO_T}$ac_res" >&6; }
32939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32940 cat >>confdefs.h <<_ACEOF
32941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32945 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32946 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32953 for ac_header in AudioToolbox/AudioToolbox.h
32955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32962 ac_res=`eval echo '${'$as_ac_Header'}'`
32963 { echo "$as_me:$LINENO: result: $ac_res" >&5
32964 echo "${ECHO_T}$ac_res" >&6; }
32966 # Is the header compilable?
32967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32969 cat >conftest.$ac_ext <<_ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h. */
32975 $ac_includes_default
32976 #include <$ac_header>
32978 rm -f conftest.$ac_objext
32979 if { (ac_try="$ac_compile"
32980 case "(($ac_try" in
32981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982 *) ac_try_echo=$ac_try;;
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985 (eval "$ac_compile") 2>conftest.er1
32987 grep -v '^ *+' conftest.er1 >conftest.err
32989 cat conftest.err >&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); } &&
32992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; } &&
33002 { ac_try='test -s conftest.$ac_objext'
33003 { (case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_try") 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 ac_header_compiler=yes
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33017 ac_header_compiler=no
33020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33022 echo "${ECHO_T}$ac_header_compiler" >&6; }
33024 # Is the header present?
33025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33027 cat >conftest.$ac_ext <<_ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h. */
33033 #include <$ac_header>
33035 if { (ac_try="$ac_cpp conftest.$ac_ext"
33036 case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33043 grep -v '^ *+' conftest.er1 >conftest.err
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } >/dev/null; then
33048 if test -s conftest.err; then
33049 ac_cpp_err=$ac_c_preproc_warn_flag
33050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33057 if test -z "$ac_cpp_err"; then
33058 ac_header_preproc=yes
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33063 ac_header_preproc=no
33066 rm -f conftest.err conftest.$ac_ext
33067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33068 echo "${ECHO_T}$ac_header_preproc" >&6; }
33070 # So? What about this header?
33071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33077 ac_header_preproc=yes
33080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33100 eval "$as_ac_Header=\$ac_header_preproc"
33102 ac_res=`eval echo '${'$as_ac_Header'}'`
33103 { echo "$as_me:$LINENO: result: $ac_res" >&5
33104 echo "${ECHO_T}$ac_res" >&6; }
33107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33108 cat >>confdefs.h <<_ACEOF
33109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33113 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33114 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33120 if test $audiounitok = yes; then
33123 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33124 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33129 if test x$passed = xno; then
33130 skipped_dirs="$skipped_dirs gr-audio-osx"
33131 if test x$enable_gr_audio_osx = xyes; then
33132 { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33133 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33134 { (exit 1); exit 1; }; }
33136 { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33137 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33140 if test x$enable_gr_audio_osx != xno; then
33142 ac_config_commands="$ac_config_commands run_tests_osx"
33145 build_dirs="$build_dirs gr-audio-osx"
33146 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33147 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33149 skipped_dirs="$skipped_dirs gr-audio-osx"
33150 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33151 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33158 # Check whether --enable-gr-audio-portaudio was given.
33159 if test "${enable_gr_audio_portaudio+set}" = set; then
33160 enableval=$enable_gr_audio_portaudio;
33162 enable_gr_audio_portaudio=$enable_all_components
33167 ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33174 if test -z "$PKG_CONFIG"; then
33175 # Extract the first word of "pkg-config", so it can be a program name with args.
33176 set dummy pkg-config; ac_word=$2
33177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33182 case $PKG_CONFIG in
33184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188 for as_dir in $PATH
33191 test -z "$as_dir" && as_dir=.
33192 for ac_exec_ext in '' $ac_executable_extensions; do
33193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33207 if test -n "$PKG_CONFIG"; then
33208 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33209 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33211 { echo "$as_me:$LINENO: result: no" >&5
33212 echo "${ECHO_T}no" >&6; }
33218 if test "$PKG_CONFIG" = "no" ; then
33219 echo "*** The pkg-config script could not be found. Make sure it is"
33220 echo "*** in your path, or set the PKG_CONFIG environment variable"
33221 echo "*** to the full path to pkg-config."
33222 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33224 if test -z "$PKG_CONFIG_PATH"; then
33225 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33228 PKG_CONFIG_MIN_VERSION=0.9.0
33229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33230 { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33231 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33233 if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33234 { echo "$as_me:$LINENO: result: yes" >&5
33235 echo "${ECHO_T}yes" >&6; }
33238 { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33239 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33240 PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33241 { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33242 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33244 { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33245 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33246 PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33247 { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33248 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33250 { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33251 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33252 PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33253 { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33254 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33256 PORTAUDIO_CFLAGS=""
33258 ## If we have a custom action on failure, don't print errors, but
33259 ## do set a variable so people can do so.
33260 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33268 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33269 echo "*** See http://www.freedesktop.org/software/pkgconfig"
33273 if test $succeeded = yes; then
33276 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33277 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33282 if test x$passed = xno; then
33283 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33284 if test x$enable_gr_audio_portaudio = xyes; then
33285 { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33286 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33287 { (exit 1); exit 1; }; }
33289 { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33290 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33293 if test x$enable_gr_audio_portaudio != xno; then
33296 ac_config_commands="$ac_config_commands run_tests_portaudio"
33299 build_dirs="$build_dirs gr-audio-portaudio"
33300 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33301 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33303 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33304 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33305 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33312 # Check whether --enable-gr-audio-windows was given.
33313 if test "${enable_gr_audio_windows+set}" = set; then
33314 enableval=$enable_gr_audio_windows;
33316 enable_gr_audio_windows=$enable_all_components
33321 ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33326 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33327 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33328 if test "${ac_cv_lib_winmm_main+set}" = set; then
33329 echo $ECHO_N "(cached) $ECHO_C" >&6
33331 ac_check_lib_save_LIBS=$LIBS
33332 LIBS="-lwinmm $LIBS"
33333 cat >conftest.$ac_ext <<_ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h. */
33349 rm -f conftest.$ac_objext conftest$ac_exeext
33350 if { (ac_try="$ac_link"
33351 case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_link") 2>conftest.er1
33358 grep -v '^ *+' conftest.er1 >conftest.err
33360 cat conftest.err >&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
33363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33364 { (case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest$ac_exeext'
33374 { (case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_try") 2>&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; }; then
33383 ac_cv_lib_winmm_main=yes
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33388 ac_cv_lib_winmm_main=no
33391 rm -f core conftest.err conftest.$ac_objext \
33392 conftest$ac_exeext conftest.$ac_ext
33393 LIBS=$ac_check_lib_save_LIBS
33395 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33396 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33397 if test $ac_cv_lib_winmm_main = yes; then
33398 cat >>confdefs.h <<_ACEOF
33399 #define HAVE_LIBWINMM 1
33402 LIBS="-lwinmm $LIBS"
33405 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33406 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33408 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33412 if test x$passed = xno; then
33413 skipped_dirs="$skipped_dirs gr-audio-windows"
33414 if test x$enable_gr_audio_windows = xyes; then
33415 { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33416 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33417 { (exit 1); exit 1; }; }
33419 { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33420 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33423 if test x$enable_gr_audio_windows != xno; then
33425 WINAUDIO_LIBS=-lwinmm
33427 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33430 build_dirs="$build_dirs gr-audio-windows"
33431 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33432 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33434 skipped_dirs="$skipped_dirs gr-audio-windows"
33435 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33436 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33443 # Check whether --enable-gr-gsm-fr-vocoder was given.
33444 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33445 enableval=$enable_gr_gsm_fr_vocoder;
33447 enable_gr_gsm_fr_vocoder=$enable_all_components
33452 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"
33457 if test x$passed = xno; then
33458 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33459 if test x$enable_gr_gsm_fr_vocoder = xyes; then
33460 { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33461 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33462 { (exit 1); exit 1; }; }
33464 { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33465 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33468 if test x$enable_gr_gsm_fr_vocoder != xno; then
33470 ac_config_commands="$ac_config_commands run_tests_gsm"
33473 build_dirs="$build_dirs gr-gsm-fr-vocoder"
33474 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33475 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33477 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33478 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33479 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33486 # Check whether --enable-gr-radio-astronomy was given.
33487 if test "${enable_gr_radio_astronomy+set}" = set; then
33488 enableval=$enable_gr_radio_astronomy;
33490 enable_gr_radio_astronomy=$enable_all_components
33495 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"
33500 if test x$passed = xno; then
33501 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33502 if test x$enable_gr_radio_astronomy = xyes; then
33503 { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33504 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33505 { (exit 1); exit 1; }; }
33507 { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33508 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33511 if test x$enable_gr_radio_astronomy != xno; then
33513 ac_config_commands="$ac_config_commands run_tests_astronomy"
33516 build_dirs="$build_dirs gr-radio-astronomy"
33517 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33518 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33520 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33521 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33522 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33529 # Check whether --enable-gr-trellis was given.
33530 if test "${enable_gr_trellis+set}" = set; then
33531 enableval=$enable_gr_trellis;
33533 enable_gr_trellis=$enable_all_components
33538 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"
33543 if test x$passed = xno; then
33544 skipped_dirs="$skipped_dirs gr-trellis"
33545 if test x$enable_gr_trellis = xyes; then
33546 { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33547 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33548 { (exit 1); exit 1; }; }
33550 { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33551 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33554 if test x$enable_gr_trellis != xno; then
33556 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33559 build_dirs="$build_dirs gr-trellis"
33560 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33561 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33563 skipped_dirs="$skipped_dirs gr-trellis"
33564 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33565 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33572 # Check whether --enable-gr-video-sdl was given.
33573 if test "${enable_gr_video_sdl+set}" = set; then
33574 enableval=$enable_gr_video_sdl;
33576 enable_gr_video_sdl=$enable_all_components
33581 ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33587 # Check whether --with-sdl-prefix was given.
33588 if test "${with_sdl_prefix+set}" = set; then
33589 withval=$with_sdl_prefix; sdl_prefix="$withval"
33595 # Check whether --with-sdl-exec-prefix was given.
33596 if test "${with_sdl_exec_prefix+set}" = set; then
33597 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33602 # Check whether --enable-sdltest was given.
33603 if test "${enable_sdltest+set}" = set; then
33604 enableval=$enable_sdltest;
33610 if test x$sdl_exec_prefix != x ; then
33611 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33612 if test x${SDL_CONFIG+set} != xset ; then
33613 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33616 if test x$sdl_prefix != x ; then
33617 sdl_args="$sdl_args --prefix=$sdl_prefix"
33618 if test x${SDL_CONFIG+set} != xset ; then
33619 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33624 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33625 # Extract the first word of "sdl-config", so it can be a program name with args.
33626 set dummy sdl-config; ac_word=$2
33627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33629 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33630 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 case $SDL_CONFIG in
33634 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33638 for as_dir in $PATH
33641 test -z "$as_dir" && as_dir=.
33642 for ac_exec_ext in '' $ac_executable_extensions; do
33643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33644 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33652 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33656 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33657 if test -n "$SDL_CONFIG"; then
33658 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33659 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33661 { echo "$as_me:$LINENO: result: no" >&5
33662 echo "${ECHO_T}no" >&6; }
33666 min_sdl_version=$SDL_VERSION
33667 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33668 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33670 if test "$SDL_CONFIG" = "no" ; then
33673 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33674 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33676 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33678 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33679 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33680 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33681 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33682 if test "x$enable_sdltest" = "xyes" ; then
33683 ac_save_CFLAGS="$CFLAGS"
33684 ac_save_LIBS="$LIBS"
33685 CFLAGS="$CFLAGS $SDL_CFLAGS"
33686 LIBS="$LIBS $SDL_LIBS"
33688 if test "$cross_compiling" = yes; then
33689 echo $ac_n "cross compiling; assumed OK... $ac_c"
33691 cat >conftest.$ac_ext <<_ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h. */
33699 #include <stdlib.h>
33700 #include <string.h>
33704 my_strdup (char *str)
33710 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33711 strcpy (new_str, str);
33719 int main (int argc, char *argv[])
33721 int major, minor, micro;
33724 /* This hangs on some systems (?)
33725 system ("touch conf.sdltest");
33727 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33729 /* HP/UX 9 (%@#!) writes to sscanf strings */
33730 tmp_version = my_strdup("$min_sdl_version");
33731 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
33732 printf("%s, bad version string\n", "$min_sdl_version");
33736 if (($sdl_major_version > major) ||
33737 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33738 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33744 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33745 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33746 printf("*** best to upgrade to the required version.\n");
33747 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33748 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33749 printf("*** config.cache before re-running configure\n");
33756 rm -f conftest$ac_exeext
33757 if { (ac_try="$ac_link"
33758 case "(($ac_try" in
33759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33760 *) ac_try_echo=$ac_try;;
33762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33763 (eval "$ac_link") 2>&5
33765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33767 { (case "(($ac_try" in
33768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769 *) ac_try_echo=$ac_try;;
33771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772 (eval "$ac_try") 2>&5
33774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775 (exit $ac_status); }; }; then
33778 echo "$as_me: program exited with status $ac_status" >&5
33779 echo "$as_me: failed program was:" >&5
33780 sed 's/^/| /' conftest.$ac_ext >&5
33782 ( exit $ac_status )
33785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33789 CFLAGS="$ac_save_CFLAGS"
33790 LIBS="$ac_save_LIBS"
33793 if test "x$no_sdl" = x ; then
33794 { echo "$as_me:$LINENO: result: yes" >&5
33795 echo "${ECHO_T}yes" >&6; }
33798 { echo "$as_me:$LINENO: result: no" >&5
33799 echo "${ECHO_T}no" >&6; }
33800 if test "$SDL_CONFIG" = "no" ; then
33801 echo "*** The sdl-config script installed by SDL could not be found"
33802 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33803 echo "*** your path, or set the SDL_CONFIG environment variable to the"
33804 echo "*** full path to sdl-config."
33806 if test -f conf.sdltest ; then
33809 echo "*** Could not run SDL test program, checking why..."
33810 CFLAGS="$CFLAGS $SDL_CFLAGS"
33811 LIBS="$LIBS $SDL_LIBS"
33812 cat >conftest.$ac_ext <<_ACEOF
33815 cat confdefs.h >>conftest.$ac_ext
33816 cat >>conftest.$ac_ext <<_ACEOF
33817 /* end confdefs.h. */
33822 int main(int argc, char *argv[])
33825 #define main K_and_R_C_main
33835 rm -f conftest.$ac_objext conftest$ac_exeext
33836 if { (ac_try="$ac_link"
33837 case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_link") 2>conftest.er1
33844 grep -v '^ *+' conftest.er1 >conftest.err
33846 cat conftest.err >&5
33847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848 (exit $ac_status); } &&
33849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33850 { (case "(($ac_try" in
33851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33852 *) ac_try_echo=$ac_try;;
33854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33855 (eval "$ac_try") 2>&5
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); }; } &&
33859 { ac_try='test -s conftest$ac_exeext'
33860 { (case "(($ac_try" in
33861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862 *) ac_try_echo=$ac_try;;
33864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865 (eval "$ac_try") 2>&5
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; }; then
33869 echo "*** The test program compiled, but did not run. This usually means"
33870 echo "*** that the run-time linker is not finding SDL or finding the wrong"
33871 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33872 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33873 echo "*** to the installed location Also, make sure you have run ldconfig if that"
33874 echo "*** is required on your system"
33876 echo "*** If you have an old version installed, it is best to remove it, although"
33877 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33879 echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33882 echo "*** The test program failed to compile or link. See the file config.log for the"
33883 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33884 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33885 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33888 rm -f core conftest.err conftest.$ac_objext \
33889 conftest$ac_exeext conftest.$ac_ext
33890 CFLAGS="$ac_save_CFLAGS"
33891 LIBS="$ac_save_LIBS"
33896 passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
33897 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
33905 if test x$passed = xno; then
33906 skipped_dirs="$skipped_dirs gr-video-sdl"
33907 if test x$enable_gr_video_sdl = xyes; then
33908 { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33909 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33910 { (exit 1); exit 1; }; }
33912 { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33913 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33916 if test x$enable_gr_video_sdl != xno; then
33920 ac_config_commands="$ac_config_commands run_tests_sdl"
33923 build_dirs="$build_dirs gr-video-sdl"
33924 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33925 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33927 skipped_dirs="$skipped_dirs gr-video-sdl"
33928 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33929 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33936 # Check whether --enable-gr-wxgui was given.
33937 if test "${enable_gr_wxgui+set}" = set; then
33938 enableval=$enable_gr_wxgui;
33940 enable_gr_wxgui=$enable_all_components
33945 ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33948 # FIXME: this breaks pkgsrc by calling python without a version number
33949 # gdt--patch welcome :-)
33950 if python -c 'import wx'; then
33957 if test x$passed = xno; then
33958 skipped_dirs="$skipped_dirs gr-wxgui"
33959 if test x$enable_gr_wxgui = xyes; then
33960 { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33961 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33962 { (exit 1); exit 1; }; }
33964 { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33965 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33968 if test x$enable_gr_wxgui != xno; then
33970 build_dirs="$build_dirs gr-wxgui"
33971 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33972 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33974 skipped_dirs="$skipped_dirs gr-wxgui"
33975 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33976 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33982 # Each component is now either to be built, was skipped, or failed dependencies
33983 build_dirs=$build_dirs
33985 skipped_dirs=$skipped_dirs
33988 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33991 ac_config_commands="$ac_config_commands run_tests_build"
33994 cat >confcache <<\_ACEOF
33995 # This file is a shell script that caches the results of configure
33996 # tests run on this system so they can be shared between configure
33997 # scripts and configure runs, see configure's option --config-cache.
33998 # It is not useful on other systems. If it contains results you don't
33999 # want to keep, you may remove or edit it.
34001 # config.status only pays attention to the cache file if you give it
34002 # the --recheck option to rerun configure.
34004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34006 # following values.
34010 # The following way of writing the cache mishandles newlines in values,
34011 # but we know of no workaround that is simple, portable, and efficient.
34012 # So, we kill variables containing newlines.
34013 # Ultrix sh set writes to stderr and can't be redirected directly,
34014 # and sets the high bit in the cache file unless we assign to the vars.
34016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34017 eval ac_val=\$$ac_var
34021 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34022 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34025 _ | IFS | as_nl) ;; #(
34026 *) $as_unset $ac_var ;;
34032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34033 *${as_nl}ac_space=\ *)
34034 # `set' does not quote correctly, so add quotes (double-quote
34035 # substitution turns \\\\ into \\, and sed turns \\ into \).
34038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34041 # `set' quotes correctly as required by POSIX, so do not add quotes.
34042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34056 if test -w "$cache_file"; then
34057 test "x$cache_file" != "x/dev/null" &&
34058 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34059 echo "$as_me: updating cache $cache_file" >&6;}
34060 cat confcache >$cache_file
34062 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34063 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34069 # Let make expand exec_prefix.
34070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34072 DEFS=-DHAVE_CONFIG_H
34076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34077 # 1. Remove the extension, and $U if already installed.
34078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34079 ac_i=`echo "$ac_i" | sed "$ac_script"`
34080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34081 # will be set to the directory where LIBOBJS objects are built.
34082 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34083 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34085 LIBOBJS=$ac_libobjs
34087 LTLIBOBJS=$ac_ltlibobjs
34090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34091 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34092 Usually this means the macro was only invoked conditionally." >&5
34093 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34094 Usually this means the macro was only invoked conditionally." >&2;}
34095 { (exit 1); exit 1; }; }
34097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34098 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34099 Usually this means the macro was only invoked conditionally." >&5
34100 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34101 Usually this means the macro was only invoked conditionally." >&2;}
34102 { (exit 1); exit 1; }; }
34104 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34105 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34106 Usually this means the macro was only invoked conditionally." >&5
34107 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34108 Usually this means the macro was only invoked conditionally." >&2;}
34109 { (exit 1); exit 1; }; }
34111 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34112 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34113 Usually this means the macro was only invoked conditionally." >&5
34114 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34115 Usually this means the macro was only invoked conditionally." >&2;}
34116 { (exit 1); exit 1; }; }
34118 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34119 { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34120 Usually this means the macro was only invoked conditionally." >&5
34121 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34122 Usually this means the macro was only invoked conditionally." >&2;}
34123 { (exit 1); exit 1; }; }
34125 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34126 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34127 Usually this means the macro was only invoked conditionally." >&5
34128 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34129 Usually this means the macro was only invoked conditionally." >&2;}
34130 { (exit 1); exit 1; }; }
34132 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34133 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34134 Usually this means the macro was only invoked conditionally." >&5
34135 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34136 Usually this means the macro was only invoked conditionally." >&2;}
34137 { (exit 1); exit 1; }; }
34139 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34140 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34141 Usually this means the macro was only invoked conditionally." >&5
34142 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34143 Usually this means the macro was only invoked conditionally." >&2;}
34144 { (exit 1); exit 1; }; }
34146 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34147 { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34148 Usually this means the macro was only invoked conditionally." >&5
34149 echo "$as_me: error: conditional \"DOC\" was never defined.
34150 Usually this means the macro was only invoked conditionally." >&2;}
34151 { (exit 1); exit 1; }; }
34153 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34154 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34155 Usually this means the macro was only invoked conditionally." >&5
34156 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&2;}
34158 { (exit 1); exit 1; }; }
34160 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34161 { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34162 Usually this means the macro was only invoked conditionally." >&5
34163 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&2;}
34165 { (exit 1); exit 1; }; }
34167 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34168 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34169 Usually this means the macro was only invoked conditionally." >&5
34170 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34171 Usually this means the macro was only invoked conditionally." >&2;}
34172 { (exit 1); exit 1; }; }
34174 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34175 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34176 Usually this means the macro was only invoked conditionally." >&5
34177 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34178 Usually this means the macro was only invoked conditionally." >&2;}
34179 { (exit 1); exit 1; }; }
34181 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34182 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34183 Usually this means the macro was only invoked conditionally." >&5
34184 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34185 Usually this means the macro was only invoked conditionally." >&2;}
34186 { (exit 1); exit 1; }; }
34188 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34189 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34190 Usually this means the macro was only invoked conditionally." >&5
34191 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34192 Usually this means the macro was only invoked conditionally." >&2;}
34193 { (exit 1); exit 1; }; }
34195 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34196 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34197 Usually this means the macro was only invoked conditionally." >&5
34198 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34199 Usually this means the macro was only invoked conditionally." >&2;}
34200 { (exit 1); exit 1; }; }
34202 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34203 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34204 Usually this means the macro was only invoked conditionally." >&5
34205 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34206 Usually this means the macro was only invoked conditionally." >&2;}
34207 { (exit 1); exit 1; }; }
34210 : ${CONFIG_STATUS=./config.status}
34211 ac_clean_files_save=$ac_clean_files
34212 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34213 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34214 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34215 cat >$CONFIG_STATUS <<_ACEOF
34217 # Generated by $as_me.
34218 # Run this file to recreate the current configuration.
34219 # Compiler output produced by configure, useful for debugging
34220 # configure, is in config.log if it exists.
34223 ac_cs_recheck=false
34225 SHELL=\${CONFIG_SHELL-$SHELL}
34228 cat >>$CONFIG_STATUS <<\_ACEOF
34229 ## --------------------- ##
34230 ## M4sh Initialization. ##
34231 ## --------------------- ##
34233 # Be Bourne compatible
34234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34237 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34238 # is contrary to our usage. Disable this feature.
34239 alias -g '${1+"$@"}'='"$@"'
34240 setopt NO_GLOB_SUBST
34242 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34244 BIN_SH=xpg4; export BIN_SH # for Tru64
34245 DUALCASE=1; export DUALCASE # for MKS sh
34249 # Avoid depending upon Character Ranges.
34250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34253 as_cr_digits='0123456789'
34254 as_cr_alnum=$as_cr_Letters$as_cr_digits
34256 # The user is always right.
34257 if test "${PATH_SEPARATOR+set}" != set; then
34258 echo "#! /bin/sh" >conf$$.sh
34259 echo "exit 0" >>conf$$.sh
34261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34269 # Support unset when possible.
34270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34278 # We need space, tab and new line, in precisely that order. Quoting is
34279 # there to prevent editors from complaining about space-tab.
34280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34281 # splitting by setting IFS to empty value.)
34286 # Find who we are. Look in the path if we contain no directory separator.
34288 *[\\/]* ) as_myself=$0 ;;
34289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34290 for as_dir in $PATH
34293 test -z "$as_dir" && as_dir=.
34294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34300 # We did not find ourselves, most probably we were run as `sh COMMAND'
34301 # in which case we are not to be found in the path.
34302 if test "x$as_myself" = x; then
34305 if test ! -f "$as_myself"; then
34306 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34307 { (exit 1); exit 1; }
34310 # Work around bugs in pre-3.0 UWIN ksh.
34311 for as_var in ENV MAIL MAILPATH
34312 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34320 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34321 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34322 LC_TELEPHONE LC_TIME
34324 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34325 eval $as_var=C; export $as_var
34327 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34331 # Required to use basename.
34332 if expr a : '\(a\)' >/dev/null 2>&1 &&
34333 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34340 as_basename=basename
34346 # Name of the executable.
34347 as_me=`$as_basename -- "$0" ||
34348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34349 X"$0" : 'X\(//\)$' \| \
34350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34352 sed '/^.*\/\([^/][^/]*\)\/*$/{
34371 as_lineno_1=$LINENO
34372 as_lineno_2=$LINENO
34373 test "x$as_lineno_1" != "x$as_lineno_2" &&
34374 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34377 # uniformly replaced by the line number. The first 'sed' inserts a
34378 # line-number line after each line using $LINENO; the second 'sed'
34379 # does the real work. The second script uses 'N' to pair each
34380 # line-number line with the line containing $LINENO, and appends
34381 # trailing '-' during substitution so that $LINENO is not a special
34382 # case at line end.
34383 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34384 # scripts with optimization help from Paolo Bonzini. Blame Lee
34385 # E. McMahon (1931-1989) for sed's syntax. :-)
34397 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34400 ' >$as_me.lineno &&
34401 chmod +x "$as_me.lineno" ||
34402 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34403 { (exit 1); exit 1; }; }
34405 # Don't try to exec as it changes $[0], causing all sort of problems
34406 # (the dirname of $[0] is not the place where we might find the
34407 # original and so on. Autoconf is especially sensitive to this).
34408 . "./$as_me.lineno"
34409 # Exit status is that of the last command.
34414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34420 ECHO_C= ECHO_N= ECHO_T=
34421 case `echo -n x` in
34423 case `echo 'x\c'` in
34424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34431 if expr a : '\(a\)' >/dev/null 2>&1 &&
34432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34438 rm -f conf$$ conf$$.exe conf$$.file
34439 if test -d conf$$.dir; then
34440 rm -f conf$$.dir/conf$$.file
34446 if ln -s conf$$.file conf$$ 2>/dev/null; then
34448 # ... but there are two gotchas:
34449 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34450 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34451 # In both cases, we have to default to `cp -p'.
34452 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34454 elif ln conf$$.file conf$$ 2>/dev/null; then
34459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34460 rmdir conf$$.dir 2>/dev/null
34462 if mkdir -p . 2>/dev/null; then
34465 test -d ./-p && rmdir ./-p
34469 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34470 # systems may use methods other than mode bits to determine executability.
34471 cat >conf$$.file <<_ASEOF
34475 chmod +x conf$$.file
34476 if test -x conf$$.file >/dev/null 2>&1; then
34477 as_executable_p="test -x"
34483 # Sed expression to map a string onto a valid CPP name.
34484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34486 # Sed expression to map a string onto a valid variable name.
34487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34492 # Save the log message, to keep $[0] and so on meaningful, and to
34493 # report actual input values of CONFIG_FILES etc. instead of their
34494 # values after options handling.
34496 This file was extended by $as_me, which was
34497 generated by GNU Autoconf 2.60. Invocation command line was
34499 CONFIG_FILES = $CONFIG_FILES
34500 CONFIG_HEADERS = $CONFIG_HEADERS
34501 CONFIG_LINKS = $CONFIG_LINKS
34502 CONFIG_COMMANDS = $CONFIG_COMMANDS
34505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34510 cat >>$CONFIG_STATUS <<_ACEOF
34511 # Files that config.status was made for.
34512 config_files="$ac_config_files"
34513 config_headers="$ac_config_headers"
34514 config_commands="$ac_config_commands"
34518 cat >>$CONFIG_STATUS <<\_ACEOF
34520 \`$as_me' instantiates files from templates according to the
34521 current configuration.
34523 Usage: $0 [OPTIONS] [FILE]...
34525 -h, --help print this help, then exit
34526 -V, --version print version number, then exit
34527 -q, --quiet do not print progress messages
34528 -d, --debug don't remove temporary files
34529 --recheck update $as_me by reconfiguring in the same conditions
34530 --file=FILE[:TEMPLATE]
34531 instantiate the configuration file FILE
34532 --header=FILE[:TEMPLATE]
34533 instantiate the configuration header FILE
34535 Configuration files:
34538 Configuration headers:
34541 Configuration commands:
34544 Report bugs to <bug-autoconf@gnu.org>."
34547 cat >>$CONFIG_STATUS <<_ACEOF
34550 configured by $0, generated by GNU Autoconf 2.60,
34551 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34553 Copyright (C) 2006 Free Software Foundation, Inc.
34554 This config.status script is free software; the Free Software Foundation
34555 gives unlimited permission to copy, distribute and modify it."
34562 cat >>$CONFIG_STATUS <<\_ACEOF
34563 # If no file are specified by the user, then we need to provide default
34564 # value. By we need to know if files were specified by the user.
34570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34582 # Handling of the options.
34583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34585 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34586 echo "$ac_cs_version"; exit ;;
34587 --debug | --debu | --deb | --de | --d | -d )
34589 --file | --fil | --fi | --f )
34591 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34592 ac_need_defaults=false;;
34593 --header | --heade | --head | --hea )
34595 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34596 ac_need_defaults=false;;
34598 # Conflict between --help and --header
34599 { echo "$as_me: error: ambiguous option: $1
34600 Try \`$0 --help' for more information." >&2
34601 { (exit 1); exit 1; }; };;
34602 --help | --hel | -h )
34603 echo "$ac_cs_usage"; exit ;;
34604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34608 # This is an error.
34609 -*) { echo "$as_me: error: unrecognized option: $1
34610 Try \`$0 --help' for more information." >&2
34611 { (exit 1); exit 1; }; } ;;
34613 *) ac_config_targets="$ac_config_targets $1"
34614 ac_need_defaults=false ;;
34620 ac_configure_extra_args=
34622 if $ac_cs_silent; then
34624 ac_configure_extra_args="$ac_configure_extra_args --silent"
34628 cat >>$CONFIG_STATUS <<_ACEOF
34629 if \$ac_cs_recheck; then
34630 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34631 CONFIG_SHELL=$SHELL
34632 export CONFIG_SHELL
34633 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34637 cat >>$CONFIG_STATUS <<\_ACEOF
34641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34642 ## Running $as_me. ##
34648 cat >>$CONFIG_STATUS <<_ACEOF
34652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34656 cat >>$CONFIG_STATUS <<\_ACEOF
34658 # Handling of arguments.
34659 for ac_config_target in $ac_config_targets
34661 case $ac_config_target in
34662 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34664 "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34665 "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34666 "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34667 "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34668 "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34669 "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34670 "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34671 "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34672 "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34673 "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34674 "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34675 "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34676 "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34677 "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34678 "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34679 "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34680 "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34681 "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34682 "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34683 "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34684 "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34685 "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34686 "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34687 "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34688 "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34689 "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34690 "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34691 "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34692 "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34693 "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34694 "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34695 "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34696 "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34697 "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34698 "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34699 "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34700 "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34701 "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34702 "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34703 "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34704 "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34705 "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34706 "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34707 "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34708 "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34709 "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34710 "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34711 "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34712 "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34713 "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34714 "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34715 "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34716 "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34717 "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34718 "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34719 "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34720 "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34721 "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34722 "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34723 "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34724 "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34725 "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34726 "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34727 "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34728 "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34729 "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34730 "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34731 "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34732 "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34733 "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34734 "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34735 "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34736 "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34737 "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34738 "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34739 "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34740 "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34741 "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34742 "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34743 "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34744 "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34745 "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34746 "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34747 "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34748 "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34749 "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34750 "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34751 "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34752 "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34753 "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34754 "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34755 "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34756 "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34757 "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34758 "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34759 "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34760 "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34761 "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34762 "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34763 "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34764 "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34765 "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34766 "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34767 "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34768 "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34769 "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34770 "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34771 "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34772 "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34773 "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34774 "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34775 "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34776 "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34777 "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34778 "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34779 "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34780 "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34781 "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34782 "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34783 "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34784 "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34786 "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34787 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34788 "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34790 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34791 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34792 { (exit 1); exit 1; }; };;
34797 # If the user did not use the arguments to specify the items to instantiate,
34798 # then the envvar interface is used. Set only those that are not.
34799 # We use the long form for the default assignment because of an extremely
34800 # bizarre bug on SunOS 4.1.3.
34801 if $ac_need_defaults; then
34802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34807 # Have a temporary directory for convenience. Make it in the build tree
34808 # simply because there is no reason against having it here, and in addition,
34809 # creating and moving files from /tmp can sometimes cause problems.
34810 # Hook for its removal unless debugging.
34811 # Note that there is a small window in which the directory will not be cleaned:
34812 # after its creation but before its name has been assigned to `$tmp'.
34816 trap 'exit_status=$?
34817 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34819 trap '{ (exit 1); exit 1; }' 1 2 13 15
34821 # Create a (secure) tmp directory for tmp files.
34824 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34825 test -n "$tmp" && test -d "$tmp"
34828 tmp=./conf$$-$RANDOM
34829 (umask 077 && mkdir "$tmp")
34832 echo "$me: cannot create a temporary directory in ." >&2
34833 { (exit 1); exit 1; }
34837 # Set up the sed scripts for CONFIG_FILES section.
34840 # No need to generate the scripts if there are no CONFIG_FILES.
34841 # This happens for instance when ./config.status config.h
34842 if test -n "$CONFIG_FILES"; then
34849 for ac_last_try in false false false false false :; do
34850 cat >conf$$subs.sed <<_ACEOF
34851 SHELL!$SHELL$ac_delim
34852 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34853 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34854 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34855 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34856 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34857 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34858 exec_prefix!$exec_prefix$ac_delim
34859 prefix!$prefix$ac_delim
34860 program_transform_name!$program_transform_name$ac_delim
34861 bindir!$bindir$ac_delim
34862 sbindir!$sbindir$ac_delim
34863 libexecdir!$libexecdir$ac_delim
34864 datarootdir!$datarootdir$ac_delim
34865 datadir!$datadir$ac_delim
34866 sysconfdir!$sysconfdir$ac_delim
34867 sharedstatedir!$sharedstatedir$ac_delim
34868 localstatedir!$localstatedir$ac_delim
34869 includedir!$includedir$ac_delim
34870 oldincludedir!$oldincludedir$ac_delim
34871 docdir!$docdir$ac_delim
34872 infodir!$infodir$ac_delim
34873 htmldir!$htmldir$ac_delim
34874 dvidir!$dvidir$ac_delim
34875 pdfdir!$pdfdir$ac_delim
34876 psdir!$psdir$ac_delim
34877 libdir!$libdir$ac_delim
34878 localedir!$localedir$ac_delim
34879 mandir!$mandir$ac_delim
34880 DEFS!$DEFS$ac_delim
34881 ECHO_C!$ECHO_C$ac_delim
34882 ECHO_N!$ECHO_N$ac_delim
34883 ECHO_T!$ECHO_T$ac_delim
34884 LIBS!$LIBS$ac_delim
34885 build_alias!$build_alias$ac_delim
34886 host_alias!$host_alias$ac_delim
34887 target_alias!$target_alias$ac_delim
34888 build!$build$ac_delim
34889 build_cpu!$build_cpu$ac_delim
34890 build_vendor!$build_vendor$ac_delim
34891 build_os!$build_os$ac_delim
34892 host!$host$ac_delim
34893 host_cpu!$host_cpu$ac_delim
34894 host_vendor!$host_vendor$ac_delim
34895 host_os!$host_os$ac_delim
34896 target!$target$ac_delim
34897 target_cpu!$target_cpu$ac_delim
34898 target_vendor!$target_vendor$ac_delim
34899 target_os!$target_os$ac_delim
34900 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34901 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34902 INSTALL_DATA!$INSTALL_DATA$ac_delim
34903 CYGPATH_W!$CYGPATH_W$ac_delim
34904 PACKAGE!$PACKAGE$ac_delim
34905 VERSION!$VERSION$ac_delim
34906 ACLOCAL!$ACLOCAL$ac_delim
34907 AUTOCONF!$AUTOCONF$ac_delim
34908 AUTOMAKE!$AUTOMAKE$ac_delim
34909 AUTOHEADER!$AUTOHEADER$ac_delim
34910 MAKEINFO!$MAKEINFO$ac_delim
34911 install_sh!$install_sh$ac_delim
34912 STRIP!$STRIP$ac_delim
34913 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34914 mkdir_p!$mkdir_p$ac_delim
34916 SET_MAKE!$SET_MAKE$ac_delim
34917 am__leading_dot!$am__leading_dot$ac_delim
34918 AMTAR!$AMTAR$ac_delim
34919 am__tar!$am__tar$ac_delim
34920 am__untar!$am__untar$ac_delim
34922 CFLAGS!$CFLAGS$ac_delim
34923 LDFLAGS!$LDFLAGS$ac_delim
34924 CPPFLAGS!$CPPFLAGS$ac_delim
34925 ac_ct_CC!$ac_ct_CC$ac_delim
34926 EXEEXT!$EXEEXT$ac_delim
34927 OBJEXT!$OBJEXT$ac_delim
34928 DEPDIR!$DEPDIR$ac_delim
34929 am__include!$am__include$ac_delim
34930 am__quote!$am__quote$ac_delim
34931 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34932 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34933 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34934 CCDEPMODE!$CCDEPMODE$ac_delim
34935 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34936 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34938 GREP!$GREP$ac_delim
34939 EGREP!$EGREP$ac_delim
34941 CXXFLAGS!$CXXFLAGS$ac_delim
34942 ac_ct_CXX!$ac_ct_CXX$ac_delim
34943 CXXDEPMODE!$CXXDEPMODE$ac_delim
34944 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34945 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34946 CXXCPP!$CXXCPP$ac_delim
34947 CCAS!$CCAS$ac_delim
34950 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34952 elif $ac_last_try; then
34953 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34954 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34955 { (exit 1); exit 1; }; }
34957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34961 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34962 if test -n "$ac_eof"; then
34963 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34964 ac_eof=`expr $ac_eof + 1`
34967 cat >>$CONFIG_STATUS <<_ACEOF
34968 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34972 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34973 s/^/s,@/; s/!/@,|#_!!_#|/
34976 s/'"$ac_delim"'$/,g/; t
34978 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34979 ' >>$CONFIG_STATUS <conf$$subs.sed
34980 rm -f conf$$subs.sed
34981 cat >>$CONFIG_STATUS <<_ACEOF
34987 for ac_last_try in false false false false false :; do
34988 cat >conf$$subs.sed <<_ACEOF
34989 CCASFLAGS!$CCASFLAGS$ac_delim
34990 LN_S!$LN_S$ac_delim
34991 RM_PROG!$RM_PROG$ac_delim
34992 ECHO!$ECHO$ac_delim
34994 RANLIB!$RANLIB$ac_delim
34995 DLLTOOL!$DLLTOOL$ac_delim
34997 OBJDUMP!$OBJDUMP$ac_delim
34999 FFLAGS!$FFLAGS$ac_delim
35000 ac_ct_F77!$ac_ct_F77$ac_delim
35001 LIBTOOL!$LIBTOOL$ac_delim
35002 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
35003 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
35004 FLIBS!$FLIBS$ac_delim
35005 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
35006 SWIG!$SWIG$ac_delim
35007 PYTHON!$PYTHON$ac_delim
35008 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
35009 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
35010 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
35011 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
35012 pythondir!$pythondir$ac_delim
35013 pkgpythondir!$pkgpythondir$ac_delim
35014 pyexecdir!$pyexecdir$ac_delim
35015 pkgpyexecdir!$pkgpyexecdir$ac_delim
35016 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35017 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35018 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35019 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35020 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35021 XMLTO!$XMLTO$ac_delim
35022 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35023 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35024 PTHREAD_CC!$PTHREAD_CC$ac_delim
35025 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35026 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35027 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35028 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35029 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35030 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35031 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35032 IPC_LIBS!$IPC_LIBS$ac_delim
35033 ALLOCA!$ALLOCA$ac_delim
35034 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35035 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35036 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35037 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35038 LIBOBJS!$LIBOBJS$ac_delim
35039 HAVE_DOT!$HAVE_DOT$ac_delim
35040 PKG_CONFIG!$PKG_CONFIG$ac_delim
35041 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35042 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35043 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35044 DOXYGEN!$DOXYGEN$ac_delim
35046 DOC_TRUE!$DOC_TRUE$ac_delim
35047 DOC_FALSE!$DOC_FALSE$ac_delim
35048 enable_dot!$enable_dot$ac_delim
35049 enable_html_docs!$enable_html_docs$ac_delim
35050 enable_latex_docs!$enable_latex_docs$ac_delim
35051 generate_docs!$generate_docs$ac_delim
35052 MD_CPU!$MD_CPU$ac_delim
35053 MD_SUBCPU!$MD_SUBCPU$ac_delim
35054 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35055 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35056 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35057 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35058 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35059 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35060 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35061 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35062 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35063 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35064 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35065 DEFINES!$DEFINES$ac_delim
35066 USB_LIBS!$USB_LIBS$ac_delim
35067 FUSB_TECH!$FUSB_TECH$ac_delim
35068 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35069 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35070 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35071 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35072 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35073 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35074 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35075 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35076 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35077 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35080 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35081 ALSA_LIBS!$ALSA_LIBS$ac_delim
35082 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35083 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35084 JACK_LIBS!$JACK_LIBS$ac_delim
35085 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35090 elif $ac_last_try; then
35091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35093 { (exit 1); exit 1; }; }
35095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35100 if test -n "$ac_eof"; then
35101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35102 ac_eof=`expr $ac_eof + 1`
35105 cat >>$CONFIG_STATUS <<_ACEOF
35106 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35111 s/^/s,@/; s/!/@,|#_!!_#|/
35114 s/'"$ac_delim"'$/,g/; t
35116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35117 ' >>$CONFIG_STATUS <conf$$subs.sed
35118 rm -f conf$$subs.sed
35119 cat >>$CONFIG_STATUS <<_ACEOF
35125 for ac_last_try in false false false false false :; do
35126 cat >conf$$subs.sed <<_ACEOF
35127 OSS_LIBS!$OSS_LIBS$ac_delim
35128 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35129 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35130 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35131 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35132 SDL_CONFIG!$SDL_CONFIG$ac_delim
35133 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35134 SDL_LIBS!$SDL_LIBS$ac_delim
35135 build_dirs!$build_dirs$ac_delim
35136 skipped_dirs!$skipped_dirs$ac_delim
35137 LTLIBOBJS!$LTLIBOBJS$ac_delim
35140 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35142 elif $ac_last_try; then
35143 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35145 { (exit 1); exit 1; }; }
35147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35152 if test -n "$ac_eof"; then
35153 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35154 ac_eof=`expr $ac_eof + 1`
35157 cat >>$CONFIG_STATUS <<_ACEOF
35158 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35163 s/^/s,@/; s/!/@,|#_!!_#|/
35166 s/'"$ac_delim"'$/,g/; t
35168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35169 ' >>$CONFIG_STATUS <conf$$subs.sed
35170 rm -f conf$$subs.sed
35171 cat >>$CONFIG_STATUS <<_ACEOF
35178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35180 # trailing colons and then remove the whole line if VPATH becomes empty
35181 # (actually we leave an empty line to preserve line numbers).
35182 if test "x$srcdir" = x.; then
35183 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35184 s/:*\$(srcdir):*/:/
35185 s/:*\${srcdir}:*/:/
35187 s/^\([^=]*=[ ]*\):*/\1/
35193 cat >>$CONFIG_STATUS <<\_ACEOF
35194 fi # test -n "$CONFIG_FILES"
35197 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35200 :[FHLC]) ac_mode=$ac_tag; continue;;
35202 case $ac_mode$ac_tag in
35204 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35205 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35206 { (exit 1); exit 1; }; };;
35207 :[FH]-) ac_tag=-:-;;
35208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35225 -) ac_f="$tmp/stdin";;
35226 *) # Look for the file first in the build tree, then in the source tree
35227 # (if the path is not absolute). The absolute path cannot be DOS-style,
35228 # because $ac_f cannot contain `:'.
35232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35234 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35235 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35236 { (exit 1); exit 1; }; };;
35238 ac_file_inputs="$ac_file_inputs $ac_f"
35241 # Let's still pretend it is `configure' which instantiates (i.e., don't
35242 # use $as_me), people would be surprised to read:
35243 # /* config.h. Generated by config.status. */
35244 configure_input="Generated from "`IFS=:
35245 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35246 if test x"$ac_file" != x-; then
35247 configure_input="$ac_file. $configure_input"
35248 { echo "$as_me:$LINENO: creating $ac_file" >&5
35249 echo "$as_me: creating $ac_file" >&6;}
35253 *:-:* | *:-) cat >"$tmp/stdin";;
35258 ac_dir=`$as_dirname -- "$ac_file" ||
35259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35260 X"$ac_file" : 'X\(//\)[^/]' \| \
35261 X"$ac_file" : 'X\(//\)$' \| \
35262 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35268 /^X\(\/\/\)[^/].*/{
35283 -*) as_dir=./$as_dir;;
35285 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35289 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35290 *) as_qdir=$as_dir;;
35292 as_dirs="'$as_qdir' $as_dirs"
35293 as_dir=`$as_dirname -- "$as_dir" ||
35294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35295 X"$as_dir" : 'X\(//\)[^/]' \| \
35296 X"$as_dir" : 'X\(//\)$' \| \
35297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35303 /^X\(\/\/\)[^/].*/{
35316 test -d "$as_dir" && break
35318 test -z "$as_dirs" || eval "mkdir $as_dirs"
35319 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35320 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35321 { (exit 1); exit 1; }; }; }
35325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35328 # A ".." for each directory in $ac_dir_suffix.
35329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35330 case $ac_top_builddir_sub in
35331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35335 ac_abs_top_builddir=$ac_pwd
35336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35337 # for backward compatibility:
35338 ac_top_builddir=$ac_top_build_prefix
35341 .) # We are building in place.
35343 ac_top_srcdir=$ac_top_builddir_sub
35344 ac_abs_top_srcdir=$ac_pwd ;;
35345 [\\/]* | ?:[\\/]* ) # Absolute name.
35346 ac_srcdir=$srcdir$ac_dir_suffix;
35347 ac_top_srcdir=$srcdir
35348 ac_abs_top_srcdir=$srcdir ;;
35349 *) # Relative name.
35350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35351 ac_top_srcdir=$ac_top_build_prefix$srcdir
35352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35369 cat >>$CONFIG_STATUS <<\_ACEOF
35370 # If the template does not know about datarootdir, expand it.
35371 # FIXME: This hack should be removed a few years after 2.60.
35372 ac_datarootdir_hack=; ac_datarootdir_seen=
35374 case `sed -n '/datarootdir/ {
35383 ' $ac_file_inputs` in
35384 *datarootdir*) ac_datarootdir_seen=yes;;
35385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35386 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35387 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35389 cat >>$CONFIG_STATUS <<_ACEOF
35390 ac_datarootdir_hack='
35391 s&@datadir@&$datadir&g
35392 s&@docdir@&$docdir&g
35393 s&@infodir@&$infodir&g
35394 s&@localedir@&$localedir&g
35395 s&@mandir@&$mandir&g
35396 s&\\\${datarootdir}&$datarootdir&g' ;;
35400 # Neutralize VPATH when `$srcdir' = `.'.
35401 # Shell code in configure.ac might set extrasub.
35402 # FIXME: do we really want to maintain this feature?
35403 cat >>$CONFIG_STATUS <<_ACEOF
35407 cat >>$CONFIG_STATUS <<\_ACEOF
35409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35410 s&@configure_input@&$configure_input&;t t
35411 s&@top_builddir@&$ac_top_builddir_sub&;t t
35412 s&@srcdir@&$ac_srcdir&;t t
35413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35414 s&@top_srcdir@&$ac_top_srcdir&;t t
35415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35416 s&@builddir@&$ac_builddir&;t t
35417 s&@abs_builddir@&$ac_abs_builddir&;t t
35418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35419 s&@INSTALL@&$ac_INSTALL&;t t
35420 $ac_datarootdir_hack
35421 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35424 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35426 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35427 which seems to be undefined. Please make sure it is defined." >&5
35428 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35429 which seems to be undefined. Please make sure it is defined." >&2;}
35433 -) cat "$tmp/out"; rm -f "$tmp/out";;
35434 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35443 # Transform confdefs.h into a sed script `conftest.defines', that
35444 # substitutes the proper values into config.h.in to produce config.h.
35445 rm -f conftest.defines conftest.tail
35446 # First, append a space to every undef/define line, to ease matching.
35447 echo 's/$/ /' >conftest.defines
35448 # Then, protect against being on the right side of a sed subst, or in
35449 # an unquoted here document, in config.status. If some macros were
35450 # called several times there might be several #defines for the same
35451 # symbol, which is useless. But do not sort them, since the last
35452 # AC_DEFINE must be honored.
35453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35454 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35455 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35456 # PARAMS is the parameter list in the macro definition--in most cases, it's
35457 # just an empty string.
35458 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35459 ac_dB='\\)[ (].*,\\1define\\2'
35467 s/^[ ]*#[ ]*define[ ][ ]*//
35472 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35473 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35474 ' >>conftest.defines
35476 # Remove the space that was appended to ease matching.
35477 # Then replace #undef with comments. This is necessary, for
35478 # example, in the case of _POSIX_SOURCE, which is predefined and required
35479 # on some systems where configure will not decide to define it.
35480 # (The regexp can be short, since the line contains either #define or #undef.)
35482 s,^[ #]*u.*,/* & */,' >>conftest.defines
35484 # Break up conftest.defines:
35485 ac_max_sed_lines=50
35487 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35488 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35489 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35491 ac_in='$ac_file_inputs'
35492 ac_out='"$tmp/out1"'
35493 ac_nxt='"$tmp/out2"'
35497 # Write a here document:
35498 cat >>$CONFIG_STATUS <<_ACEOF
35499 # First, check the format of the line:
35500 cat >"\$tmp/defines.sed" <<\\CEOF
35501 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35502 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35506 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35508 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35509 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35510 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35511 grep . conftest.tail >/dev/null || break
35512 rm -f conftest.defines
35513 mv conftest.tail conftest.defines
35515 rm -f conftest.defines conftest.tail
35517 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35518 cat >>$CONFIG_STATUS <<\_ACEOF
35519 if test x"$ac_file" != x-; then
35520 echo "/* $configure_input */" >"$tmp/config.h"
35521 cat "$ac_result" >>"$tmp/config.h"
35522 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35523 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35524 echo "$as_me: $ac_file is unchanged" >&6;}
35527 mv "$tmp/config.h" $ac_file
35530 echo "/* $configure_input */"
35534 # Compute $ac_file's index in $config_headers.
35536 for _am_header in $config_headers :; do
35537 case $_am_header in
35538 $ac_file | $ac_file:* )
35541 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35544 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35545 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35546 X$ac_file : 'X\(//\)[^/]' \| \
35547 X$ac_file : 'X\(//\)$' \| \
35548 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35554 /^X\(\/\/\)[^/].*/{
35566 s/.*/./; q'`/stamp-h$_am_stamp_count
35569 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35570 echo "$as_me: executing $ac_file commands" >&6;}
35575 case $ac_file$ac_mode in
35576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35577 # Strip MF so we end up with the name of the file.
35578 mf=`echo "$mf" | sed -e 's/:.*$//'`
35579 # Check whether this is an Automake generated Makefile or not.
35580 # We used to match only the files named `Makefile.in', but
35581 # some people rename them; so instead we look at the file content.
35582 # Grep'ing the first line is not enough: some people post-process
35583 # each Makefile.in and add a new line on top of each file to say so.
35584 # So let's grep whole file.
35585 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35586 dirpart=`$as_dirname -- "$mf" ||
35587 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35588 X"$mf" : 'X\(//\)[^/]' \| \
35589 X"$mf" : 'X\(//\)$' \| \
35590 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35596 /^X\(\/\/\)[^/].*/{
35612 # Extract the definition of DEPDIR, am__include, and am__quote
35613 # from the Makefile without running `make'.
35614 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35615 test -z "$DEPDIR" && continue
35616 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35617 test -z "am__include" && continue
35618 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35619 # When using ansi2knr, U may be empty or an underscore; expand it
35620 U=`sed -n 's/^U = //p' < "$mf"`
35621 # Find all dependency output files, they are included files with
35622 # $(DEPDIR) in their names. We invoke sed twice because it is the
35623 # simplest approach to changing $(DEPDIR) to its actual value in the
35625 for file in `sed -n "
35626 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35627 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35628 # Make sure the directory exists.
35629 test -f "$dirpart/$file" && continue
35630 fdir=`$as_dirname -- "$file" ||
35631 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35632 X"$file" : 'X\(//\)[^/]' \| \
35633 X"$file" : 'X\(//\)$' \| \
35634 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35640 /^X\(\/\/\)[^/].*/{
35653 { as_dir=$dirpart/$fdir
35655 -*) as_dir=./$as_dir;;
35657 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35661 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35662 *) as_qdir=$as_dir;;
35664 as_dirs="'$as_qdir' $as_dirs"
35665 as_dir=`$as_dirname -- "$as_dir" ||
35666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35667 X"$as_dir" : 'X\(//\)[^/]' \| \
35668 X"$as_dir" : 'X\(//\)$' \| \
35669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35675 /^X\(\/\/\)[^/].*/{
35688 test -d "$as_dir" && break
35690 test -z "$as_dirs" || eval "mkdir $as_dirs"
35691 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35692 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35693 { (exit 1); exit 1; }; }; }
35694 # echo "creating $dirpart/$file"
35695 echo '# dummy' > "$dirpart/$file"
35699 "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35700 "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35701 "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35702 "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35703 "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35704 "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35705 "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35706 "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35707 "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35708 "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35709 "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35710 "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35711 "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35712 "run_tests_build":C) chmod +x run_tests.sh ;;
35718 { (exit 0); exit 0; }
35720 chmod +x $CONFIG_STATUS
35721 ac_clean_files=$ac_clean_files_save
35724 # configure is writing to config.log, and then calls config.status.
35725 # config.status does its own redirection, appending to config.log.
35726 # Unfortunately, on DOS this fails, as config.log is still kept open
35727 # by configure, so config.status won't be able to write to it; its
35728 # output is simply discarded. So we exec the FD to /dev/null,
35729 # effectively closing config.log, so it can be properly (re)opened and
35730 # appended to by config.status. When coming back to configure, we
35731 # need to make the FD available again.
35732 if test "$no_create" != yes; then
35734 ac_config_status_args=
35735 test "$silent" = yes &&
35736 ac_config_status_args="$ac_config_status_args --quiet"
35738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35741 # would make configure fail if this is the last instruction.
35742 $ac_cs_success || { (exit 1); exit 1; }
35747 echo "*********************************************************************"
35748 echo The following GNU Radio components have been successfully configured:
35750 for dir in $build_dirs
35755 echo You my now run the 'make' command to build these components.
35757 if test "$skipped_dirs" != ""; then
35758 echo "*********************************************************************"
35759 echo The following components were skipped either because you asked not
35760 echo to build them or they didn\'t pass configuration checks:
35762 for dir in $skipped_dirs
35767 echo These components will not be built.