2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Check 0.9.8.
5 # Report bugs to <check-devel at lists dot sourceforge dot net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
747 PACKAGE_TARNAME='check'
748 PACKAGE_VERSION='0.9.8'
749 PACKAGE_STRING='Check 0.9.8'
750 PACKAGE_BUGREPORT='check-devel at lists dot sourceforge dot net'
752 ac_unique_file="src/check.c"
753 ac_config_libobj_dir=lib
754 # Factoring default headers for most tests.
755 ac_includes_default="\
757 #ifdef HAVE_SYS_TYPES_H
758 # include <sys/types.h>
760 #ifdef HAVE_SYS_STAT_H
761 # include <sys/stat.h>
767 # ifdef HAVE_STDLIB_H
772 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #ifdef HAVE_STRINGS_H
778 # include <strings.h>
780 #ifdef HAVE_INTTYPES_H
781 # include <inttypes.h>
790 ac_subst_vars='LTLIBOBJS
828 NO_TIMEOUT_TESTS_FALSE
829 NO_TIMEOUT_TESTS_TRUE
855 INSTALL_STRIP_PROGRAM
907 program_transform_name
919 enable_option_checking
920 enable_dependency_tracking
931 ac_precious_vars='build_alias
942 # Initialize some variables set by options.
944 ac_init_version=false
945 ac_unrecognized_opts=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name=s,x,x,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1363 { (exit 1); exit 1; }; } ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387 { (exit 1); exit 1; }; }
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1418 { (exit 1); exit 1; }; }
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1421 { (exit 1); exit 1; }; }
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1456 ac_srcdir_defaulted=no
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461 { (exit 1); exit 1; }; }
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1466 { (exit 1); exit 1; }; }
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1492 \`configure' configures Check 0.9.8 to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/check]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of Check 0.9.8:";;
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --enable-gcov turn on test coverage [default=no]
1573 --enable-timeout-tests turn on timeout tests [default=yes]
1574 --enable-subunit enable support for the subunit test protocol
1575 [default=autodetect]
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-static[=PKGS] build static libraries [default=yes]
1578 --enable-fast-install[=PKGS]
1579 optimize for fast installation [default=yes]
1580 --disable-libtool-lock avoid locking (might break parallel builds)
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
1594 LIBS libraries to pass to the linker, e.g. -l<library>
1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to <check-devel at lists dot sourceforge dot net>.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1665 Check configure 0.9.8
1666 generated by GNU Autoconf 2.63
1668 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1679 It was created by Check $as_me 0.9.8, which was
1680 generated by GNU Autoconf 2.63. Invocation command line was
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 $as_echo "PATH: $as_dir"
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_must_keep_next=false
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1751 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 -* ) ac_must_keep_next=true ;;
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1796 # The following way of writing the cache mishandles newlines in values,
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1803 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1807 _ | IFS | as_nl) ;; #(
1808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1809 *) $as_unset $ac_var ;;
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1834 for ac_var in $ac_subst_vars
1836 eval ac_val=\$$ac_var
1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 $as_echo "$ac_var='\''$ac_val'\''"
1844 if test -n "$ac_subst_files"; then
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1851 for ac_var in $ac_subst_files
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 $as_echo "$ac_var='\''$ac_val'\''"
1862 if test -s confdefs.h; then
1872 test "$ac_signal" != 0 &&
1873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 # Predefined preprocessor variables.
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer an explicitly selected file to automatically selected ones.
1919 if test -n "$CONFIG_SITE"; then
1920 ac_site_file1=$CONFIG_SITE
1921 elif test "x$prefix" != xNONE; then
1922 ac_site_file1=$prefix/share/config.site
1923 ac_site_file2=$prefix/etc/config.site
1925 ac_site_file1=$ac_default_prefix/share/config.site
1926 ac_site_file2=$ac_default_prefix/etc/config.site
1928 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1930 test "x$ac_site_file" = xNONE && continue
1931 if test -r "$ac_site_file"; then
1932 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 $as_echo "$as_me: loading cache $cache_file" >&6;}
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1951 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 $as_echo "$as_me: creating cache $cache_file" >&6;}
1956 # Check that the precious variables saved in the cache have kept the same
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1966 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x $ac_old_val`
1978 ac_new_val_w=`echo x $ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 ac_cache_corrupted=:
1984 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1988 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1989 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006 if $ac_cache_corrupted; then
2007 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 CHECK_MAJOR_VERSION=0
2048 CHECK_MINOR_VERSION=9
2049 CHECK_MICRO_VERSION=8
2050 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2052 # unique source file --- primitive safety check
2055 # place where extra autoconf macros are kept
2058 # place where portability library functions are kept
2061 # place to put some extra build scripts installed
2063 for ac_dir in build-aux "$srcdir"/build-aux; do
2064 if test -f "$ac_dir/install-sh"; then
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 elif test -f "$ac_dir/install.sh"; then
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 elif test -f "$ac_dir/shtool"; then
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 if test -z "$ac_aux_dir"; then
2079 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2080 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 # define things like _GNU_SOURCE appropriately
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 $as_echo_n "checking for $ac_word... " >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 $as_echo_n "(cached) " >&6
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test -n "$CC"; then
2130 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2131 $as_echo "$CC" >&6; }
2133 { $as_echo "$as_me:$LINENO: result: no" >&5
2134 $as_echo "no" >&6; }
2139 if test -z "$ac_cv_prog_CC"; then
2141 # Extract the first word of "gcc", so it can be a program name with args.
2142 set dummy gcc; ac_word=$2
2143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 $as_echo_n "(cached) " >&6
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_ac_ct_CC="gcc"
2159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 $as_echo "$ac_ct_CC" >&6; }
2173 { $as_echo "$as_me:$LINENO: result: no" >&5
2174 $as_echo "no" >&6; }
2177 if test "x$ac_ct_CC" = x; then
2180 case $cross_compiling:$ac_tool_warned in
2182 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2184 ac_tool_warned=yes ;;
2192 if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
2194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 $as_echo_n "checking for $ac_word... " >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 $as_echo_n "(cached) " >&6
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_CC="${ac_tool_prefix}cc"
2212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 if test -n "$CC"; then
2223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2224 $as_echo "$CC" >&6; }
2226 { $as_echo "$as_me:$LINENO: result: no" >&5
2227 $as_echo "no" >&6; }
2233 if test -z "$CC"; then
2234 # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc; ac_word=$2
2236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 $as_echo_n "(cached) " >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253 ac_prog_rejected=yes
2257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test $ac_prog_rejected = yes; then
2265 # We found a bogon in the path, so make sure we never use it.
2266 set dummy $ac_cv_prog_CC
2268 if test $# != 0; then
2269 # We chose a different compiler from the bogus one.
2270 # However, it has the same basename, so the bogon will be chosen
2271 # first if we set CC to just the basename; use the full file name.
2273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279 if test -n "$CC"; then
2280 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2281 $as_echo "$CC" >&6; }
2283 { $as_echo "$as_me:$LINENO: result: no" >&5
2284 $as_echo "no" >&6; }
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 for ac_prog in cl.exe
2293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 $as_echo_n "checking for $ac_word... " >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 $as_echo_n "(cached) " >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2323 $as_echo "$CC" >&6; }
2325 { $as_echo "$as_me:$LINENO: result: no" >&5
2326 $as_echo "no" >&6; }
2330 test -n "$CC" && break
2333 if test -z "$CC"; then
2335 for ac_prog in cl.exe
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 $as_echo_n "(cached) " >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_CC="$ac_prog"
2355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 $as_echo "$ac_ct_CC" >&6; }
2369 { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2374 test -n "$ac_ct_CC" && break
2377 if test "x$ac_ct_CC" = x; then
2380 case $cross_compiling:$ac_tool_warned in
2382 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2384 ac_tool_warned=yes ;;
2393 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&5
2397 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }; }
2401 # Provide some information about the compiler.
2402 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2405 { (ac_try="$ac_compiler --version >&5"
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2411 $as_echo "$ac_try_echo") >&5
2412 (eval "$ac_compiler --version >&5") 2>&5
2414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (ac_try="$ac_compiler -v >&5"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2422 $as_echo "$ac_try_echo") >&5
2423 (eval "$ac_compiler -v >&5") 2>&5
2425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2427 { (ac_try="$ac_compiler -V >&5"
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433 $as_echo "$ac_try_echo") >&5
2434 (eval "$ac_compiler -V >&5") 2>&5
2436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 ac_clean_files_save=$ac_clean_files
2455 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2456 # Try to create an executable without -o first, disregard a.out.
2457 # It will help us diagnose broken compilers, and finding out an intuition
2459 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2460 $as_echo_n "checking for C compiler default output file name... " >&6; }
2461 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2463 # The possible output files:
2464 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2467 for ac_file in $ac_files
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2476 if { (ac_try="$ac_link_default"
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482 $as_echo "$ac_try_echo") >&5
2483 (eval "$ac_link_default") 2>&5
2485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; then
2487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2492 for ac_file in $ac_files ''
2494 test -f "$ac_file" || continue
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2499 # We found the default executable, but exeext='' is most
2503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2507 # We set ac_cv_exeext here because the later test for it is not
2508 # safe: cross compilers may not add the suffix if given an `-o'
2509 # argument, so we may need to know it at that point already.
2510 # Even if this section looks crufty: it has the advantage of
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2523 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2524 $as_echo "$ac_file" >&6; }
2525 if test -z "$ac_file"; then
2526 $as_echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&5
2533 $as_echo "$as_me: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&2;}
2535 { (exit 77); exit 77; }; }; }
2538 ac_exeext=$ac_cv_exeext
2540 # Check that the compiler produces executables we can run. If not, either
2541 # the compiler is broken, or we cross compile.
2542 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543 $as_echo_n "checking whether the C compiler works... " >&6; }
2544 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545 # If not cross compiling, check that we can run a simple program.
2546 if test "$cross_compiling" != yes; then
2547 if { ac_try='./$ac_file'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2553 $as_echo "$ac_try_echo") >&5
2554 (eval "$ac_try") 2>&5
2556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2560 if test "$cross_compiling" = maybe; then
2563 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&5
2568 $as_echo "$as_me: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2575 { $as_echo "$as_me:$LINENO: result: yes" >&5
2576 $as_echo "yes" >&6; }
2578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 # Check that the compiler produces executables we can run. If not, either
2581 # the compiler is broken, or we cross compile.
2582 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583 $as_echo_n "checking whether we are cross compiling... " >&6; }
2584 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585 $as_echo "$cross_compiling" >&6; }
2587 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588 $as_echo_n "checking for suffix of executables... " >&6; }
2589 if { (ac_try="$ac_link"
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2595 $as_echo "$ac_try_echo") >&5
2596 (eval "$ac_link") 2>&5
2598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2604 for ac_file in conftest.exe conftest conftest.*; do
2605 test -f "$ac_file" || continue
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2614 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&5
2618 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }; }
2623 rm -f conftest$ac_cv_exeext
2624 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2625 $as_echo "$ac_cv_exeext" >&6; }
2627 rm -f conftest.$ac_ext
2628 EXEEXT=$ac_cv_exeext
2630 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2631 $as_echo_n "checking for suffix of object files... " >&6; }
2632 if test "${ac_cv_objext+set}" = set; then
2633 $as_echo_n "(cached) " >&6
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2650 rm -f conftest.o conftest.obj
2651 if { (ac_try="$ac_compile"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658 (eval "$ac_compile") 2>&5
2660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 for ac_file in conftest.o conftest.obj conftest.*; do
2663 test -f "$ac_file" || continue;
2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2666 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2677 See \`config.log' for more details." >&5
2678 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }; }
2683 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2685 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2686 $as_echo "$ac_cv_objext" >&6; }
2687 OBJEXT=$ac_cv_objext
2689 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2690 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2694 cat >conftest.$ac_ext <<_ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2719 $as_echo "$ac_try_echo") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } && {
2727 test -z "$ac_c_werror_flag" ||
2728 test ! -s conftest.err
2729 } && test -s conftest.$ac_objext; then
2732 $as_echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2744 if test $ac_compiler_gnu = yes; then
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754 $as_echo_n "(cached) " >&6
2756 ac_save_c_werror_flag=$ac_c_werror_flag
2757 ac_c_werror_flag=yes
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2782 $as_echo "$ac_try_echo") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2795 $as_echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821 $as_echo "$ac_try_echo") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2834 $as_echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 ac_c_werror_flag=$ac_save_c_werror_flag
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2854 rm -f conftest.$ac_objext
2855 if { (ac_try="$ac_compile"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compile") 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } && {
2869 test -z "$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 } && test -s conftest.$ac_objext; then
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 ac_c_werror_flag=$ac_save_c_werror_flag
2889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2890 $as_echo "$ac_cv_prog_cc_g" >&6; }
2891 if test "$ac_test_CFLAGS" = set; then
2892 CFLAGS=$ac_save_CFLAGS
2893 elif test $ac_cv_prog_cc_g = yes; then
2894 if test "$GCC" = yes; then
2900 if test "$GCC" = yes; then
2906 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2908 if test "${ac_cv_prog_cc_c89+set}" = set; then
2909 $as_echo_n "(cached) " >&6
2911 ac_cv_prog_cc_c89=no
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2937 s = g (p, va_arg (v,int));
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2943 function prototypes and stuff, but not '\xHH' hex character constants.
2944 These don't provoke an error unfortunately, instead are silently treated
2945 as 'x'. The following induces an error, until -std is added to get
2946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2947 array size at least. It's necessary to write '\x00'==0 to get something
2948 that's true only with -std. */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2952 inside strings and character constants. */
2954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2973 CC="$ac_save_CC $ac_arg"
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cc_c89=$ac_arg
2994 $as_echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext
3001 test "x$ac_cv_prog_cc_c89" != "xno" && break
3003 rm -f conftest.$ac_ext
3008 case "x$ac_cv_prog_cc_c89" in
3010 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3011 $as_echo "none needed" >&6; } ;;
3013 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3014 $as_echo "unsupported" >&6; } ;;
3016 CC="$CC $ac_cv_prog_cc_c89"
3017 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3036 # On Suns, sometimes $CPP names a directory.
3037 if test -n "$CPP" && test -d "$CPP"; then
3040 if test -z "$CPP"; then
3041 if test "${ac_cv_prog_CPP+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3044 # Double quotes because CPP needs to be expanded
3045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3048 for ac_c_preproc_warn_flag in '' yes
3050 # Use a header file that comes with gcc, so configuring glibc
3051 # with a fresh cross-compiler works.
3052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3053 # <limits.h> exists even on freestanding compilers.
3054 # On the NeXT, cc -E runs the code through the compiler's parser,
3055 # not just through cpp. "Syntax error" is here to catch this case.
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3063 # include <limits.h>
3065 # include <assert.h>
3069 if { (ac_try="$ac_cpp conftest.$ac_ext"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } >/dev/null && {
3083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 # Broken: fails on valid input.
3095 rm -f conftest.err conftest.$ac_ext
3097 # OK, works on sane cases. Now check whether nonexistent headers
3098 # can be detected and how.
3099 cat >conftest.$ac_ext <<_ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 #include <ac_nonexistent.h>
3107 if { (ac_try="$ac_cpp conftest.$ac_ext"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3116 grep -v '^ *+' conftest.er1 >conftest.err
3118 cat conftest.err >&5
3119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } >/dev/null && {
3121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3122 test ! -s conftest.err
3124 # Broken: success on invalid input.
3127 $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 # Passes both tests.
3135 rm -f conftest.err conftest.$ac_ext
3138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3139 rm -f conftest.err conftest.$ac_ext
3140 if $ac_preproc_ok; then
3152 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3153 $as_echo "$CPP" >&6; }
3155 for ac_c_preproc_warn_flag in '' yes
3157 # Use a header file that comes with gcc, so configuring glibc
3158 # with a fresh cross-compiler works.
3159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160 # <limits.h> exists even on freestanding compilers.
3161 # On the NeXT, cc -E runs the code through the compiler's parser,
3162 # not just through cpp. "Syntax error" is here to catch this case.
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3170 # include <limits.h>
3172 # include <assert.h>
3176 if { (ac_try="$ac_cpp conftest.$ac_ext"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } >/dev/null && {
3190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3195 $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 # Broken: fails on valid input.
3202 rm -f conftest.err conftest.$ac_ext
3204 # OK, works on sane cases. Now check whether nonexistent headers
3205 # can be detected and how.
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <ac_nonexistent.h>
3214 if { (ac_try="$ac_cpp conftest.$ac_ext"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3220 $as_echo "$ac_try_echo") >&5
3221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } >/dev/null && {
3228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3231 # Broken: success on invalid input.
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 # Passes both tests.
3242 rm -f conftest.err conftest.$ac_ext
3245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3246 rm -f conftest.err conftest.$ac_ext
3247 if $ac_preproc_ok; then
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }; }
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3268 if test "${ac_cv_path_GREP+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3271 if test -z "$GREP"; then
3272 ac_path_GREP_found=false
3273 # Loop through the user's path and test for each of PROGNAME-LIST
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3278 test -z "$as_dir" && as_dir=.
3279 for ac_prog in grep ggrep; do
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3282 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3283 # Check for GNU ac_path_GREP and select it if it is found.
3284 # Check for GNU $ac_path_GREP
3285 case `"$ac_path_GREP" --version 2>&1` in
3287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3290 $as_echo_n 0123456789 >"conftest.in"
3293 cat "conftest.in" "conftest.in" >"conftest.tmp"
3294 mv "conftest.tmp" "conftest.in"
3295 cp "conftest.in" "conftest.nl"
3296 $as_echo 'GREP' >> "conftest.nl"
3297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3299 ac_count=`expr $ac_count + 1`
3300 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3301 # Best one so far, save it but keep looking for a better one
3302 ac_cv_path_GREP="$ac_path_GREP"
3303 ac_path_GREP_max=$ac_count
3305 # 10*(2^10) chars as input seems more than enough
3306 test $ac_count -gt 10 && break
3308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3311 $ac_path_GREP_found && break 3
3316 if test -z "$ac_cv_path_GREP"; then
3317 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3318 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3319 { (exit 1); exit 1; }; }
3322 ac_cv_path_GREP=$GREP
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3327 $as_echo "$ac_cv_path_GREP" >&6; }
3328 GREP="$ac_cv_path_GREP"
3331 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3332 $as_echo_n "checking for egrep... " >&6; }
3333 if test "${ac_cv_path_EGREP+set}" = set; then
3334 $as_echo_n "(cached) " >&6
3336 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3337 then ac_cv_path_EGREP="$GREP -E"
3339 if test -z "$EGREP"; then
3340 ac_path_EGREP_found=false
3341 # Loop through the user's path and test for each of PROGNAME-LIST
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3346 test -z "$as_dir" && as_dir=.
3347 for ac_prog in egrep; do
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3350 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3351 # Check for GNU ac_path_EGREP and select it if it is found.
3352 # Check for GNU $ac_path_EGREP
3353 case `"$ac_path_EGREP" --version 2>&1` in
3355 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3358 $as_echo_n 0123456789 >"conftest.in"
3361 cat "conftest.in" "conftest.in" >"conftest.tmp"
3362 mv "conftest.tmp" "conftest.in"
3363 cp "conftest.in" "conftest.nl"
3364 $as_echo 'EGREP' >> "conftest.nl"
3365 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3367 ac_count=`expr $ac_count + 1`
3368 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3369 # Best one so far, save it but keep looking for a better one
3370 ac_cv_path_EGREP="$ac_path_EGREP"
3371 ac_path_EGREP_max=$ac_count
3373 # 10*(2^10) chars as input seems more than enough
3374 test $ac_count -gt 10 && break
3376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379 $ac_path_EGREP_found && break 3
3384 if test -z "$ac_cv_path_EGREP"; then
3385 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3386 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3387 { (exit 1); exit 1; }; }
3390 ac_cv_path_EGREP=$EGREP
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3396 $as_echo "$ac_cv_path_EGREP" >&6; }
3397 EGREP="$ac_cv_path_EGREP"
3400 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3401 $as_echo_n "checking for ANSI C header files... " >&6; }
3402 if test "${ac_cv_header_stdc+set}" = set; then
3403 $as_echo_n "(cached) " >&6
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_header_stdc=yes
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 ac_cv_header_stdc=no
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 if test $ac_cv_header_stdc = yes; then
3453 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 $EGREP "memchr" >/dev/null 2>&1; then
3467 ac_cv_header_stdc=no
3473 if test $ac_cv_header_stdc = yes; then
3474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485 $EGREP "free" >/dev/null 2>&1; then
3488 ac_cv_header_stdc=no
3494 if test $ac_cv_header_stdc = yes; then
3495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3496 if test "$cross_compiling" = yes; then
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3507 #if ((' ' & 0x0FF) == 0x020)
3508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3511 # define ISLOWER(c) \
3512 (('a' <= (c) && (c) <= 'i') \
3513 || ('j' <= (c) && (c) <= 'r') \
3514 || ('s' <= (c) && (c) <= 'z'))
3515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3523 for (i = 0; i < 256; i++)
3524 if (XOR (islower (i), ISLOWER (i))
3525 || toupper (i) != TOUPPER (i))
3530 rm -f conftest$ac_exeext
3531 if { (ac_try="$ac_link"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537 $as_echo "$ac_try_echo") >&5
3538 (eval "$ac_link") 2>&5
3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548 (eval "$ac_try") 2>&5
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3554 $as_echo "$as_me: program exited with status $ac_status" >&5
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_cv_header_stdc=no
3561 rm -rf conftest.dSYM
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 $as_echo "$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589 inttypes.h stdint.h unistd.h
3591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 $as_echo_n "checking for $ac_header... " >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595 $as_echo_n "(cached) " >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3605 #include <$ac_header>
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3625 eval "$as_ac_Header=yes"
3627 $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 eval "$as_ac_Header=no"
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_res=`eval 'as_val=${'$as_ac_Header'}
3636 $as_echo "$as_val"'`
3637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3638 $as_echo "$ac_res" >&6; }
3639 as_val=`eval 'as_val=${'$as_ac_Header'}
3640 $as_echo "$as_val"'`
3641 if test "x$as_val" = x""yes; then
3642 cat >>confdefs.h <<_ACEOF
3643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3652 if test "${ac_cv_header_minix_config_h+set}" = set; then
3653 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3654 $as_echo_n "checking for minix/config.h... " >&6; }
3655 if test "${ac_cv_header_minix_config_h+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3659 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3661 # Is the header compilable?
3662 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3663 $as_echo_n "checking minix/config.h usability... " >&6; }
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3671 #include <minix/config.h>
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3680 $as_echo "$ac_try_echo") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_header_compiler=yes
3693 $as_echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_header_compiler=no
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3701 $as_echo "$ac_header_compiler" >&6; }
3703 # Is the header present?
3704 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3705 $as_echo_n "checking minix/config.h presence... " >&6; }
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <minix/config.h>
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } >/dev/null && {
3728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3729 test ! -s conftest.err
3731 ac_header_preproc=yes
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 ac_header_preproc=no
3739 rm -f conftest.err conftest.$ac_ext
3740 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3741 $as_echo "$ac_header_preproc" >&6; }
3743 # So? What about this header?
3744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3746 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3747 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3748 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3749 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3750 ac_header_preproc=yes
3753 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3754 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3755 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3756 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3758 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3760 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3761 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3762 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3763 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3764 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3766 ## ----------------------------------------------------------- ##
3767 ## Report this to check-devel at lists dot sourceforge dot net ##
3768 ## ----------------------------------------------------------- ##
3770 ) | sed "s/^/$as_me: WARNING: /" >&2
3773 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3774 $as_echo_n "checking for minix/config.h... " >&6; }
3775 if test "${ac_cv_header_minix_config_h+set}" = set; then
3776 $as_echo_n "(cached) " >&6
3778 ac_cv_header_minix_config_h=$ac_header_preproc
3780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3781 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3784 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3791 if test "$MINIX" = yes; then
3793 cat >>confdefs.h <<\_ACEOF
3794 #define _POSIX_SOURCE 1
3798 cat >>confdefs.h <<\_ACEOF
3799 #define _POSIX_1_SOURCE 2
3803 cat >>confdefs.h <<\_ACEOF
3811 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3812 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3813 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3814 $as_echo_n "(cached) " >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 # define __EXTENSIONS__ 1
3824 $ac_includes_default
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3840 $as_echo "$ac_try_echo") >&5
3841 (eval "$ac_compile") 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } && {
3848 test -z "$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 } && test -s conftest.$ac_objext; then
3851 ac_cv_safe_to_define___extensions__=yes
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_cv_safe_to_define___extensions__=no
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3862 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3863 test $ac_cv_safe_to_define___extensions__ = yes &&
3864 cat >>confdefs.h <<\_ACEOF
3865 #define __EXTENSIONS__ 1
3868 cat >>confdefs.h <<\_ACEOF
3869 #define _ALL_SOURCE 1
3872 cat >>confdefs.h <<\_ACEOF
3873 #define _GNU_SOURCE 1
3876 cat >>confdefs.h <<\_ACEOF
3877 #define _POSIX_PTHREAD_SEMANTICS 1
3880 cat >>confdefs.h <<\_ACEOF
3881 #define _TANDEM_SOURCE 1
3886 # really severe build strictness
3887 am__api_version='1.10'
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 # Reject install programs that cannot install multiple files.
3903 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907 $as_echo_n "(cached) " >&6
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root
3924 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3927 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention.
3931 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use.
3936 rm -rf conftest.one conftest.two conftest.dir
3937 echo one > conftest.one
3938 echo two > conftest.two
3940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3941 test -s conftest.one && test -s conftest.two &&
3942 test -s conftest.dir/conftest.one &&
3943 test -s conftest.dir/conftest.two
3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3958 rm -rf conftest.one conftest.two conftest.dir
3961 if test "${ac_cv_path_install+set}" = set; then
3962 INSTALL=$ac_cv_path_install
3964 # As a last resort, use the slow shell script. Don't cache a
3965 # value for INSTALL within a source directory, because that will
3966 # break other packages using the cache if that directory is
3967 # removed, or if the value is a relative name.
3968 INSTALL=$ac_install_sh
3971 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3972 $as_echo "$INSTALL" >&6; }
3974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3975 # It thinks the first close brace ends the variable substitution.
3976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3980 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3983 $as_echo_n "checking whether build environment is sane... " >&6; }
3986 echo timestamp > conftest.file
3987 # Do `set' in a subshell so we don't clobber the current shell's
3988 # arguments. Must try -L first in case configure is actually a
3989 # symlink; some systems play weird games with the mod time of symlinks
3990 # (eg FreeBSD returns the mod time of the symlink's containing
3993 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3994 if test "$*" = "X"; then
3996 set X `ls -t $srcdir/configure conftest.file`
3999 if test "$*" != "X $srcdir/configure conftest.file" \
4000 && test "$*" != "X conftest.file $srcdir/configure"; then
4002 # If neither matched, then we have a broken ls. This can happen
4003 # if, for instance, CONFIG_SHELL is bash and it inherits a
4004 # broken ls alias from the environment. This has actually
4005 # happened. Such a system could not be considered "sane".
4006 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4007 alias in your environment" >&5
4008 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4009 alias in your environment" >&2;}
4010 { (exit 1); exit 1; }; }
4013 test "$2" = conftest.file
4019 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4020 Check your system clock" >&5
4021 $as_echo "$as_me: error: newly created file is older than distributed files!
4022 Check your system clock" >&2;}
4023 { (exit 1); exit 1; }; }
4025 { $as_echo "$as_me:$LINENO: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027 test "$program_prefix" != NONE &&
4028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4029 # Use a double $ so make ignores it.
4030 test "$program_suffix" != NONE &&
4031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4032 # Double any \ or $.
4033 # By default was `s,x,x', remove it if useless.
4034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4037 # expand $ac_aux_dir to an absolute path
4038 am_aux_dir=`cd $ac_aux_dir && pwd`
4040 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4041 # Use eval to expand $SHELL
4042 if eval "$MISSING --run true"; then
4043 am_missing_run="$MISSING --run "
4046 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4047 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4050 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4052 if test -z "$MKDIR_P"; then
4053 if test "${ac_cv_path_mkdir+set}" = set; then
4054 $as_echo_n "(cached) " >&6
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in mkdir gmkdir; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4065 'mkdir (GNU coreutils) '* | \
4066 'mkdir (coreutils) '* | \
4067 'mkdir (fileutils) '4.1*)
4068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4078 if test "${ac_cv_path_mkdir+set}" = set; then
4079 MKDIR_P="$ac_cv_path_mkdir -p"
4081 # As a last resort, use the slow shell script. Don't cache a
4082 # value for MKDIR_P within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the value is a relative name.
4085 test -d ./--version && rmdir ./--version
4086 MKDIR_P="$ac_install_sh -d"
4089 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4090 $as_echo "$MKDIR_P" >&6; }
4094 [\\/$]* | ?:[\\/]*) ;;
4095 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4098 for ac_prog in gawk mawk nawk awk
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_AWK+set}" = set; then
4105 $as_echo_n "(cached) " >&6
4107 if test -n "$AWK"; then
4108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117 ac_cv_prog_AWK="$ac_prog"
4118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$AWK"; then
4129 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4130 $as_echo "$AWK" >&6; }
4132 { $as_echo "$as_me:$LINENO: result: no" >&5
4133 $as_echo "no" >&6; }
4137 test -n "$AWK" && break
4140 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4143 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4144 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4145 $as_echo_n "(cached) " >&6
4147 cat >conftest.make <<\_ACEOF
4150 @echo '@@@%%%=$(MAKE)=@@@%%%'
4152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4155 eval ac_cv_prog_make_${ac_make}_set=yes;;
4157 eval ac_cv_prog_make_${ac_make}_set=no;;
4161 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4162 { $as_echo "$as_me:$LINENO: result: yes" >&5
4163 $as_echo "yes" >&6; }
4166 { $as_echo "$as_me:$LINENO: result: no" >&5
4167 $as_echo "no" >&6; }
4168 SET_MAKE="MAKE=${MAKE-make}"
4171 rm -rf .tst 2>/dev/null
4172 mkdir .tst 2>/dev/null
4173 if test -d .tst; then
4178 rmdir .tst 2>/dev/null
4180 DEPDIR="${am__leading_dot}deps"
4182 ac_config_commands="$ac_config_commands depfiles"
4185 am_make=${MAKE-make}
4186 cat > confinc << 'END'
4191 # If we don't find an include directive, just comment out the code.
4192 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4193 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4197 # First try GNU make style include.
4198 echo "include confinc" > confmf
4199 # We grep out `Entering directory' and `Leaving directory'
4200 # messages which can occur if `w' ends up in MAKEFLAGS.
4201 # In particular we don't look at `^make:' because GNU make might
4202 # be invoked under some other name (usually "gmake"), in which
4203 # case it prints its new name instead of `make'.
4204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211 echo '.include "confinc"' > confmf
4212 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4213 am__include=.include
4220 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4221 $as_echo "$_am_result" >&6; }
4222 rm -f confinc confmf
4224 # Check whether --enable-dependency-tracking was given.
4225 if test "${enable_dependency_tracking+set}" = set; then
4226 enableval=$enable_dependency_tracking;
4229 if test "x$enable_dependency_tracking" != xno; then
4230 am_depcomp="$ac_aux_dir/depcomp"
4233 if test "x$enable_dependency_tracking" != xno; then
4242 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4244 # is not polluted with repeated "-I."
4245 am__isrc=' -I$(srcdir)'
4246 # test to see if srcdir already configured
4247 if test -f $srcdir/config.status; then
4248 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4249 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4250 { (exit 1); exit 1; }; }
4254 # test whether we have cygpath
4255 if test -z "$CYGPATH_W"; then
4256 if (cygpath --version) >/dev/null 2>/dev/null; then
4257 CYGPATH_W='cygpath -w'
4264 # Define the identity of the package.
4269 cat >>confdefs.h <<_ACEOF
4270 #define PACKAGE "$PACKAGE"
4274 cat >>confdefs.h <<_ACEOF
4275 #define VERSION "$VERSION"
4278 # Some tools Automake needs.
4280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4294 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4296 # Installed binaries are usually stripped using `strip' when the user
4297 # run `make install-strip'. However `strip' might not be the right
4298 # tool to use in cross-compilation environments, therefore Automake
4299 # will honor the `STRIP' environment variable to overrule this program.
4300 if test "$cross_compiling" != no; then
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}strip; ac_word=$2
4304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_STRIP+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4309 if test -n "$STRIP"; then
4310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 STRIP=$ac_cv_prog_STRIP
4330 if test -n "$STRIP"; then
4331 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4332 $as_echo "$STRIP" >&6; }
4334 { $as_echo "$as_me:$LINENO: result: no" >&5
4335 $as_echo "no" >&6; }
4340 if test -z "$ac_cv_prog_STRIP"; then
4342 # Extract the first word of "strip", so it can be a program name with args.
4343 set dummy strip; ac_word=$2
4344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4347 $as_echo_n "(cached) " >&6
4349 if test -n "$ac_ct_STRIP"; then
4350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_STRIP="strip"
4360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4370 if test -n "$ac_ct_STRIP"; then
4371 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4372 $as_echo "$ac_ct_STRIP" >&6; }
4374 { $as_echo "$as_me:$LINENO: result: no" >&5
4375 $as_echo "no" >&6; }
4378 if test "x$ac_ct_STRIP" = x; then
4381 case $cross_compiling:$ac_tool_warned in
4383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385 ac_tool_warned=yes ;;
4390 STRIP="$ac_cv_prog_STRIP"
4394 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4396 # We need awk for the "check" target. The system "awk" is bad on
4398 # Always define AMTAR for backward compatibility.
4400 AMTAR=${AMTAR-"${am_missing_run}tar"}
4402 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4407 depcc="$CC" am_compiler_list=
4409 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4410 $as_echo_n "checking dependency style of $depcc... " >&6; }
4411 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4412 $as_echo_n "(cached) " >&6
4414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4415 # We make a subdir and do the tests there. Otherwise we can end up
4416 # making bogus files that we don't know about and never remove. For
4417 # instance it was reported that on HP-UX the gcc test will end up
4418 # making a dummy file named `D' -- because `-MD' means `put the output
4421 # Copy depcomp to subdir because otherwise we won't find it if we're
4422 # using a relative directory.
4423 cp "$am_depcomp" conftest.dir
4425 # We will build objects and dependencies in a subdirectory because
4426 # it helps to detect inapplicable dependency modes. For instance
4427 # both Tru64's cc and ICC support -MD to output dependencies as a
4428 # side effect of compilation, but ICC will put the dependencies in
4429 # the current directory while Tru64 will put them in the object
4433 am_cv_CC_dependencies_compiler_type=none
4434 if test "$am_compiler_list" = ""; then
4435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4437 for depmode in $am_compiler_list; do
4438 # Setup a source with many dependencies, because some compilers
4439 # like to wrap large dependency lists on column 80 (with \), and
4440 # we should not choose a depcomp mode which is confused by this.
4442 # We need to recreate these files for each test, as the compiler may
4443 # overwrite some of them when testing with obscure command lines.
4444 # This happens at least with the AIX C compiler.
4446 for i in 1 2 3 4 5 6; do
4447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4449 # Solaris 8's {/usr,}/bin/sh.
4450 touch sub/conftst$i.h
4452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4456 # after this tag, mechanisms are not by side-effect, so they'll
4457 # only be used when explicitly requested
4458 if test "x$enable_dependency_tracking" = xyes; then
4466 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4467 # mode. It turns out that the SunPro C++ compiler does not properly
4468 # handle `-M -o', and we need to detect this.
4469 if depmode=$depmode \
4470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4473 >/dev/null 2>conftest.err &&
4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4478 # icc doesn't choke on unknown options, it will just issue warnings
4479 # or remarks (even with -Werror). So we grep stderr for any message
4480 # that says an option was ignored or not supported.
4481 # When given -MP, icc 7.0 and 7.1 complain thusly:
4482 # icc: Command line warning: ignoring option '-M'; no argument required
4483 # The diagnosis changed in icc 8.0:
4484 # icc: Command line remark: option '-MP' not supported
4485 if (grep 'ignoring option' conftest.err ||
4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4487 am_cv_CC_dependencies_compiler_type=$depmode
4496 am_cv_CC_dependencies_compiler_type=none
4500 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4505 test "x$enable_dependency_tracking" != xno \
4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4508 am__fastdepCC_FALSE='#'
4510 am__fastdepCC_TRUE='#'
4511 am__fastdepCC_FALSE=
4517 # FIXME: find the other places this stuff is used
4524 # Configure options.
4526 # Check whether --enable-gcov was given.
4527 if test "${enable_gcov+set}" = set; then
4528 enableval=$enable_gcov; case "${enableval}" in
4529 yes) enable_gcov=true ;;
4530 no) enable_gcov=false ;;
4531 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gcov" >&5
4532 $as_echo "$as_me: error: bad value ${enableval} for --enable-gcov" >&2;}
4533 { (exit 1); exit 1; }; } ;;
4540 if test x$enable_gcov = xtrue ; then
4541 if test -n "$GCC"; then
4542 { { $as_echo "$as_me:$LINENO: error: gcov only works if gcc is used" >&5
4543 $as_echo "$as_me: error: gcov only works if gcc is used" >&2;}
4544 { (exit 1); exit 1; }; }
4547 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4554 if test x"$enable_gcov" = "xtrue"; then
4556 ENABLE_GCOV_FALSE='#'
4558 ENABLE_GCOV_TRUE='#'
4563 # Check whether --enable-timeout-tests was given.
4564 if test "${enable_timeout_tests+set}" = set; then
4565 enableval=$enable_timeout_tests; case "${enableval}" in
4566 yes) enable_timeout_tests=true ;;
4567 no) enable_timeout_tests=false ;;
4568 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-timeout-tests" >&5
4569 $as_echo "$as_me: error: bad value ${enableval} for --enable-timeout-tests" >&2;}
4570 { (exit 1); exit 1; }; } ;;
4573 enable_timeout_tests=true
4577 if test x"$enable_timeout_tests" = "xfalse"; then
4578 NO_TIMEOUT_TESTS_TRUE=
4579 NO_TIMEOUT_TESTS_FALSE='#'
4581 NO_TIMEOUT_TESTS_TRUE='#'
4582 NO_TIMEOUT_TESTS_FALSE=
4586 # Check whether --enable-subunit was given.
4587 if test "${enable_subunit+set}" = set; then
4588 enableval=$enable_subunit; case "${enableval}" in
4591 echo "Enabled subunit support"
4594 enable_subunit=false
4595 echoo "Disabled subunit support"
4598 echo "Subunit support will enable automatically."
4600 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-subunit" >&5
4601 $as_echo "$as_me: error: bad value ${enableval} for --enable-subunit" >&2;}
4602 { (exit 1); exit 1; }; } ;;
4605 echo "Subunit support will enable automatically."
4606 enable_subunit=autodetect
4610 # Checks for programs.
4611 for ac_prog in gawk mawk nawk awk
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_AWK+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$AWK"; then
4621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_AWK="$ac_prog"
4631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$AWK"; then
4642 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4643 $as_echo "$AWK" >&6; }
4645 { $as_echo "$as_me:$LINENO: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$AWK" && break
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4691 { $as_echo "$as_me:$LINENO: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_CC"; then
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4731 { $as_echo "$as_me:$LINENO: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_CC" = x; then
4738 case $cross_compiling:$ac_tool_warned in
4740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}cc; ac_word=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_CC="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4784 { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4791 if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc; ac_word=$2
4794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_CC+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected=yes
4815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy $ac_cv_prog_CC
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4841 { $as_echo "$as_me:$LINENO: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in cl.exe
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4883 { $as_echo "$as_me:$LINENO: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$CC" && break
4891 if test -z "$CC"; then
4893 for ac_prog in cl.exe
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_CC="$ac_prog"
4913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$ac_ct_CC" && break
4935 if test "x$ac_ct_CC" = x; then
4938 case $cross_compiling:$ac_tool_warned in
4940 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4951 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details." >&5
4955 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4956 See \`config.log' for more details." >&2;}
4957 { (exit 1); exit 1; }; }; }
4959 # Provide some information about the compiler.
4960 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4963 { (ac_try="$ac_compiler --version >&5"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969 $as_echo "$ac_try_echo") >&5
4970 (eval "$ac_compiler --version >&5") 2>&5
4972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }
4974 { (ac_try="$ac_compiler -v >&5"
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981 (eval "$ac_compiler -v >&5") 2>&5
4983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }
4985 { (ac_try="$ac_compiler -V >&5"
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992 (eval "$ac_compiler -V >&5") 2>&5
4994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }
4997 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5000 $as_echo_n "(cached) " >&6
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027 $as_echo "$ac_try_echo") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
5040 $as_echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5050 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5052 if test $ac_compiler_gnu = yes; then
5057 ac_test_CFLAGS=${CFLAGS+set}
5058 ac_save_CFLAGS=$CFLAGS
5059 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5061 if test "${ac_cv_prog_cc_g+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5064 ac_save_c_werror_flag=$ac_c_werror_flag
5065 ac_c_werror_flag=yes
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090 $as_echo "$ac_try_echo") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5103 $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5122 rm -f conftest.$ac_objext
5123 if { (ac_try="$ac_compile"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129 $as_echo "$ac_try_echo") >&5
5130 (eval "$ac_compile") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest.$ac_objext; then
5142 $as_echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_c_werror_flag=$ac_save_c_werror_flag
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5162 rm -f conftest.$ac_objext
5163 if { (ac_try="$ac_compile"
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170 (eval "$ac_compile") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.$ac_objext; then
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 ac_c_werror_flag=$ac_save_c_werror_flag
5197 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5198 $as_echo "$ac_cv_prog_cc_g" >&6; }
5199 if test "$ac_test_CFLAGS" = set; then
5200 CFLAGS=$ac_save_CFLAGS
5201 elif test $ac_cv_prog_cc_g = yes; then
5202 if test "$GCC" = yes; then
5208 if test "$GCC" = yes; then
5214 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5215 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5216 if test "${ac_cv_prog_cc_c89+set}" = set; then
5217 $as_echo_n "(cached) " >&6
5219 ac_cv_prog_cc_c89=no
5221 cat >conftest.$ac_ext <<_ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5229 #include <sys/types.h>
5230 #include <sys/stat.h>
5231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5232 struct buf { int x; };
5233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5234 static char *e (p, i)
5240 static char *f (char * (*g) (char **, int), char **p, ...)
5245 s = g (p, va_arg (v,int));
5250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5251 function prototypes and stuff, but not '\xHH' hex character constants.
5252 These don't provoke an error unfortunately, instead are silently treated
5253 as 'x'. The following induces an error, until -std is added to get
5254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5255 array size at least. It's necessary to write '\x00'==0 to get something
5256 that's true only with -std. */
5257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5260 inside strings and character constants. */
5262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5264 int test (int i, double x);
5265 struct s1 {int (*f) (int a);};
5266 struct s2 {int (*f) (double a);};
5267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5281 CC="$ac_save_CC $ac_arg"
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
5300 ac_cv_prog_cc_c89=$ac_arg
5302 $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5308 rm -f core conftest.err conftest.$ac_objext
5309 test "x$ac_cv_prog_cc_c89" != "xno" && break
5311 rm -f conftest.$ac_ext
5316 case "x$ac_cv_prog_cc_c89" in
5318 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5319 $as_echo "none needed" >&6; } ;;
5321 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5322 $as_echo "unsupported" >&6; } ;;
5324 CC="$CC $ac_cv_prog_cc_c89"
5325 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5326 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336 # Automake wants this for per-target CFLAGS
5337 if test "x$CC" != xcc; then
5338 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5339 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5341 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5342 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5344 set dummy $CC; ac_cc=`$as_echo "$2" |
5345 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5346 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5347 $as_echo_n "(cached) " >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5364 # Make sure it works both with $CC and with simple cc.
5365 # We do the test twice because some compilers refuse to overwrite an
5366 # existing .o file with -o, though they will create one.
5367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5369 if { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5374 $as_echo "$ac_try_echo") >&5
5375 (eval "$ac_try") 2>&5
5377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_try") 2>&5
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); };
5390 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5391 if test "x$CC" != xcc; then
5392 # Test first that cc exists at all.
5393 if { ac_try='cc -c conftest.$ac_ext >&5'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5399 $as_echo "$ac_try_echo") >&5
5400 (eval "$ac_try") 2>&5
5402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5406 if { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5411 $as_echo "$ac_try_echo") >&5
5412 (eval "$ac_try") 2>&5
5414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } &&
5416 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5421 $as_echo "$ac_try_echo") >&5
5422 (eval "$ac_try") 2>&5
5424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); };
5430 # cc exists but doesn't like -o.
5431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5438 rm -f core conftest*
5441 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5442 { $as_echo "$as_me:$LINENO: result: yes" >&5
5443 $as_echo "yes" >&6; }
5445 { $as_echo "$as_me:$LINENO: result: no" >&5
5446 $as_echo "no" >&6; }
5448 cat >>confdefs.h <<\_ACEOF
5449 #define NO_MINUS_C_MINUS_O 1
5454 # FIXME: we rely on the cache variable name because
5455 # there is no other way.
5457 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5458 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5459 if test "$am_t" != yes; then
5460 # Losing compiler, so override with the script.
5461 # FIXME: It is wrong to rewrite CC.
5462 # But if we don't then we get into trouble of one sort or another.
5463 # A longer-term fix would be to have automake use am__CC in this case,
5464 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5465 CC="$am_aux_dir/compile $CC"
5469 # Find a good install program. We prefer a C program (faster),
5470 # so one script is as good as another. But avoid the broken or
5471 # incompatible versions:
5472 # SysV /etc/install, /usr/sbin/install
5473 # SunOS /usr/etc/install
5474 # IRIX /sbin/install
5476 # AmigaOS /C/install, which installs bootblocks on floppy discs
5477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5480 # OS/2's system install, which has a completely different semantic
5481 # ./install, which can be erroneously created by make from ./install.sh.
5482 # Reject install programs that cannot install multiple files.
5483 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5484 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5485 if test -z "$INSTALL"; then
5486 if test "${ac_cv_path_install+set}" = set; then
5487 $as_echo_n "(cached) " >&6
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 # Account for people who put trailing slashes in PATH elements.
5496 ./ | .// | /cC/* | \
5497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5498 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5501 # OSF1 and SCO ODT 3.0 have their own names for install.
5502 # Don't use installbsd from OSF since it installs stuff as root
5504 for ac_prog in ginstall scoinst install; do
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5507 if test $ac_prog = install &&
5508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5509 # AIX install. It has an incompatible calling convention.
5511 elif test $ac_prog = install &&
5512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5513 # program-specific install script used by HP pwplus--don't use.
5516 rm -rf conftest.one conftest.two conftest.dir
5517 echo one > conftest.one
5518 echo two > conftest.two
5520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5521 test -s conftest.one && test -s conftest.two &&
5522 test -s conftest.dir/conftest.one &&
5523 test -s conftest.dir/conftest.two
5525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5538 rm -rf conftest.one conftest.two conftest.dir
5541 if test "${ac_cv_path_install+set}" = set; then
5542 INSTALL=$ac_cv_path_install
5544 # As a last resort, use the slow shell script. Don't cache a
5545 # value for INSTALL within a source directory, because that will
5546 # break other packages using the cache if that directory is
5547 # removed, or if the value is a relative name.
5548 INSTALL=$ac_install_sh
5551 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5552 $as_echo "$INSTALL" >&6; }
5554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5555 # It thinks the first close brace ends the variable substitution.
5556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5562 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5563 $as_echo_n "checking whether ln -s works... " >&6; }
5565 if test "$LN_S" = "ln -s"; then
5566 { $as_echo "$as_me:$LINENO: result: yes" >&5
5567 $as_echo "yes" >&6; }
5569 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5570 $as_echo "no, using $LN_S" >&6; }
5575 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5576 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5581 macro_version='2.2.6'
5582 macro_revision='1.3012'
5596 ltmain="$ac_aux_dir/ltmain.sh"
5598 # Make sure we can run config.sub.
5599 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5600 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5601 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5602 { (exit 1); exit 1; }; }
5604 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5605 $as_echo_n "checking build system type... " >&6; }
5606 if test "${ac_cv_build+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5609 ac_build_alias=$build_alias
5610 test "x$ac_build_alias" = x &&
5611 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5612 test "x$ac_build_alias" = x &&
5613 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5614 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5615 { (exit 1); exit 1; }; }
5616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5617 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5618 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5619 { (exit 1); exit 1; }; }
5622 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5623 $as_echo "$ac_cv_build" >&6; }
5624 case $ac_cv_build in
5626 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5627 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5628 { (exit 1); exit 1; }; };;
5631 ac_save_IFS=$IFS; IFS='-'
5637 # Remember, the first character of IFS is used to create $*,
5638 # except with old shells:
5641 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5644 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5645 $as_echo_n "checking host system type... " >&6; }
5646 if test "${ac_cv_host+set}" = set; then
5647 $as_echo_n "(cached) " >&6
5649 if test "x$host_alias" = x; then
5650 ac_cv_host=$ac_cv_build
5652 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5655 { (exit 1); exit 1; }; }
5659 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5660 $as_echo "$ac_cv_host" >&6; }
5663 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5664 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5665 { (exit 1); exit 1; }; };;
5668 ac_save_IFS=$IFS; IFS='-'
5674 # Remember, the first character of IFS is used to create $*,
5675 # except with old shells:
5678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5681 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5682 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5683 if test "${ac_cv_path_SED+set}" = set; then
5684 $as_echo_n "(cached) " >&6
5686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5687 for ac_i in 1 2 3 4 5 6 7; do
5688 ac_script="$ac_script$as_nl$ac_script"
5690 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5691 $as_unset ac_script || ac_script=
5692 if test -z "$SED"; then
5693 ac_path_SED_found=false
5694 # Loop through the user's path and test for each of PROGNAME-LIST
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_prog in sed gsed; do
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5703 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5704 # Check for GNU ac_path_SED and select it if it is found.
5705 # Check for GNU $ac_path_SED
5706 case `"$ac_path_SED" --version 2>&1` in
5708 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5711 $as_echo_n 0123456789 >"conftest.in"
5714 cat "conftest.in" "conftest.in" >"conftest.tmp"
5715 mv "conftest.tmp" "conftest.in"
5716 cp "conftest.in" "conftest.nl"
5717 $as_echo '' >> "conftest.nl"
5718 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5720 ac_count=`expr $ac_count + 1`
5721 if test $ac_count -gt ${ac_path_SED_max-0}; then
5722 # Best one so far, save it but keep looking for a better one
5723 ac_cv_path_SED="$ac_path_SED"
5724 ac_path_SED_max=$ac_count
5726 # 10*(2^10) chars as input seems more than enough
5727 test $ac_count -gt 10 && break
5729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 $ac_path_SED_found && break 3
5737 if test -z "$ac_cv_path_SED"; then
5738 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5739 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5740 { (exit 1); exit 1; }; }
5747 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5748 $as_echo "$ac_cv_path_SED" >&6; }
5749 SED="$ac_cv_path_SED"
5752 test -z "$SED" && SED=sed
5753 Xsed="$SED -e 1s/^X//"
5765 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5766 $as_echo_n "checking for fgrep... " >&6; }
5767 if test "${ac_cv_path_FGREP+set}" = set; then
5768 $as_echo_n "(cached) " >&6
5770 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5771 then ac_cv_path_FGREP="$GREP -F"
5773 if test -z "$FGREP"; then
5774 ac_path_FGREP_found=false
5775 # Loop through the user's path and test for each of PROGNAME-LIST
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5780 test -z "$as_dir" && as_dir=.
5781 for ac_prog in fgrep; do
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5784 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5785 # Check for GNU ac_path_FGREP and select it if it is found.
5786 # Check for GNU $ac_path_FGREP
5787 case `"$ac_path_FGREP" --version 2>&1` in
5789 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5792 $as_echo_n 0123456789 >"conftest.in"
5795 cat "conftest.in" "conftest.in" >"conftest.tmp"
5796 mv "conftest.tmp" "conftest.in"
5797 cp "conftest.in" "conftest.nl"
5798 $as_echo 'FGREP' >> "conftest.nl"
5799 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801 ac_count=`expr $ac_count + 1`
5802 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5803 # Best one so far, save it but keep looking for a better one
5804 ac_cv_path_FGREP="$ac_path_FGREP"
5805 ac_path_FGREP_max=$ac_count
5807 # 10*(2^10) chars as input seems more than enough
5808 test $ac_count -gt 10 && break
5810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 $ac_path_FGREP_found && break 3
5818 if test -z "$ac_cv_path_FGREP"; then
5819 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5820 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5821 { (exit 1); exit 1; }; }
5824 ac_cv_path_FGREP=$FGREP
5829 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5830 $as_echo "$ac_cv_path_FGREP" >&6; }
5831 FGREP="$ac_cv_path_FGREP"
5834 test -z "$GREP" && GREP=grep
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5862 if test "$GCC" = yes; then
5863 # Check if gcc -print-prog-name=ld gives a path.
5864 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 $as_echo_n "checking for ld used by $CC... " >&6; }
5868 # gcc leaves a trailing carriage return which upsets mingw
5869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5874 # Accept absolute paths.
5876 re_direlt='/[^/][^/]*/\.\./'
5877 # Canonicalize the pathname of ld
5878 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5879 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5880 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5882 test -z "$LD" && LD="$ac_prog"
5885 # If it fails, then pretend we aren't using GCC.
5889 # If it is relative, then search for the first ld in PATH.
5893 elif test "$with_gnu_ld" = yes; then
5894 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 $as_echo_n "checking for GNU ld... " >&6; }
5897 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 $as_echo_n "checking for non-GNU ld... " >&6; }
5900 if test "${lt_cv_path_LD+set}" = set; then
5901 $as_echo_n "(cached) " >&6
5903 if test -z "$LD"; then
5904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5907 test -z "$ac_dir" && ac_dir=.
5908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909 lt_cv_path_LD="$ac_dir/$ac_prog"
5910 # Check to see if the program is GNU ld. I'd rather use --version,
5911 # but apparently some variants of GNU ld only accept -v.
5912 # Break only if it was the GNU/non-GNU ld that we prefer.
5913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914 *GNU* | *'with BFD'*)
5915 test "$with_gnu_ld" != no && break
5918 test "$with_gnu_ld" != yes && break
5925 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5930 if test -n "$LD"; then
5931 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5932 $as_echo "$LD" >&6; }
5934 { $as_echo "$as_me:$LINENO: result: no" >&5
5935 $as_echo "no" >&6; }
5937 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939 { (exit 1); exit 1; }; }
5940 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948 lt_cv_prog_gnu_ld=yes
5951 lt_cv_prog_gnu_ld=no
5955 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5967 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if test "${lt_cv_path_NM+set}" = set; then
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$NM"; then
5973 # Let the user override the test.
5976 lt_nm_to_check="${ac_tool_prefix}nm"
5977 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5978 lt_nm_to_check="$lt_nm_to_check nm"
5980 for lt_tmp_nm in $lt_nm_to_check; do
5981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5984 test -z "$ac_dir" && ac_dir=.
5985 tmp_nm="$ac_dir/$lt_tmp_nm"
5986 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5987 # Check to see if the nm accepts a BSD-compat flag.
5988 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5989 # nm: unknown option "B" ignored
5990 # Tru64's nm complains that /dev/null is an invalid object file
5991 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5992 */dev/null* | *'Invalid file or object type'*)
5993 lt_cv_path_NM="$tmp_nm -B"
5997 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5999 lt_cv_path_NM="$tmp_nm -p"
6003 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6004 continue # so that we can try to find one that supports BSD flags
6013 : ${lt_cv_path_NM=no}
6016 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6017 $as_echo "$lt_cv_path_NM" >&6; }
6018 if test "$lt_cv_path_NM" != "no"; then
6021 # Didn't find any BSD compatible name lister, look for dumpbin.
6022 if test -n "$ac_tool_prefix"; then
6023 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$DUMPBIN"; then
6033 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 DUMPBIN=$ac_cv_prog_DUMPBIN
6053 if test -n "$DUMPBIN"; then
6054 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6055 $as_echo "$DUMPBIN" >&6; }
6057 { $as_echo "$as_me:$LINENO: result: no" >&5
6058 $as_echo "no" >&6; }
6062 test -n "$DUMPBIN" && break
6065 if test -z "$DUMPBIN"; then
6066 ac_ct_DUMPBIN=$DUMPBIN
6067 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6069 # Extract the first word of "$ac_prog", so it can be a program name with args.
6070 set dummy $ac_prog; ac_word=$2
6071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$ac_ct_DUMPBIN"; then
6077 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6097 if test -n "$ac_ct_DUMPBIN"; then
6098 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6099 $as_echo "$ac_ct_DUMPBIN" >&6; }
6101 { $as_echo "$as_me:$LINENO: result: no" >&5
6102 $as_echo "no" >&6; }
6106 test -n "$ac_ct_DUMPBIN" && break
6109 if test "x$ac_ct_DUMPBIN" = x; then
6112 case $cross_compiling:$ac_tool_warned in
6114 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6118 DUMPBIN=$ac_ct_DUMPBIN
6123 if test "$DUMPBIN" != ":"; then
6127 test -z "$NM" && NM=nm
6134 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6135 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6136 if test "${lt_cv_nm_interface+set}" = set; then
6137 $as_echo_n "(cached) " >&6
6139 lt_cv_nm_interface="BSD nm"
6140 echo "int some_variable = 0;" > conftest.$ac_ext
6141 (eval echo "\"\$as_me:6141: $ac_compile\"" >&5)
6142 (eval "$ac_compile" 2>conftest.err)
6143 cat conftest.err >&5
6144 (eval echo "\"\$as_me:6144: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6145 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6146 cat conftest.err >&5
6147 (eval echo "\"\$as_me:6147: output\"" >&5)
6148 cat conftest.out >&5
6149 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6150 lt_cv_nm_interface="MS dumpbin"
6154 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6155 $as_echo "$lt_cv_nm_interface" >&6; }
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6194 # On AmigaOS with pdksh, this test takes hours, literally.
6195 # So we just punt and use a minimum line length of 8192.
6196 lt_cv_sys_max_cmd_len=8192;
6199 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200 # This has been around since 386BSD, at least. Likely further.
6201 if test -x /sbin/sysctl; then
6202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203 elif test -x /usr/sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6208 # And add a safety zone
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215 lt_cv_sys_max_cmd_len=196608
6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221 # nice to cause kernel panics so lets avoid the loop below.
6222 # First set a reasonable default.
6223 lt_cv_sys_max_cmd_len=16384
6225 if test -x /sbin/sysconfig; then
6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6232 lt_cv_sys_max_cmd_len=102400
6234 sysv5* | sco5v6* | sysv4.2uw2*)
6235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236 if test -n "$kargmax"; then
6237 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6239 lt_cv_sys_max_cmd_len=32768
6243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244 if test -n "$lt_cv_sys_max_cmd_len"; then
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6248 # Make teststring a little bigger before we do anything with it.
6249 # a 1K string should be a reasonable start.
6250 for i in 1 2 3 4 5 6 7 8 ; do
6251 teststring=$teststring$teststring
6253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254 # If test is not a shell built-in, we'll probably end up computing a
6255 # maximum length that is only half of the actual maximum length, but
6257 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6258 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6259 test $i != 17 # 1/2 MB should be enough
6262 teststring=$teststring$teststring
6264 # Only check the string length outside the loop.
6265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6267 # Add a significant safety factor because C++ compilers can tack on
6268 # massive amounts of additional arguments before passing them to the
6269 # linker. It appears as though 1/2 is a usable value.
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6281 { $as_echo "$as_me:$LINENO: result: none" >&5
6282 $as_echo "none" >&6; }
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6295 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6302 && eval 'test $(( 1 + 1 )) -eq 2 \
6303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6305 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6309 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6314 && lt_shell_append=yes
6315 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6350 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if test "${lt_cv_ld_reload_flag+set}" = set; then
6353 $as_echo_n "(cached) " >&6
6355 lt_cv_ld_reload_flag='-r'
6357 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6362 *) reload_flag=" $reload_flag" ;;
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 if test "$GCC" = yes; then
6368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$OBJDUMP"; then
6392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6416 { $as_echo "$as_me:$LINENO: result: no" >&5
6417 $as_echo "no" >&6; }
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423 ac_ct_OBJDUMP=$OBJDUMP
6424 # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$ac_ct_OBJDUMP"; then
6432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6456 { $as_echo "$as_me:$LINENO: result: no" >&5
6457 $as_echo "no" >&6; }
6460 if test "x$ac_ct_OBJDUMP" = x; then
6463 case $cross_compiling:$ac_tool_warned in
6465 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6469 OBJDUMP=$ac_ct_OBJDUMP
6472 OBJDUMP="$ac_cv_prog_OBJDUMP"
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6485 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if test "${lt_cv_deplibs_check_method+set}" = set; then
6488 $as_echo_n "(cached) " >&6
6490 lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6506 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_deplibs_check_method=pass_all
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515 lt_cv_file_magic_cmd='/usr/bin/file -L'
6516 lt_cv_file_magic_test_file=/shlib/libc.so
6520 # func_win32_libid is a shell function defined in ltmain.sh
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6526 # Base MSYS/MinGW do not provide the 'file' command needed by
6527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528 # unless we find 'file', for example because we are cross-compiling.
6529 if ( file / ) >/dev/null 2>&1; then
6530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531 lt_cv_file_magic_cmd='func_win32_libid'
6533 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6539 # use the weaker test based on 'objdump'. See mingw*.
6540 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6541 lt_cv_file_magic_cmd='$OBJDUMP -f'
6544 darwin* | rhapsody*)
6545 lt_cv_deplibs_check_method=pass_all
6548 freebsd* | dragonfly*)
6549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6552 # Not sure whether the presence of OpenBSD here was a mistake.
6553 # Let's accept both of them until this is cleared up.
6554 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6555 lt_cv_file_magic_cmd=/usr/bin/file
6556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6560 lt_cv_deplibs_check_method=pass_all
6565 lt_cv_deplibs_check_method=pass_all
6568 hpux10.20* | hpux11*)
6569 lt_cv_file_magic_cmd=/usr/bin/file
6572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6573 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6576 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]'
6577 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6581 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6587 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6591 irix5* | irix6* | nonstopux*)
6593 *-32|*"-32 ") libmagic=32-bit;;
6594 *-n32|*"-n32 ") libmagic=N32;;
6595 *-64|*"-64 ") libmagic=64-bit;;
6596 *) libmagic=never-match;;
6598 lt_cv_deplibs_check_method=pass_all
6601 # This must be Linux ELF.
6602 linux* | k*bsd*-gnu)
6603 lt_cv_deplibs_check_method=pass_all
6606 netbsd* | netbsdelf*-gnu)
6607 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6616 lt_cv_file_magic_cmd=/usr/bin/file
6617 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6621 lt_cv_deplibs_check_method=pass_all
6625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6632 osf3* | osf4* | osf5*)
6633 lt_cv_deplibs_check_method=pass_all
6637 lt_cv_deplibs_check_method=pass_all
6641 lt_cv_deplibs_check_method=pass_all
6644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6645 lt_cv_deplibs_check_method=pass_all
6649 case $host_vendor in
6651 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]'
6652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6655 lt_cv_deplibs_check_method=pass_all
6658 lt_cv_file_magic_cmd='/bin/file'
6659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6662 lt_cv_file_magic_cmd='/bin/file'
6663 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6664 lt_cv_file_magic_test_file=/lib/libc.so
6667 lt_cv_deplibs_check_method=pass_all
6670 lt_cv_deplibs_check_method=pass_all
6676 lt_cv_deplibs_check_method=pass_all
6681 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6683 file_magic_cmd=$lt_cv_file_magic_cmd
6684 deplibs_check_method=$lt_cv_deplibs_check_method
6685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ar; ac_word=$2
6701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_AR+set}" = set; then
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$AR"; then
6707 ac_cv_prog_AR="$AR" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_AR="${ac_tool_prefix}ar"
6717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 if test -n "$AR"; then
6728 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6729 $as_echo "$AR" >&6; }
6731 { $as_echo "$as_me:$LINENO: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_AR"; then
6739 # Extract the first word of "ar", so it can be a program name with args.
6740 set dummy ar; ac_word=$2
6741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$ac_ct_AR"; then
6747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_ac_ct_AR="ar"
6757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6767 if test -n "$ac_ct_AR"; then
6768 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6769 $as_echo "$ac_ct_AR" >&6; }
6771 { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_AR" = x; then
6778 case $cross_compiling:$ac_tool_warned in
6780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6790 test -z "$AR" && AR=ar
6791 test -z "$AR_FLAGS" && AR_FLAGS=cru
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}strip; ac_word=$2
6806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_STRIP+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6811 if test -n "$STRIP"; then
6812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 STRIP=$ac_cv_prog_STRIP
6832 if test -n "$STRIP"; then
6833 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6834 $as_echo "$STRIP" >&6; }
6836 { $as_echo "$as_me:$LINENO: result: no" >&5
6837 $as_echo "no" >&6; }
6842 if test -z "$ac_cv_prog_STRIP"; then
6844 # Extract the first word of "strip", so it can be a program name with args.
6845 set dummy strip; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6849 $as_echo_n "(cached) " >&6
6851 if test -n "$ac_ct_STRIP"; then
6852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_ac_ct_STRIP="strip"
6862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6872 if test -n "$ac_ct_STRIP"; then
6873 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6874 $as_echo "$ac_ct_STRIP" >&6; }
6876 { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6880 if test "x$ac_ct_STRIP" = x; then
6883 case $cross_compiling:$ac_tool_warned in
6885 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6892 STRIP="$ac_cv_prog_STRIP"
6895 test -z "$STRIP" && STRIP=:
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_RANLIB+set}" = set; then
6908 $as_echo_n "(cached) " >&6
6910 if test -n "$RANLIB"; then
6911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 RANLIB=$ac_cv_prog_RANLIB
6931 if test -n "$RANLIB"; then
6932 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6933 $as_echo "$RANLIB" >&6; }
6935 { $as_echo "$as_me:$LINENO: result: no" >&5
6936 $as_echo "no" >&6; }
6941 if test -z "$ac_cv_prog_RANLIB"; then
6942 ac_ct_RANLIB=$RANLIB
6943 # Extract the first word of "ranlib", so it can be a program name with args.
6944 set dummy ranlib; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6948 $as_echo_n "(cached) " >&6
6950 if test -n "$ac_ct_RANLIB"; then
6951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_ac_ct_RANLIB="ranlib"
6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6971 if test -n "$ac_ct_RANLIB"; then
6972 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6973 $as_echo "$ac_ct_RANLIB" >&6; }
6975 { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6979 if test "x$ac_ct_RANLIB" = x; then
6982 case $cross_compiling:$ac_tool_warned in
6984 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6988 RANLIB=$ac_ct_RANLIB
6991 RANLIB="$ac_cv_prog_RANLIB"
6994 test -z "$RANLIB" && RANLIB=:
7001 # Determine commands to create old-style static archives.
7002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7003 old_postinstall_cmds='chmod 644 $oldlib'
7004 old_postuninstall_cmds=
7006 if test -n "$RANLIB"; then
7009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7015 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7051 # If no C compiler was specified, use CC.
7054 # If no C compiler flags were specified, use CFLAGS.
7055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7057 # Allow CC to be a program name with arguments.
7061 # Check for command to grab the raw symbol name followed by C symbol from nm.
7062 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7063 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7064 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7065 $as_echo_n "(cached) " >&6
7068 # These are sane defaults that work on at least a few old systems.
7069 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7071 # Character class describing NM global symbol codes.
7072 symcode='[BCDEGRST]'
7074 # Regexp to match symbols that can be accessed directly from C.
7075 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7077 # Define system-specific variables.
7082 cygwin* | mingw* | pw32* | cegcc*)
7083 symcode='[ABCDGISTW]'
7086 if test "$host_cpu" = ia64; then
7087 symcode='[ABCDEGRST]'
7091 symcode='[BCDEGRST]'
7094 symcode='[BCDEGQRST]'
7105 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7113 # If we're using GNU nm, then use its standard symbol codes.
7114 case `$NM -V 2>&1` in
7115 *GNU* | *'with BFD'*)
7116 symcode='[ABCDGIRSTW]' ;;
7119 # Transform an extracted symbol line into a proper C declaration.
7120 # Some systems (esp. on ia64) link data and code symbols differently,
7121 # so use this general approach.
7122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7124 # Transform an extracted symbol line into symbol name and symbol address
7125 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7128 # Handle CRLF in mingw tool chain
7132 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7136 # Try without a prefix underscore, then with it.
7137 for ac_symprfx in "" "_"; do
7139 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7140 symxfrm="\\1 $ac_symprfx\\2 \\2"
7142 # Write the raw and C identifiers.
7143 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7144 # Fake it for dumpbin and say T for any non-static function
7145 # and D for any global variable.
7146 # Also find C++ and __fastcall symbols from MSVC++,
7147 # which start with @ or ?.
7148 lt_cv_sys_global_symbol_pipe="$AWK '"\
7149 " {last_section=section; section=\$ 3};"\
7150 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7151 " \$ 0!~/External *\|/{next};"\
7152 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7153 " {if(hide[section]) next};"\
7154 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7155 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7156 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7157 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7158 " ' prfx=^$ac_symprfx"
7160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7163 # Check to see that the pipe works correctly.
7167 cat > conftest.$ac_ext <<_LT_EOF
7172 void nm_test_func(void);
7173 void nm_test_func(void){}
7177 int main(){nm_test_var='a';nm_test_func();return(0);}
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; then
7185 # Now try to grab the symbols.
7187 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7188 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && test -s "$nlist"; then
7192 # Try sorting and uniquifying the output.
7193 if sort "$nlist" | uniq > "$nlist"T; then
7194 mv -f "$nlist"T "$nlist"
7199 # Make sure that we snagged all the symbols we need.
7200 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7201 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7202 cat <<_LT_EOF > conftest.$ac_ext
7208 # Now generate the symbol file.
7209 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7211 cat <<_LT_EOF >> conftest.$ac_ext
7213 /* The mapping between symbol names and symbols. */
7218 lt__PROGRAM__LTX_preloaded_symbols[] =
7220 { "@PROGRAM@", (void *) 0 },
7222 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7223 cat <<\_LT_EOF >> conftest.$ac_ext
7227 /* This works around a problem in FreeBSD linker */
7228 #ifdef FREEBSD_WORKAROUND
7229 static const void *lt_preloaded_setup() {
7230 return lt__PROGRAM__LTX_preloaded_symbols;
7238 # Now try linking the two files.
7239 mv conftest.$ac_objext conftstm.$ac_objext
7240 lt_save_LIBS="$LIBS"
7241 lt_save_CFLAGS="$CFLAGS"
7242 LIBS="conftstm.$ac_objext"
7243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>&5
7247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7251 LIBS="$lt_save_LIBS"
7252 CFLAGS="$lt_save_CFLAGS"
7254 echo "cannot find nm_test_func in $nlist" >&5
7257 echo "cannot find nm_test_var in $nlist" >&5
7260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7263 echo "$progname: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 rm -rf conftest* conftst*
7268 # Do not use the global_symbol_pipe unless it works.
7269 if test "$pipe_works" = yes; then
7272 lt_cv_sys_global_symbol_pipe=
7278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7279 lt_cv_sys_global_symbol_to_cdecl=
7281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7282 { $as_echo "$as_me:$LINENO: result: failed" >&5
7283 $as_echo "failed" >&6; }
7285 { $as_echo "$as_me:$LINENO: result: ok" >&5
7286 $as_echo "ok" >&6; }
7310 # Check whether --enable-libtool-lock was given.
7311 if test "${enable_libtool_lock+set}" = set; then
7312 enableval=$enable_libtool_lock;
7315 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7317 # Some flags need to be propagated to the compiler or linker for good
7321 # Find out which ABI we are using.
7322 echo 'int i;' > conftest.$ac_ext
7323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; then
7328 case `/usr/bin/file conftest.$ac_objext` in
7340 # Find out which ABI we are using.
7341 echo '#line 7341 "configure"' > conftest.$ac_ext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; then
7347 if test "$lt_cv_prog_gnu_ld" = yes; then
7348 case `/usr/bin/file conftest.$ac_objext` in
7350 LD="${LD-ld} -melf32bsmip"
7353 LD="${LD-ld} -melf32bmipn32"
7356 LD="${LD-ld} -melf64bmip"
7360 case `/usr/bin/file conftest.$ac_objext` in
7376 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7377 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7378 # Find out which ABI we are using.
7379 echo 'int i;' > conftest.$ac_ext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>&5
7383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; then
7385 case `/usr/bin/file conftest.o` in
7388 x86_64-*kfreebsd*-gnu)
7389 LD="${LD-ld} -m elf_i386_fbsd"
7392 LD="${LD-ld} -m elf_i386"
7394 ppc64-*linux*|powerpc64-*linux*)
7395 LD="${LD-ld} -m elf32ppclinux"
7398 LD="${LD-ld} -m elf_s390"
7401 LD="${LD-ld} -m elf32_sparc"
7407 x86_64-*kfreebsd*-gnu)
7408 LD="${LD-ld} -m elf_x86_64_fbsd"
7411 LD="${LD-ld} -m elf_x86_64"
7413 ppc*-*linux*|powerpc*-*linux*)
7414 LD="${LD-ld} -m elf64ppc"
7416 s390*-*linux*|s390*-*tpf*)
7417 LD="${LD-ld} -m elf64_s390"
7420 LD="${LD-ld} -m elf64_sparc"
7430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7431 SAVE_CFLAGS="$CFLAGS"
7432 CFLAGS="$CFLAGS -belf"
7433 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7434 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7435 if test "${lt_cv_cc_needs_belf+set}" = set; then
7436 $as_echo_n "(cached) " >&6
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (ac_try="$ac_link"
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467 (eval "$ac_link") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext && {
7477 test "$cross_compiling" = yes ||
7478 $as_test_x conftest$ac_exeext
7480 lt_cv_cc_needs_belf=yes
7482 $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 lt_cv_cc_needs_belf=no
7488 rm -rf conftest.dSYM
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490 conftest$ac_exeext conftest.$ac_ext
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7499 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7500 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7501 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7502 CFLAGS="$SAVE_CFLAGS"
7506 # Find out which ABI we are using.
7507 echo 'int i;' > conftest.$ac_ext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>&5
7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; then
7513 case `/usr/bin/file conftest.o` in
7515 case $lt_cv_prog_gnu_ld in
7516 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7518 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7530 need_locks="$enable_libtool_lock"
7534 rhapsody* | darwin*)
7535 if test -n "$ac_tool_prefix"; then
7536 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$DSYMUTIL"; then
7544 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7564 if test -n "$DSYMUTIL"; then
7565 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7566 $as_echo "$DSYMUTIL" >&6; }
7568 { $as_echo "$as_me:$LINENO: result: no" >&5
7569 $as_echo "no" >&6; }
7574 if test -z "$ac_cv_prog_DSYMUTIL"; then
7575 ac_ct_DSYMUTIL=$DSYMUTIL
7576 # Extract the first word of "dsymutil", so it can be a program name with args.
7577 set dummy dsymutil; ac_word=$2
7578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$ac_ct_DSYMUTIL"; then
7584 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7604 if test -n "$ac_ct_DSYMUTIL"; then
7605 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7606 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7608 { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7612 if test "x$ac_ct_DSYMUTIL" = x; then
7615 case $cross_compiling:$ac_tool_warned in
7617 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7621 DSYMUTIL=$ac_ct_DSYMUTIL
7624 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7627 if test -n "$ac_tool_prefix"; then
7628 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7633 $as_echo_n "(cached) " >&6
7635 if test -n "$NMEDIT"; then
7636 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 NMEDIT=$ac_cv_prog_NMEDIT
7656 if test -n "$NMEDIT"; then
7657 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7658 $as_echo "$NMEDIT" >&6; }
7660 { $as_echo "$as_me:$LINENO: result: no" >&5
7661 $as_echo "no" >&6; }
7666 if test -z "$ac_cv_prog_NMEDIT"; then
7667 ac_ct_NMEDIT=$NMEDIT
7668 # Extract the first word of "nmedit", so it can be a program name with args.
7669 set dummy nmedit; ac_word=$2
7670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$ac_ct_NMEDIT"; then
7676 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7696 if test -n "$ac_ct_NMEDIT"; then
7697 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7698 $as_echo "$ac_ct_NMEDIT" >&6; }
7700 { $as_echo "$as_me:$LINENO: result: no" >&5
7701 $as_echo "no" >&6; }
7704 if test "x$ac_ct_NMEDIT" = x; then
7707 case $cross_compiling:$ac_tool_warned in
7709 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7713 NMEDIT=$ac_ct_NMEDIT
7716 NMEDIT="$ac_cv_prog_NMEDIT"
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_LIPO+set}" = set; then
7725 $as_echo_n "(cached) " >&6
7727 if test -n "$LIPO"; then
7728 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 LIPO=$ac_cv_prog_LIPO
7748 if test -n "$LIPO"; then
7749 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7750 $as_echo "$LIPO" >&6; }
7752 { $as_echo "$as_me:$LINENO: result: no" >&5
7753 $as_echo "no" >&6; }
7758 if test -z "$ac_cv_prog_LIPO"; then
7760 # Extract the first word of "lipo", so it can be a program name with args.
7761 set dummy lipo; ac_word=$2
7762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$ac_ct_LIPO"; then
7768 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_ac_ct_LIPO="lipo"
7778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7788 if test -n "$ac_ct_LIPO"; then
7789 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7790 $as_echo "$ac_ct_LIPO" >&6; }
7792 { $as_echo "$as_me:$LINENO: result: no" >&5
7793 $as_echo "no" >&6; }
7796 if test "x$ac_ct_LIPO" = x; then
7799 case $cross_compiling:$ac_tool_warned in
7801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7808 LIPO="$ac_cv_prog_LIPO"
7811 if test -n "$ac_tool_prefix"; then
7812 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}otool; ac_word=$2
7814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_OTOOL+set}" = set; then
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$OTOOL"; then
7820 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 OTOOL=$ac_cv_prog_OTOOL
7840 if test -n "$OTOOL"; then
7841 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7842 $as_echo "$OTOOL" >&6; }
7844 { $as_echo "$as_me:$LINENO: result: no" >&5
7845 $as_echo "no" >&6; }
7850 if test -z "$ac_cv_prog_OTOOL"; then
7852 # Extract the first word of "otool", so it can be a program name with args.
7853 set dummy otool; ac_word=$2
7854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$ac_ct_OTOOL"; then
7860 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_ac_ct_OTOOL="otool"
7870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7880 if test -n "$ac_ct_OTOOL"; then
7881 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7882 $as_echo "$ac_ct_OTOOL" >&6; }
7884 { $as_echo "$as_me:$LINENO: result: no" >&5
7885 $as_echo "no" >&6; }
7888 if test "x$ac_ct_OTOOL" = x; then
7891 case $cross_compiling:$ac_tool_warned in
7893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7900 OTOOL="$ac_cv_prog_OTOOL"
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7909 $as_echo_n "(cached) " >&6
7911 if test -n "$OTOOL64"; then
7912 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 OTOOL64=$ac_cv_prog_OTOOL64
7932 if test -n "$OTOOL64"; then
7933 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7934 $as_echo "$OTOOL64" >&6; }
7936 { $as_echo "$as_me:$LINENO: result: no" >&5
7937 $as_echo "no" >&6; }
7942 if test -z "$ac_cv_prog_OTOOL64"; then
7943 ac_ct_OTOOL64=$OTOOL64
7944 # Extract the first word of "otool64", so it can be a program name with args.
7945 set dummy otool64; ac_word=$2
7946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$ac_ct_OTOOL64"; then
7952 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_prog_ac_ct_OTOOL64="otool64"
7962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7972 if test -n "$ac_ct_OTOOL64"; then
7973 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7974 $as_echo "$ac_ct_OTOOL64" >&6; }
7976 { $as_echo "$as_me:$LINENO: result: no" >&5
7977 $as_echo "no" >&6; }
7980 if test "x$ac_ct_OTOOL64" = x; then
7983 case $cross_compiling:$ac_tool_warned in
7985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987 ac_tool_warned=yes ;;
7989 OTOOL64=$ac_ct_OTOOL64
7992 OTOOL64="$ac_cv_prog_OTOOL64"
8021 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8022 $as_echo_n "checking for -single_module linker flag... " >&6; }
8023 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8024 $as_echo_n "(cached) " >&6
8026 lt_cv_apple_cc_single_mod=no
8027 if test -z "${LT_MULTI_MODULE}"; then
8028 # By default we will add the -single_module flag. You can override
8029 # by either setting the environment variable LT_MULTI_MODULE
8030 # non-empty at configure time, or by adding -multi_module to the
8032 rm -rf libconftest.dylib*
8033 echo "int foo(void){return 1;}" > conftest.c
8034 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8035 -dynamiclib -Wl,-single_module conftest.c" >&5
8036 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8037 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8039 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8040 lt_cv_apple_cc_single_mod=yes
8042 cat conftest.err >&5
8044 rm -rf libconftest.dylib*
8048 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8049 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8050 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8051 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8052 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8053 $as_echo_n "(cached) " >&6
8055 lt_cv_ld_exported_symbols_list=no
8056 save_LDFLAGS=$LDFLAGS
8057 echo "_main" > conftest.sym
8058 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (ac_try="$ac_link"
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081 $as_echo "$ac_try_echo") >&5
8082 (eval "$ac_link") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest$ac_exeext && {
8092 test "$cross_compiling" = yes ||
8093 $as_test_x conftest$ac_exeext
8095 lt_cv_ld_exported_symbols_list=yes
8097 $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 lt_cv_ld_exported_symbols_list=no
8103 rm -rf conftest.dSYM
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LDFLAGS="$save_LDFLAGS"
8109 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8112 rhapsody* | darwin1.[012])
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116 darwin*) # darwin 5.x on
8117 # if running on 10.5 or later, the deployment target defaults
8118 # to the OS version, if on x86, and 10.4, the deployment
8119 # target defaults to 10.4. Don't you love it?
8120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8121 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8131 _lt_dar_single_mod='$single_module'
8133 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8134 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8138 if test "$DSYMUTIL" != ":"; then
8139 _lt_dsymutil='~$DSYMUTIL $lib || :'
8147 for ac_header in dlfcn.h
8149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8151 $as_echo_n "checking for $ac_header... " >&6; }
8152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8153 $as_echo_n "(cached) " >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8163 #include <$ac_header>
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8172 $as_echo "$ac_try_echo") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8183 eval "$as_ac_Header=yes"
8185 $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 eval "$as_ac_Header=no"
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 ac_res=`eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'`
8195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8196 $as_echo "$ac_res" >&6; }
8197 as_val=`eval 'as_val=${'$as_ac_Header'}
8198 $as_echo "$as_val"'`
8199 if test "x$as_val" = x""yes; then
8200 cat >>confdefs.h <<_ACEOF
8201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 # Check whether --enable-shared was given.
8221 if test "${enable_shared+set}" = set; then
8222 enableval=$enable_shared; p=${PACKAGE-default}
8224 yes) enable_shared=yes ;;
8225 no) enable_shared=no ;;
8228 # Look at the argument we got. We use all the common list separators.
8229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8230 for pkg in $enableval; do
8232 if test "X$pkg" = "X$p"; then
8251 # Check whether --enable-static was given.
8252 if test "${enable_static+set}" = set; then
8253 enableval=$enable_static; p=${PACKAGE-default}
8255 yes) enable_static=yes ;;
8256 no) enable_static=no ;;
8259 # Look at the argument we got. We use all the common list separators.
8260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261 for pkg in $enableval; do
8263 if test "X$pkg" = "X$p"; then
8283 # Check whether --with-pic was given.
8284 if test "${with_pic+set}" = set; then
8285 withval=$with_pic; pic_mode="$withval"
8291 test -z "$pic_mode" && pic_mode=default
8299 # Check whether --enable-fast-install was given.
8300 if test "${enable_fast_install+set}" = set; then
8301 enableval=$enable_fast_install; p=${PACKAGE-default}
8303 yes) enable_fast_install=yes ;;
8304 no) enable_fast_install=no ;;
8306 enable_fast_install=no
8307 # Look at the argument we got. We use all the common list separators.
8308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8309 for pkg in $enableval; do
8311 if test "X$pkg" = "X$p"; then
8312 enable_fast_install=yes
8319 enable_fast_install=yes
8332 # This can be used to rebuild libtool when needed
8333 LIBTOOL_DEPS="$ltmain"
8335 # Always use our own libtool.
8336 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8362 test -z "$LN_S" && LN_S="ln -s"
8377 if test -n "${ZSH_VERSION+set}" ; then
8378 setopt NO_GLOB_SUBST
8381 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8382 $as_echo_n "checking for objdir... " >&6; }
8383 if test "${lt_cv_objdir+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8386 rm -f .libs 2>/dev/null
8387 mkdir .libs 2>/dev/null
8388 if test -d .libs; then
8391 # MS-DOS does not allow filenames that begin with a dot.
8394 rmdir .libs 2>/dev/null
8396 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8397 $as_echo "$lt_cv_objdir" >&6; }
8398 objdir=$lt_cv_objdir
8404 cat >>confdefs.h <<_ACEOF
8405 #define LT_OBJDIR "$lt_cv_objdir/"
8426 # AIX sometimes has problems with the GCC collect2 program. For some
8427 # reason, if we set the COLLECT_NAMES environment variable, the problems
8428 # vanish in a puff of smoke.
8429 if test "X${COLLECT_NAMES+set}" != Xset; then
8431 export COLLECT_NAMES
8436 # Sed substitution that helps us do robust quoting. It backslashifies
8437 # metacharacters that are still active within double-quoted strings.
8438 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8440 # Same as above, but do not quote variable references.
8441 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8443 # Sed substitution to delay expansion of an escaped shell variable in a
8444 # double_quote_subst'ed string.
8445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8447 # Sed substitution to delay expansion of an escaped single quote.
8448 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8450 # Sed substitution to avoid accidental globbing in evaled expressions
8451 no_glob_subst='s/\*/\\\*/g'
8455 can_build_shared=yes
8457 # All known linkers require a `.a' archive for static linking (except MSVC,
8458 # which needs '.lib').
8461 with_gnu_ld="$lt_cv_prog_gnu_ld"
8464 old_CFLAGS="$CFLAGS"
8466 # Set sane defaults for various variables
8467 test -z "$CC" && CC=cc
8468 test -z "$LTCC" && LTCC=$CC
8469 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8470 test -z "$LD" && LD=ld
8471 test -z "$ac_objext" && ac_objext=o
8473 for cc_temp in $compiler""; do
8475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8481 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8484 # Only perform the check for file, if the check method requires it
8485 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8486 case $deplibs_check_method in
8488 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8489 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8490 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8492 $as_echo_n "(cached) " >&6
8496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8499 lt_save_MAGIC_CMD="$MAGIC_CMD"
8500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8502 for ac_dir in $ac_dummy; do
8504 test -z "$ac_dir" && ac_dir=.
8505 if test -f $ac_dir/${ac_tool_prefix}file; then
8506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8507 if test -n "$file_magic_test_file"; then
8508 case $deplibs_check_method in
8510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8513 $EGREP "$file_magic_regex" > /dev/null; then
8518 *** Warning: the command libtool uses to detect shared libraries,
8519 *** $file_magic_cmd, produces output that libtool cannot recognize.
8520 *** The result is that libtool may fail to recognize shared libraries
8521 *** as such. This will affect the creation of libtool libraries that
8522 *** depend on shared libraries, but programs linked with such libtool
8523 *** libraries will work regardless of this problem. Nevertheless, you
8524 *** may want to report the problem to your system manager and/or to
8525 *** bug-libtool@gnu.org
8535 MAGIC_CMD="$lt_save_MAGIC_CMD"
8540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541 if test -n "$MAGIC_CMD"; then
8542 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8543 $as_echo "$MAGIC_CMD" >&6; }
8545 { $as_echo "$as_me:$LINENO: result: no" >&5
8546 $as_echo "no" >&6; }
8553 if test -z "$lt_cv_path_MAGIC_CMD"; then
8554 if test -n "$ac_tool_prefix"; then
8555 { $as_echo "$as_me:$LINENO: checking for file" >&5
8556 $as_echo_n "checking for file... " >&6; }
8557 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8558 $as_echo_n "(cached) " >&6
8562 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 lt_save_MAGIC_CMD="$MAGIC_CMD"
8566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8567 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8568 for ac_dir in $ac_dummy; do
8570 test -z "$ac_dir" && ac_dir=.
8571 if test -f $ac_dir/file; then
8572 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8573 if test -n "$file_magic_test_file"; then
8574 case $deplibs_check_method in
8576 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8578 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8579 $EGREP "$file_magic_regex" > /dev/null; then
8584 *** Warning: the command libtool uses to detect shared libraries,
8585 *** $file_magic_cmd, produces output that libtool cannot recognize.
8586 *** The result is that libtool may fail to recognize shared libraries
8587 *** as such. This will affect the creation of libtool libraries that
8588 *** depend on shared libraries, but programs linked with such libtool
8589 *** libraries will work regardless of this problem. Nevertheless, you
8590 *** may want to report the problem to your system manager and/or to
8591 *** bug-libtool@gnu.org
8601 MAGIC_CMD="$lt_save_MAGIC_CMD"
8606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607 if test -n "$MAGIC_CMD"; then
8608 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8609 $as_echo "$MAGIC_CMD" >&6; }
8611 { $as_echo "$as_me:$LINENO: result: no" >&5
8612 $as_echo "no" >&6; }
8625 # Use C for the default configuration in the libtool script
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635 # Source file extension for C test sources.
8638 # Object file extension for compiled C test sources.
8642 # Code to be used in simple compile tests
8643 lt_simple_compile_test_code="int some_variable = 0;"
8645 # Code to be used in simple link tests
8646 lt_simple_link_test_code='int main(){return(0);}'
8654 # If no C compiler was specified, use CC.
8657 # If no C compiler flags were specified, use CFLAGS.
8658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8660 # Allow CC to be a program name with arguments.
8663 # Save the default compiler, since it gets overwritten when the other
8664 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8665 compiler_DEFAULT=$CC
8667 # save warnings/boilerplate of simple test code
8668 ac_outfile=conftest.$ac_objext
8669 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8670 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8671 _lt_compiler_boilerplate=`cat conftest.err`
8674 ac_outfile=conftest.$ac_objext
8675 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8676 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8677 _lt_linker_boilerplate=`cat conftest.err`
8682 ## There is no encapsulation within the following macros, do not change
8683 ## the running order or otherwise move them around unless you know exactly
8684 ## what you are doing...
8685 if test -n "$compiler"; then
8687 lt_prog_compiler_no_builtin_flag=
8689 if test "$GCC" = yes; then
8690 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8692 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8693 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8695 $as_echo_n "(cached) " >&6
8697 lt_cv_prog_compiler_rtti_exceptions=no
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700 lt_compiler_flag="-fno-rtti -fno-exceptions"
8701 # Insert the option either (1) after the last *FLAGS variable, or
8702 # (2) before a word containing "conftest.", or (3) at the end.
8703 # Note that $ac_compile itself does not contain backslashes and begins
8704 # with a dollar sign (not a hyphen), so the echo should work correctly.
8705 # The option is referenced via a variable to avoid confusing sed.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:8710: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>conftest.err)
8713 cat conftest.err >&5
8714 echo "$as_me:8714: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s "$ac_outfile"; then
8716 # The compiler can only warn and ignore the option if not recognized
8717 # So say no if there are warnings other than the usual output.
8718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_rtti_exceptions=yes
8727 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8728 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8743 lt_prog_compiler_wl=
8744 lt_prog_compiler_pic=
8745 lt_prog_compiler_static=
8747 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8750 if test "$GCC" = yes; then
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_static='-static'
8756 # All AIX code is PIC.
8757 if test "$host_cpu" = ia64; then
8758 # AIX 5 now supports IA64 processor
8759 lt_prog_compiler_static='-Bstatic'
8766 # see comment about AmigaOS4 .so support
8767 lt_prog_compiler_pic='-fPIC'
8770 # FIXME: we need at least 68020 code to build shared libraries, but
8771 # adding the `-m68020' flag to GCC prevents building anything better,
8773 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8778 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8779 # PIC is the default for these OSes.
8782 mingw* | cygwin* | pw32* | os2* | cegcc*)
8783 # This hack is so that the source file can tell whether it is being
8784 # built for inclusion in a dll (and should export symbols for example).
8785 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8786 # (--disable-auto-import) libraries
8787 lt_prog_compiler_pic='-DDLL_EXPORT'
8790 darwin* | rhapsody*)
8791 # PIC is the default on this platform
8792 # Common symbols not allowed in MH_DYLIB files
8793 lt_prog_compiler_pic='-fno-common'
8797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8799 # sets the default TLS model and affects inlining.
8805 lt_prog_compiler_pic='-fPIC'
8811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8812 # Instead, we relocate shared libraries at runtime.
8816 # Just because we use GCC doesn't mean we suddenly get shared libraries
8817 # on systems that don't support them.
8818 lt_prog_compiler_can_build_shared=no
8823 # QNX uses GNU C++, but need to define -shared option too, otherwise
8825 lt_prog_compiler_pic='-fPIC -shared'
8829 if test -d /usr/nec; then
8830 lt_prog_compiler_pic=-Kconform_pic
8835 lt_prog_compiler_pic='-fPIC'
8839 # PORTME Check for flag to pass linker flags through the system compiler.
8842 lt_prog_compiler_wl='-Wl,'
8843 if test "$host_cpu" = ia64; then
8844 # AIX 5 now supports IA64 processor
8845 lt_prog_compiler_static='-Bstatic'
8847 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8851 mingw* | cygwin* | pw32* | os2* | cegcc*)
8852 # This hack is so that the source file can tell whether it is being
8853 # built for inclusion in a dll (and should export symbols for example).
8854 lt_prog_compiler_pic='-DDLL_EXPORT'
8857 hpux9* | hpux10* | hpux11*)
8858 lt_prog_compiler_wl='-Wl,'
8859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8866 lt_prog_compiler_pic='+Z'
8869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8870 lt_prog_compiler_static='${wl}-a ${wl}archive'
8873 irix5* | irix6* | nonstopux*)
8874 lt_prog_compiler_wl='-Wl,'
8875 # PIC (with -KPIC) is the default.
8876 lt_prog_compiler_static='-non_shared'
8879 linux* | k*bsd*-gnu)
8880 case $cc_basename in
8881 # old Intel for x86_64 which still supported -KPIC.
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_pic='-KPIC'
8885 lt_prog_compiler_static='-static'
8887 # icc used to be incompatible with GCC.
8888 # ICC 10 doesn't accept -KPIC any more.
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-fPIC'
8892 lt_prog_compiler_static='-static'
8894 # Lahey Fortran 8.1.
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_pic='--shared'
8898 lt_prog_compiler_static='--static'
8900 pgcc* | pgf77* | pgf90* | pgf95*)
8901 # Portland Group compilers (*not* the Pentium gcc compiler,
8902 # which looks to be a dead project)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-fpic'
8905 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl='-Wl,'
8909 # All Alpha code is PIC.
8910 lt_prog_compiler_static='-non_shared'
8913 # IBM XL C 8.0/Fortran 10.1 on PPC
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-qpic'
8916 lt_prog_compiler_static='-qstaticlink'
8919 case `$CC -V 2>&1 | sed 5q` in
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl='-Wl,'
8927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_wl=''
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8943 # QNX uses GNU C++, but need to define -shared option too, otherwise
8945 lt_prog_compiler_pic='-fPIC -shared'
8948 osf3* | osf4* | osf5*)
8949 lt_prog_compiler_wl='-Wl,'
8950 # All OSF/1 code is PIC.
8951 lt_prog_compiler_static='-non_shared'
8955 lt_prog_compiler_static='-non_shared'
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-Bstatic'
8961 case $cc_basename in
8963 lt_prog_compiler_wl='-Qoption ld ';;
8965 lt_prog_compiler_wl='-Wl,';;
8970 lt_prog_compiler_wl='-Qoption ld '
8971 lt_prog_compiler_pic='-PIC'
8972 lt_prog_compiler_static='-Bstatic'
8975 sysv4 | sysv4.2uw2* | sysv4.3*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='-KPIC'
8978 lt_prog_compiler_static='-Bstatic'
8982 if test -d /usr/nec ;then
8983 lt_prog_compiler_pic='-Kconform_pic'
8984 lt_prog_compiler_static='-Bstatic'
8988 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-KPIC'
8991 lt_prog_compiler_static='-Bstatic'
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_can_build_shared=no
9000 lt_prog_compiler_pic='-pic'
9001 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_can_build_shared=no
9011 # For platforms which do not support PIC, -DPIC is meaningless:
9013 lt_prog_compiler_pic=
9016 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9019 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9020 $as_echo "$lt_prog_compiler_pic" >&6; }
9028 # Check to make sure the PIC flag actually works.
9030 if test -n "$lt_prog_compiler_pic"; then
9031 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9032 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9033 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9034 $as_echo_n "(cached) " >&6
9036 lt_cv_prog_compiler_pic_works=no
9037 ac_outfile=conftest.$ac_objext
9038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9040 # Insert the option either (1) after the last *FLAGS variable, or
9041 # (2) before a word containing "conftest.", or (3) at the end.
9042 # Note that $ac_compile itself does not contain backslashes and begins
9043 # with a dollar sign (not a hyphen), so the echo should work correctly.
9044 # The option is referenced via a variable to avoid confusing sed.
9045 lt_compile=`echo "$ac_compile" | $SED \
9046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9048 -e 's:$: $lt_compiler_flag:'`
9049 (eval echo "\"\$as_me:9049: $lt_compile\"" >&5)
9050 (eval "$lt_compile" 2>conftest.err)
9052 cat conftest.err >&5
9053 echo "$as_me:9053: \$? = $ac_status" >&5
9054 if (exit $ac_status) && test -s "$ac_outfile"; then
9055 # The compiler can only warn and ignore the option if not recognized
9056 # So say no if there are warnings other than the usual output.
9057 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9060 lt_cv_prog_compiler_pic_works=yes
9066 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9067 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9069 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9070 case $lt_prog_compiler_pic in
9072 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9075 lt_prog_compiler_pic=
9076 lt_prog_compiler_can_build_shared=no
9087 # Check to make sure the static flag actually works.
9089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9090 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9091 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9092 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9093 $as_echo_n "(cached) " >&6
9095 lt_cv_prog_compiler_static_works=no
9096 save_LDFLAGS="$LDFLAGS"
9097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9098 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9100 # The linker can only warn and ignore the option if not recognized
9101 # So say no if there are warnings
9102 if test -s conftest.err; then
9103 # Append any errors to the config.log.
9104 cat conftest.err 1>&5
9105 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107 if diff conftest.exp conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_static_works=yes
9111 lt_cv_prog_compiler_static_works=yes
9115 LDFLAGS="$save_LDFLAGS"
9118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9119 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9121 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9124 lt_prog_compiler_static=
9133 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9135 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9136 $as_echo_n "(cached) " >&6
9138 lt_cv_prog_compiler_c_o=no
9139 $RM -r conftest 2>/dev/null
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145 lt_compiler_flag="-o out/conftest2.$ac_objext"
9146 # Insert the option either (1) after the last *FLAGS variable, or
9147 # (2) before a word containing "conftest.", or (3) at the end.
9148 # Note that $ac_compile itself does not contain backslashes and begins
9149 # with a dollar sign (not a hyphen), so the echo should work correctly.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:9154: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>out/conftest.err)
9157 cat out/conftest.err >&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9161 # The compiler can only warn and ignore the option if not recognized
9162 # So say no if there are warnings
9163 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9166 lt_cv_prog_compiler_c_o=yes
9171 # SGI C++ compiler will create directory out/ii_files/ for
9172 # template instantiation
9173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9174 $RM out/* && rmdir out
9180 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9190 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9193 lt_cv_prog_compiler_c_o=no
9194 $RM -r conftest 2>/dev/null
9198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9200 lt_compiler_flag="-o out/conftest2.$ac_objext"
9201 # Insert the option either (1) after the last *FLAGS variable, or
9202 # (2) before a word containing "conftest.", or (3) at the end.
9203 # Note that $ac_compile itself does not contain backslashes and begins
9204 # with a dollar sign (not a hyphen), so the echo should work correctly.
9205 lt_compile=`echo "$ac_compile" | $SED \
9206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9208 -e 's:$: $lt_compiler_flag:'`
9209 (eval echo "\"\$as_me:9209: $lt_compile\"" >&5)
9210 (eval "$lt_compile" 2>out/conftest.err)
9212 cat out/conftest.err >&5
9213 echo "$as_me:9213: \$? = $ac_status" >&5
9214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9216 # The compiler can only warn and ignore the option if not recognized
9217 # So say no if there are warnings
9218 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9221 lt_cv_prog_compiler_c_o=yes
9226 # SGI C++ compiler will create directory out/ii_files/ for
9227 # template instantiation
9228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9229 $RM out/* && rmdir out
9235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9241 hard_links="nottested"
9242 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9243 # do not overwrite the value of need_locks provided by the user
9244 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9245 $as_echo_n "checking if we can lock with hard links... " >&6; }
9248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9250 ln conftest.a conftest.b 2>&5 || hard_links=no
9251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9252 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9253 $as_echo "$hard_links" >&6; }
9254 if test "$hard_links" = no; then
9255 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9256 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9268 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9272 allow_undefined_flag=
9273 always_export_symbols=no
9275 archive_expsym_cmds=
9276 compiler_needs_object=no
9277 enable_shared_with_static_runtimes=no
9278 export_dynamic_flag_spec=
9279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9280 hardcode_automatic=no
9282 hardcode_direct_absolute=no
9283 hardcode_libdir_flag_spec=
9284 hardcode_libdir_flag_spec_ld=
9285 hardcode_libdir_separator=
9287 hardcode_shlibpath_var=unsupported
9289 link_all_deplibs=unknown
9292 old_archive_from_new_cmds=
9293 old_archive_from_expsyms_cmds=
9294 thread_safe_flag_spec=
9295 whole_archive_flag_spec=
9296 # include_expsyms should be a list of space-separated symbols to be *always*
9297 # included in the symbol list
9299 # exclude_expsyms can be an extended regexp of symbols to exclude
9300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9302 # as well as any symbol that contains `d'.
9303 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9305 # platforms (ab)use it in PIC code, but their linkers get confused if
9306 # the symbol is explicitly referenced. Since portable code cannot
9307 # rely on this symbol name, it's probably fine to never include it in
9308 # preloaded symbol tables.
9309 # Exclude shared library initialization/finalization symbols.
9310 extract_expsyms_cmds=
9313 cygwin* | mingw* | pw32* | cegcc*)
9314 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9315 # When not using gcc, we currently assume that we are using
9316 # Microsoft Visual C++.
9317 if test "$GCC" != yes; then
9322 # we just hope/assume this is gcc and not c89 (= MSVC++)
9331 if test "$with_gnu_ld" = yes; then
9332 # If archive_cmds runs LD, not CC, wlarc should be empty
9335 # Set some defaults for GNU ld with shared library support. These
9336 # are reset later if shared libraries are not supported. Putting them
9337 # here allows them to be overridden if necessary.
9338 runpath_var=LD_RUN_PATH
9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340 export_dynamic_flag_spec='${wl}--export-dynamic'
9341 # ancient GNU ld didn't support --whole-archive et. al.
9342 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9343 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9345 whole_archive_flag_spec=
9347 supports_anon_versioning=no
9348 case `$LD -v 2>&1` in
9349 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352 *\ 2.11.*) ;; # other 2.11 versions
9353 *) supports_anon_versioning=yes ;;
9356 # See if GNU ld supports shared libraries.
9359 # On AIX/PPC, the GNU linker is very broken
9360 if test "$host_cpu" != ia64; then
9364 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9365 *** to be unable to reliably create shared libraries on AIX.
9366 *** Therefore, libtool is disabling shared libraries support. If you
9367 *** really care for shared libraries, you may want to modify your PATH
9368 *** so that a non-GNU linker is found, and then restart.
9377 # see comment about AmigaOS4 .so support
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds=''
9382 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)'
9383 hardcode_libdir_flag_spec='-L$libdir'
9384 hardcode_minus_L=yes
9390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391 allow_undefined_flag=unsupported
9392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9393 # support --undefined. This deserves some investigation. FIXME
9394 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 cygwin* | mingw* | pw32* | cegcc*)
9401 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9402 # as there is no search path for DLLs.
9403 hardcode_libdir_flag_spec='-L$libdir'
9404 allow_undefined_flag=unsupported
9405 always_export_symbols=no
9406 enable_shared_with_static_runtimes=yes
9407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 # If the export-symbols file already is a .def file (1st line
9412 # is EXPORTS), use it as is; otherwise, prepend...
9413 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9414 cp $export_symbols $output_objdir/$soname.def;
9416 echo EXPORTS > $output_objdir/$soname.def;
9417 cat $export_symbols >> $output_objdir/$soname.def;
9419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427 hardcode_shlibpath_var=no
9428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429 export_dynamic_flag_spec='${wl}-E'
9430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9431 # Instead, shared libraries are loaded at an image base (0x10000000 by
9432 # default) and relocated if they conflict, which is a slow very memory
9433 # consuming and fragmenting process. To avoid this, we pick a random,
9434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9437 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'
9440 gnu* | linux* | tpf* | k*bsd*-gnu)
9442 if test "$host_os" = linux-dietlibc; then
9443 case $cc_basename in
9444 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9447 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9448 && test "$tmp_diet" = no
9451 tmp_sharedflag='-shared'
9452 case $cc_basename,$host_cpu in
9453 pgcc*) # Portland Group C compiler
9454 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'
9455 tmp_addflag=' $pic_flag'
9457 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9458 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'
9459 tmp_addflag=' $pic_flag -Mnomain' ;;
9460 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9461 tmp_addflag=' -i_dynamic' ;;
9462 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9463 tmp_addflag=' -i_dynamic -nofor_main' ;;
9464 ifc* | ifort*) # Intel Fortran compiler
9465 tmp_addflag=' -nofor_main' ;;
9466 lf95*) # Lahey Fortran 8.1
9467 whole_archive_flag_spec=
9468 tmp_sharedflag='--shared' ;;
9469 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9470 tmp_sharedflag='-qmkshrobj'
9473 case `$CC -V 2>&1 | sed 5q` in
9474 *Sun\ C*) # Sun C 5.9
9475 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9476 compiler_needs_object=yes
9477 tmp_sharedflag='-G' ;;
9478 *Sun\ F*) # Sun Fortran 8.3
9479 tmp_sharedflag='-G' ;;
9481 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 if test "x$supports_anon_versioning" = xyes; then
9484 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9486 echo "local: *; };" >> $output_objdir/$libname.ver~
9487 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9490 case $cc_basename in
9492 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9493 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9494 hardcode_libdir_flag_spec=
9495 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9496 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9497 if test "x$supports_anon_versioning" = xyes; then
9498 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9500 echo "local: *; };" >> $output_objdir/$libname.ver~
9501 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9510 netbsd* | netbsdelf*-gnu)
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9526 *** create shared libraries on Solaris systems. Therefore, libtool
9527 *** is disabling shared libraries support. We urge you to upgrade GNU
9528 *** binutils to release 2.9.1 or newer. Another option is to modify
9529 *** your PATH or compiler configuration so that the native linker is
9530 *** used, and then restart.
9533 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9542 case `$LD -v 2>&1` in
9543 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9548 *** reliably create shared libraries on SCO systems. Therefore, libtool
9549 *** is disabling shared libraries support. We urge you to upgrade GNU
9550 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9551 *** your PATH or compiler configuration so that the native linker is
9552 *** used, and then restart.
9557 # For security reasons, it is highly recommended that you always
9558 # use absolute paths for naming shared libraries, and exclude the
9559 # DT_RUNPATH tag from executables and libraries. But doing so
9560 # requires that you compile everything twice, which is a pain.
9561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_shlibpath_var=no
9580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9589 if test "$ld_shlibs" = no; then
9591 hardcode_libdir_flag_spec=
9592 export_dynamic_flag_spec=
9593 whole_archive_flag_spec=
9596 # PORTME fill in a description of your system's linker (not GNU ld)
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=yes
9601 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'
9602 # Note: this linker hardcodes the directories in LIBPATH if there
9603 # are no directories specified by -L.
9604 hardcode_minus_L=yes
9605 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9606 # Neither direct hardcoding nor static linking is supported with a
9608 hardcode_direct=unsupported
9613 if test "$host_cpu" = ia64; then
9614 # On IA64, the linker does run time linking by default, so we don't
9615 # have to do anything special.
9616 aix_use_runtimelinking=no
9617 exp_sym_flag='-Bexport'
9620 # If we're using GNU nm, then we don't want the "-C" option.
9621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9622 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9623 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'
9625 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'
9627 aix_use_runtimelinking=no
9629 # Test if we are trying to use run time linking or normal
9630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9631 # need to do runtime linking.
9632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9633 for ld_flag in $LDFLAGS; do
9634 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9635 aix_use_runtimelinking=yes
9642 exp_sym_flag='-bexport'
9643 no_entry_flag='-bnoentry'
9646 # When large executables or shared objects are built, AIX ld can
9647 # have problems creating the table of contents. If linking a library
9648 # or program results in "error TOC overflow" add -mminimal-toc to
9649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9654 hardcode_direct_absolute=yes
9655 hardcode_libdir_separator=':'
9656 link_all_deplibs=yes
9657 file_list_spec='${wl}-f,'
9659 if test "$GCC" = yes; then
9660 case $host_os in aix4.[012]|aix4.[012].*)
9661 # We only want to do this on AIX 4.2 and lower, the check
9662 # below for broken collect2 doesn't work under 4.3+
9663 collect2name=`${CC} -print-prog-name=collect2`
9664 if test -f "$collect2name" &&
9665 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9667 # We have reworked collect2
9670 # We have old collect2
9671 hardcode_direct=unsupported
9672 # It fails to find uninstalled libraries when the uninstalled
9673 # path is not listed in the libpath. Setting hardcode_minus_L
9674 # to unsupported forces relinking
9675 hardcode_minus_L=yes
9676 hardcode_libdir_flag_spec='-L$libdir'
9677 hardcode_libdir_separator=
9681 shared_flag='-shared'
9682 if test "$aix_use_runtimelinking" = yes; then
9683 shared_flag="$shared_flag "'${wl}-G'
9688 if test "$host_cpu" = ia64; then
9689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9690 # chokes on -Wl,-G. The following line is correct:
9693 if test "$aix_use_runtimelinking" = yes; then
9694 shared_flag='${wl}-G'
9696 shared_flag='${wl}-bM:SRE'
9701 export_dynamic_flag_spec='${wl}-bexpall'
9702 # It seems that -bexpall does not export symbols beginning with
9703 # underscore (_), so it is better to generate a list of symbols to export.
9704 always_export_symbols=yes
9705 if test "$aix_use_runtimelinking" = yes; then
9706 # Warning - without using the other runtime loading flags (-brtl),
9707 # -berok will link without error, but may produce a broken library.
9708 allow_undefined_flag='-berok'
9709 # Determine the default libpath from the value encoded in an
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest$ac_exeext && {
9744 test "$cross_compiling" = yes ||
9745 $as_test_x conftest$ac_exeext
9748 lt_aix_libpath_sed='
9749 /Import File Strings/,/^$/ {
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9767 rm -rf conftest.dSYM
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9772 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9775 if test "$host_cpu" = ia64; then
9776 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9777 allow_undefined_flag="-z nodefs"
9778 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"
9780 # Determine the default libpath from the value encoded in an
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9804 $as_echo "$ac_try_echo") >&5
9805 (eval "$ac_link") 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest$ac_exeext && {
9815 test "$cross_compiling" = yes ||
9816 $as_test_x conftest$ac_exeext
9819 lt_aix_libpath_sed='
9820 /Import File Strings/,/^$/ {
9826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9827 # Check for a 64-bit object if we didn't find anything.
9828 if test -z "$aix_libpath"; then
9829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9832 $as_echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9838 rm -rf conftest.dSYM
9839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840 conftest$ac_exeext conftest.$ac_ext
9841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9844 # Warning - without using the other run time loading flags,
9845 # -berok will link without error, but may produce a broken library.
9846 no_undefined_flag=' ${wl}-bernotok'
9847 allow_undefined_flag=' ${wl}-berok'
9848 # Exported symbols can be pulled into shared objects from archives
9849 whole_archive_flag_spec='$convenience'
9850 archive_cmds_need_lc=yes
9851 # This is similar to how AIX traditionally builds its shared libraries.
9852 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'
9860 # see comment about AmigaOS4 .so support
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862 archive_expsym_cmds=''
9865 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)'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_minus_L=yes
9873 export_dynamic_flag_spec=-rdynamic
9876 cygwin* | mingw* | pw32* | cegcc*)
9877 # When not using gcc, we currently assume that we are using
9878 # Microsoft Visual C++.
9879 # hardcode_libdir_flag_spec is actually meaningless, as there is
9880 # no search path for DLLs.
9881 hardcode_libdir_flag_spec=' '
9882 allow_undefined_flag=unsupported
9883 # Tell ltmain to make .lib files, not .a files.
9885 # Tell ltmain to make .dll files, not .so files.
9887 # FIXME: Setting linknames here is a bad hack.
9888 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9889 # The linker will automatically build a .lib file if we build a DLL.
9890 old_archive_from_new_cmds='true'
9891 # FIXME: Should let the user specify the lib program.
9892 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9893 fix_srcfile_path='`cygpath -w "$srcfile"`'
9894 enable_shared_with_static_runtimes=yes
9897 darwin* | rhapsody*)
9900 archive_cmds_need_lc=no
9902 hardcode_automatic=yes
9903 hardcode_shlibpath_var=unsupported
9904 whole_archive_flag_spec=''
9905 link_all_deplibs=yes
9906 allow_undefined_flag="$_lt_dar_allow_undefined"
9907 case $cc_basename in
9908 ifort*) _lt_dar_can_shared=yes ;;
9909 *) _lt_dar_can_shared=$GCC ;;
9911 if test "$_lt_dar_can_shared" = "yes"; then
9912 output_verbose_link_cmd=echo
9913 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9914 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9915 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9916 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 hardcode_shlibpath_var=no
9934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9935 # support. Future versions do this automatically, but an explicit c++rt0.o
9936 # does not break anything, and helps significantly (at the cost of a little
9939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9940 hardcode_libdir_flag_spec='-R$libdir'
9942 hardcode_shlibpath_var=no
9945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_minus_L=yes
9950 hardcode_shlibpath_var=no
9953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9954 freebsd* | dragonfly*)
9955 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9956 hardcode_libdir_flag_spec='-R$libdir'
9958 hardcode_shlibpath_var=no
9962 if test "$GCC" = yes; then
9963 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'
9965 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'
9967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9968 hardcode_libdir_separator=:
9971 # hardcode_minus_L: Not really in the search PATH,
9972 # but as the default location of the library.
9973 hardcode_minus_L=yes
9974 export_dynamic_flag_spec='${wl}-E'
9978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9979 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9983 if test "$with_gnu_ld" = no; then
9984 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9985 hardcode_libdir_flag_spec_ld='+b $libdir'
9986 hardcode_libdir_separator=:
9988 hardcode_direct_absolute=yes
9989 export_dynamic_flag_spec='${wl}-E'
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10000 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 if test "$with_gnu_ld" = no; then
10023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024 hardcode_libdir_separator=:
10029 hardcode_shlibpath_var=no
10032 hardcode_direct=yes
10033 hardcode_direct_absolute=yes
10034 export_dynamic_flag_spec='${wl}-E'
10036 # hardcode_minus_L: Not really in the search PATH,
10037 # but as the default location of the library.
10038 hardcode_minus_L=yes
10044 irix5* | irix6* | nonstopux*)
10045 if test "$GCC" = yes; then
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10047 # Try to use the -exported_symbol ld option, if it does not
10048 # work, assume that -exports_file does not work either and
10049 # implicitly export all symbols.
10050 save_LDFLAGS="$LDFLAGS"
10051 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10052 cat >conftest.$ac_ext <<_ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062 $as_echo "$ac_try_echo") >&5
10063 (eval "$ac_link") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest$ac_exeext && {
10073 test "$cross_compiling" = yes ||
10074 $as_test_x conftest$ac_exeext
10076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10079 $as_echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10085 rm -rf conftest.dSYM
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LDFLAGS="$save_LDFLAGS"
10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10093 archive_cmds_need_lc='no'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 hardcode_libdir_separator=:
10097 link_all_deplibs=yes
10100 netbsd* | netbsdelf*-gnu)
10101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10104 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10106 hardcode_libdir_flag_spec='-R$libdir'
10107 hardcode_direct=yes
10108 hardcode_shlibpath_var=no
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=yes
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 hardcode_libdir_separator=:
10116 hardcode_shlibpath_var=no
10123 if test -f /usr/libexec/ld.so; then
10124 hardcode_direct=yes
10125 hardcode_shlibpath_var=no
10126 hardcode_direct_absolute=yes
10127 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10131 export_dynamic_flag_spec='${wl}-E'
10134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_libdir_flag_spec='-R$libdir'
10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150 hardcode_libdir_flag_spec='-L$libdir'
10151 hardcode_minus_L=yes
10152 allow_undefined_flag=unsupported
10153 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'
10154 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10158 if test "$GCC" = yes; then
10159 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10160 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10162 allow_undefined_flag=' -expect_unresolved \*'
10163 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10165 archive_cmds_need_lc='no'
10166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167 hardcode_libdir_separator=:
10170 osf4* | osf5*) # as osf3* with the addition of -msym flag
10171 if test "$GCC" = yes; then
10172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10176 allow_undefined_flag=' -expect_unresolved \*'
10177 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10178 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10179 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10181 # Both c and cxx compiler support -rpath directly
10182 hardcode_libdir_flag_spec='-rpath $libdir'
10184 archive_cmds_need_lc='no'
10185 hardcode_libdir_separator=:
10189 no_undefined_flag=' -z defs'
10190 if test "$GCC" = yes; then
10192 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10196 case `$CC -V 2>&1` in
10199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10205 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10211 hardcode_libdir_flag_spec='-R$libdir'
10212 hardcode_shlibpath_var=no
10214 solaris2.[0-5] | solaris2.[0-5].*) ;;
10216 # The compiler driver will combine and reorder linker options,
10217 # but understands `-z linker_flag'. GCC discards it without `$wl',
10218 # but is careful enough not to reorder.
10219 # Supported since Solaris 2.6 (maybe 2.5.1?)
10220 if test "$GCC" = yes; then
10221 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10223 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10227 link_all_deplibs=yes
10231 if test "x$host_vendor" = xsequent; then
10232 # Use $CC to link under sequent, because it throws in some extra .o
10233 # files that make .init and .fini sections work.
10234 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-L$libdir'
10239 hardcode_direct=yes
10240 hardcode_minus_L=yes
10241 hardcode_shlibpath_var=no
10245 case $host_vendor in
10247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_direct=yes # is this really true???
10251 ## LD is ld it makes a PLAMLIB
10252 ## CC just makes a GrossModule.
10253 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10254 reload_cmds='$CC -r -o $output$reload_objs'
10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10262 runpath_var='LD_RUN_PATH'
10263 hardcode_shlibpath_var=no
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_shlibpath_var=no
10269 export_dynamic_flag_spec='-Bexport'
10273 if test -d /usr/nec; then
10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_shlibpath_var=no
10276 runpath_var=LD_RUN_PATH
10277 hardcode_runpath_var=yes
10282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10283 no_undefined_flag='${wl}-z,text'
10284 archive_cmds_need_lc=no
10285 hardcode_shlibpath_var=no
10286 runpath_var='LD_RUN_PATH'
10288 if test "$GCC" = yes; then
10289 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 sysv5* | sco3.2v5* | sco5v6*)
10298 # Note: We can NOT use -z defs as we might desire, because we do not
10299 # link with -lc, and that would cause any symbols used from libc to
10300 # always be unresolved, which means just about no library would
10301 # ever link correctly. If we're not using GNU ld we use -z text
10302 # though, which does catch some bad symbols but isn't as heavy-handed
10304 no_undefined_flag='${wl}-z,text'
10305 allow_undefined_flag='${wl}-z,nodefs'
10306 archive_cmds_need_lc=no
10307 hardcode_shlibpath_var=no
10308 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10309 hardcode_libdir_separator=':'
10310 link_all_deplibs=yes
10311 export_dynamic_flag_spec='${wl}-Bexport'
10312 runpath_var='LD_RUN_PATH'
10314 if test "$GCC" = yes; then
10315 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_shlibpath_var=no
10334 if test x$host_vendor = xsni; then
10336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10337 export_dynamic_flag_spec='${wl}-Blargedynsym'
10343 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10344 $as_echo "$ld_shlibs" >&6; }
10345 test "$ld_shlibs" = no && can_build_shared=no
10347 with_gnu_ld=$with_gnu_ld
10364 # Do we need to explicitly link libc?
10366 case "x$archive_cmds_need_lc" in
10368 # Assume -lc should be added
10369 archive_cmds_need_lc=yes
10371 if test "$enable_shared" = yes && test "$GCC" = yes; then
10372 case $archive_cmds in
10374 # FIXME: we may have to deal with multi-command sequences.
10377 # Test whether the compiler implicitly links with -lc since on some
10378 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10379 # to ld, don't add -lc before -lgcc.
10380 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10381 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>&5
10388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } 2>conftest.err; then
10392 libobjs=conftest.$ac_objext
10394 wl=$lt_prog_compiler_wl
10395 pic_flag=$lt_prog_compiler_pic
10401 lt_save_allow_undefined_flag=$allow_undefined_flag
10402 allow_undefined_flag=
10403 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10404 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }
10409 archive_cmds_need_lc=no
10411 archive_cmds_need_lc=yes
10413 allow_undefined_flag=$lt_save_allow_undefined_flag
10415 cat conftest.err 1>&5
10418 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10419 $as_echo "$archive_cmds_need_lc" >&6; }
10582 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10585 if test "$GCC" = yes; then
10587 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10588 *) lt_awk_arg="/^libraries:/" ;;
10590 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10591 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10592 # if the path contains ";" then we assume it to be the separator
10593 # otherwise default to the standard path separator (i.e. ":") - it is
10594 # assumed that no part of a normal pathname contains ";" but that should
10595 # okay in the real world where ";" in dirpaths is itself problematic.
10596 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10598 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10600 # Ok, now we have the path, separated by spaces, we can step through it
10601 # and add multilib dir if necessary.
10602 lt_tmp_lt_search_path_spec=
10603 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10604 for lt_sys_path in $lt_search_path_spec; do
10605 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10608 test -d "$lt_sys_path" && \
10609 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10612 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10613 BEGIN {RS=" "; FS="/|\n";} {
10616 for (lt_i = NF; lt_i > 0; lt_i--) {
10617 if ($lt_i != "" && $lt_i != ".") {
10618 if ($lt_i == "..") {
10621 if (lt_count == 0) {
10622 lt_foo="/" $lt_i lt_foo;
10629 if (lt_foo != "") { lt_freq[lt_foo]++; }
10630 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10632 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10636 library_names_spec=
10637 libname_spec='lib$name'
10641 postuninstall_cmds=
10645 shlibpath_overrides_runpath=unknown
10647 dynamic_linker="$host_os ld.so"
10648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10649 need_lib_prefix=unknown
10650 hardcode_into_libs=no
10652 # when you set need_version to no, make sure it does not cause -set_version
10653 # flags to be left without arguments
10654 need_version=unknown
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10660 shlibpath_var=LIBPATH
10662 # AIX 3 has no versioning support, so we append a major version to the name.
10663 soname_spec='${libname}${release}${shared_ext}$major'
10670 hardcode_into_libs=yes
10671 if test "$host_cpu" = ia64; then
10672 # AIX 5 supports IA64
10673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10674 shlibpath_var=LD_LIBRARY_PATH
10676 # With GCC up to 2.95.x, collect2 would create an import file
10677 # for dependence libraries. The import file would start with
10678 # the line `#! .'. This would cause the generated library to
10679 # depend on `.', always an invalid library. This was fixed in
10680 # development snapshots of GCC prior to 3.0.
10682 aix4 | aix4.[01] | aix4.[01].*)
10683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10685 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10688 can_build_shared=no
10692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10693 # soname into executable. Probably we can add versioning support to
10694 # collect2, so additional links can be useful in future.
10695 if test "$aix_use_runtimelinking" = yes; then
10696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10697 # instead of lib<name>.a to let people know that these are not
10698 # typical AIX shared libraries.
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 # We preserve .a as extension for shared libraries through AIX4.2
10702 # and later when we are not doing run time linking.
10703 library_names_spec='${libname}${release}.a $libname.a'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10706 shlibpath_var=LIBPATH
10713 # Since July 2007 AmigaOS4 officially supports .so libraries.
10714 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 library_names_spec='$libname.ixlibrary $libname.a'
10719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10720 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'
10726 library_names_spec='${libname}${shared_ext}'
10727 dynamic_linker="$host_os ld.so"
10728 shlibpath_var=LIBRARY_PATH
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10740 # the default ld.so.conf also contains /usr/contrib/lib and
10741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10742 # libtool to hard-code these into programs
10745 cygwin* | mingw* | pw32* | cegcc*)
10746 version_type=windows
10751 case $GCC,$host_os in
10752 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10753 library_names_spec='$libname.dll.a'
10754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10755 postinstall_cmds='base_file=`basename \${file}`~
10756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10757 dldir=$destdir/`dirname \$dlpath`~
10758 test -d \$dldir || mkdir -p \$dldir~
10759 $install_prog $dir/$dlname \$dldir/$dlname~
10760 chmod a+x \$dldir/$dlname~
10761 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10762 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765 dlpath=$dir/\$dldll~
10767 shlibpath_overrides_runpath=yes
10771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10776 # MinGW DLLs use traditional 'lib' prefix
10777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780 # It is most probably a Windows format PATH printed by
10781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10782 # path with ; separators, and with drive letters. We can handle the
10783 # drive letters (cygwin fileutils understands them), so leave them,
10784 # especially as we might pass files found there to a mingw objdump,
10785 # which wouldn't understand a cygwinified path. Ahh.
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10792 # pw32 DLLs use 'pw' prefix rather than 'lib'
10793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10802 dynamic_linker='Win32 ld.exe'
10803 # FIXME: first we should search . and the directory the executable is in
10807 darwin* | rhapsody*)
10808 dynamic_linker="$host_os dyld"
10809 version_type=darwin
10812 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813 soname_spec='${libname}${release}${major}$shared_ext'
10814 shlibpath_overrides_runpath=yes
10815 shlibpath_var=DYLD_LIBRARY_PATH
10816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 shlibpath_var=LD_LIBRARY_PATH
10835 freebsd* | dragonfly*)
10836 # DragonFly does not have aout. When/if they implement a new
10837 # versioning mechanism, adjust this.
10838 if test -x /usr/bin/objformat; then
10839 objformat=`/usr/bin/objformat`
10842 freebsd[123]*) objformat=aout ;;
10843 *) objformat=elf ;;
10846 version_type=freebsd-$objformat
10847 case $version_type in
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10858 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10863 freebsd3.[01]* | freebsdelf3.[01]*)
10864 shlibpath_overrides_runpath=yes
10865 hardcode_into_libs=yes
10867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10869 shlibpath_overrides_runpath=no
10870 hardcode_into_libs=yes
10872 *) # from 4.6 on, and DragonFly
10873 shlibpath_overrides_runpath=yes
10874 hardcode_into_libs=yes
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 hardcode_into_libs=yes
10889 hpux9* | hpux10* | hpux11*)
10890 # Give a soname corresponding to the major version so that dld.sl refuses to
10891 # link against other versions.
10898 hardcode_into_libs=yes
10899 dynamic_linker="$host_os dld.so"
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 if test "X$HPUX_IA64_MODE" = X32; then
10905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913 hardcode_into_libs=yes
10914 dynamic_linker="$host_os dld.sl"
10915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10924 dynamic_linker="$host_os dld.sl"
10925 shlibpath_var=SHLIB_PATH
10926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10932 postinstall_cmds='chmod 555 $lib'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10947 irix5* | irix6* | nonstopux*)
10949 nonstopux*) version_type=nonstopux ;;
10951 if test "$lt_cv_prog_gnu_ld" = yes; then
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10962 irix5* | nonstopux*)
10963 libsuff= shlibsuff=
10966 case $LD in # libtool.m4 will add one of these switches to LD
10967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10968 libsuff= shlibsuff= libmagic=32-bit;;
10969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10970 libsuff=32 shlibsuff=N32 libmagic=N32;;
10971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10972 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10973 *) libsuff= shlibsuff= libmagic=never-match;;
10977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10978 shlibpath_overrides_runpath=no
10979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10981 hardcode_into_libs=yes
10984 # No shared lib support for Linux oldld, aout, or coff.
10985 linux*oldld* | linux*aout* | linux*coff*)
10989 # This must be Linux ELF.
10990 linux* | k*bsd*-gnu)
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 shlibpath_overrides_runpath=no
10999 # Some binutils ld are patched to set DT_RUNPATH
11000 save_LDFLAGS=$LDFLAGS
11001 save_libdir=$libdir
11002 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11003 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (ac_try="$ac_link"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11026 $as_echo "$ac_try_echo") >&5
11027 (eval "$ac_link") 2>conftest.er1
11029 grep -v '^ *+' conftest.er1 >conftest.err
11031 cat conftest.err >&5
11032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } && {
11034 test -z "$ac_c_werror_flag" ||
11035 test ! -s conftest.err
11036 } && test -s conftest$ac_exeext && {
11037 test "$cross_compiling" = yes ||
11038 $as_test_x conftest$ac_exeext
11040 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11041 shlibpath_overrides_runpath=yes
11045 $as_echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11051 rm -rf conftest.dSYM
11052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LDFLAGS=$save_LDFLAGS
11055 libdir=$save_libdir
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
11064 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=no
11085 hardcode_into_libs=yes
11086 dynamic_linker='NetBSD ld.elf_so'
11093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11096 dynamic_linker='NetBSD (a.out) ld.so'
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 dynamic_linker='NetBSD ld.elf_so'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 hardcode_into_libs=yes
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11123 dynamic_linker='ldqnx.so'
11128 sys_lib_dlsearch_path_spec="/usr/lib"
11130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11133 *) need_version=no ;;
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140 openbsd2.[89] | openbsd2.[89].*)
11141 shlibpath_overrides_runpath=no
11144 shlibpath_overrides_runpath=yes
11148 shlibpath_overrides_runpath=yes
11153 libname_spec='$name'
11156 library_names_spec='$libname${shared_ext} $libname.a'
11157 dynamic_linker='OS/2 ld.exe'
11158 shlibpath_var=LIBPATH
11161 osf3* | osf4* | osf5*)
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes
11184 hardcode_into_libs=yes
11185 # ldd complains unless libraries are executable
11186 postinstall_cmds='chmod +x $lib'
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 if test "$with_gnu_ld" = yes; then
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 case $host_vendor in
11208 shlibpath_overrides_runpath=no
11210 runpath_var=LD_RUN_PATH
11218 shlibpath_overrides_runpath=no
11219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11225 if test -d /usr/nec ;then
11227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11228 soname_spec='$libname${shared_ext}.$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11234 version_type=freebsd-elf
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 hardcode_into_libs=yes
11242 if test "$with_gnu_ld" = yes; then
11243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11252 sys_lib_dlsearch_path_spec='/usr/lib'
11256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11277 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11278 $as_echo "$dynamic_linker" >&6; }
11279 test "$dynamic_linker" = no && can_build_shared=no
11281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11282 if test "$GCC" = yes; then
11283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11379 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11382 if test -n "$hardcode_libdir_flag_spec" ||
11383 test -n "$runpath_var" ||
11384 test "X$hardcode_automatic" = "Xyes" ; then
11386 # We can hardcode non-existent directories.
11387 if test "$hardcode_direct" != no &&
11388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11389 # have to relink, otherwise we might link with an installed library
11390 # when we should be linking with a yet-to-be-installed one
11391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11392 test "$hardcode_minus_L" != no; then
11393 # Linking always hardcodes the temporary library directory.
11394 hardcode_action=relink
11396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11397 hardcode_action=immediate
11400 # We cannot hardcode anything, or else we can only hardcode existing
11402 hardcode_action=unsupported
11404 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11405 $as_echo "$hardcode_action" >&6; }
11407 if test "$hardcode_action" = relink ||
11408 test "$inherit_rpath" = yes; then
11409 # Fast installation is not supported
11410 enable_fast_install=no
11411 elif test "$shlibpath_overrides_runpath" = yes ||
11412 test "$enable_shared" = no; then
11413 # Fast installation is not necessary
11414 enable_fast_install=needless
11422 if test "x$enable_dlopen" != xyes; then
11423 enable_dlopen=unknown
11424 enable_dlopen_self=unknown
11425 enable_dlopen_self_static=unknown
11432 lt_cv_dlopen="load_add_on"
11434 lt_cv_dlopen_self=yes
11437 mingw* | pw32* | cegcc*)
11438 lt_cv_dlopen="LoadLibrary"
11443 lt_cv_dlopen="dlopen"
11448 # if libdl is installed we need to link against it
11449 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11452 $as_echo_n "(cached) " >&6
11454 ac_check_lib_save_LIBS=$LIBS
11456 cat >conftest.$ac_ext <<_ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (ac_try="$ac_link"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11485 $as_echo "$ac_try_echo") >&5
11486 (eval "$ac_link") 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } && {
11493 test -z "$ac_c_werror_flag" ||
11494 test ! -s conftest.err
11495 } && test -s conftest$ac_exeext && {
11496 test "$cross_compiling" = yes ||
11497 $as_test_x conftest$ac_exeext
11499 ac_cv_lib_dl_dlopen=yes
11501 $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_cv_lib_dl_dlopen=no
11507 rm -rf conftest.dSYM
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11514 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11518 lt_cv_dlopen="dyld"
11520 lt_cv_dlopen_self=yes
11527 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11528 $as_echo_n "checking for shl_load... " >&6; }
11529 if test "${ac_cv_func_shl_load+set}" = set; then
11530 $as_echo_n "(cached) " >&6
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11540 #define shl_load innocuous_shl_load
11542 /* System header to define __stub macros and hopefully few prototypes,
11543 which can conflict with char shl_load (); below.
11544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11545 <limits.h> exists even on freestanding compilers. */
11548 # include <limits.h>
11550 # include <assert.h>
11555 /* Override any GCC internal prototype to avoid an error.
11556 Use char because int might match the return type of a GCC
11557 builtin and then its argument prototype would still apply. */
11562 /* The GNU C library defines this for functions which it implements
11563 to always fail with ENOSYS. Some functions are actually named
11564 something starting with __ and the normal name is an alias. */
11565 #if defined __stub_shl_load || defined __stub___shl_load
11572 return shl_load ();
11577 rm -f conftest.$ac_objext conftest$ac_exeext
11578 if { (ac_try="$ac_link"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11584 $as_echo "$ac_try_echo") >&5
11585 (eval "$ac_link") 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest$ac_exeext && {
11595 test "$cross_compiling" = yes ||
11596 $as_test_x conftest$ac_exeext
11598 ac_cv_func_shl_load=yes
11600 $as_echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_func_shl_load=no
11606 rm -rf conftest.dSYM
11607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11608 conftest$ac_exeext conftest.$ac_ext
11610 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11611 $as_echo "$ac_cv_func_shl_load" >&6; }
11612 if test "x$ac_cv_func_shl_load" = x""yes; then
11613 lt_cv_dlopen="shl_load"
11615 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11616 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11618 $as_echo_n "(cached) " >&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 shl_load ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11651 $as_echo "$ac_try_echo") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext && {
11662 test "$cross_compiling" = yes ||
11663 $as_test_x conftest$ac_exeext
11665 ac_cv_lib_dld_shl_load=yes
11667 $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_lib_dld_shl_load=no
11673 rm -rf conftest.dSYM
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11680 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11683 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11684 $as_echo_n "checking for dlopen... " >&6; }
11685 if test "${ac_cv_func_dlopen+set}" = set; then
11686 $as_echo_n "(cached) " >&6
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11696 #define dlopen innocuous_dlopen
11698 /* System header to define __stub macros and hopefully few prototypes,
11699 which can conflict with char dlopen (); below.
11700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11701 <limits.h> exists even on freestanding compilers. */
11704 # include <limits.h>
11706 # include <assert.h>
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined __stub_dlopen || defined __stub___dlopen
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740 $as_echo "$ac_try_echo") >&5
11741 (eval "$ac_link") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest$ac_exeext && {
11751 test "$cross_compiling" = yes ||
11752 $as_test_x conftest$ac_exeext
11754 ac_cv_func_dlopen=yes
11756 $as_echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_cv_func_dlopen=no
11762 rm -rf conftest.dSYM
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764 conftest$ac_exeext conftest.$ac_ext
11766 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11767 $as_echo "$ac_cv_func_dlopen" >&6; }
11768 if test "x$ac_cv_func_dlopen" = x""yes; then
11769 lt_cv_dlopen="dlopen"
11771 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11774 $as_echo_n "(cached) " >&6
11776 ac_check_lib_save_LIBS=$LIBS
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11800 rm -f conftest.$ac_objext conftest$ac_exeext
11801 if { (ac_try="$ac_link"
11802 case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11807 $as_echo "$ac_try_echo") >&5
11808 (eval "$ac_link") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest$ac_exeext && {
11818 test "$cross_compiling" = yes ||
11819 $as_test_x conftest$ac_exeext
11821 ac_cv_lib_dl_dlopen=yes
11823 $as_echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 ac_cv_lib_dl_dlopen=no
11829 rm -rf conftest.dSYM
11830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11831 conftest$ac_exeext conftest.$ac_ext
11832 LIBS=$ac_check_lib_save_LIBS
11834 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11835 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11836 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11839 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11840 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11842 $as_echo_n "(cached) " >&6
11844 ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-lsvld $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (ac_try="$ac_link"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875 $as_echo "$ac_try_echo") >&5
11876 (eval "$ac_link") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest$ac_exeext && {
11886 test "$cross_compiling" = yes ||
11887 $as_test_x conftest$ac_exeext
11889 ac_cv_lib_svld_dlopen=yes
11891 $as_echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ac_cv_lib_svld_dlopen=no
11897 rm -rf conftest.dSYM
11898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11907 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11910 $as_echo_n "(cached) " >&6
11912 ac_check_lib_save_LIBS=$LIBS
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11931 return dld_link ();
11936 rm -f conftest.$ac_objext conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11943 $as_echo "$ac_try_echo") >&5
11944 (eval "$ac_link") 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } && {
11951 test -z "$ac_c_werror_flag" ||
11952 test ! -s conftest.err
11953 } && test -s conftest$ac_exeext && {
11954 test "$cross_compiling" = yes ||
11955 $as_test_x conftest$ac_exeext
11957 ac_cv_lib_dld_dld_link=yes
11959 $as_echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_lib_dld_dld_link=no
11965 rm -rf conftest.dSYM
11966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11971 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11972 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11973 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11994 if test "x$lt_cv_dlopen" != xno; then
12000 case $lt_cv_dlopen in
12002 save_CPPFLAGS="$CPPFLAGS"
12003 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12005 save_LDFLAGS="$LDFLAGS"
12006 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12009 LIBS="$lt_cv_dlopen_libs $LIBS"
12011 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12012 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12013 if test "${lt_cv_dlopen_self+set}" = set; then
12014 $as_echo_n "(cached) " >&6
12016 if test "$cross_compiling" = yes; then :
12017 lt_cv_dlopen_self=cross
12019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12020 lt_status=$lt_dlunknown
12021 cat > conftest.$ac_ext <<_LT_EOF
12022 #line 12022 "configure"
12023 #include "confdefs.h"
12032 # define LT_DLGLOBAL RTLD_GLOBAL
12035 # define LT_DLGLOBAL DL_GLOBAL
12037 # define LT_DLGLOBAL 0
12041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12042 find out it does not work in some platform. */
12043 #ifndef LT_DLLAZY_OR_NOW
12045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12048 # define LT_DLLAZY_OR_NOW DL_LAZY
12051 # define LT_DLLAZY_OR_NOW RTLD_NOW
12054 # define LT_DLLAZY_OR_NOW DL_NOW
12056 # define LT_DLLAZY_OR_NOW 0
12063 void fnord() { int i=42;}
12066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12067 int status = $lt_dlunknown;
12071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12073 /* dlclose (self); */
12081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082 (eval $ac_link) 2>&5
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12086 (./conftest; exit; ) >&5 2>/dev/null
12088 case x$lt_status in
12089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12091 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12094 # compilation failed
12095 lt_cv_dlopen_self=no
12102 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12103 $as_echo "$lt_cv_dlopen_self" >&6; }
12105 if test "x$lt_cv_dlopen_self" = xyes; then
12106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12107 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12108 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12109 if test "${lt_cv_dlopen_self_static+set}" = set; then
12110 $as_echo_n "(cached) " >&6
12112 if test "$cross_compiling" = yes; then :
12113 lt_cv_dlopen_self_static=cross
12115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116 lt_status=$lt_dlunknown
12117 cat > conftest.$ac_ext <<_LT_EOF
12118 #line 12118 "configure"
12119 #include "confdefs.h"
12128 # define LT_DLGLOBAL RTLD_GLOBAL
12131 # define LT_DLGLOBAL DL_GLOBAL
12133 # define LT_DLGLOBAL 0
12137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138 find out it does not work in some platform. */
12139 #ifndef LT_DLLAZY_OR_NOW
12141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12144 # define LT_DLLAZY_OR_NOW DL_LAZY
12147 # define LT_DLLAZY_OR_NOW RTLD_NOW
12150 # define LT_DLLAZY_OR_NOW DL_NOW
12152 # define LT_DLLAZY_OR_NOW 0
12159 void fnord() { int i=42;}
12162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12163 int status = $lt_dlunknown;
12167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169 /* dlclose (self); */
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>&5
12180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12182 (./conftest; exit; ) >&5 2>/dev/null
12184 case x$lt_status in
12185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12187 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12190 # compilation failed
12191 lt_cv_dlopen_self_static=no
12198 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12199 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12202 CPPFLAGS="$save_CPPFLAGS"
12203 LDFLAGS="$save_LDFLAGS"
12208 case $lt_cv_dlopen_self in
12209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12210 *) enable_dlopen_self=unknown ;;
12213 case $lt_cv_dlopen_self_static in
12214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12215 *) enable_dlopen_self_static=unknown ;;
12237 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12238 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12239 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12240 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12241 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12242 { $as_echo "$as_me:$LINENO: result: yes" >&5
12243 $as_echo "yes" >&6; }
12245 # FIXME - insert some real tests, host_os isn't really good enough
12248 if test -n "$STRIP" ; then
12249 striplib="$STRIP -x"
12250 old_striplib="$STRIP -S"
12251 { $as_echo "$as_me:$LINENO: result: yes" >&5
12252 $as_echo "yes" >&6; }
12254 { $as_echo "$as_me:$LINENO: result: no" >&5
12255 $as_echo "no" >&6; }
12259 { $as_echo "$as_me:$LINENO: result: no" >&5
12260 $as_echo "no" >&6; }
12276 # Report which library types will actually be built
12277 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12278 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12279 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12280 $as_echo "$can_build_shared" >&6; }
12282 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12283 $as_echo_n "checking whether to build shared libraries... " >&6; }
12284 test "$can_build_shared" = "no" && enable_shared=no
12286 # On AIX, shared libraries and static libraries use the same namespace, and
12287 # are all built from PIC.
12290 test "$enable_shared" = yes && enable_static=no
12291 if test -n "$RANLIB"; then
12292 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12293 postinstall_cmds='$RANLIB $lib'
12298 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12299 test "$enable_shared" = yes && enable_static=no
12303 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12304 $as_echo "$enable_shared" >&6; }
12306 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12307 $as_echo_n "checking whether to build static libraries... " >&6; }
12308 # Make sure either enable_shared or enable_static is yes.
12309 test "$enable_shared" = yes || enable_static=yes
12310 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12311 $as_echo "$enable_static" >&6; }
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337 ac_config_commands="$ac_config_commands libtool"
12342 # Only expand once:
12346 # add these options to CFLAGS if the compiler supports them
12348 { $as_echo "$as_me:$LINENO: checking CFLAGS for maximum ansi warnings" >&5
12349 $as_echo_n "checking CFLAGS for maximum ansi warnings... " >&6; }
12350 if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then
12351 $as_echo_n "(cached) " >&6
12353 ac_cv_cflags_warn_all_ansi="no, unknown"
12356 ac_cpp='$CPP $CPPFLAGS'
12357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12361 ac_save_CFLAGS="$CFLAGS"
12363 # -use_readonly_const is the default for IRIX C,
12364 # puts them into .rodata, but they are copied later.
12365 # need to be "-G0 -rdatashared" for strictmode but
12366 # I am not sure what effect that has really. - guidod
12367 for ac_arg in "-pedantic % -Wall -ansi -pedantic" "-xstrconst % -v -Xc" "-std1 % -verbose -w0 -warnprotos -std1" " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" " % -ansi -ansiE -fullwarn" "+ESlit % +w1 -Aa" "-Xc % -pvctl,fullmsg -Xc" "-h conform % -h msglevel 2 -h conform" #
12368 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12402 ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12404 $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 CFLAGS="$ac_save_CFLAGS"
12414 ac_cpp='$CPP $CPPFLAGS'
12415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12421 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5
12422 $as_echo "$ac_cv_cflags_warn_all_ansi" >&6; }
12423 case ".$ac_cv_cflags_warn_all_ansi" in
12428 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null
12429 then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all_ansi") >&5
12430 (: CFLAGS does contain $ac_cv_cflags_warn_all_ansi) 2>&5
12432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }
12434 else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all_ansi\"") >&5
12435 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi") 2>&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi"
12449 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12451 { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wextra flag" >&5
12452 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12453 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12459 ac_cpp='$CPP $CPPFLAGS'
12460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465 save_CFLAGS="$CFLAGS"
12466 CFLAGS="$CFLAGS -Wextra"
12467 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12484 rm -f conftest.$ac_objext
12485 if { (ac_try="$ac_compile"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12491 $as_echo "$ac_try_echo") >&5
12492 (eval "$ac_compile") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest.$ac_objext; then
12503 eval "ax_cv_c_check_flag_$flag=yes"
12506 $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12510 eval "ax_cv_c_check_flag_$flag=no"
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 CFLAGS="$save_CFLAGS"
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12527 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12528 $as_echo "$as_val"'`
12529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12530 $as_echo "$ac_res" >&6; }
12532 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12535 CFLAGS="$CFLAGS -Wextra"
12550 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12552 { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
12553 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
12554 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12555 $as_echo_n "(cached) " >&6
12560 ac_cpp='$CPP $CPPFLAGS'
12561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12566 save_CFLAGS="$CFLAGS"
12567 CFLAGS="$CFLAGS -Wstrict-prototypes"
12568 cat >conftest.$ac_ext <<_ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12604 eval "ax_cv_c_check_flag_$flag=yes"
12607 $as_echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12611 eval "ax_cv_c_check_flag_$flag=no"
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 CFLAGS="$save_CFLAGS"
12620 ac_cpp='$CPP $CPPFLAGS'
12621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12629 $as_echo "$as_val"'`
12630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12631 $as_echo "$ac_res" >&6; }
12633 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12636 CFLAGS="$CFLAGS -Wstrict-prototypes"
12651 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12653 { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
12654 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
12655 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12656 $as_echo_n "(cached) " >&6
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667 save_CFLAGS="$CFLAGS"
12668 CFLAGS="$CFLAGS -Wmissing-prototypes"
12669 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12686 rm -f conftest.$ac_objext
12687 if { (ac_try="$ac_compile"
12688 case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12693 $as_echo "$ac_try_echo") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12705 eval "ax_cv_c_check_flag_$flag=yes"
12708 $as_echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12712 eval "ax_cv_c_check_flag_$flag=no"
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 CFLAGS="$save_CFLAGS"
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12729 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12730 $as_echo "$as_val"'`
12731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12732 $as_echo "$ac_res" >&6; }
12734 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12737 CFLAGS="$CFLAGS -Wmissing-prototypes"
12752 flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12754 { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
12755 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
12756 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12757 $as_echo_n "(cached) " >&6
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768 save_CFLAGS="$CFLAGS"
12769 CFLAGS="$CFLAGS -Wwrite-strings"
12770 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12794 $as_echo "$ac_try_echo") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12806 eval "ax_cv_c_check_flag_$flag=yes"
12809 $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12813 eval "ax_cv_c_check_flag_$flag=no"
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 CFLAGS="$save_CFLAGS"
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12831 $as_echo "$as_val"'`
12832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12835 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12838 CFLAGS="$CFLAGS -Wwrite-strings"
12853 flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12855 { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
12856 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
12857 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12858 $as_echo_n "(cached) " >&6
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12869 save_CFLAGS="$CFLAGS"
12870 CFLAGS="$CFLAGS -Wno-variadic-macros"
12871 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12888 rm -f conftest.$ac_objext
12889 if { (ac_try="$ac_compile"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12895 $as_echo "$ac_try_echo") >&5
12896 (eval "$ac_compile") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest.$ac_objext; then
12907 eval "ax_cv_c_check_flag_$flag=yes"
12910 $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12914 eval "ax_cv_c_check_flag_$flag=no"
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 CFLAGS="$save_CFLAGS"
12923 ac_cpp='$CPP $CPPFLAGS'
12924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12932 $as_echo "$as_val"'`
12933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12934 $as_echo "$ac_res" >&6; }
12936 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12939 CFLAGS="$CFLAGS -Wno-variadic-macros"
12950 for ac_prog in gcov
12952 # Extract the first word of "$ac_prog", so it can be a program name with args.
12953 set dummy $ac_prog; ac_word=$2
12954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_GCOV+set}" = set; then
12957 $as_echo_n "(cached) " >&6
12959 if test -n "$GCOV"; then
12960 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_GCOV="$ac_prog"
12970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 GCOV=$ac_cv_prog_GCOV
12980 if test -n "$GCOV"; then
12981 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
12982 $as_echo "$GCOV" >&6; }
12984 { $as_echo "$as_me:$LINENO: result: no" >&5
12985 $as_echo "no" >&6; }
12989 test -n "$GCOV" && break
12991 test -n "$GCOV" || GCOV="false"
12993 for ac_prog in lcov
12995 # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_prog_LCOV+set}" = set; then
13000 $as_echo_n "(cached) " >&6
13002 if test -n "$LCOV"; then
13003 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_LCOV="$ac_prog"
13013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 LCOV=$ac_cv_prog_LCOV
13023 if test -n "$LCOV"; then
13024 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
13025 $as_echo "$LCOV" >&6; }
13027 { $as_echo "$as_me:$LINENO: result: no" >&5
13028 $as_echo "no" >&6; }
13032 test -n "$LCOV" && break
13034 test -n "$LCOV" || LCOV="false"
13036 for ac_prog in genhtml
13038 # Extract the first word of "$ac_prog", so it can be a program name with args.
13039 set dummy $ac_prog; ac_word=$2
13040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if test "${ac_cv_prog_GENHTML+set}" = set; then
13043 $as_echo_n "(cached) " >&6
13045 if test -n "$GENHTML"; then
13046 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055 ac_cv_prog_GENHTML="$ac_prog"
13056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 GENHTML=$ac_cv_prog_GENHTML
13066 if test -n "$GENHTML"; then
13067 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
13068 $as_echo "$GENHTML" >&6; }
13070 { $as_echo "$as_me:$LINENO: result: no" >&5
13071 $as_echo "no" >&6; }
13075 test -n "$GENHTML" && break
13077 test -n "$GENHTML" || GENHTML="false"
13081 # Extract the first word of "$ac_prog", so it can be a program name with args.
13082 set dummy $ac_prog; ac_word=$2
13083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_TEX+set}" = set; then
13086 $as_echo_n "(cached) " >&6
13088 if test -n "$TEX"; then
13089 ac_cv_prog_TEX="$TEX" # Let the user override the test.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_TEX="$ac_prog"
13099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 TEX=$ac_cv_prog_TEX
13109 if test -n "$TEX"; then
13110 { $as_echo "$as_me:$LINENO: result: $TEX" >&5
13111 $as_echo "$TEX" >&6; }
13113 { $as_echo "$as_me:$LINENO: result: no" >&5
13114 $as_echo "no" >&6; }
13118 test -n "$TEX" && break
13120 test -n "$TEX" || TEX="false"
13122 if test -n "$TEX"; then
13123 # Make it [somewhat] clear to maintainers that tex is missing. Not an error
13124 # though because 'make install' (which users need) does not build the docs
13126 { $as_echo "$as_me:$LINENO: WARNING: tex not installed: cannot rebuild HTML documentation." >&5
13127 $as_echo "$as_me: WARNING: tex not installed: cannot rebuild HTML documentation." >&2;}
13130 # Checks for libraries.
13132 # Checks for header files.
13133 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13134 $as_echo_n "checking for ANSI C header files... " >&6; }
13135 if test "${ac_cv_header_stdc+set}" = set; then
13136 $as_echo_n "(cached) " >&6
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 #include <stdlib.h>
13145 #include <stdarg.h>
13146 #include <string.h>
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13164 $as_echo "$ac_try_echo") >&5
13165 (eval "$ac_compile") 2>conftest.er1
13167 grep -v '^ *+' conftest.er1 >conftest.err
13169 cat conftest.err >&5
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest.$ac_objext; then
13175 ac_cv_header_stdc=yes
13177 $as_echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_cv_header_stdc=no
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 if test $ac_cv_header_stdc = yes; then
13186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13187 cat >conftest.$ac_ext <<_ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 #include <string.h>
13196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13197 $EGREP "memchr" >/dev/null 2>&1; then
13200 ac_cv_header_stdc=no
13206 if test $ac_cv_header_stdc = yes; then
13207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 #include <stdlib.h>
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218 $EGREP "free" >/dev/null 2>&1; then
13221 ac_cv_header_stdc=no
13227 if test $ac_cv_header_stdc = yes; then
13228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13229 if test "$cross_compiling" = yes; then
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 #include <stdlib.h>
13240 #if ((' ' & 0x0FF) == 0x020)
13241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13244 # define ISLOWER(c) \
13245 (('a' <= (c) && (c) <= 'i') \
13246 || ('j' <= (c) && (c) <= 'r') \
13247 || ('s' <= (c) && (c) <= 'z'))
13248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13256 for (i = 0; i < 256; i++)
13257 if (XOR (islower (i), ISLOWER (i))
13258 || toupper (i) != TOUPPER (i))
13263 rm -f conftest$ac_exeext
13264 if { (ac_try="$ac_link"
13265 case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270 $as_echo "$ac_try_echo") >&5
13271 (eval "$ac_link") 2>&5
13273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280 $as_echo "$ac_try_echo") >&5
13281 (eval "$ac_try") 2>&5
13283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13287 $as_echo "$as_me: program exited with status $ac_status" >&5
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ( exit $ac_status )
13292 ac_cv_header_stdc=no
13294 rm -rf conftest.dSYM
13295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13302 $as_echo "$ac_cv_header_stdc" >&6; }
13303 if test $ac_cv_header_stdc = yes; then
13305 cat >>confdefs.h <<\_ACEOF
13306 #define STDC_HEADERS 1
13311 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13312 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13314 $as_echo_n "(cached) " >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 #include <sys/types.h>
13323 #include <sys/wait.h>
13324 #ifndef WEXITSTATUS
13325 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13328 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13341 rm -f conftest.$ac_objext
13342 if { (ac_try="$ac_compile"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349 (eval "$ac_compile") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1 >conftest.err
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest.$ac_objext; then
13359 ac_cv_header_sys_wait_h=yes
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_cv_header_sys_wait_h=no
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13371 if test $ac_cv_header_sys_wait_h = yes; then
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_SYS_WAIT_H 1
13386 for ac_header in fcntl.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
13388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 $as_echo_n "checking for $ac_header... " >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393 $as_echo_n "(cached) " >&6
13395 ac_res=`eval 'as_val=${'$as_ac_Header'}
13396 $as_echo "$as_val"'`
13397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13398 $as_echo "$ac_res" >&6; }
13400 # Is the header compilable?
13401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 $as_echo_n "checking $ac_header usability... " >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 #include <$ac_header>
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13419 $as_echo "$ac_try_echo") >&5
13420 (eval "$ac_compile") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest.$ac_objext; then
13430 ac_header_compiler=yes
13432 $as_echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ac_header_compiler=no
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13440 $as_echo "$ac_header_compiler" >&6; }
13442 # Is the header present?
13443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13444 $as_echo_n "checking $ac_header presence... " >&6; }
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 #include <$ac_header>
13453 if { (ac_try="$ac_cpp conftest.$ac_ext"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13459 $as_echo "$ac_try_echo") >&5
13460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } >/dev/null && {
13467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13470 ac_header_preproc=yes
13472 $as_echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_header_preproc=no
13478 rm -f conftest.err conftest.$ac_ext
13479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13480 $as_echo "$ac_header_preproc" >&6; }
13482 # So? What about this header?
13483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13489 ac_header_preproc=yes
13492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13495 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13499 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13505 ## ----------------------------------------------------------- ##
13506 ## Report this to check-devel at lists dot sourceforge dot net ##
13507 ## ----------------------------------------------------------- ##
13509 ) | sed "s/^/$as_me: WARNING: /" >&2
13512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13513 $as_echo_n "checking for $ac_header... " >&6; }
13514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13515 $as_echo_n "(cached) " >&6
13517 eval "$as_ac_Header=\$ac_header_preproc"
13519 ac_res=`eval 'as_val=${'$as_ac_Header'}
13520 $as_echo "$as_val"'`
13521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13522 $as_echo "$ac_res" >&6; }
13525 as_val=`eval 'as_val=${'$as_ac_Header'}
13526 $as_echo "$as_val"'`
13527 if test "x$as_val" = x""yes; then
13528 cat >>confdefs.h <<_ACEOF
13529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13537 if test xfalse != x"$enable_subunit"; then
13539 { $as_echo "$as_me:$LINENO: checking for subunit_test_start in -lsubunit" >&5
13540 $as_echo_n "checking for subunit_test_start in -lsubunit... " >&6; }
13541 if test "${ac_cv_lib_subunit_subunit_test_start+set}" = set; then
13542 $as_echo_n "(cached) " >&6
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lsubunit $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char subunit_test_start ();
13563 return subunit_test_start ();
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13575 $as_echo "$ac_try_echo") >&5
13576 (eval "$ac_link") 2>conftest.er1
13578 grep -v '^ *+' conftest.er1 >conftest.err
13580 cat conftest.err >&5
13581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext && {
13586 test "$cross_compiling" = yes ||
13587 $as_test_x conftest$ac_exeext
13589 ac_cv_lib_subunit_subunit_test_start=yes
13591 $as_echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_lib_subunit_subunit_test_start=no
13597 rm -rf conftest.dSYM
13598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_subunit_subunit_test_start" >&5
13603 $as_echo "$ac_cv_lib_subunit_subunit_test_start" >&6; }
13604 if test "x$ac_cv_lib_subunit_subunit_test_start" = x""yes; then
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBSUBUNIT 1
13609 LIBS="-lsubunit $LIBS"
13612 case "$enable_subunit" in
13614 enable_subunit=false
13617 { { $as_echo "$as_me:$LINENO: error: libsubunit is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&5
13618 $as_echo "$as_me: error: libsubunit is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&2;}
13619 { (exit 1); exit 1; }; }
13626 if test xfalse != x"$enable_subunit"; then
13627 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13628 { $as_echo "$as_me:$LINENO: checking for subunit/child.h" >&5
13629 $as_echo_n "checking for subunit/child.h... " >&6; }
13630 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13631 $as_echo_n "(cached) " >&6
13633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_subunit_child_h" >&5
13634 $as_echo "$ac_cv_header_subunit_child_h" >&6; }
13636 # Is the header compilable?
13637 { $as_echo "$as_me:$LINENO: checking subunit/child.h usability" >&5
13638 $as_echo_n "checking subunit/child.h usability... " >&6; }
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 $ac_includes_default
13646 #include <subunit/child.h>
13648 rm -f conftest.$ac_objext
13649 if { (ac_try="$ac_compile"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13655 $as_echo "$ac_try_echo") >&5
13656 (eval "$ac_compile") 2>conftest.er1
13658 grep -v '^ *+' conftest.er1 >conftest.err
13660 cat conftest.err >&5
13661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } && {
13663 test -z "$ac_c_werror_flag" ||
13664 test ! -s conftest.err
13665 } && test -s conftest.$ac_objext; then
13666 ac_header_compiler=yes
13668 $as_echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_header_compiler=no
13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13676 $as_echo "$ac_header_compiler" >&6; }
13678 # Is the header present?
13679 { $as_echo "$as_me:$LINENO: checking subunit/child.h presence" >&5
13680 $as_echo_n "checking subunit/child.h presence... " >&6; }
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #include <subunit/child.h>
13689 if { (ac_try="$ac_cpp conftest.$ac_ext"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } >/dev/null && {
13703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13706 ac_header_preproc=yes
13708 $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_header_preproc=no
13714 rm -f conftest.err conftest.$ac_ext
13715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13716 $as_echo "$ac_header_preproc" >&6; }
13718 # So? What about this header?
13719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13721 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: accepted by the compiler, rejected by the preprocessor!" >&5
13722 $as_echo "$as_me: WARNING: subunit/child.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13723 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: proceeding with the compiler's result" >&5
13724 $as_echo "$as_me: WARNING: subunit/child.h: proceeding with the compiler's result" >&2;}
13725 ac_header_preproc=yes
13728 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: present but cannot be compiled" >&5
13729 $as_echo "$as_me: WARNING: subunit/child.h: present but cannot be compiled" >&2;}
13730 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: check for missing prerequisite headers?" >&5
13731 $as_echo "$as_me: WARNING: subunit/child.h: check for missing prerequisite headers?" >&2;}
13732 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: see the Autoconf documentation" >&5
13733 $as_echo "$as_me: WARNING: subunit/child.h: see the Autoconf documentation" >&2;}
13734 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: section \"Present But Cannot Be Compiled\"" >&5
13735 $as_echo "$as_me: WARNING: subunit/child.h: section \"Present But Cannot Be Compiled\"" >&2;}
13736 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: proceeding with the preprocessor's result" >&5
13737 $as_echo "$as_me: WARNING: subunit/child.h: proceeding with the preprocessor's result" >&2;}
13738 { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: in the future, the compiler will take precedence" >&5
13739 $as_echo "$as_me: WARNING: subunit/child.h: in the future, the compiler will take precedence" >&2;}
13741 ## ----------------------------------------------------------- ##
13742 ## Report this to check-devel at lists dot sourceforge dot net ##
13743 ## ----------------------------------------------------------- ##
13745 ) | sed "s/^/$as_me: WARNING: /" >&2
13748 { $as_echo "$as_me:$LINENO: checking for subunit/child.h" >&5
13749 $as_echo_n "checking for subunit/child.h... " >&6; }
13750 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13751 $as_echo_n "(cached) " >&6
13753 ac_cv_header_subunit_child_h=$ac_header_preproc
13755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_subunit_child_h" >&5
13756 $as_echo "$ac_cv_header_subunit_child_h" >&6; }
13759 if test "x$ac_cv_header_subunit_child_h" = x""yes; then
13762 case "$enable_subunit" in
13764 enable_subunit=false
13767 { { $as_echo "$as_me:$LINENO: error: The header subunit/child.h could not be succesfully included and is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&5
13768 $as_echo "$as_me: error: The header subunit/child.h could not be succesfully included and is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&2;}
13769 { (exit 1); exit 1; }; }
13777 if test xfalse = x"$enable_subunit"; then
13784 cat >>confdefs.h <<_ACEOF
13785 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
13789 if test x"$enable_subunit" != "xfalse"; then
13800 # Checks for typedefs, structures, and compiler characteristics.
13801 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13802 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13803 if test "${ac_cv_c_const+set}" = set; then
13804 $as_echo_n "(cached) " >&6
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13816 /* FIXME: Include the comments suggested by Paul. */
13817 #ifndef __cplusplus
13818 /* Ultrix mips cc rejects this. */
13819 typedef int charset[2];
13821 /* SunOS 4.1.1 cc rejects this. */
13822 char const *const *pcpcc;
13824 /* NEC SVR4.0.2 mips cc rejects this. */
13825 struct point {int x, y;};
13826 static struct point const zero = {0,0};
13827 /* AIX XL C 1.02.0.0 rejects this.
13828 It does not let you subtract one const X* pointer from another in
13829 an arm of an if-expression whose if-part is not a constant
13831 const char *g = "string";
13832 pcpcc = &g + (g ? g-g : 0);
13833 /* HPUX 7.0 cc rejects these. */
13835 ppc = (char**) pcpcc;
13836 pcpcc = (char const *const *) ppc;
13837 { /* SCO 3.2v4 cc rejects this. */
13839 char const *s = 0 ? (char *) 0 : (char const *) 0;
13844 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13845 int x[] = {25, 17};
13846 const int *foo = &x[0];
13849 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13850 typedef const int *iptr;
13854 { /* AIX XL C 1.02.0.0 rejects this saying
13855 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13856 struct s { int j; const int *ap[3]; };
13857 struct s *b; b->j = 5;
13859 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13860 const int foo = 10;
13861 if (!foo) return 0;
13863 return !cs[0] && !zero.x;
13870 rm -f conftest.$ac_objext
13871 if { (ac_try="$ac_compile"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13877 $as_echo "$ac_try_echo") >&5
13878 (eval "$ac_compile") 2>conftest.er1
13880 grep -v '^ *+' conftest.er1 >conftest.err
13882 cat conftest.err >&5
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest.$ac_objext; then
13890 $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13899 $as_echo "$ac_cv_c_const" >&6; }
13900 if test $ac_cv_c_const = no; then
13902 cat >>confdefs.h <<\_ACEOF
13908 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
13909 $as_echo_n "checking for pid_t... " >&6; }
13910 if test "${ac_cv_type_pid_t+set}" = set; then
13911 $as_echo_n "(cached) " >&6
13913 ac_cv_type_pid_t=no
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 $ac_includes_default
13924 if (sizeof (pid_t))
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_compile") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest.$ac_objext; then
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13958 if (sizeof ((pid_t)))
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972 (eval "$ac_compile") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1 >conftest.err
13976 cat conftest.err >&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest.$ac_objext; then
13984 $as_echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_type_pid_t=yes
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14001 $as_echo "$ac_cv_type_pid_t" >&6; }
14002 if test "x$ac_cv_type_pid_t" = x""yes; then
14006 cat >>confdefs.h <<_ACEOF
14012 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14013 $as_echo_n "checking for size_t... " >&6; }
14014 if test "${ac_cv_type_size_t+set}" = set; then
14015 $as_echo_n "(cached) " >&6
14017 ac_cv_type_size_t=no
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 $ac_includes_default
14028 if (sizeof (size_t))
14034 rm -f conftest.$ac_objext
14035 if { (ac_try="$ac_compile"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14041 $as_echo "$ac_try_echo") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 $ac_includes_default
14062 if (sizeof ((size_t)))
14068 rm -f conftest.$ac_objext
14069 if { (ac_try="$ac_compile"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14088 $as_echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_type_size_t=yes
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 $as_echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14105 $as_echo "$ac_cv_type_size_t" >&6; }
14106 if test "x$ac_cv_type_size_t" = x""yes; then
14110 cat >>confdefs.h <<_ACEOF
14111 #define size_t unsigned int
14116 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14117 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14118 if test "${ac_cv_header_time+set}" = set; then
14119 $as_echo_n "(cached) " >&6
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <sys/types.h>
14128 #include <sys/time.h>
14134 if ((struct tm *) 0)
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147 $as_echo "$ac_try_echo") >&5
14148 (eval "$ac_compile") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && {
14155 test -z "$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 } && test -s conftest.$ac_objext; then
14158 ac_cv_header_time=yes
14160 $as_echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_cv_header_time=no
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14169 $as_echo "$ac_cv_header_time" >&6; }
14170 if test $ac_cv_header_time = yes; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define TIME_WITH_SYS_TIME 1
14178 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14179 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14180 if test "${ac_cv_struct_tm+set}" = set; then
14181 $as_echo_n "(cached) " >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <sys/types.h>
14196 int *p = &tm.tm_sec;
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14209 $as_echo "$ac_try_echo") >&5
14210 (eval "$ac_compile") 2>conftest.er1
14212 grep -v '^ *+' conftest.er1 >conftest.err
14214 cat conftest.err >&5
14215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } && {
14217 test -z "$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14219 } && test -s conftest.$ac_objext; then
14220 ac_cv_struct_tm=time.h
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14225 ac_cv_struct_tm=sys/time.h
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14231 $as_echo "$ac_cv_struct_tm" >&6; }
14232 if test $ac_cv_struct_tm = sys/time.h; then
14234 cat >>confdefs.h <<\_ACEOF
14235 #define TM_IN_SYS_TIME 1
14241 # The cast to long int works around a bug in the HP C Compiler
14242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14244 # This bug is HP SR number 8606223364.
14245 { $as_echo "$as_me:$LINENO: checking size of int" >&5
14246 $as_echo_n "checking size of int... " >&6; }
14247 if test "${ac_cv_sizeof_int+set}" = set; then
14248 $as_echo_n "(cached) " >&6
14250 if test "$cross_compiling" = yes; then
14251 # Depending upon the size, compute the lo and hi bounds.
14252 cat >conftest.$ac_ext <<_ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 $ac_includes_default
14262 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
14269 rm -f conftest.$ac_objext
14270 if { (ac_try="$ac_compile"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277 (eval "$ac_compile") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } && {
14284 test -z "$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 } && test -s conftest.$ac_objext; then
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 $ac_includes_default
14299 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14313 $as_echo "$ac_try_echo") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
14324 ac_hi=$ac_mid; break
14326 $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_lo=`expr $ac_mid + 1`
14330 if test $ac_lo -le $ac_mid; then
14334 ac_mid=`expr 2 '*' $ac_mid + 1`
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 $as_echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 $ac_includes_default
14353 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14367 $as_echo "$ac_try_echo") >&5
14368 (eval "$ac_compile") 2>conftest.er1
14370 grep -v '^ *+' conftest.er1 >conftest.err
14372 cat conftest.err >&5
14373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && {
14375 test -z "$ac_c_werror_flag" ||
14376 test ! -s conftest.err
14377 } && test -s conftest.$ac_objext; then
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 $ac_includes_default
14390 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
14397 rm -f conftest.$ac_objext
14398 if { (ac_try="$ac_compile"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405 (eval "$ac_compile") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest.$ac_objext; then
14415 ac_lo=$ac_mid; break
14417 $as_echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ac_hi=`expr '(' $ac_mid ')' - 1`
14421 if test $ac_mid -le $ac_hi; then
14425 ac_mid=`expr 2 '*' $ac_mid`
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 $as_echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 # Binary search between lo and hi bounds.
14442 while test "x$ac_lo" != "x$ac_hi"; do
14443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14454 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
14461 rm -f conftest.$ac_objext
14462 if { (ac_try="$ac_compile"
14463 case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468 $as_echo "$ac_try_echo") >&5
14469 (eval "$ac_compile") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest.$ac_objext; then
14481 $as_echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_lo=`expr '(' $ac_mid ')' + 1`
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 ?*) ac_cv_sizeof_int=$ac_lo;;
14491 '') if test "$ac_cv_type_int" = yes; then
14492 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14494 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14495 See \`config.log' for more details." >&5
14496 $as_echo "$as_me: error: cannot compute sizeof (int)
14497 See \`config.log' for more details." >&2;}
14498 { (exit 77); exit 77; }; }; }
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 $ac_includes_default
14511 static long int longval () { return (long int) (sizeof (int)); }
14512 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
14514 #include <stdlib.h>
14519 FILE *f = fopen ("conftest.val", "w");
14522 if (((long int) (sizeof (int))) < 0)
14524 long int i = longval ();
14525 if (i != ((long int) (sizeof (int))))
14527 fprintf (f, "%ld", i);
14531 unsigned long int i = ulongval ();
14532 if (i != ((long int) (sizeof (int))))
14534 fprintf (f, "%lu", i);
14536 /* Do not output a trailing newline, as this causes \r\n confusion
14537 on some platforms. */
14538 return ferror (f) || fclose (f) != 0;
14544 rm -f conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14551 $as_echo "$ac_try_echo") >&5
14552 (eval "$ac_link") 2>&5
14554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14561 $as_echo "$ac_try_echo") >&5
14562 (eval "$ac_try") 2>&5
14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_sizeof_int=`cat conftest.val`
14568 $as_echo "$as_me: program exited with status $ac_status" >&5
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ( exit $ac_status )
14573 if test "$ac_cv_type_int" = yes; then
14574 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14576 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14577 See \`config.log' for more details." >&5
14578 $as_echo "$as_me: error: cannot compute sizeof (int)
14579 See \`config.log' for more details." >&2;}
14580 { (exit 77); exit 77; }; }; }
14585 rm -rf conftest.dSYM
14586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14590 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14591 $as_echo "$ac_cv_sizeof_int" >&6; }
14595 cat >>confdefs.h <<_ACEOF
14596 #define SIZEOF_INT $ac_cv_sizeof_int
14600 # The cast to long int works around a bug in the HP C Compiler
14601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14603 # This bug is HP SR number 8606223364.
14604 { $as_echo "$as_me:$LINENO: checking size of short" >&5
14605 $as_echo_n "checking size of short... " >&6; }
14606 if test "${ac_cv_sizeof_short+set}" = set; then
14607 $as_echo_n "(cached) " >&6
14609 if test "$cross_compiling" = yes; then
14610 # Depending upon the size, compute the lo and hi bounds.
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 $ac_includes_default
14621 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635 $as_echo "$ac_try_echo") >&5
14636 (eval "$ac_compile") 2>conftest.er1
14638 grep -v '^ *+' conftest.er1 >conftest.err
14640 cat conftest.err >&5
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest.$ac_objext; then
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14658 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 ac_hi=$ac_mid; break
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_lo=`expr $ac_mid + 1`
14689 if test $ac_lo -le $ac_mid; then
14693 ac_mid=`expr 2 '*' $ac_mid + 1`
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 $as_echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14712 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
14719 rm -f conftest.$ac_objext
14720 if { (ac_try="$ac_compile"
14721 case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14726 $as_echo "$ac_try_echo") >&5
14727 (eval "$ac_compile") 2>conftest.er1
14729 grep -v '^ *+' conftest.er1 >conftest.err
14731 cat conftest.err >&5
14732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && {
14734 test -z "$ac_c_werror_flag" ||
14735 test ! -s conftest.err
14736 } && test -s conftest.$ac_objext; then
14739 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 $ac_includes_default
14749 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763 $as_echo "$ac_try_echo") >&5
14764 (eval "$ac_compile") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1 >conftest.err
14768 cat conftest.err >&5
14769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest.$ac_objext; then
14774 ac_lo=$ac_mid; break
14776 $as_echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 ac_hi=`expr '(' $ac_mid ')' - 1`
14780 if test $ac_mid -le $ac_hi; then
14784 ac_mid=`expr 2 '*' $ac_mid`
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790 $as_echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 # Binary search between lo and hi bounds.
14801 while test "x$ac_lo" != "x$ac_hi"; do
14802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 $ac_includes_default
14813 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14827 $as_echo "$ac_try_echo") >&5
14828 (eval "$ac_compile") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest.$ac_objext; then
14840 $as_echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_lo=`expr '(' $ac_mid ')' + 1`
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 ?*) ac_cv_sizeof_short=$ac_lo;;
14850 '') if test "$ac_cv_type_short" = yes; then
14851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14853 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14854 See \`config.log' for more details." >&5
14855 $as_echo "$as_me: error: cannot compute sizeof (short)
14856 See \`config.log' for more details." >&2;}
14857 { (exit 77); exit 77; }; }; }
14859 ac_cv_sizeof_short=0
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 $ac_includes_default
14870 static long int longval () { return (long int) (sizeof (short)); }
14871 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
14873 #include <stdlib.h>
14878 FILE *f = fopen ("conftest.val", "w");
14881 if (((long int) (sizeof (short))) < 0)
14883 long int i = longval ();
14884 if (i != ((long int) (sizeof (short))))
14886 fprintf (f, "%ld", i);
14890 unsigned long int i = ulongval ();
14891 if (i != ((long int) (sizeof (short))))
14893 fprintf (f, "%lu", i);
14895 /* Do not output a trailing newline, as this causes \r\n confusion
14896 on some platforms. */
14897 return ferror (f) || fclose (f) != 0;
14903 rm -f conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911 (eval "$ac_link") 2>&5
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14915 { (case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920 $as_echo "$ac_try_echo") >&5
14921 (eval "$ac_try") 2>&5
14923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_cv_sizeof_short=`cat conftest.val`
14927 $as_echo "$as_me: program exited with status $ac_status" >&5
14928 $as_echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ( exit $ac_status )
14932 if test "$ac_cv_type_short" = yes; then
14933 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14935 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14936 See \`config.log' for more details." >&5
14937 $as_echo "$as_me: error: cannot compute sizeof (short)
14938 See \`config.log' for more details." >&2;}
14939 { (exit 77); exit 77; }; }; }
14941 ac_cv_sizeof_short=0
14944 rm -rf conftest.dSYM
14945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14950 $as_echo "$ac_cv_sizeof_short" >&6; }
14954 cat >>confdefs.h <<_ACEOF
14955 #define SIZEOF_SHORT $ac_cv_sizeof_short
14959 # The cast to long int works around a bug in the HP C Compiler
14960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14962 # This bug is HP SR number 8606223364.
14963 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14964 $as_echo_n "checking size of long... " >&6; }
14965 if test "${ac_cv_sizeof_long+set}" = set; then
14966 $as_echo_n "(cached) " >&6
14968 if test "$cross_compiling" = yes; then
14969 # Depending upon the size, compute the lo and hi bounds.
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 $ac_includes_default
14980 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14994 $as_echo "$ac_try_echo") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest.$ac_objext; then
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 $ac_includes_default
15017 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15042 ac_hi=$ac_mid; break
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_lo=`expr $ac_mid + 1`
15048 if test $ac_lo -le $ac_mid; then
15052 ac_mid=`expr 2 '*' $ac_mid + 1`
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 $as_echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15071 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085 $as_echo "$ac_try_echo") >&5
15086 (eval "$ac_compile") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest.$ac_objext; then
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15108 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
15115 rm -f conftest.$ac_objext
15116 if { (ac_try="$ac_compile"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15122 $as_echo "$ac_try_echo") >&5
15123 (eval "$ac_compile") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest.$ac_objext; then
15133 ac_lo=$ac_mid; break
15135 $as_echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_hi=`expr '(' $ac_mid ')' - 1`
15139 if test $ac_mid -le $ac_hi; then
15143 ac_mid=`expr 2 '*' $ac_mid`
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 # Binary search between lo and hi bounds.
15160 while test "x$ac_lo" != "x$ac_hi"; do
15161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15162 cat >conftest.$ac_ext <<_ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15172 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
15179 rm -f conftest.$ac_objext
15180 if { (ac_try="$ac_compile"
15181 case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15186 $as_echo "$ac_try_echo") >&5
15187 (eval "$ac_compile") 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } && {
15194 test -z "$ac_c_werror_flag" ||
15195 test ! -s conftest.err
15196 } && test -s conftest.$ac_objext; then
15199 $as_echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 ac_lo=`expr '(' $ac_mid ')' + 1`
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208 ?*) ac_cv_sizeof_long=$ac_lo;;
15209 '') if test "$ac_cv_type_long" = yes; then
15210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15212 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15213 See \`config.log' for more details." >&5
15214 $as_echo "$as_me: error: cannot compute sizeof (long)
15215 See \`config.log' for more details." >&2;}
15216 { (exit 77); exit 77; }; }; }
15218 ac_cv_sizeof_long=0
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 $ac_includes_default
15229 static long int longval () { return (long int) (sizeof (long)); }
15230 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
15232 #include <stdlib.h>
15237 FILE *f = fopen ("conftest.val", "w");
15240 if (((long int) (sizeof (long))) < 0)
15242 long int i = longval ();
15243 if (i != ((long int) (sizeof (long))))
15245 fprintf (f, "%ld", i);
15249 unsigned long int i = ulongval ();
15250 if (i != ((long int) (sizeof (long))))
15252 fprintf (f, "%lu", i);
15254 /* Do not output a trailing newline, as this causes \r\n confusion
15255 on some platforms. */
15256 return ferror (f) || fclose (f) != 0;
15262 rm -f conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15269 $as_echo "$ac_try_echo") >&5
15270 (eval "$ac_link") 2>&5
15272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279 $as_echo "$ac_try_echo") >&5
15280 (eval "$ac_try") 2>&5
15282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_sizeof_long=`cat conftest.val`
15286 $as_echo "$as_me: program exited with status $ac_status" >&5
15287 $as_echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ( exit $ac_status )
15291 if test "$ac_cv_type_long" = yes; then
15292 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15294 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15295 See \`config.log' for more details." >&5
15296 $as_echo "$as_me: error: cannot compute sizeof (long)
15297 See \`config.log' for more details." >&2;}
15298 { (exit 77); exit 77; }; }; }
15300 ac_cv_sizeof_long=0
15303 rm -rf conftest.dSYM
15304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15308 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15309 $as_echo "$ac_cv_sizeof_long" >&6; }
15313 cat >>confdefs.h <<_ACEOF
15314 #define SIZEOF_LONG $ac_cv_sizeof_long
15319 # Checks for library functions.
15321 for ac_header in stdlib.h
15323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 $as_echo_n "checking for $ac_header... " >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 $as_echo_n "(cached) " >&6
15330 ac_res=`eval 'as_val=${'$as_ac_Header'}
15331 $as_echo "$as_val"'`
15332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15333 $as_echo "$ac_res" >&6; }
15335 # Is the header compilable?
15336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 $as_echo_n "checking $ac_header usability... " >&6; }
15338 cat >conftest.$ac_ext <<_ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 $ac_includes_default
15345 #include <$ac_header>
15347 rm -f conftest.$ac_objext
15348 if { (ac_try="$ac_compile"
15349 case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354 $as_echo "$ac_try_echo") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_header_compiler=yes
15367 $as_echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_compiler=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15375 $as_echo "$ac_header_compiler" >&6; }
15377 # Is the header present?
15378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15379 $as_echo_n "checking $ac_header presence... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <$ac_header>
15388 if { (ac_try="$ac_cpp conftest.$ac_ext"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } >/dev/null && {
15402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15405 ac_header_preproc=yes
15407 $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_header_preproc=no
15413 rm -f conftest.err conftest.$ac_ext
15414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 $as_echo "$ac_header_preproc" >&6; }
15417 # So? What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424 ac_header_preproc=yes
15427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15430 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15434 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15440 ## ----------------------------------------------------------- ##
15441 ## Report this to check-devel at lists dot sourceforge dot net ##
15442 ## ----------------------------------------------------------- ##
15444 ) | sed "s/^/$as_me: WARNING: /" >&2
15447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 $as_echo_n "checking for $ac_header... " >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 $as_echo_n "(cached) " >&6
15452 eval "$as_ac_Header=\$ac_header_preproc"
15454 ac_res=`eval 'as_val=${'$as_ac_Header'}
15455 $as_echo "$as_val"'`
15456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15457 $as_echo "$ac_res" >&6; }
15460 as_val=`eval 'as_val=${'$as_ac_Header'}
15461 $as_echo "$as_val"'`
15462 if test "x$as_val" = x""yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15471 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15472 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15473 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15474 $as_echo_n "(cached) " >&6
15476 if test "$cross_compiling" = yes; then
15477 ac_cv_func_malloc_0_nonnull=no
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15486 # include <stdlib.h>
15494 return ! malloc (0);
15499 rm -f conftest$ac_exeext
15500 if { (ac_try="$ac_link"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15506 $as_echo "$ac_try_echo") >&5
15507 (eval "$ac_link") 2>&5
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15511 { (case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517 (eval "$ac_try") 2>&5
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_cv_func_malloc_0_nonnull=yes
15523 $as_echo "$as_me: program exited with status $ac_status" >&5
15524 $as_echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ( exit $ac_status )
15528 ac_cv_func_malloc_0_nonnull=no
15530 rm -rf conftest.dSYM
15531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15536 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15537 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15538 if test $ac_cv_func_malloc_0_nonnull = yes; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE_MALLOC 1
15545 cat >>confdefs.h <<\_ACEOF
15546 #define HAVE_MALLOC 0
15549 case " $LIBOBJS " in
15550 *" malloc.$ac_objext "* ) ;;
15551 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15556 cat >>confdefs.h <<\_ACEOF
15557 #define malloc rpl_malloc
15565 for ac_header in stdlib.h
15567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 $as_echo_n "checking for $ac_header... " >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 $as_echo_n "(cached) " >&6
15574 ac_res=`eval 'as_val=${'$as_ac_Header'}
15575 $as_echo "$as_val"'`
15576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15577 $as_echo "$ac_res" >&6; }
15579 # Is the header compilable?
15580 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581 $as_echo_n "checking $ac_header usability... " >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 $ac_includes_default
15589 #include <$ac_header>
15591 rm -f conftest.$ac_objext
15592 if { (ac_try="$ac_compile"
15593 case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15598 $as_echo "$ac_try_echo") >&5
15599 (eval "$ac_compile") 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && {
15606 test -z "$ac_c_werror_flag" ||
15607 test ! -s conftest.err
15608 } && test -s conftest.$ac_objext; then
15609 ac_header_compiler=yes
15611 $as_echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 ac_header_compiler=no
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15619 $as_echo "$ac_header_compiler" >&6; }
15621 # Is the header present?
15622 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15623 $as_echo_n "checking $ac_header presence... " >&6; }
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 #include <$ac_header>
15632 if { (ac_try="$ac_cpp conftest.$ac_ext"
15633 case "(($ac_try" in
15634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635 *) ac_try_echo=$ac_try;;
15637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638 $as_echo "$ac_try_echo") >&5
15639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15641 grep -v '^ *+' conftest.er1 >conftest.err
15643 cat conftest.err >&5
15644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null && {
15646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15647 test ! -s conftest.err
15649 ac_header_preproc=yes
15651 $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_header_preproc=no
15657 rm -f conftest.err conftest.$ac_ext
15658 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659 $as_echo "$ac_header_preproc" >&6; }
15661 # So? What about this header?
15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668 ac_header_preproc=yes
15671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15674 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15678 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15684 ## ----------------------------------------------------------- ##
15685 ## Report this to check-devel at lists dot sourceforge dot net ##
15686 ## ----------------------------------------------------------- ##
15688 ) | sed "s/^/$as_me: WARNING: /" >&2
15691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 $as_echo_n "checking for $ac_header... " >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 $as_echo_n "(cached) " >&6
15696 eval "$as_ac_Header=\$ac_header_preproc"
15698 ac_res=`eval 'as_val=${'$as_ac_Header'}
15699 $as_echo "$as_val"'`
15700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15701 $as_echo "$ac_res" >&6; }
15704 as_val=`eval 'as_val=${'$as_ac_Header'}
15705 $as_echo "$as_val"'`
15706 if test "x$as_val" = x""yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
15716 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15717 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
15718 $as_echo_n "(cached) " >&6
15720 if test "$cross_compiling" = yes; then
15721 ac_cv_func_realloc_0_nonnull=no
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15730 # include <stdlib.h>
15738 return ! realloc (0, 0);
15743 rm -f conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_link") 2>&5
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15760 $as_echo "$ac_try_echo") >&5
15761 (eval "$ac_try") 2>&5
15763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_cv_func_realloc_0_nonnull=yes
15767 $as_echo "$as_me: program exited with status $ac_status" >&5
15768 $as_echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ( exit $ac_status )
15772 ac_cv_func_realloc_0_nonnull=no
15774 rm -rf conftest.dSYM
15775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15780 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
15781 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15782 if test $ac_cv_func_realloc_0_nonnull = yes; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_REALLOC 1
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_REALLOC 0
15793 case " $LIBOBJS " in
15794 *" realloc.$ac_objext "* ) ;;
15795 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15800 cat >>confdefs.h <<\_ACEOF
15801 #define realloc rpl_realloc
15817 for ac_func in fileno localtime_r pipe putenv setenv sleep strdup strsignal unsetenv
15819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15821 $as_echo_n "checking for $ac_func... " >&6; }
15822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15823 $as_echo_n "(cached) " >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define $ac_func innocuous_$ac_func
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char $ac_func (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15841 # include <limits.h>
15843 # include <assert.h>
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15855 /* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858 #if defined __stub_$ac_func || defined __stub___$ac_func
15865 return $ac_func ();
15870 rm -f conftest.$ac_objext conftest$ac_exeext
15871 if { (ac_try="$ac_link"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_link") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext && {
15888 test "$cross_compiling" = yes ||
15889 $as_test_x conftest$ac_exeext
15891 eval "$as_ac_var=yes"
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 eval "$as_ac_var=no"
15899 rm -rf conftest.dSYM
15900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901 conftest$ac_exeext conftest.$ac_ext
15903 ac_res=`eval 'as_val=${'$as_ac_var'}
15904 $as_echo "$as_val"'`
15905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15906 $as_echo "$ac_res" >&6; }
15907 as_val=`eval 'as_val=${'$as_ac_var'}
15908 $as_echo "$as_val"'`
15909 if test "x$as_val" = x""yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15915 case " $LIBOBJS " in
15916 *" $ac_func.$ac_objext "* ) ;;
15917 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15925 { $as_echo "$as_me:$LINENO: checking whether fileno is declared" >&5
15926 $as_echo_n "checking whether fileno is declared... " >&6; }
15927 if test "${ac_cv_have_decl_fileno+set}" = set; then
15928 $as_echo_n "(cached) " >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 $ac_includes_default
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15955 $as_echo "$ac_try_echo") >&5
15956 (eval "$ac_compile") 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
15960 cat conftest.err >&5
15961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest.$ac_objext; then
15966 ac_cv_have_decl_fileno=yes
15968 $as_echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_cv_have_decl_fileno=no
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno" >&5
15977 $as_echo "$ac_cv_have_decl_fileno" >&6; }
15978 if test "x$ac_cv_have_decl_fileno" = x""yes; then
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL_FILENO 1
15986 cat >>confdefs.h <<_ACEOF
15987 #define HAVE_DECL_FILENO 0
15992 { $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
15993 $as_echo_n "checking whether localtime_r is declared... " >&6; }
15994 if test "${ac_cv_have_decl_localtime_r+set}" = set; then
15995 $as_echo_n "(cached) " >&6
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 $ac_includes_default
16007 #ifndef localtime_r
16008 (void) localtime_r;
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16022 $as_echo "$ac_try_echo") >&5
16023 (eval "$ac_compile") 2>conftest.er1
16025 grep -v '^ *+' conftest.er1 >conftest.err
16027 cat conftest.err >&5
16028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } && {
16030 test -z "$ac_c_werror_flag" ||
16031 test ! -s conftest.err
16032 } && test -s conftest.$ac_objext; then
16033 ac_cv_have_decl_localtime_r=yes
16035 $as_echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_cv_have_decl_localtime_r=no
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
16044 $as_echo "$ac_cv_have_decl_localtime_r" >&6; }
16045 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
16047 cat >>confdefs.h <<_ACEOF
16048 #define HAVE_DECL_LOCALTIME_R 1
16053 cat >>confdefs.h <<_ACEOF
16054 #define HAVE_DECL_LOCALTIME_R 0
16059 { $as_echo "$as_me:$LINENO: checking whether pipe is declared" >&5
16060 $as_echo_n "checking whether pipe is declared... " >&6; }
16061 if test "${ac_cv_have_decl_pipe+set}" = set; then
16062 $as_echo_n "(cached) " >&6
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16089 $as_echo "$ac_try_echo") >&5
16090 (eval "$ac_compile") 2>conftest.er1
16092 grep -v '^ *+' conftest.er1 >conftest.err
16094 cat conftest.err >&5
16095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } && {
16097 test -z "$ac_c_werror_flag" ||
16098 test ! -s conftest.err
16099 } && test -s conftest.$ac_objext; then
16100 ac_cv_have_decl_pipe=yes
16102 $as_echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_cv_have_decl_pipe=no
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pipe" >&5
16111 $as_echo "$ac_cv_have_decl_pipe" >&6; }
16112 if test "x$ac_cv_have_decl_pipe" = x""yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_DECL_PIPE 1
16120 cat >>confdefs.h <<_ACEOF
16121 #define HAVE_DECL_PIPE 0
16126 { $as_echo "$as_me:$LINENO: checking whether putenv is declared" >&5
16127 $as_echo_n "checking whether putenv is declared... " >&6; }
16128 if test "${ac_cv_have_decl_putenv+set}" = set; then
16129 $as_echo_n "(cached) " >&6
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16156 $as_echo "$ac_try_echo") >&5
16157 (eval "$ac_compile") 2>conftest.er1
16159 grep -v '^ *+' conftest.er1 >conftest.err
16161 cat conftest.err >&5
16162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && {
16164 test -z "$ac_c_werror_flag" ||
16165 test ! -s conftest.err
16166 } && test -s conftest.$ac_objext; then
16167 ac_cv_have_decl_putenv=yes
16169 $as_echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 ac_cv_have_decl_putenv=no
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putenv" >&5
16178 $as_echo "$ac_cv_have_decl_putenv" >&6; }
16179 if test "x$ac_cv_have_decl_putenv" = x""yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_PUTENV 1
16187 cat >>confdefs.h <<_ACEOF
16188 #define HAVE_DECL_PUTENV 0
16193 { $as_echo "$as_me:$LINENO: checking whether setenv is declared" >&5
16194 $as_echo_n "checking whether setenv is declared... " >&6; }
16195 if test "${ac_cv_have_decl_setenv+set}" = set; then
16196 $as_echo_n "(cached) " >&6
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16223 $as_echo "$ac_try_echo") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest.$ac_objext; then
16234 ac_cv_have_decl_setenv=yes
16236 $as_echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_cv_have_decl_setenv=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setenv" >&5
16245 $as_echo "$ac_cv_have_decl_setenv" >&6; }
16246 if test "x$ac_cv_have_decl_setenv" = x""yes; then
16248 cat >>confdefs.h <<_ACEOF
16249 #define HAVE_DECL_SETENV 1
16254 cat >>confdefs.h <<_ACEOF
16255 #define HAVE_DECL_SETENV 0
16260 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
16261 $as_echo_n "checking whether sleep is declared... " >&6; }
16262 if test "${ac_cv_have_decl_sleep+set}" = set; then
16263 $as_echo_n "(cached) " >&6
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 $ac_includes_default
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291 (eval "$ac_compile") 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && {
16298 test -z "$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 } && test -s conftest.$ac_objext; then
16301 ac_cv_have_decl_sleep=yes
16303 $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 ac_cv_have_decl_sleep=no
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
16312 $as_echo "$ac_cv_have_decl_sleep" >&6; }
16313 if test "x$ac_cv_have_decl_sleep" = x""yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_DECL_SLEEP 1
16321 cat >>confdefs.h <<_ACEOF
16322 #define HAVE_DECL_SLEEP 0
16327 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
16328 $as_echo_n "checking whether strdup is declared... " >&6; }
16329 if test "${ac_cv_have_decl_strdup+set}" = set; then
16330 $as_echo_n "(cached) " >&6
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 $ac_includes_default
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16357 $as_echo "$ac_try_echo") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest.$ac_objext; then
16368 ac_cv_have_decl_strdup=yes
16370 $as_echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_have_decl_strdup=no
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
16379 $as_echo "$ac_cv_have_decl_strdup" >&6; }
16380 if test "x$ac_cv_have_decl_strdup" = x""yes; then
16382 cat >>confdefs.h <<_ACEOF
16383 #define HAVE_DECL_STRDUP 1
16388 cat >>confdefs.h <<_ACEOF
16389 #define HAVE_DECL_STRDUP 0
16394 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
16395 $as_echo_n "checking whether strsignal is declared... " >&6; }
16396 if test "${ac_cv_have_decl_strsignal+set}" = set; then
16397 $as_echo_n "(cached) " >&6
16399 cat >conftest.$ac_ext <<_ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 $ac_includes_default
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest.$ac_objext; then
16435 ac_cv_have_decl_strsignal=yes
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_have_decl_strsignal=no
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
16446 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
16447 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_STRSIGNAL 1
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_STRSIGNAL 0
16461 { $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
16462 $as_echo_n "checking whether unsetenv is declared... " >&6; }
16463 if test "${ac_cv_have_decl_unsetenv+set}" = set; then
16464 $as_echo_n "(cached) " >&6
16466 cat >conftest.$ac_ext <<_ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 $ac_includes_default
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest.$ac_objext; then
16502 ac_cv_have_decl_unsetenv=yes
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_cv_have_decl_unsetenv=no
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
16513 $as_echo "$ac_cv_have_decl_unsetenv" >&6; }
16514 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_DECL_UNSETENV 1
16522 cat >>confdefs.h <<_ACEOF
16523 #define HAVE_DECL_UNSETENV 0
16531 # Checks for pthread implementation.
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543 # We used to check for pthread.h first, but this fails if pthread.h
16544 # requires special compiler flags (e.g. on True64 or Sequent).
16545 # It gets checked for in the link test anyway.
16547 # First of all, check if the user has set any of the PTHREAD_LIBS,
16548 # etcetera environment variables, and if threads linking works using
16550 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16551 save_CFLAGS="$CFLAGS"
16552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16554 LIBS="$PTHREAD_LIBS $LIBS"
16555 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16556 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 /* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16570 char pthread_join ();
16574 return pthread_join ();
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16586 $as_echo "$ac_try_echo") >&5
16587 (eval "$ac_link") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest$ac_exeext && {
16597 test "$cross_compiling" = yes ||
16598 $as_test_x conftest$ac_exeext
16602 $as_echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16608 rm -rf conftest.dSYM
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16611 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16612 $as_echo "$acx_pthread_ok" >&6; }
16613 if test x"$acx_pthread_ok" = xno; then
16618 CFLAGS="$save_CFLAGS"
16621 # We must check for the threads library under a number of different
16622 # names; the ordering is very important because some systems
16623 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16624 # libraries is broken (non-POSIX).
16626 # Create a list of thread flags to try. Items starting with a "-" are
16627 # C compiler flags, and other items are library names, except for "none"
16628 # which indicates that we try without any flags at all, and "pthread-config"
16629 # which is a program returning the flags for the Pth emulation library.
16631 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16633 # The ordering *is* (sometimes) important. Some notes on the
16634 # individual items follow:
16636 # pthreads: AIX (must check this before -lpthread)
16637 # none: in case threads are in libc; should be tried before -Kthread and
16638 # other compiler flags to prevent continual compiler warnings
16639 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16640 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16641 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16642 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16643 # -pthreads: Solaris/gcc
16644 # -mthreads: Mingw32/gcc, Lynx/gcc
16645 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16646 # doesn't hurt to check since this sometimes defines pthreads too;
16647 # also defines -D_REENTRANT)
16648 # ... -mt is also the pthreads flag for HP/aCC
16649 # pthread: Linux, etcetera
16650 # --thread-safe: KAI C++
16651 # pthread-config: use pthread-config program (for GNU Pth library)
16653 case "${host_cpu}-${host_os}" in
16656 # On Solaris (at least, for some versions), libc contains stubbed
16657 # (non-functional) versions of the pthreads routines, so link-based
16658 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16659 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16660 # a function called by this macro, so we could check for that, but
16661 # who knows whether they'll stub that too in a future libc.) So,
16662 # we'll just look for -pthreads and -lpthread first:
16664 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16668 if test x"$acx_pthread_ok" = xno; then
16669 for flag in $acx_pthread_flags; do
16673 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16674 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16678 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16679 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16680 PTHREAD_CFLAGS="$flag"
16684 # Extract the first word of "pthread-config", so it can be a program name with args.
16685 set dummy pthread-config; ac_word=$2
16686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16689 $as_echo_n "(cached) " >&6
16691 if test -n "$acx_pthread_config"; then
16692 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $PATH
16698 test -z "$as_dir" && as_dir=.
16699 for ac_exec_ext in '' $ac_executable_extensions; do
16700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16701 ac_cv_prog_acx_pthread_config="yes"
16702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16712 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16713 if test -n "$acx_pthread_config"; then
16714 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16715 $as_echo "$acx_pthread_config" >&6; }
16717 { $as_echo "$as_me:$LINENO: result: no" >&5
16718 $as_echo "no" >&6; }
16722 if test x"$acx_pthread_config" = xno; then continue; fi
16723 PTHREAD_CFLAGS="`pthread-config --cflags`"
16724 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16728 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16729 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16730 PTHREAD_LIBS="-l$flag"
16735 save_CFLAGS="$CFLAGS"
16736 LIBS="$PTHREAD_LIBS $LIBS"
16737 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16739 # Check for various functions. We must include pthread.h,
16740 # since some functions may be macros. (On the Sequent, we
16741 # need a special flag -Kthread to make this header compile.)
16742 # We check for pthread_join because it is in -lpthread on IRIX
16743 # while pthread_create is in libc. We check for pthread_attr_init
16744 # due to DEC craziness with -lpthreads. We check for
16745 # pthread_cleanup_push because it is one of the few pthread
16746 # functions on Solaris that doesn't have a non-functional libc stub.
16747 # We try pthread_create on general principles.
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <pthread.h>
16758 pthread_t th; pthread_join(th, 0);
16759 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16760 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16772 $as_echo "$ac_try_echo") >&5
16773 (eval "$ac_link") 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } && {
16780 test -z "$ac_c_werror_flag" ||
16781 test ! -s conftest.err
16782 } && test -s conftest$ac_exeext && {
16783 test "$cross_compiling" = yes ||
16784 $as_test_x conftest$ac_exeext
16788 $as_echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16794 rm -rf conftest.dSYM
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796 conftest$ac_exeext conftest.$ac_ext
16799 CFLAGS="$save_CFLAGS"
16801 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16802 $as_echo "$acx_pthread_ok" >&6; }
16803 if test "x$acx_pthread_ok" = xyes; then
16812 # Various other checks:
16813 if test "x$acx_pthread_ok" = xyes; then
16815 LIBS="$PTHREAD_LIBS $LIBS"
16816 save_CFLAGS="$CFLAGS"
16817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16819 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16820 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16821 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16823 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #include <pthread.h>
16834 int attr=$attr; return attr;
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847 (eval "$ac_link") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && {
16854 test -z "$ac_c_werror_flag" ||
16855 test ! -s conftest.err
16856 } && test -s conftest$ac_exeext && {
16857 test "$cross_compiling" = yes ||
16858 $as_test_x conftest$ac_exeext
16860 attr_name=$attr; break
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870 conftest$ac_exeext conftest.$ac_ext
16872 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
16873 $as_echo "$attr_name" >&6; }
16874 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define PTHREAD_CREATE_JOINABLE $attr_name
16882 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16883 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16885 case "${host_cpu}-${host_os}" in
16886 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16887 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16889 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
16890 $as_echo "${flag}" >&6; }
16891 if test "x$flag" != xno; then
16892 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16896 CFLAGS="$save_CFLAGS"
16898 # More AIX lossage: must compile with xlc_r or cc_r
16899 if test x"$GCC" != xyes; then
16900 for ac_prog in xlc_r cc_r
16902 # Extract the first word of "$ac_prog", so it can be a program name with args.
16903 set dummy $ac_prog; ac_word=$2
16904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16905 $as_echo_n "checking for $ac_word... " >&6; }
16906 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16907 $as_echo_n "(cached) " >&6
16909 if test -n "$PTHREAD_CC"; then
16910 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16913 for as_dir in $PATH
16916 test -z "$as_dir" && as_dir=.
16917 for ac_exec_ext in '' $ac_executable_extensions; do
16918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16919 ac_cv_prog_PTHREAD_CC="$ac_prog"
16920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16929 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16930 if test -n "$PTHREAD_CC"; then
16931 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16932 $as_echo "$PTHREAD_CC" >&6; }
16934 { $as_echo "$as_me:$LINENO: result: no" >&5
16935 $as_echo "no" >&6; }
16939 test -n "$PTHREAD_CC" && break
16941 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16954 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16955 if test x"$acx_pthread_ok" = xyes; then
16957 cat >>confdefs.h <<\_ACEOF
16958 #define HAVE_PTHREAD 1
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16976 ac_config_headers="$ac_config_headers config.h"
16979 ac_config_files="$ac_config_files check.pc Makefile doc/Makefile lib/Makefile src/check.h src/Makefile tests/Makefile tests/test_vars"
16982 cat >confcache <<\_ACEOF
16983 # This file is a shell script that caches the results of configure
16984 # tests run on this system so they can be shared between configure
16985 # scripts and configure runs, see configure's option --config-cache.
16986 # It is not useful on other systems. If it contains results you don't
16987 # want to keep, you may remove or edit it.
16989 # config.status only pays attention to the cache file if you give it
16990 # the --recheck option to rerun configure.
16992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16994 # following values.
16998 # The following way of writing the cache mishandles newlines in values,
16999 # but we know of no workaround that is simple, portable, and efficient.
17000 # So, we kill variables containing newlines.
17001 # Ultrix sh set writes to stderr and can't be redirected directly,
17002 # and sets the high bit in the cache file unless we assign to the vars.
17004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17005 eval ac_val=\$$ac_var
17009 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17013 _ | IFS | as_nl) ;; #(
17014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17015 *) $as_unset $ac_var ;;
17021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17022 *${as_nl}ac_space=\ *)
17023 # `set' does not quote correctly, so add quotes (double-quote
17024 # substitution turns \\\\ into \\, and sed turns \\ into \).
17027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17030 # `set' quotes correctly as required by POSIX, so do not add quotes.
17031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17045 if test -w "$cache_file"; then
17046 test "x$cache_file" != "x/dev/null" &&
17047 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17048 $as_echo "$as_me: updating cache $cache_file" >&6;}
17049 cat confcache >$cache_file
17051 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17052 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17058 # Let make expand exec_prefix.
17059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17061 DEFS=-DHAVE_CONFIG_H
17065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17066 # 1. Remove the extension, and $U if already installed.
17067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17070 # will be set to the directory where LIBOBJS objects are built.
17071 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17072 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17074 LIBOBJS=$ac_libobjs
17076 LTLIBOBJS=$ac_ltlibobjs
17079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17080 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17081 Usually this means the macro was only invoked conditionally." >&5
17082 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17083 Usually this means the macro was only invoked conditionally." >&2;}
17084 { (exit 1); exit 1; }; }
17086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17087 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17088 Usually this means the macro was only invoked conditionally." >&5
17089 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17090 Usually this means the macro was only invoked conditionally." >&2;}
17091 { (exit 1); exit 1; }; }
17093 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
17094 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GCOV\" was never defined.
17095 Usually this means the macro was only invoked conditionally." >&5
17096 $as_echo "$as_me: error: conditional \"ENABLE_GCOV\" was never defined.
17097 Usually this means the macro was only invoked conditionally." >&2;}
17098 { (exit 1); exit 1; }; }
17100 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
17101 { { $as_echo "$as_me:$LINENO: error: conditional \"NO_TIMEOUT_TESTS\" was never defined.
17102 Usually this means the macro was only invoked conditionally." >&5
17103 $as_echo "$as_me: error: conditional \"NO_TIMEOUT_TESTS\" was never defined.
17104 Usually this means the macro was only invoked conditionally." >&2;}
17105 { (exit 1); exit 1; }; }
17107 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
17108 { { $as_echo "$as_me:$LINENO: error: conditional \"SUBUNIT\" was never defined.
17109 Usually this means the macro was only invoked conditionally." >&5
17110 $as_echo "$as_me: error: conditional \"SUBUNIT\" was never defined.
17111 Usually this means the macro was only invoked conditionally." >&2;}
17112 { (exit 1); exit 1; }; }
17115 : ${CONFIG_STATUS=./config.status}
17117 ac_clean_files_save=$ac_clean_files
17118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17119 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17121 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17123 # Generated by $as_me.
17124 # Run this file to recreate the current configuration.
17125 # Compiler output produced by configure, useful for debugging
17126 # configure, is in config.log if it exists.
17129 ac_cs_recheck=false
17131 SHELL=\${CONFIG_SHELL-$SHELL}
17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17135 ## --------------------- ##
17136 ## M4sh Initialization. ##
17137 ## --------------------- ##
17139 # Be more Bourne compatible
17140 DUALCASE=1; export DUALCASE # for MKS sh
17141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17144 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17145 # is contrary to our usage. Disable this feature.
17146 alias -g '${1+"$@"}'='"$@"'
17147 setopt NO_GLOB_SUBST
17149 case `(set -o) 2>/dev/null` in
17150 *posix*) set -o posix ;;
17159 # Avoid depending upon Character Ranges.
17160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17163 as_cr_digits='0123456789'
17164 as_cr_alnum=$as_cr_Letters$as_cr_digits
17169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17173 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17174 as_echo='printf %s\n'
17175 as_echo_n='printf %s'
17177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17179 as_echo_n='/usr/ucb/echo -n'
17181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17182 as_echo_n_body='eval
17186 expr "X$arg" : "X\\(.*\\)$as_nl";
17187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17191 export as_echo_n_body
17192 as_echo_n='sh -c $as_echo_n_body as_echo'
17194 export as_echo_body
17195 as_echo='sh -c $as_echo_body as_echo'
17198 # The user is always right.
17199 if test "${PATH_SEPARATOR+set}" != set; then
17201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17207 # Support unset when possible.
17208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17216 # We need space, tab and new line, in precisely that order. Quoting is
17217 # there to prevent editors from complaining about space-tab.
17218 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17219 # splitting by setting IFS to empty value.)
17222 # Find who we are. Look in the path if we contain no directory separator.
17224 *[\\/]* ) as_myself=$0 ;;
17225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17226 for as_dir in $PATH
17229 test -z "$as_dir" && as_dir=.
17230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17236 # We did not find ourselves, most probably we were run as `sh COMMAND'
17237 # in which case we are not to be found in the path.
17238 if test "x$as_myself" = x; then
17241 if test ! -f "$as_myself"; then
17242 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17243 { (exit 1); exit 1; }
17246 # Work around bugs in pre-3.0 UWIN ksh.
17247 for as_var in ENV MAIL MAILPATH
17248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17260 # Required to use basename.
17261 if expr a : '\(a\)' >/dev/null 2>&1 &&
17262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17269 as_basename=basename
17275 # Name of the executable.
17276 as_me=`$as_basename -- "$0" ||
17277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17278 X"$0" : 'X\(//\)$' \| \
17279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17281 sed '/^.*\/\([^/][^/]*\)\/*$/{
17300 as_lineno_1=$LINENO
17301 as_lineno_2=$LINENO
17302 test "x$as_lineno_1" != "x$as_lineno_2" &&
17303 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17306 # uniformly replaced by the line number. The first 'sed' inserts a
17307 # line-number line after each line using $LINENO; the second 'sed'
17308 # does the real work. The second script uses 'N' to pair each
17309 # line-number line with the line containing $LINENO, and appends
17310 # trailing '-' during substitution so that $LINENO is not a special
17311 # case at line end.
17312 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17313 # scripts with optimization help from Paolo Bonzini. Blame Lee
17314 # E. McMahon (1931-1989) for sed's syntax. :-)
17326 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17329 ' >$as_me.lineno &&
17330 chmod +x "$as_me.lineno" ||
17331 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17332 { (exit 1); exit 1; }; }
17334 # Don't try to exec as it changes $[0], causing all sort of problems
17335 # (the dirname of $[0] is not the place where we might find the
17336 # original and so on. Autoconf is especially sensitive to this).
17337 . "./$as_me.lineno"
17338 # Exit status is that of the last command.
17343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17349 ECHO_C= ECHO_N= ECHO_T=
17350 case `echo -n x` in
17352 case `echo 'x\c'` in
17353 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17359 if expr a : '\(a\)' >/dev/null 2>&1 &&
17360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17366 rm -f conf$$ conf$$.exe conf$$.file
17367 if test -d conf$$.dir; then
17368 rm -f conf$$.dir/conf$$.file
17371 mkdir conf$$.dir 2>/dev/null
17373 if (echo >conf$$.file) 2>/dev/null; then
17374 if ln -s conf$$.file conf$$ 2>/dev/null; then
17376 # ... but there are two gotchas:
17377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17379 # In both cases, we have to default to `cp -p'.
17380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17382 elif ln conf$$.file conf$$ 2>/dev/null; then
17390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17391 rmdir conf$$.dir 2>/dev/null
17393 if mkdir -p . 2>/dev/null; then
17396 test -d ./-p && rmdir ./-p
17400 if test -x / >/dev/null 2>&1; then
17401 as_test_x='test -x'
17403 if ls -dL / >/dev/null 2>&1; then
17410 if test -d "$1"; then
17416 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17417 ???[sx]*):;;*)false;;esac;fi
17421 as_executable_p=$as_test_x
17423 # Sed expression to map a string onto a valid CPP name.
17424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17426 # Sed expression to map a string onto a valid variable name.
17427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17432 # Save the log message, to keep $[0] and so on meaningful, and to
17433 # report actual input values of CONFIG_FILES etc. instead of their
17434 # values after options handling.
17436 This file was extended by Check $as_me 0.9.8, which was
17437 generated by GNU Autoconf 2.63. Invocation command line was
17439 CONFIG_FILES = $CONFIG_FILES
17440 CONFIG_HEADERS = $CONFIG_HEADERS
17441 CONFIG_LINKS = $CONFIG_LINKS
17442 CONFIG_COMMANDS = $CONFIG_COMMANDS
17445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17450 case $ac_config_files in *"
17451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17454 case $ac_config_headers in *"
17455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460 # Files that config.status was made for.
17461 config_files="$ac_config_files"
17462 config_headers="$ac_config_headers"
17463 config_commands="$ac_config_commands"
17467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 \`$as_me' instantiates files from templates according to the
17470 current configuration.
17472 Usage: $0 [OPTION]... [FILE]...
17474 -h, --help print this help, then exit
17475 -V, --version print version number and configuration settings, then exit
17476 -q, --quiet, --silent
17477 do not print progress messages
17478 -d, --debug don't remove temporary files
17479 --recheck update $as_me by reconfiguring in the same conditions
17480 --file=FILE[:TEMPLATE]
17481 instantiate the configuration file FILE
17482 --header=FILE[:TEMPLATE]
17483 instantiate the configuration header FILE
17485 Configuration files:
17488 Configuration headers:
17491 Configuration commands:
17494 Report bugs to <bug-autoconf@gnu.org>."
17497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17499 Check config.status 0.9.8
17500 configured by $0, generated by GNU Autoconf 2.63,
17501 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17503 Copyright (C) 2008 Free Software Foundation, Inc.
17504 This config.status script is free software; the Free Software Foundation
17505 gives unlimited permission to copy, distribute and modify it."
17512 test -n "\$AWK" || AWK=awk
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 # The default lists apply if the user does not specify any file.
17522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17534 # Handling of the options.
17535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17538 $as_echo "$ac_cs_version"; exit ;;
17539 --debug | --debu | --deb | --de | --d | -d )
17541 --file | --fil | --fi | --f )
17544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17546 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17547 ac_need_defaults=false;;
17548 --header | --heade | --head | --hea )
17551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17553 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17554 ac_need_defaults=false;;
17556 # Conflict between --help and --header
17557 { $as_echo "$as_me: error: ambiguous option: $1
17558 Try \`$0 --help' for more information." >&2
17559 { (exit 1); exit 1; }; };;
17560 --help | --hel | -h )
17561 $as_echo "$ac_cs_usage"; exit ;;
17562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17566 # This is an error.
17567 -*) { $as_echo "$as_me: error: unrecognized option: $1
17568 Try \`$0 --help' for more information." >&2
17569 { (exit 1); exit 1; }; } ;;
17571 *) ac_config_targets="$ac_config_targets $1"
17572 ac_need_defaults=false ;;
17578 ac_configure_extra_args=
17580 if $ac_cs_silent; then
17582 ac_configure_extra_args="$ac_configure_extra_args --silent"
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 if \$ac_cs_recheck; then
17588 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17590 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17591 CONFIG_SHELL='$SHELL'
17592 export CONFIG_SHELL
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17602 ## Running $as_me. ##
17608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17612 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17615 # The HP-UX ksh and POSIX shell print the target directory to stdout
17616 # if CDPATH is set.
17617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17619 sed_quote_subst='$sed_quote_subst'
17620 double_quote_subst='$double_quote_subst'
17621 delay_variable_subst='$delay_variable_subst'
17622 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17623 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17624 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17625 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17626 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17627 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17628 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17629 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17630 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17631 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17632 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17633 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17634 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17635 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17636 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17637 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17638 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17639 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17640 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17641 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17642 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17643 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17644 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17645 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17646 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17647 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17648 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17649 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17650 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17651 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17652 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17653 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17654 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17655 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17656 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17657 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17658 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17659 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17660 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17661 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17662 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17663 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17664 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17666 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17668 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17669 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17670 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17671 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17672 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17673 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17674 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17675 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17676 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17677 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17678 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17679 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17680 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17681 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17682 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17683 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17684 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17685 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17686 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17687 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17688 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17689 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17690 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17691 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17692 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17693 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17694 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17695 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17696 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17697 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17698 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17699 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17700 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17701 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17702 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17703 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17704 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17705 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17706 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17707 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17708 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17709 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17710 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17711 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17712 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17713 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17714 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17715 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17716 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17717 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17718 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17719 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17720 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17721 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17722 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17723 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17724 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17725 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17726 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17727 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17728 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17729 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17730 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17731 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17732 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17733 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17734 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17735 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17736 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17737 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17738 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17739 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17742 LTCFLAGS='$LTCFLAGS'
17743 compiler='$compiler_DEFAULT'
17745 # Quote evaled strings.
17757 deplibs_check_method \
17766 lt_cv_sys_global_symbol_pipe \
17767 lt_cv_sys_global_symbol_to_cdecl \
17768 lt_cv_sys_global_symbol_to_c_name_address \
17769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17772 lt_prog_compiler_no_builtin_flag \
17773 lt_prog_compiler_wl \
17774 lt_prog_compiler_pic \
17775 lt_prog_compiler_static \
17776 lt_cv_prog_compiler_c_o \
17784 export_dynamic_flag_spec \
17785 whole_archive_flag_spec \
17786 compiler_needs_object \
17788 allow_undefined_flag \
17789 no_undefined_flag \
17790 hardcode_libdir_flag_spec \
17791 hardcode_libdir_flag_spec_ld \
17792 hardcode_libdir_separator \
17797 variables_saved_for_relink \
17799 library_names_spec \
17804 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17805 *[\\\\\\\`\\"\\\$]*)
17806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17814 # Double-quote double-evaled strings.
17815 for var in reload_cmds \
17816 old_postinstall_cmds \
17817 old_postuninstall_cmds \
17819 extract_expsyms_cmds \
17820 old_archive_from_new_cmds \
17821 old_archive_from_expsyms_cmds \
17823 archive_expsym_cmds \
17825 module_expsym_cmds \
17826 export_symbols_cmds \
17829 postuninstall_cmds \
17831 sys_lib_search_path_spec \
17832 sys_lib_dlsearch_path_spec; do
17833 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17834 *[\\\\\\\`\\"\\\$]*)
17835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17843 # Fix-up fallback echo if it was mangled by the above quoting rules.
17845 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17849 ac_aux_dir='$ac_aux_dir'
17850 xsi_shell='$xsi_shell'
17851 lt_shell_append='$lt_shell_append'
17853 # See if we are running on zsh, and set the options which allow our
17854 # commands through without removal of \ escapes INIT.
17855 if test -n "\${ZSH_VERSION+set}" ; then
17856 setopt NO_GLOB_SUBST
17862 TIMESTAMP='$TIMESTAMP'
17871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17873 # Handling of arguments.
17874 for ac_config_target in $ac_config_targets
17876 case $ac_config_target in
17877 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17878 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17879 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17880 "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
17881 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17882 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17883 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17884 "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
17885 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17886 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17887 "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
17889 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17890 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17891 { (exit 1); exit 1; }; };;
17896 # If the user did not use the arguments to specify the items to instantiate,
17897 # then the envvar interface is used. Set only those that are not.
17898 # We use the long form for the default assignment because of an extremely
17899 # bizarre bug on SunOS 4.1.3.
17900 if $ac_need_defaults; then
17901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17906 # Have a temporary directory for convenience. Make it in the build tree
17907 # simply because there is no reason against having it here, and in addition,
17908 # creating and moving files from /tmp can sometimes cause problems.
17909 # Hook for its removal unless debugging.
17910 # Note that there is a small window in which the directory will not be cleaned:
17911 # after its creation but before its name has been assigned to `$tmp'.
17915 trap 'exit_status=$?
17916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17918 trap '{ (exit 1); exit 1; }' 1 2 13 15
17920 # Create a (secure) tmp directory for tmp files.
17923 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17924 test -n "$tmp" && test -d "$tmp"
17927 tmp=./conf$$-$RANDOM
17928 (umask 077 && mkdir "$tmp")
17931 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17932 { (exit 1); exit 1; }
17935 # Set up the scripts for CONFIG_FILES section.
17936 # No need to generate them if there are no CONFIG_FILES.
17937 # This happens for instance with `./config.status config.h'.
17938 if test -n "$CONFIG_FILES"; then
17942 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17943 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17946 ac_cs_awk_cr=$ac_cr
17949 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17954 echo "cat >conf$$subs.awk <<_ACEOF" &&
17955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17957 } >conf$$subs.sh ||
17958 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17959 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17960 { (exit 1); exit 1; }; }
17961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17963 for ac_last_try in false false false false false :; do
17964 . ./conf$$subs.sh ||
17965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17967 { (exit 1); exit 1; }; }
17969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17970 if test $ac_delim_n = $ac_delim_num; then
17972 elif $ac_last_try; then
17973 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17974 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17975 { (exit 1); exit 1; }; }
17977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17980 rm -f conf$$subs.sh
17982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17983 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17987 s/^/S["/; s/!.*/"]=/
17997 s/\(.\{148\}\).*/\1/
17999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18011 s/\(.\{148\}\).*/\1/
18013 s/["\\]/\\&/g; s/^/"/; s/$/"/
18017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18022 ' <conf$$subs.awk | sed '
18027 ' >>$CONFIG_STATUS || ac_write_fail=1
18028 rm -f conf$$subs.awk
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18031 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18032 for (key in S) S_is_set[key] = 1
18038 nfields = split(line, field, "@")
18040 len = length(field[1])
18041 for (i = 2; i < nfields; i++) {
18043 keylen = length(key)
18044 if (S_is_set[key]) {
18046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18047 len += length(value) + length(field[++i])
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18063 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18064 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18065 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18066 { (exit 1); exit 1; }; }
18069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18071 # trailing colons and then remove the whole line if VPATH becomes empty
18072 # (actually we leave an empty line to preserve line numbers).
18073 if test "x$srcdir" = x.; then
18074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18075 s/:*\$(srcdir):*/:/
18076 s/:*\${srcdir}:*/:/
18078 s/^\([^=]*=[ ]*\):*/\1/
18084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18085 fi # test -n "$CONFIG_FILES"
18087 # Set up the scripts for CONFIG_HEADERS section.
18088 # No need to generate them if there are no CONFIG_HEADERS.
18089 # This happens for instance with `./config.status Makefile'.
18090 if test -n "$CONFIG_HEADERS"; then
18091 cat >"$tmp/defines.awk" <<\_ACAWK ||
18095 # Transform confdefs.h into an awk script `defines.awk', embedded as
18096 # here-document in config.status, that substitutes the proper values into
18097 # config.h.in to produce config.h.
18099 # Create a delimiter string that does not exist in confdefs.h, to ease
18100 # handling of long lines.
18102 for ac_last_try in false false :; do
18103 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18104 if test -z "$ac_t"; then
18106 elif $ac_last_try; then
18107 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18108 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18109 { (exit 1); exit 1; }; }
18111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18115 # For the awk script, D is an array of macro values keyed by name,
18116 # likewise P contains macro parameters if any. Preserve backslash
18117 # newline sequences.
18119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18121 s/.\{148\}/&'"$ac_delim"'/g
18124 s/^[ ]*#[ ]*define[ ][ ]*/ /
18131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18138 D["\1"]=" \3\\\\\\n"\\/p
18140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18145 s/.\{148\}/&'"$ac_delim"'/g
18150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18155 ' <confdefs.h | sed '
18156 s/'"$ac_delim"'/"\\\
18157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 for (key in D) D_is_set[key] = 1
18163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18165 split(line, arg, " ")
18166 if (arg[1] == "#") {
18170 defundef = substr(arg[1], 2)
18173 split(mac1, mac2, "(") #)
18175 prefix = substr(line, 1, index(line, defundef) - 1)
18176 if (D_is_set[macro]) {
18177 # Preserve the white space surrounding the "#".
18178 print prefix "define", macro P[macro] D[macro]
18181 # Replace #undef with comments. This is necessary, for example,
18182 # in the case of _POSIX_SOURCE, which is predefined and required
18183 # on some systems where configure will not decide to define it.
18184 if (defundef == "undef") {
18185 print "/*", prefix defundef, macro, "*/"
18193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18195 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18196 { (exit 1); exit 1; }; }
18197 fi # test -n "$CONFIG_HEADERS"
18200 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18205 :[FHLC]) ac_mode=$ac_tag; continue;;
18207 case $ac_mode$ac_tag in
18209 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18210 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18211 { (exit 1); exit 1; }; };;
18212 :[FH]-) ac_tag=-:-;;
18213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18230 -) ac_f="$tmp/stdin";;
18231 *) # Look for the file first in the build tree, then in the source tree
18232 # (if the path is not absolute). The absolute path cannot be DOS-style,
18233 # because $ac_f cannot contain `:'.
18237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18239 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18240 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18241 { (exit 1); exit 1; }; };;
18243 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18244 ac_file_inputs="$ac_file_inputs '$ac_f'"
18247 # Let's still pretend it is `configure' which instantiates (i.e., don't
18248 # use $as_me), people would be surprised to read:
18249 # /* config.h. Generated by config.status. */
18250 configure_input='Generated from '`
18251 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18253 if test x"$ac_file" != x-; then
18254 configure_input="$ac_file. $configure_input"
18255 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18256 $as_echo "$as_me: creating $ac_file" >&6;}
18258 # Neutralize special characters interpreted by sed in replacement strings.
18259 case $configure_input in #(
18260 *\&* | *\|* | *\\* )
18261 ac_sed_conf_input=`$as_echo "$configure_input" |
18262 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18263 *) ac_sed_conf_input=$configure_input;;
18267 *:-:* | *:-) cat >"$tmp/stdin" \
18268 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18269 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18270 { (exit 1); exit 1; }; } ;;
18275 ac_dir=`$as_dirname -- "$ac_file" ||
18276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277 X"$ac_file" : 'X\(//\)[^/]' \| \
18278 X"$ac_file" : 'X\(//\)$' \| \
18279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18280 $as_echo X"$ac_file" |
18281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18285 /^X\(\/\/\)[^/].*/{
18300 -*) as_dir=./$as_dir;;
18302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18307 *) as_qdir=$as_dir;;
18309 as_dirs="'$as_qdir' $as_dirs"
18310 as_dir=`$as_dirname -- "$as_dir" ||
18311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18312 X"$as_dir" : 'X\(//\)[^/]' \| \
18313 X"$as_dir" : 'X\(//\)$' \| \
18314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18315 $as_echo X"$as_dir" |
18316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18320 /^X\(\/\/\)[^/].*/{
18333 test -d "$as_dir" && break
18335 test -z "$as_dirs" || eval "mkdir $as_dirs"
18336 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18337 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18338 { (exit 1); exit 1; }; }; }
18342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18345 # A ".." for each directory in $ac_dir_suffix.
18346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18347 case $ac_top_builddir_sub in
18348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18352 ac_abs_top_builddir=$ac_pwd
18353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18354 # for backward compatibility:
18355 ac_top_builddir=$ac_top_build_prefix
18358 .) # We are building in place.
18360 ac_top_srcdir=$ac_top_builddir_sub
18361 ac_abs_top_srcdir=$ac_pwd ;;
18362 [\\/]* | ?:[\\/]* ) # Absolute name.
18363 ac_srcdir=$srcdir$ac_dir_suffix;
18364 ac_top_srcdir=$srcdir
18365 ac_abs_top_srcdir=$srcdir ;;
18366 *) # Relative name.
18367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18368 ac_top_srcdir=$ac_top_build_prefix$srcdir
18369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18382 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18384 ac_MKDIR_P=$MKDIR_P
18386 [\\/$]* | ?:[\\/]* ) ;;
18387 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18392 # If the template does not know about datarootdir, expand it.
18393 # FIXME: This hack should be removed a few years after 2.60.
18394 ac_datarootdir_hack=; ac_datarootdir_seen=
18407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18408 *datarootdir*) ac_datarootdir_seen=yes;;
18409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18410 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 ac_datarootdir_hack='
18415 s&@datadir@&$datadir&g
18416 s&@docdir@&$docdir&g
18417 s&@infodir@&$infodir&g
18418 s&@localedir@&$localedir&g
18419 s&@mandir@&$mandir&g
18420 s&\\\${datarootdir}&$datarootdir&g' ;;
18424 # Neutralize VPATH when `$srcdir' = `.'.
18425 # Shell code in configure.ac might set extrasub.
18426 # FIXME: do we really want to maintain this feature?
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 ac_sed_extra="$ac_vpsub
18431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18434 s|@configure_input@|$ac_sed_conf_input|;t t
18435 s&@top_builddir@&$ac_top_builddir_sub&;t t
18436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18437 s&@srcdir@&$ac_srcdir&;t t
18438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18439 s&@top_srcdir@&$ac_top_srcdir&;t t
18440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18441 s&@builddir@&$ac_builddir&;t t
18442 s&@abs_builddir@&$ac_abs_builddir&;t t
18443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18444 s&@INSTALL@&$ac_INSTALL&;t t
18445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18446 $ac_datarootdir_hack
18448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18451 { (exit 1); exit 1; }; }
18453 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18454 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18455 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18456 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18457 which seems to be undefined. Please make sure it is defined." >&5
18458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18459 which seems to be undefined. Please make sure it is defined." >&2;}
18463 -) cat "$tmp/out" && rm -f "$tmp/out";;
18464 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18466 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18467 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18468 { (exit 1); exit 1; }; }
18474 if test x"$ac_file" != x-; then
18476 $as_echo "/* $configure_input */" \
18477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18478 } >"$tmp/config.h" \
18479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18480 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18481 { (exit 1); exit 1; }; }
18482 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18483 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18487 mv "$tmp/config.h" "$ac_file" \
18488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18490 { (exit 1); exit 1; }; }
18493 $as_echo "/* $configure_input */" \
18494 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18495 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18496 $as_echo "$as_me: error: could not create -" >&2;}
18497 { (exit 1); exit 1; }; }
18499 # Compute "$ac_file"'s index in $config_headers.
18502 for _am_header in $config_headers :; do
18503 case $_am_header in
18504 $_am_arg | $_am_arg:* )
18507 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18512 X"$_am_arg" : 'X\(//\)[^/]' \| \
18513 X"$_am_arg" : 'X\(//\)$' \| \
18514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18515 $as_echo X"$_am_arg" |
18516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18520 /^X\(\/\/\)[^/].*/{
18532 s/.*/./; q'`/stamp-h$_am_stamp_count
18535 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18536 $as_echo "$as_me: executing $ac_file commands" >&6;}
18541 case $ac_file$ac_mode in
18542 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18543 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18544 # are listed without --file. Let's play safe and only enable the eval
18545 # if we detect the quoting.
18546 case $CONFIG_FILES in
18547 *\'*) eval set x "$CONFIG_FILES" ;;
18548 *) set x $CONFIG_FILES ;;
18553 # Strip MF so we end up with the name of the file.
18554 mf=`echo "$mf" | sed -e 's/:.*$//'`
18555 # Check whether this is an Automake generated Makefile or not.
18556 # We used to match only the files named `Makefile.in', but
18557 # some people rename them; so instead we look at the file content.
18558 # Grep'ing the first line is not enough: some people post-process
18559 # each Makefile.in and add a new line on top of each file to say so.
18560 # Grep'ing the whole file is not good either: AIX grep has a line
18561 # limit of 2048, but all sed's we know have understand at least 4000.
18562 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18563 dirpart=`$as_dirname -- "$mf" ||
18564 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565 X"$mf" : 'X\(//\)[^/]' \| \
18566 X"$mf" : 'X\(//\)$' \| \
18567 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18573 /^X\(\/\/\)[^/].*/{
18589 # Extract the definition of DEPDIR, am__include, and am__quote
18590 # from the Makefile without running `make'.
18591 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18592 test -z "$DEPDIR" && continue
18593 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18594 test -z "am__include" && continue
18595 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18596 # When using ansi2knr, U may be empty or an underscore; expand it
18597 U=`sed -n 's/^U = //p' < "$mf"`
18598 # Find all dependency output files, they are included files with
18599 # $(DEPDIR) in their names. We invoke sed twice because it is the
18600 # simplest approach to changing $(DEPDIR) to its actual value in the
18602 for file in `sed -n "
18603 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18604 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18605 # Make sure the directory exists.
18606 test -f "$dirpart/$file" && continue
18607 fdir=`$as_dirname -- "$file" ||
18608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18609 X"$file" : 'X\(//\)[^/]' \| \
18610 X"$file" : 'X\(//\)$' \| \
18611 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18612 $as_echo X"$file" |
18613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18617 /^X\(\/\/\)[^/].*/{
18630 { as_dir=$dirpart/$fdir
18632 -*) as_dir=./$as_dir;;
18634 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18638 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18639 *) as_qdir=$as_dir;;
18641 as_dirs="'$as_qdir' $as_dirs"
18642 as_dir=`$as_dirname -- "$as_dir" ||
18643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18644 X"$as_dir" : 'X\(//\)[^/]' \| \
18645 X"$as_dir" : 'X\(//\)$' \| \
18646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18647 $as_echo X"$as_dir" |
18648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18652 /^X\(\/\/\)[^/].*/{
18665 test -d "$as_dir" && break
18667 test -z "$as_dirs" || eval "mkdir $as_dirs"
18668 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18669 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18670 { (exit 1); exit 1; }; }; }
18671 # echo "creating $dirpart/$file"
18672 echo '# dummy' > "$dirpart/$file"
18679 # See if we are running on zsh, and set the options which allow our
18680 # commands through without removal of \ escapes.
18681 if test -n "${ZSH_VERSION+set}" ; then
18682 setopt NO_GLOB_SUBST
18685 cfgfile="${ofile}T"
18686 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18689 cat <<_LT_EOF >> "$cfgfile"
18692 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18693 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18697 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18698 # 2006, 2007, 2008 Free Software Foundation, Inc.
18699 # Written by Gordon Matzigkeit, 1996
18701 # This file is part of GNU Libtool.
18703 # GNU Libtool is free software; you can redistribute it and/or
18704 # modify it under the terms of the GNU General Public License as
18705 # published by the Free Software Foundation; either version 2 of
18706 # the License, or (at your option) any later version.
18708 # As a special exception to the GNU General Public License,
18709 # if you distribute this file as part of a program or library that
18710 # is built using GNU Libtool, you may include this file under the
18711 # same distribution terms that you use for the rest of that program.
18713 # GNU Libtool is distributed in the hope that it will be useful,
18714 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18716 # GNU General Public License for more details.
18718 # You should have received a copy of the GNU General Public License
18719 # along with GNU Libtool; see the file COPYING. If not, a copy
18720 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18721 # obtained by writing to the Free Software Foundation, Inc.,
18722 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18725 # The names of the tagged configurations supported by this script.
18728 # ### BEGIN LIBTOOL CONFIG
18730 # Which release of libtool.m4 was used?
18731 macro_version=$macro_version
18732 macro_revision=$macro_revision
18734 # Whether or not to build shared libraries.
18735 build_libtool_libs=$enable_shared
18737 # Whether or not to build static libraries.
18738 build_old_libs=$enable_static
18740 # What type of objects to build.
18743 # Whether or not to optimize for fast installation.
18744 fast_install=$enable_fast_install
18747 host_alias=$host_alias
18751 # The build system.
18752 build_alias=$build_alias
18756 # A sed program that does not truncate output.
18759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18760 Xsed="\$SED -e 1s/^X//"
18762 # A grep program that handles long lines.
18768 # A literal string matcher.
18771 # A BSD- or MS-compatible name lister.
18774 # Whether we need soft or hard links.
18777 # What is the maximum length of a command?
18778 max_cmd_len=$max_cmd_len
18780 # Object file suffix (normally "o").
18783 # Executable file suffix (normally "").
18786 # whether the shell understands "unset".
18789 # turn spaces into newlines.
18792 # turn newlines into spaces.
18795 # How to create reloadable object files.
18796 reload_flag=$lt_reload_flag
18797 reload_cmds=$lt_reload_cmds
18799 # An object symbol dumper.
18800 OBJDUMP=$lt_OBJDUMP
18802 # Method to check whether dependent libraries are shared objects.
18803 deplibs_check_method=$lt_deplibs_check_method
18805 # Command to use when deplibs_check_method == "file_magic".
18806 file_magic_cmd=$lt_file_magic_cmd
18810 AR_FLAGS=$lt_AR_FLAGS
18812 # A symbol stripping program.
18815 # Commands used to install an old-style archive.
18817 old_postinstall_cmds=$lt_old_postinstall_cmds
18818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18823 # LTCC compiler flags.
18824 LTCFLAGS=$lt_CFLAGS
18826 # Take the output of nm and produce a listing of raw symbols and C names.
18827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18829 # Transform the output of nm in a proper C declaration.
18830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18832 # Transform the output of nm in a C name address pair.
18833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18835 # Transform the output of nm in a C name address pair when lib prefix is needed.
18836 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18838 # The name of the directory that contains temporary libtool files.
18841 # Shell to use when invoking shell scripts.
18844 # An echo program that does not interpret backslashes.
18847 # Used to examine libraries when file_magic_cmd begins with "file".
18848 MAGIC_CMD=$MAGIC_CMD
18850 # Must we lock files when doing compilation?
18851 need_locks=$lt_need_locks
18853 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18854 DSYMUTIL=$lt_DSYMUTIL
18856 # Tool to change global to local symbols on Mac OS X.
18859 # Tool to manipulate fat objects and archives on Mac OS X.
18862 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18865 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18866 OTOOL64=$lt_OTOOL64
18868 # Old archive suffix (normally "a").
18871 # Shared library suffix (normally ".so").
18872 shrext_cmds=$lt_shrext_cmds
18874 # The commands to extract the exported symbol list from a shared archive.
18875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18877 # Variables whose values should be saved in libtool wrapper scripts and
18878 # restored at link time.
18879 variables_saved_for_relink=$lt_variables_saved_for_relink
18881 # Do we need the "lib" prefix for modules?
18882 need_lib_prefix=$need_lib_prefix
18884 # Do we need a version for libraries?
18885 need_version=$need_version
18887 # Library versioning type.
18888 version_type=$version_type
18890 # Shared library runtime path variable.
18891 runpath_var=$runpath_var
18893 # Shared library path variable.
18894 shlibpath_var=$shlibpath_var
18896 # Is shlibpath searched before the hard-coded library search path?
18897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18899 # Format of library name prefix.
18900 libname_spec=$lt_libname_spec
18902 # List of archive names. First name is the real one, the rest are links.
18903 # The last name is the one that the linker finds with -lNAME
18904 library_names_spec=$lt_library_names_spec
18906 # The coded name of the library, if different from the real name.
18907 soname_spec=$lt_soname_spec
18909 # Command to use after installation of a shared archive.
18910 postinstall_cmds=$lt_postinstall_cmds
18912 # Command to use after uninstallation of a shared archive.
18913 postuninstall_cmds=$lt_postuninstall_cmds
18915 # Commands used to finish a libtool library installation in a directory.
18916 finish_cmds=$lt_finish_cmds
18918 # As "finish_cmds", except a single script fragment to be evaled but
18920 finish_eval=$lt_finish_eval
18922 # Whether we should hardcode library paths into libraries.
18923 hardcode_into_libs=$hardcode_into_libs
18925 # Compile-time system search path for libraries.
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928 # Run-time system search path for libraries.
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931 # Whether dlopen is supported.
18932 dlopen_support=$enable_dlopen
18934 # Whether dlopen of programs is supported.
18935 dlopen_self=$enable_dlopen_self
18937 # Whether dlopen of statically linked programs is supported.
18938 dlopen_self_static=$enable_dlopen_self_static
18940 # Commands to strip libraries.
18941 old_striplib=$lt_old_striplib
18942 striplib=$lt_striplib
18945 # The linker used to build libraries.
18948 # Commands used to build an old-style archive.
18949 old_archive_cmds=$lt_old_archive_cmds
18951 # A language specific compiler.
18954 # Is the compiler the GNU compiler?
18957 # Compiler flag to turn off builtin functions.
18958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18960 # How to pass a linker flag through the compiler.
18961 wl=$lt_lt_prog_compiler_wl
18963 # Additional compiler flags for building library objects.
18964 pic_flag=$lt_lt_prog_compiler_pic
18966 # Compiler flag to prevent dynamic linking.
18967 link_static_flag=$lt_lt_prog_compiler_static
18969 # Does compiler simultaneously support -c and -o options?
18970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18972 # Whether or not to add -lc for building shared libraries.
18973 build_libtool_need_lc=$archive_cmds_need_lc
18975 # Whether or not to disallow shared libs when runtime libs are static.
18976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18978 # Compiler flag to allow reflexive dlopens.
18979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18981 # Compiler flag to generate shared objects directly from archives.
18982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18984 # Whether the compiler copes with passing no objects directly.
18985 compiler_needs_object=$lt_compiler_needs_object
18987 # Create an old-style archive from a shared archive.
18988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18990 # Create a temporary old-style archive to link instead of a shared archive.
18991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18993 # Commands used to build a shared archive.
18994 archive_cmds=$lt_archive_cmds
18995 archive_expsym_cmds=$lt_archive_expsym_cmds
18997 # Commands used to build a loadable module if different from building
18998 # a shared archive.
18999 module_cmds=$lt_module_cmds
19000 module_expsym_cmds=$lt_module_expsym_cmds
19002 # Whether we are building with GNU ld or not.
19003 with_gnu_ld=$lt_with_gnu_ld
19005 # Flag that allows shared libraries with undefined symbols to be built.
19006 allow_undefined_flag=$lt_allow_undefined_flag
19008 # Flag that enforces no undefined symbols.
19009 no_undefined_flag=$lt_no_undefined_flag
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19015 # If ld is used when linking, flag to hardcode \$libdir into a binary
19016 # during linking. This must work even if \$libdir does not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19019 # Whether we need a single "-rpath" flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19023 # DIR into the resulting binary.
19024 hardcode_direct=$hardcode_direct
19026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19027 # DIR into the resulting binary and the resulting library dependency is
19028 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19029 # library is relocated.
19030 hardcode_direct_absolute=$hardcode_direct_absolute
19032 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19033 # into the resulting binary.
19034 hardcode_minus_L=$hardcode_minus_L
19036 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19037 # into the resulting binary.
19038 hardcode_shlibpath_var=$hardcode_shlibpath_var
19040 # Set to "yes" if building a shared library automatically hardcodes DIR
19041 # into the library and all subsequent libraries and executables linked
19043 hardcode_automatic=$hardcode_automatic
19045 # Set to yes if linker adds runtime paths of dependent libraries
19046 # to runtime path list.
19047 inherit_rpath=$inherit_rpath
19049 # Whether libtool must link a program against all its dependency libraries.
19050 link_all_deplibs=$link_all_deplibs
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path=$lt_fix_srcfile_path
19055 # Set to "yes" if exported symbols are required.
19056 always_export_symbols=$always_export_symbols
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds
19061 # Symbols that should not be listed in the preloaded symbols.
19062 exclude_expsyms=$lt_exclude_expsyms
19064 # Symbols that must always be exported.
19065 include_expsyms=$lt_include_expsyms
19067 # Commands necessary for linking programs (against libraries) with templates.
19068 prelink_cmds=$lt_prelink_cmds
19070 # Specify filename containing input files.
19071 file_list_spec=$lt_file_list_spec
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action
19076 # ### END LIBTOOL CONFIG
19082 cat <<\_LT_EOF >> "$cfgfile"
19083 # AIX sometimes has problems with the GCC collect2 program. For some
19084 # reason, if we set the COLLECT_NAMES environment variable, the problems
19085 # vanish in a puff of smoke.
19086 if test "X${COLLECT_NAMES+set}" != Xset; then
19088 export COLLECT_NAMES
19095 ltmain="$ac_aux_dir/ltmain.sh"
19098 # We use sed instead of cat because bash on DJGPP gets confused if
19099 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19100 # text mode, it properly converts lines to CR/LF. This bash problem
19101 # is reportedly fixed, but why not run on old versions too?
19102 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19103 || (rm -f "$cfgfile"; exit 1)
19107 cat << \_LT_EOF >> "$cfgfile"
19109 # func_dirname file append nondir_replacement
19110 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19111 # otherwise set result to NONDIR_REPLACEMENT.
19115 */*) func_dirname_result="${1%/*}${2}" ;;
19116 * ) func_dirname_result="${3}" ;;
19120 # func_basename file
19123 func_basename_result="${1##*/}"
19126 # func_dirname_and_basename file append nondir_replacement
19127 # perform func_basename and func_dirname in a single function
19129 # dirname: Compute the dirname of FILE. If nonempty,
19130 # add APPEND to the result, otherwise set result
19131 # to NONDIR_REPLACEMENT.
19132 # value returned in "$func_dirname_result"
19133 # basename: Compute filename of FILE.
19134 # value retuned in "$func_basename_result"
19135 # Implementation must be kept synchronized with func_dirname
19136 # and func_basename. For efficiency, we do not delegate to
19137 # those functions but instead duplicate the functionality here.
19138 func_dirname_and_basename ()
19141 */*) func_dirname_result="${1%/*}${2}" ;;
19142 * ) func_dirname_result="${3}" ;;
19144 func_basename_result="${1##*/}"
19147 # func_stripname prefix suffix name
19148 # strip PREFIX and SUFFIX off of NAME.
19149 # PREFIX and SUFFIX must not contain globbing or regex special
19150 # characters, hashes, percent signs, but SUFFIX may contain a leading
19151 # dot (in which case that matches only a dot).
19154 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19155 # positional parameters, so assign one to ordinary parameter first.
19156 func_stripname_result=${3}
19157 func_stripname_result=${func_stripname_result#"${1}"}
19158 func_stripname_result=${func_stripname_result%"${2}"}
19164 func_opt_split_opt=${1%%=*}
19165 func_opt_split_arg=${1#*=}
19172 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19173 *) func_lo2o_result=${1} ;;
19177 # func_xform libobj-or-source
19180 func_xform_result=${1%.*}.lo
19183 # func_arith arithmetic-term...
19186 func_arith_result=$(( $* ))
19190 # STRING may not start with a hyphen.
19193 func_len_result=${#1}
19198 *) # Bourne compatible functions.
19199 cat << \_LT_EOF >> "$cfgfile"
19201 # func_dirname file append nondir_replacement
19202 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19203 # otherwise set result to NONDIR_REPLACEMENT.
19206 # Extract subdirectory from the argument.
19207 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19208 if test "X$func_dirname_result" = "X${1}"; then
19209 func_dirname_result="${3}"
19211 func_dirname_result="$func_dirname_result${2}"
19215 # func_basename file
19218 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19222 # func_stripname prefix suffix name
19223 # strip PREFIX and SUFFIX off of NAME.
19224 # PREFIX and SUFFIX must not contain globbing or regex special
19225 # characters, hashes, percent signs, but SUFFIX may contain a leading
19226 # dot (in which case that matches only a dot).
19227 # func_strip_suffix prefix name
19231 .*) func_stripname_result=`$ECHO "X${3}" \
19232 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19233 *) func_stripname_result=`$ECHO "X${3}" \
19234 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19239 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19240 my_sed_long_arg='1s/^-[^=]*=//'
19245 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19246 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19252 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19255 # func_xform libobj-or-source
19258 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19261 # func_arith arithmetic-term...
19264 func_arith_result=`expr "$@"`
19268 # STRING may not start with a hyphen.
19271 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19277 case $lt_shell_append in
19279 cat << \_LT_EOF >> "$cfgfile"
19281 # func_append var value
19282 # Append VALUE to the end of shell variable VAR.
19290 cat << \_LT_EOF >> "$cfgfile"
19292 # func_append var value
19293 # Append VALUE to the end of shell variable VAR.
19304 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19305 || (rm -f "$cfgfile"; exit 1)
19307 mv -f "$cfgfile" "$ofile" ||
19308 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19317 { (exit 0); exit 0; }
19319 chmod +x $CONFIG_STATUS
19320 ac_clean_files=$ac_clean_files_save
19322 test $ac_write_fail = 0 ||
19323 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19324 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19325 { (exit 1); exit 1; }; }
19328 # configure is writing to config.log, and then calls config.status.
19329 # config.status does its own redirection, appending to config.log.
19330 # Unfortunately, on DOS this fails, as config.log is still kept open
19331 # by configure, so config.status won't be able to write to it; its
19332 # output is simply discarded. So we exec the FD to /dev/null,
19333 # effectively closing config.log, so it can be properly (re)opened and
19334 # appended to by config.status. When coming back to configure, we
19335 # need to make the FD available again.
19336 if test "$no_create" != yes; then
19338 ac_config_status_args=
19339 test "$silent" = yes &&
19340 ac_config_status_args="$ac_config_status_args --quiet"
19342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19345 # would make configure fail if this is the last instruction.
19346 $ac_cs_success || { (exit 1); exit 1; }
19348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19349 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}