2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 # Find the correct PATH separator. Usually this is `:', but
538 # DJGPP uses `;' like DOS.
539 if test "X${PATH_SEPARATOR+set}" != Xset; then
540 UNAME=${UNAME-`uname 2>/dev/null`}
542 *-DOS) lt_cv_sys_path_separator=';' ;;
543 *) lt_cv_sys_path_separator=':' ;;
545 PATH_SEPARATOR=$lt_cv_sys_path_separator
549 # Check that we are running under the correct shell.
550 SHELL=${CONFIG_SHELL-/bin/sh}
554 # Remove one level of quotation (which was required for Make).
555 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 if test "X$1" = X--no-reexec; then
561 # Discard the --no-reexec flag, and continue.
563 elif test "X$1" = X--fallback-echo; then
564 # Avoid inline document here, it may be left over
566 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
567 # Yippee, $echo works!
570 # Restart under the correct shell.
571 exec $SHELL "$0" --no-reexec ${1+"$@"}
574 if test "X$1" = X--fallback-echo; then
575 # used as fallback echo
583 # The HP-UX ksh and POSIX shell print the target directory to stdout
585 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
587 if test -z "$ECHO"; then
588 if test "X${echo_test_string+set}" != Xset; then
589 # find a string as large as possible, as long as the shell can cope with it
590 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
591 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
592 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
593 echo_test_string="`eval $cmd`" &&
594 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
602 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
603 test "X$echo_testing_string" = "X$echo_test_string"; then
606 # The Solaris, AIX, and Digital Unix default echo programs unquote
607 # backslashes. This makes it impossible to quote backslashes using
608 # echo "$something" | sed 's/\\/\\\\/g'
610 # So, first we look for a working echo in the user's PATH.
612 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
613 for dir in $PATH /usr/ucb; do
614 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
615 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
624 if test "X$echo" = Xecho; then
625 # We didn't find a better echo, so look for alternatives.
626 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # This shell has a builtin print -r that does the trick.
631 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
632 test "X$CONFIG_SHELL" != X/bin/ksh; then
633 # If we have ksh, try running configure again with it.
634 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
635 export ORIGINAL_CONFIG_SHELL
636 CONFIG_SHELL=/bin/ksh
638 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
647 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
653 SHELL="$CONFIG_SHELL"
655 echo="$CONFIG_SHELL $0 --fallback-echo"
656 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 echo="$CONFIG_SHELL $0 --fallback-echo"
662 # maybe with a smaller string...
665 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
666 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673 if test "$prev" != 'sed 50q "$0"'; then
674 echo_test_string=`eval $prev`
675 export echo_test_string
676 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
678 # Oops. We lost completely, so just stick with echo.
687 # Copy echo and quote the copy suitably for passing to libtool from
688 # the Makefile, instead of quoting the original, which is used later.
690 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
691 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 exec 7<&0 </dev/null 6>&1
699 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
700 # so uname gets run too.
701 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706 ac_default_prefix=/usr/local
708 ac_config_libobj_dir=.
714 SHELL=${CONFIG_SHELL-/bin/sh}
716 # Identity of this package.
723 ac_unique_file=".version"
724 # Factoring default headers for most tests.
725 ac_includes_default="\
728 # include <sys/types.h>
731 # include <sys/stat.h>
742 # if !STDC_HEADERS && HAVE_MEMORY_H
748 # include <strings.h>
751 # include <inttypes.h>
769 program_transform_name
860 ac_precious_vars='build_alias
877 # Initialize some variables set by options.
879 ac_init_version=false
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
889 program_transform_name=s,x,x,
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
935 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
981 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982 { (exit 1); exit 1; }; }
983 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
984 eval enable_$ac_feature=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 -enable-* | --enable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1003 eval enable_$ac_feature=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid package name: $ac_package" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_package=`echo $ac_package| sed 's/-/_/g'`
1200 eval with_$ac_package=\$ac_optarg ;;
1202 -without-* | --without-*)
1203 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package | sed 's/-/_/g'`
1209 eval with_$ac_package=no ;;
1212 # Obsolete; use --with-x.
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) { echo "$as_me: error: unrecognized option: $ac_option
1230 Try \`$0 --help' for more information." >&2
1231 { (exit 1); exit 1; }; }
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239 { (exit 1); exit 1; }; }
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 { echo "$as_me: error: missing argument to $ac_option" >&2
1257 { (exit 1); exit 1; }; }
1260 # Be sure to have absolute directory names.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1272 { (exit 1); exit 1; }; }
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1280 target=$target_alias
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1287 If a cross compiler is detected then cross compile mode will be used." >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 { echo "$as_me: error: Working directory cannot be determined" >&2
1303 { (exit 1); exit 1; }; }
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 { echo "$as_me: error: pwd does not report name of working directory" >&2
1306 { (exit 1); exit 1; }; }
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$0" ||
1314 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$0" : 'X\(//\)[^/]' \| \
1316 X"$0" : 'X\(//\)$' \| \
1317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1346 { (exit 1); exit 1; }; }
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1351 { (exit 1); exit 1; }; }
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1377 \`configure' configures this package to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 if test -n "$ac_init_help"; then
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-ucsim compile ucsim frontend
1448 --enable-dlso compile dynamically loadable shared libraries
1449 --disable-51 do not compile simulator for MCS51
1450 --disable-avr do not compile simulator for AVR
1451 --disable-z80 do not compile simulator for Z80
1452 --disable-hc08 do not compile simulator for hc08
1453 --enable-xa compile simulator for XA
1454 --enable-serio compile serio GUI tool (needs curses)
1455 --enable-statistic compile statistical features (slower simulation)
1456 --enable-shared=PKGS build shared libraries default=yes
1457 --enable-static=PKGS build static libraries default=yes
1458 --enable-fast-install=PKGS optimize for fast installation default=yes
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-gnu-ld assume the C compiler uses GNU ld default=no
1465 --with-pic try to use only PIC/non-PIC objects default=use both
1467 Some influential environment variables:
1468 docdir documentation installation directory
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CXXCPP C++ preprocessor
1476 CC C compiler command
1477 CFLAGS C compiler flags
1479 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1480 the first program found out of: `bison -y', `byacc', `yacc'.
1481 YFLAGS The list of arguments that will be passed by default to $YACC.
1482 This script will default YFLAGS to the empty string to avoid a
1483 default value of `-d' given by some make applications.
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" || continue
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1549 generated by GNU Autoconf 2.60
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.60. Invocation command line was
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 echo "PATH: $as_dir"
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_must_keep_next=false
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 -* ) ac_must_keep_next=true ;;
1655 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log. We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1679 # The following way of writing the cache mishandles newlines in values,
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690 _ | IFS | as_nl) ;; #(
1691 *) $as_unset $ac_var ;;
1696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
1699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1716 for ac_var in $ac_subst_vars
1718 eval ac_val=\$$ac_var
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 echo "$ac_var='\''$ac_val'\''"
1726 if test -n "$ac_subst_files"; then
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1733 for ac_var in $ac_subst_files
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1744 if test -s confdefs.h; then
1754 test "$ac_signal" != 0 &&
1755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
1758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1770 # Predefined preprocessor variables.
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800 set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
1810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813 sed 's/^/| /' "$ac_site_file" >&5
1818 if test -r "$cache_file"; then
1819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
1830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1835 # Check that the precious variables saved in the cache have kept the same
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
1841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
1843 case $ac_old_set,$ac_new_set in
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
1855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858 echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860 echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 *) ac_arg=$ac_var=$ac_new_val ;;
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876 if $ac_cache_corrupted; then
1877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1910 for ac_prog in gawk mawk nawk awk
1912 # Extract the first word of "$ac_prog", so it can be a program name with args.
1913 set dummy $ac_prog; ac_word=$2
1914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1916 if test "${ac_cv_prog_AWK+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$AWK"; then
1920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1929 ac_cv_prog_AWK="$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test -n "$AWK"; then
1941 { echo "$as_me:$LINENO: result: $AWK" >&5
1942 echo "${ECHO_T}$AWK" >&6; }
1944 { echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6; }
1949 test -n "$AWK" && break
1953 { echo "$as_me:$LINENO: checking version of the package" >&5
1954 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1955 if test -f ${srcdir}/.version; then
1956 VERSION=`cat ${srcdir}/.version`
1957 { echo "$as_me:$LINENO: result: $VERSION" >&5
1958 echo "${ECHO_T}$VERSION" >&6; }
1961 { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1962 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1964 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1965 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1966 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1971 cat >>confdefs.h <<_ACEOF
1972 #define VERSIONSTR "${VERSION}"
1975 cat >>confdefs.h <<_ACEOF
1976 #define VERSIONHI $VERSIONHI
1979 cat >>confdefs.h <<_ACEOF
1980 #define VERSIONLO $VERSIONLO
1983 cat >>confdefs.h <<_ACEOF
1984 #define VERSIONP $VERSIONP
1990 # *nix default: "${datadir}/sdcc/doc"
1992 if test "${docdir}" = ""; then
1993 docdir="\${datadir}"/sdcc/doc
1997 # Check whether --enable-ucsim was given.
1998 if test "${enable_ucsim+set}" = set; then
1999 enableval=$enable_ucsim; if test $enable_ucsim != "no"; then
2007 # Check whether --enable-dlso was given.
2008 if test "${enable_dlso+set}" = set; then
2009 enableval=$enable_dlso; if test $enable_dlso != "no"; then
2016 # Check whether --enable-51 was given.
2017 if test "${enable_51+set}" = set; then
2018 enableval=$enable_51; if test $enable_51 != "no"; then
2025 # Check whether --enable-avr was given.
2026 if test "${enable_avr+set}" = set; then
2027 enableval=$enable_avr; if test $enable_avr != "no"; then
2034 # Check whether --enable-z80 was given.
2035 if test "${enable_z80+set}" = set; then
2036 enableval=$enable_z80; if test $enable_z80 != "no"; then
2043 # Check whether --enable-hc08 was given.
2044 if test "${enable_hc08+set}" = set; then
2045 enableval=$enable_hc08; if test $enable_hc08 != "no"; then
2052 # Check whether --enable-xa was given.
2053 if test "${enable_xa+set}" = set; then
2054 enableval=$enable_xa; if test $enable_xa != "no"; then
2061 # Check whether --enable-portmon was given.
2062 if test "${enable_portmon+set}" = set; then
2063 enableval=$enable_portmon; if test $enable_serio != "no"; then
2079 # Check whether --enable-statistic was given.
2080 if test "${enable_statistic+set}" = set; then
2081 enableval=$enable_statistic; if test $enable_statistic != "no"; then
2082 enable_statistic="yes"
2085 enable_statistic="no"
2088 cat >>confdefs.h <<_ACEOF
2089 #define STATISTIC $enable_statistic
2095 #-------------------
2097 ac_cpp='$CXXCPP $CPPFLAGS'
2098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2101 if test -z "$CXX"; then
2102 if test -n "$CCC"; then
2105 if test -n "$ac_tool_prefix"; then
2106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CXX+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CXX"; then
2116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 if test -n "$CXX"; then
2137 { echo "$as_me:$LINENO: result: $CXX" >&5
2138 echo "${ECHO_T}$CXX" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2145 test -n "$CXX" && break
2148 if test -z "$CXX"; then
2150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$ac_ct_CXX"; then
2160 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_ac_ct_CXX="$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2180 if test -n "$ac_ct_CXX"; then
2181 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2182 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2189 test -n "$ac_ct_CXX" && break
2192 if test "x$ac_ct_CXX" = x; then
2195 case $cross_compiling:$ac_tool_warned in
2197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2198 whose name does not start with the host triplet. If you think this
2199 configuration is useful to you, please write to autoconf@gnu.org." >&5
2200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2201 whose name does not start with the host triplet. If you think this
2202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2203 ac_tool_warned=yes ;;
2211 # Provide some information about the compiler.
2212 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2213 ac_compiler=`set X $ac_compile; echo $2`
2214 { (ac_try="$ac_compiler --version >&5"
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220 (eval "$ac_compiler --version >&5") 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2224 { (ac_try="$ac_compiler -v >&5"
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_compiler -v >&5") 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234 { (ac_try="$ac_compiler -V >&5"
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2240 (eval "$ac_compiler -V >&5") 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }
2245 cat >conftest.$ac_ext <<_ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2260 ac_clean_files_save=$ac_clean_files
2261 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2262 # Try to create an executable without -o first, disregard a.out.
2263 # It will help us diagnose broken compilers, and finding out an intuition
2265 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2266 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2267 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2269 # List of possible output files, starting from the most likely.
2270 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2271 # only as a last resort. b.out is created by i960 compilers.
2272 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2274 # The IRIX 6 linker writes into existing files which may not be
2275 # executable, retaining their permissions. Remove them first so a
2276 # subsequent execution test works.
2278 for ac_file in $ac_files
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2287 if { (ac_try="$ac_link_default"
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_link_default") 2>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2300 # so that the user can short-circuit this test for compilers unknown to
2302 for ac_file in $ac_files
2304 test -f "$ac_file" || continue
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2309 # We found the default executable, but exeext='' is most
2313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 # We set ac_cv_exeext here because the later test for it is not
2318 # safe: cross compilers may not add the suffix if given an `-o'
2319 # argument, so we may need to know it at that point already.
2320 # Even if this section looks crufty: it has the advantage of
2327 test "$ac_cv_exeext" = no && ac_cv_exeext=
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: C++ compiler cannot create executables
2336 See \`config.log' for more details." >&2;}
2337 { (exit 77); exit 77; }; }
2340 ac_exeext=$ac_cv_exeext
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2344 # Check that the compiler produces executables we can run. If not, either
2345 # the compiler is broken, or we cross compile.
2346 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2347 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2348 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349 # If not cross compiling, check that we can run a simple program.
2350 if test "$cross_compiling" != yes; then
2351 if { ac_try='./$ac_file'
2352 { (case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_try") 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 if test "$cross_compiling" = maybe; then
2366 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2367 If you meant to cross compile, use \`--host'.
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot run C++ compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2376 { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2379 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2380 ac_clean_files=$ac_clean_files_save
2381 # Check that the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2385 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2386 echo "${ECHO_T}$cross_compiling" >&6; }
2388 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2389 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2390 if { (ac_try="$ac_link"
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_link") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2401 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2402 # work properly (i.e., refer to `conftest.exe'), while it won't with
2404 for ac_file in conftest.exe conftest conftest.*; do
2405 test -f "$ac_file" || continue
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2421 rm -f conftest$ac_cv_exeext
2422 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2423 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2425 rm -f conftest.$ac_ext
2426 EXEEXT=$ac_cv_exeext
2428 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2429 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2430 if test "${ac_cv_objext+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 rm -f conftest.o conftest.obj
2449 if { (ac_try="$ac_compile"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file in conftest.o conftest.obj conftest.*; do
2460 test -f "$ac_file" || continue;
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2474 See \`config.log' for more details." >&2;}
2475 { (exit 1); exit 1; }; }
2478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2480 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2481 echo "${ECHO_T}$ac_cv_objext" >&6; }
2482 OBJEXT=$ac_cv_objext
2484 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2485 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2486 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2507 rm -f conftest.$ac_objext
2508 if { (ac_try="$ac_compile"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_compile") 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_try") 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2553 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2554 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2555 GXX=`test $ac_compiler_gnu = yes && echo yes`
2556 ac_test_CXXFLAGS=${CXXFLAGS+set}
2557 ac_save_CXXFLAGS=$CXXFLAGS
2558 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2559 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_cxx_g+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2564 ac_cxx_werror_flag=yes
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_prog_cxx_g=yes
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compile") 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_try") 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_try") 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_prog_cxx_g=yes
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2746 if test "$ac_test_CXXFLAGS" = set; then
2747 CXXFLAGS=$ac_save_CXXFLAGS
2748 elif test $ac_cv_prog_cxx_g = yes; then
2749 if test "$GXX" = yes; then
2755 if test "$GXX" = yes; then
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 ac_cpp='$CXXCPP $CPPFLAGS'
2769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2772 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2773 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2774 if test -z "$CXXCPP"; then
2775 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 # Double quotes because CXXCPP needs to be expanded
2779 for CXXCPP in "$CXX -E" "/lib/cpp"
2782 for ac_cxx_preproc_warn_flag in '' yes
2784 # Use a header file that comes with gcc, so configuring glibc
2785 # with a fresh cross-compiler works.
2786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 # <limits.h> exists even on freestanding compilers.
2788 # On the NeXT, cc -E runs the code through the compiler's parser,
2789 # not just through cpp. "Syntax error" is here to catch this case.
2790 cat >conftest.$ac_ext <<_ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2797 # include <limits.h>
2799 # include <assert.h>
2803 if { (ac_try="$ac_cpp conftest.$ac_ext"
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } >/dev/null; then
2816 if test -s conftest.err; then
2817 ac_cpp_err=$ac_cxx_preproc_warn_flag
2818 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2825 if test -z "$ac_cpp_err"; then
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 # Broken: fails on valid input.
2835 rm -f conftest.err conftest.$ac_ext
2837 # OK, works on sane cases. Now check whether nonexistent headers
2838 # can be detected and how.
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <ac_nonexistent.h>
2847 if { (ac_try="$ac_cpp conftest.$ac_ext"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2855 grep -v '^ *+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } >/dev/null; then
2860 if test -s conftest.err; then
2861 ac_cpp_err=$ac_cxx_preproc_warn_flag
2862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2869 if test -z "$ac_cpp_err"; then
2870 # Broken: success on invalid input.
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 # Passes both tests.
2881 rm -f conftest.err conftest.$ac_ext
2884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2885 rm -f conftest.err conftest.$ac_ext
2886 if $ac_preproc_ok; then
2891 ac_cv_prog_CXXCPP=$CXXCPP
2894 CXXCPP=$ac_cv_prog_CXXCPP
2896 ac_cv_prog_CXXCPP=$CXXCPP
2898 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
2899 echo "${ECHO_T}$CXXCPP" >&6; }
2901 for ac_cxx_preproc_warn_flag in '' yes
2903 # Use a header file that comes with gcc, so configuring glibc
2904 # with a fresh cross-compiler works.
2905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2906 # <limits.h> exists even on freestanding compilers.
2907 # On the NeXT, cc -E runs the code through the compiler's parser,
2908 # not just through cpp. "Syntax error" is here to catch this case.
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2916 # include <limits.h>
2918 # include <assert.h>
2922 if { (ac_try="$ac_cpp conftest.$ac_ext"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_cxx_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2944 if test -z "$ac_cpp_err"; then
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Broken: fails on valid input.
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether nonexistent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null; then
2979 if test -s conftest.err; then
2980 ac_cpp_err=$ac_cxx_preproc_warn_flag
2981 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2988 if test -z "$ac_cpp_err"; then
2989 # Broken: success on invalid input.
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Passes both tests.
3000 rm -f conftest.err conftest.$ac_ext
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3008 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023 if test -f "$ac_dir/install-sh"; then
3025 ac_install_sh="$ac_aux_dir/install-sh -c"
3027 elif test -f "$ac_dir/install.sh"; then
3029 ac_install_sh="$ac_aux_dir/install.sh -c"
3031 elif test -f "$ac_dir/shtool"; then
3033 ac_install_sh="$ac_aux_dir/shtool install -c"
3037 if test -z "$ac_aux_dir"; then
3038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3040 { (exit 1); exit 1; }; }
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Find a good install program. We prefer a C program (faster),
3053 # so one script is as good as another. But avoid the broken or
3054 # incompatible versions:
3055 # SysV /etc/install, /usr/sbin/install
3056 # SunOS /usr/etc/install
3057 # IRIX /sbin/install
3059 # AmigaOS /C/install, which installs bootblocks on floppy discs
3060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3063 # OS/2's system install, which has a completely different semantic
3064 # ./install, which can be erroneously created by make from ./install.sh.
3065 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3066 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3067 if test -z "$INSTALL"; then
3068 if test "${ac_cv_path_install+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 # Account for people who put trailing slashes in PATH elements.
3078 ./ | .// | /cC/* | \
3079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3080 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3083 # OSF1 and SCO ODT 3.0 have their own names for install.
3084 # Don't use installbsd from OSF since it installs stuff as root
3086 for ac_prog in ginstall scoinst install; do
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3089 if test $ac_prog = install &&
3090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3091 # AIX install. It has an incompatible calling convention.
3093 elif test $ac_prog = install &&
3094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # program-specific install script used by HP pwplus--don't use.
3098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3111 if test "${ac_cv_path_install+set}" = set; then
3112 INSTALL=$ac_cv_path_install
3114 # As a last resort, use the slow shell script. Don't cache a
3115 # value for INSTALL within a source directory, because that will
3116 # break other packages using the cache if that directory is
3117 # removed, or if the value is a relative name.
3118 INSTALL=$ac_install_sh
3121 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3122 echo "${ECHO_T}$INSTALL" >&6; }
3124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3125 # It thinks the first close brace ends the variable substitution.
3126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_RANLIB+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -n "$RANLIB"; then
3141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3163 echo "${ECHO_T}$RANLIB" >&6; }
3165 { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3205 { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3209 if test "x$ac_ct_RANLIB" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3215 whose name does not start with the host triplet. If you think this
3216 configuration is useful to you, please write to autoconf@gnu.org." >&5
3217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet. If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3220 ac_tool_warned=yes ;;
3222 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3229 # Extract the first word of "strip", so it can be a program name with args.
3230 set dummy strip; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_STRIP+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 if test -n "$STRIP"; then
3237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_STRIP="strip"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3257 STRIP=$ac_cv_prog_STRIP
3258 if test -n "$STRIP"; then
3259 { echo "$as_me:$LINENO: result: $STRIP" >&5
3260 echo "${ECHO_T}$STRIP" >&6; }
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3269 # Check whether --enable-shared was given.
3270 if test "${enable_shared+set}" = set; then
3271 enableval=$enable_shared; p=${PACKAGE-default}
3273 yes) enable_shared=yes ;;
3274 no) enable_shared=no ;;
3277 # Look at the argument we got. We use all the common list separators.
3278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3279 for pkg in $enableval; do
3280 if test "X$pkg" = "X$p"; then
3291 # Check whether --enable-static was given.
3292 if test "${enable_static+set}" = set; then
3293 enableval=$enable_static; p=${PACKAGE-default}
3295 yes) enable_static=yes ;;
3296 no) enable_static=no ;;
3299 # Look at the argument we got. We use all the common list separators.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3301 for pkg in $enableval; do
3302 if test "X$pkg" = "X$p"; then
3313 # Check whether --enable-fast-install was given.
3314 if test "${enable_fast_install+set}" = set; then
3315 enableval=$enable_fast_install; p=${PACKAGE-default}
3317 yes) enable_fast_install=yes ;;
3318 no) enable_fast_install=no ;;
3320 enable_fast_install=no
3321 # Look at the argument we got. We use all the common list separators.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3323 for pkg in $enableval; do
3324 if test "X$pkg" = "X$p"; then
3325 enable_fast_install=yes
3332 enable_fast_install=yes
3335 # Make sure we can run config.sub.
3336 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3337 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3338 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3339 { (exit 1); exit 1; }; }
3341 { echo "$as_me:$LINENO: checking build system type" >&5
3342 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3343 if test "${ac_cv_build+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 ac_build_alias=$build_alias
3347 test "x$ac_build_alias" = x &&
3348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3349 test "x$ac_build_alias" = x &&
3350 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3351 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3352 { (exit 1); exit 1; }; }
3353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3354 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3355 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3356 { (exit 1); exit 1; }; }
3359 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3360 echo "${ECHO_T}$ac_cv_build" >&6; }
3361 case $ac_cv_build in
3363 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3364 echo "$as_me: error: invalid value of canonical build" >&2;}
3365 { (exit 1); exit 1; }; };;
3368 ac_save_IFS=$IFS; IFS='-'
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3381 { echo "$as_me:$LINENO: checking host system type" >&5
3382 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3383 if test "${ac_cv_host+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 if test "x$host_alias" = x; then
3387 ac_cv_host=$ac_cv_build
3389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3390 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3391 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3392 { (exit 1); exit 1; }; }
3396 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3397 echo "${ECHO_T}$ac_cv_host" >&6; }
3400 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3401 echo "$as_me: error: invalid value of canonical host" >&2;}
3402 { (exit 1); exit 1; }; };;
3405 ac_save_IFS=$IFS; IFS='-'
3411 # Remember, the first character of IFS is used to create $*,
3412 # except with old shells:
3415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3428 if test "${ac_cv_prog_CC+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 if test -n "$CC"; then
3453 { echo "$as_me:$LINENO: result: $CC" >&5
3454 echo "${ECHO_T}$CC" >&6; }
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3462 if test -z "$ac_cv_prog_CC"; then
3464 # Extract the first word of "gcc", so it can be a program name with args.
3465 set dummy gcc; ac_word=$2
3466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_ac_ct_CC="gcc"
3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3494 echo "${ECHO_T}$ac_ct_CC" >&6; }
3496 { echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6; }
3500 if test "x$ac_ct_CC" = x; then
3503 case $cross_compiling:$ac_tool_warned in
3505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3506 whose name does not start with the host triplet. If you think this
3507 configuration is useful to you, please write to autoconf@gnu.org." >&5
3508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3509 whose name does not start with the host triplet. If you think this
3510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3511 ac_tool_warned=yes ;;
3519 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}cc; ac_word=$2
3523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_CC="${ac_tool_prefix}cc"
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 if test -n "$CC"; then
3550 { echo "$as_me:$LINENO: result: $CC" >&5
3551 echo "${ECHO_T}$CC" >&6; }
3553 { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3560 if test -z "$CC"; then
3561 # Extract the first word of "cc", so it can be a program name with args.
3562 set dummy cc; ac_word=$2
3563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580 ac_prog_rejected=yes
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 if test $ac_prog_rejected = yes; then
3592 # We found a bogon in the path, so make sure we never use it.
3593 set dummy $ac_cv_prog_CC
3595 if test $# != 0; then
3596 # We chose a different compiler from the bogus one.
3597 # However, it has the same basename, so the bogon will be chosen
3598 # first if we set CC to just the basename; use the full file name.
3600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3606 if test -n "$CC"; then
3607 { echo "$as_me:$LINENO: result: $CC" >&5
3608 echo "${ECHO_T}$CC" >&6; }
3610 { echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6; }
3616 if test -z "$CC"; then
3617 if test -n "$ac_tool_prefix"; then
3618 for ac_prog in cl.exe
3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 if test -n "$CC"; then
3649 { echo "$as_me:$LINENO: result: $CC" >&5
3650 echo "${ECHO_T}$CC" >&6; }
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3657 test -n "$CC" && break
3660 if test -z "$CC"; then
3662 for ac_prog in cl.exe
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="$ac_prog"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 echo "${ECHO_T}$ac_ct_CC" >&6; }
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3701 test -n "$ac_ct_CC" && break
3704 if test "x$ac_ct_CC" = x; then
3707 case $cross_compiling:$ac_tool_warned in
3709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3710 whose name does not start with the host triplet. If you think this
3711 configuration is useful to you, please write to autoconf@gnu.org." >&5
3712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3713 whose name does not start with the host triplet. If you think this
3714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3715 ac_tool_warned=yes ;;
3724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: no acceptable C compiler found in \$PATH
3727 See \`config.log' for more details." >&2;}
3728 { (exit 1); exit 1; }; }
3730 # Provide some information about the compiler.
3731 echo "$as_me:$LINENO: checking for C compiler version" >&5
3732 ac_compiler=`set X $ac_compile; echo $2`
3733 { (ac_try="$ac_compiler --version >&5"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compiler --version >&5") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }
3743 { (ac_try="$ac_compiler -v >&5"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compiler -v >&5") 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }
3753 { (ac_try="$ac_compiler -V >&5"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_compiler -V >&5") 2>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }
3764 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3802 { (case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_try") 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_try") 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3835 GCC=`test $ac_compiler_gnu = yes && echo yes`
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3840 if test "${ac_cv_prog_cc_g+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_save_c_werror_flag=$ac_c_werror_flag
3844 ac_c_werror_flag=yes
3847 cat >conftest.$ac_ext <<_ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3917 rm -f conftest.$ac_objext
3918 if { (ac_try="$ac_compile"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_compile") 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3932 { (case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_try") 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3958 cat >conftest.$ac_ext <<_ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3973 rm -f conftest.$ac_objext
3974 if { (ac_try="$ac_compile"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_compile") 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_try") 2>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_try") 2>&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4035 if test "$GCC" = yes; then
4041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 ac_cv_prog_cc_c89=no
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4072 s = g (p, va_arg (v,int));
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_prog_cc_c89=$ac_arg
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4151 rm -f core conftest.err conftest.$ac_objext
4152 test "x$ac_cv_prog_cc_c89" != "xno" && break
4154 rm -f conftest.$ac_ext
4159 case "x$ac_cv_prog_cc_c89" in
4161 { echo "$as_me:$LINENO: result: none needed" >&5
4162 echo "${ECHO_T}none needed" >&6; } ;;
4164 { echo "$as_me:$LINENO: result: unsupported" >&5
4165 echo "${ECHO_T}unsupported" >&6; } ;;
4167 CC="$CC $ac_cv_prog_cc_c89"
4168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 # Find the correct PATH separator. Usually this is `:', but
4180 # DJGPP uses `;' like DOS.
4181 if test "X${PATH_SEPARATOR+set}" != Xset; then
4182 UNAME=${UNAME-`uname 2>/dev/null`}
4184 *-DOS) lt_cv_sys_path_separator=';' ;;
4185 *) lt_cv_sys_path_separator=':' ;;
4187 PATH_SEPARATOR=$lt_cv_sys_path_separator
4191 # Check whether --with-gnu-ld was given.
4192 if test "${with_gnu_ld+set}" = set; then
4193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4199 if test "$GCC" = yes; then
4200 # Check if gcc -print-prog-name=ld gives a path.
4201 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4205 # gcc leaves a trailing carriage return which upsets mingw
4206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4211 # Accept absolute paths.
4212 [\\/]* | [A-Za-z]:[\\/]*)
4213 re_direlt='/[^/][^/]*/\.\./'
4214 # Canonicalize the path of ld
4215 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4216 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4217 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4219 test -z "$LD" && LD="$ac_prog"
4222 # If it fails, then pretend we aren't using GCC.
4226 # If it is relative, then search for the first ld in PATH.
4230 elif test "$with_gnu_ld" = yes; then
4231 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4234 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4237 if test "${lt_cv_path_LD+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -z "$LD"; then
4241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4242 for ac_dir in $PATH; do
4243 test -z "$ac_dir" && ac_dir=.
4244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4245 lt_cv_path_LD="$ac_dir/$ac_prog"
4246 # Check to see if the program is GNU ld. I'd rather use --version,
4247 # but apparently some GNU ld's only accept -v.
4248 # Break only if it was the GNU/non-GNU ld that we prefer.
4249 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4250 test "$with_gnu_ld" != no && break
4252 test "$with_gnu_ld" != yes && break
4258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4263 if test -n "$LD"; then
4264 { echo "$as_me:$LINENO: result: $LD" >&5
4265 echo "${ECHO_T}$LD" >&6; }
4267 { echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6; }
4270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4272 { (exit 1); exit 1; }; }
4273 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4280 lt_cv_prog_gnu_ld=yes
4282 lt_cv_prog_gnu_ld=no
4285 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4287 with_gnu_ld=$lt_cv_prog_gnu_ld
4290 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4292 if test "${lt_cv_ld_reload_flag+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 lt_cv_ld_reload_flag='-r'
4297 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4299 reload_flag=$lt_cv_ld_reload_flag
4300 test -n "$reload_flag" && reload_flag=" $reload_flag"
4302 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4304 if test "${lt_cv_path_NM+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$NM"; then
4308 # Let the user override the test.
4311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4312 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4313 test -z "$ac_dir" && ac_dir=.
4314 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4315 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4316 # Check to see if the nm accepts a BSD-compat flag.
4317 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4318 # nm: unknown option "B" ignored
4319 # Tru64's nm complains that /dev/null is an invalid object file
4320 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4321 lt_cv_path_NM="$tmp_nm -B"
4323 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4324 lt_cv_path_NM="$tmp_nm -p"
4327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4328 continue # so that we can try to find one that supports BSD flags
4333 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4338 { echo "$as_me:$LINENO: result: $NM" >&5
4339 echo "${ECHO_T}$NM" >&6; }
4341 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4344 if test "$LN_S" = "ln -s"; then
4345 { echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6; }
4348 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4349 echo "${ECHO_T}no, using $LN_S" >&6; }
4352 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4353 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4354 if test "${lt_cv_deplibs_check_method+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 lt_cv_file_magic_cmd='$MAGIC_CMD'
4358 lt_cv_file_magic_test_file=
4359 lt_cv_deplibs_check_method='unknown'
4360 # Need to set the preceding variable on all platforms that support
4361 # interlibrary dependencies.
4362 # 'none' -- dependencies not supported.
4363 # `unknown' -- same as none, but documents that we really don't know.
4364 # 'pass_all' -- all dependencies passed with no checks.
4365 # 'test_compile' -- check by making test program.
4366 # 'file_magic [[regex]]' -- check by looking for files in library path
4367 # which responds to the $file_magic_cmd with a given egrep regex.
4368 # If you have `file' or equivalent on your system and you're not sure
4369 # whether `pass_all' will *always* work, you probably want this one.
4373 lt_cv_deplibs_check_method=pass_all
4377 lt_cv_deplibs_check_method=pass_all
4381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4382 lt_cv_file_magic_cmd='/usr/bin/file -L'
4383 lt_cv_file_magic_test_file=/shlib/libc.so
4386 cygwin* | mingw* | pw32*)
4387 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4388 lt_cv_file_magic_cmd='$OBJDUMP -f'
4391 darwin* | rhapsody*)
4392 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4393 lt_cv_file_magic_cmd='/usr/bin/file -L'
4395 rhapsody* | darwin1.[012])
4396 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4399 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4405 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4408 # Not sure whether the presence of OpenBSD here was a mistake.
4409 # Let's accept both of them until this is cleared up.
4410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4411 lt_cv_file_magic_cmd=/usr/bin/file
4412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4416 lt_cv_deplibs_check_method=pass_all
4421 lt_cv_deplibs_check_method=pass_all
4425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4426 lt_cv_file_magic_cmd=/usr/bin/file
4427 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4430 irix5* | irix6* | nonstopux*)
4432 irix5* | nonstopux*)
4433 # this will be overridden with pass_all, but let us keep it just in case
4434 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4438 *-32|*"-32 ") libmagic=32-bit;;
4439 *-n32|*"-n32 ") libmagic=N32;;
4440 *-64|*"-64 ") libmagic=64-bit;;
4441 *) libmagic=never-match;;
4443 # this will be overridden with pass_all, but let us keep it just in case
4444 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4447 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4448 lt_cv_deplibs_check_method=pass_all
4451 # This must be Linux ELF.
4454 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4455 lt_cv_deplibs_check_method=pass_all ;;
4457 # glibc up to 2.1.1 does not perform some relocations on ARM
4458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4460 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4464 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4465 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4467 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4473 lt_cv_file_magic_cmd=/usr/bin/file
4474 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4478 lt_cv_file_magic_cmd=/usr/bin/file
4479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4483 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4487 osf3* | osf4* | osf5*)
4488 # this will be overridden with pass_all, but let us keep it just in case
4489 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4490 lt_cv_file_magic_test_file=/shlib/libc.so
4491 lt_cv_deplibs_check_method=pass_all
4495 lt_cv_deplibs_check_method=pass_all
4499 lt_cv_deplibs_check_method=pass_all
4500 lt_cv_file_magic_test_file=/lib/libc.so
4503 sysv5uw[78]* | sysv4*uw2*)
4504 lt_cv_deplibs_check_method=pass_all
4507 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4508 case $host_vendor in
4510 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]'
4511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4514 lt_cv_deplibs_check_method=pass_all
4517 lt_cv_file_magic_cmd='/bin/file'
4518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4521 lt_cv_file_magic_cmd='/bin/file'
4522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4523 lt_cv_file_magic_test_file=/lib/libc.so
4530 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4531 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4532 file_magic_cmd=$lt_cv_file_magic_cmd
4533 deplibs_check_method=$lt_cv_deplibs_check_method
4542 # Check for command to grab the raw symbol name followed by C symbol from nm.
4543 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4544 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
4545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 # These are sane defaults that work on at least a few old systems.
4550 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4552 # Character class describing NM global symbol codes.
4553 symcode='[BCDEGRST]'
4555 # Regexp to match symbols that can be accessed directly from C.
4556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4558 # Transform the above into a raw symbol and a C symbol.
4559 symxfrm='\1 \2\3 \3'
4561 # Transform an extracted symbol line into a proper C declaration
4562 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4564 # Transform an extracted symbol line into symbol name and symbol address
4565 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4567 # Define system-specific variables.
4572 cygwin* | mingw* | pw32*)
4573 symcode='[ABCDGISTW]'
4575 hpux*) # Its linker distinguishes data from code symbols
4576 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4577 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4580 symcode='[BCDEGRST]'
4590 # Handle CRLF in mingw tool chain
4594 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4598 # If we're using GNU nm, then use its standard symbol codes.
4599 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4600 symcode='[ABCDGISTW]'
4603 # Try without a prefix undercore, then with it.
4604 for ac_symprfx in "" "_"; do
4606 # Write the raw and C identifiers.
4607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4609 # Check to see that the pipe works correctly.
4612 cat > conftest.$ac_ext <<EOF
4617 void nm_test_func(){}
4621 int main(){nm_test_var='a';nm_test_func();return(0);}
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625 (eval $ac_compile) 2>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; then
4629 # Now try to grab the symbols.
4631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && test -s "$nlist"; then
4636 # Try sorting and uniquifying the output.
4637 if sort "$nlist" | uniq > "$nlist"T; then
4638 mv -f "$nlist"T "$nlist"
4643 # Make sure that we snagged all the symbols we need.
4644 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4645 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4646 cat <<EOF > conftest.$ac_ext
4652 # Now generate the symbol file.
4653 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4655 cat <<EOF >> conftest.$ac_ext
4656 #if defined (__STDC__) && __STDC__
4657 # define lt_ptr void *
4659 # define lt_ptr char *
4663 /* The mapping between symbol names and symbols. */
4668 lt_preloaded_symbols[] =
4671 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4672 cat <<\EOF >> conftest.$ac_ext
4680 # Now try linking the two files.
4681 mv conftest.$ac_objext conftstm.$ac_objext
4683 save_CFLAGS="$CFLAGS"
4684 LIBS="conftstm.$ac_objext"
4685 CFLAGS="$CFLAGS$no_builtin_flag"
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && test -s conftest; then
4694 CFLAGS="$save_CFLAGS"
4696 echo "cannot find nm_test_func in $nlist" >&5
4699 echo "cannot find nm_test_var in $nlist" >&5
4702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4705 echo "$progname: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 rm -f conftest* conftst*
4710 # Do not use the global_symbol_pipe unless it works.
4711 if test "$pipe_works" = yes; then
4714 lt_cv_sys_global_symbol_pipe=
4720 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4722 global_symbol_to_cdecl=
4723 global_symbol_to_c_name_address=
4725 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4726 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4728 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4730 { echo "$as_me:$LINENO: result: failed" >&5
4731 echo "${ECHO_T}failed" >&6; }
4733 { echo "$as_me:$LINENO: result: ok" >&5
4734 echo "${ECHO_T}ok" >&6; }
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4744 # On Suns, sometimes $CPP names a directory.
4745 if test -n "$CPP" && test -d "$CPP"; then
4748 if test -z "$CPP"; then
4749 if test "${ac_cv_prog_CPP+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 # Double quotes because CPP needs to be expanded
4753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756 for ac_c_preproc_warn_flag in '' yes
4758 # Use a header file that comes with gcc, so configuring glibc
4759 # with a fresh cross-compiler works.
4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 # <limits.h> exists even on freestanding compilers.
4762 # On the NeXT, cc -E runs the code through the compiler's parser,
4763 # not just through cpp. "Syntax error" is here to catch this case.
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 # include <limits.h>
4773 # include <assert.h>
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null; then
4790 if test -s conftest.err; then
4791 ac_cpp_err=$ac_c_preproc_warn_flag
4792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4799 if test -z "$ac_cpp_err"; then
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 # Broken: fails on valid input.
4809 rm -f conftest.err conftest.$ac_ext
4811 # OK, works on sane cases. Now check whether nonexistent headers
4812 # can be detected and how.
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <ac_nonexistent.h>
4821 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null; then
4834 if test -s conftest.err; then
4835 ac_cpp_err=$ac_c_preproc_warn_flag
4836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4843 if test -z "$ac_cpp_err"; then
4844 # Broken: success on invalid input.
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Passes both tests.
4855 rm -f conftest.err conftest.$ac_ext
4858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859 rm -f conftest.err conftest.$ac_ext
4860 if $ac_preproc_ok; then
4872 { echo "$as_me:$LINENO: result: $CPP" >&5
4873 echo "${ECHO_T}$CPP" >&6; }
4875 for ac_c_preproc_warn_flag in '' yes
4877 # Use a header file that comes with gcc, so configuring glibc
4878 # with a fresh cross-compiler works.
4879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880 # <limits.h> exists even on freestanding compilers.
4881 # On the NeXT, cc -E runs the code through the compiler's parser,
4882 # not just through cpp. "Syntax error" is here to catch this case.
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 # include <limits.h>
4892 # include <assert.h>
4896 if { (ac_try="$ac_cpp conftest.$ac_ext"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } >/dev/null; then
4909 if test -s conftest.err; then
4910 ac_cpp_err=$ac_c_preproc_warn_flag
4911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4918 if test -z "$ac_cpp_err"; then
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 # Broken: fails on valid input.
4928 rm -f conftest.err conftest.$ac_ext
4930 # OK, works on sane cases. Now check whether nonexistent headers
4931 # can be detected and how.
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_c_preproc_warn_flag
4955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4962 if test -z "$ac_cpp_err"; then
4963 # Broken: success on invalid input.
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 # Passes both tests.
4974 rm -f conftest.err conftest.$ac_ext
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then
4982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&5
4984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." >&2;}
4986 { (exit 1); exit 1; }; }
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4997 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 # Extract the first word of "grep ggrep" to use in msg output
5002 if test -z "$GREP"; then
5003 set dummy grep ggrep; ac_prog_name=$2
5004 if test "${ac_cv_path_GREP+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_path_GREP_found=false
5008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 test -z "$as_dir" && as_dir=.
5014 for ac_prog in grep ggrep; do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5017 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5018 # Check for GNU ac_path_GREP and select it if it is found.
5019 # Check for GNU $ac_path_GREP
5020 case `"$ac_path_GREP" --version 2>&1` in
5022 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5025 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 echo 'GREP' >> "conftest.nl"
5032 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034 ac_count=`expr $ac_count + 1`
5035 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_GREP="$ac_path_GREP"
5038 ac_path_GREP_max=$ac_count
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047 $ac_path_GREP_found && break 3
5057 GREP="$ac_cv_path_GREP"
5058 if test -z "$GREP"; then
5059 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5061 { (exit 1); exit 1; }; }
5065 ac_cv_path_GREP=$GREP
5070 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5071 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5072 GREP="$ac_cv_path_GREP"
5075 { echo "$as_me:$LINENO: checking for egrep" >&5
5076 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5077 if test "${ac_cv_path_EGREP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5081 then ac_cv_path_EGREP="$GREP -E"
5083 # Extract the first word of "egrep" to use in msg output
5084 if test -z "$EGREP"; then
5085 set dummy egrep; ac_prog_name=$2
5086 if test "${ac_cv_path_EGREP+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ac_path_EGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in egrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5100 # Check for GNU ac_path_EGREP and select it if it is found.
5101 # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 echo 'EGREP' >> "conftest.nl"
5114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 ac_count=`expr $ac_count + 1`
5117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_EGREP="$ac_path_EGREP"
5120 ac_path_EGREP_max=$ac_count
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 $ac_path_EGREP_found && break 3
5139 EGREP="$ac_cv_path_EGREP"
5140 if test -z "$EGREP"; then
5141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5142 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5143 { (exit 1); exit 1; }; }
5147 ac_cv_path_EGREP=$EGREP
5153 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5154 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5155 EGREP="$ac_cv_path_EGREP"
5158 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5160 if test "${ac_cv_header_stdc+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5182 rm -f conftest.$ac_objext
5183 if { (ac_try="$ac_compile"
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_compile") 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197 { (case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_try") 2>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_header_stdc=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_header_stdc=no
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 if test $ac_cv_header_stdc = yes; then
5227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238 $EGREP "memchr" >/dev/null 2>&1; then
5241 ac_cv_header_stdc=no
5247 if test $ac_cv_header_stdc = yes; then
5248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5249 cat >conftest.$ac_ext <<_ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "free" >/dev/null 2>&1; then
5262 ac_cv_header_stdc=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5270 if test "$cross_compiling" = yes; then
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5281 #if ((' ' & 0x0FF) == 0x020)
5282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5285 # define ISLOWER(c) \
5286 (('a' <= (c) && (c) <= 'i') \
5287 || ('j' <= (c) && (c) <= 'r') \
5288 || ('s' <= (c) && (c) <= 'z'))
5289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5297 for (i = 0; i < 256; i++)
5298 if (XOR (islower (i), ISLOWER (i))
5299 || toupper (i) != TOUPPER (i))
5304 rm -f conftest$ac_exeext
5305 if { (ac_try="$ac_link"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_link") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5326 echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_cv_header_stdc=no
5333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5339 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5340 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5341 if test $ac_cv_header_stdc = yes; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define STDC_HEADERS 1
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5360 inttypes.h stdint.h unistd.h
5362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 $ac_includes_default
5376 #include <$ac_header>
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_compile") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393 { (case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_try") 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 eval "$as_ac_Header=yes"
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 eval "$as_ac_Header=no"
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_res=`eval echo '${'$as_ac_Header'}'`
5423 { echo "$as_me:$LINENO: result: $ac_res" >&5
5424 echo "${ECHO_T}$ac_res" >&6; }
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 for ac_header in dlfcn.h
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5449 # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5476 { (case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_try") 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_header_compiler=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_compiler=no
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6; }
5507 # Is the header present?
5508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <$ac_header>
5518 if { (ac_try="$ac_cpp conftest.$ac_ext"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } >/dev/null; then
5531 if test -s conftest.err; then
5532 ac_cpp_err=$ac_c_preproc_warn_flag
5533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5540 if test -z "$ac_cpp_err"; then
5541 ac_header_preproc=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5546 ac_header_preproc=no
5549 rm -f conftest.err conftest.$ac_ext
5550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5551 echo "${ECHO_T}$ac_header_preproc" >&6; }
5553 # So? What about this header?
5554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5560 ac_header_preproc=yes
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 eval "$as_ac_Header=\$ac_header_preproc"
5585 ac_res=`eval echo '${'$as_ac_Header'}'`
5586 { echo "$as_me:$LINENO: result: $ac_res" >&5
5587 echo "${ECHO_T}$ac_res" >&6; }
5590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5591 cat >>confdefs.h <<_ACEOF
5592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 # Only perform the check for file, if the check method requires it
5604 case $deplibs_check_method in
5606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5607 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5608 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5620 ac_save_MAGIC_CMD="$MAGIC_CMD"
5621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5622 ac_dummy="/usr/bin:$PATH"
5623 for ac_dir in $ac_dummy; do
5624 test -z "$ac_dir" && ac_dir=.
5625 if test -f $ac_dir/${ac_tool_prefix}file; then
5626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5627 if test -n "$file_magic_test_file"; then
5628 case $deplibs_check_method in
5630 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5633 egrep "$file_magic_regex" > /dev/null; then
5638 *** Warning: the command libtool uses to detect shared libraries,
5639 *** $file_magic_cmd, produces output that libtool cannot recognize.
5640 *** The result is that libtool may fail to recognize shared libraries
5641 *** as such. This will affect the creation of libtool libraries that
5642 *** depend on shared libraries, but programs linked with such libtool
5643 *** libraries will work regardless of this problem. Nevertheless, you
5644 *** may want to report the problem to your system manager and/or to
5645 *** bug-libtool@gnu.org
5655 MAGIC_CMD="$ac_save_MAGIC_CMD"
5660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5661 if test -n "$MAGIC_CMD"; then
5662 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5663 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5665 { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5669 if test -z "$lt_cv_path_MAGIC_CMD"; then
5670 if test -n "$ac_tool_prefix"; then
5671 { echo "$as_me:$LINENO: checking for file" >&5
5672 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5684 ac_save_MAGIC_CMD="$MAGIC_CMD"
5685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5686 ac_dummy="/usr/bin:$PATH"
5687 for ac_dir in $ac_dummy; do
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f $ac_dir/file; then
5690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5691 if test -n "$file_magic_test_file"; then
5692 case $deplibs_check_method in
5694 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5697 egrep "$file_magic_regex" > /dev/null; then
5702 *** Warning: the command libtool uses to detect shared libraries,
5703 *** $file_magic_cmd, produces output that libtool cannot recognize.
5704 *** The result is that libtool may fail to recognize shared libraries
5705 *** as such. This will affect the creation of libtool libraries that
5706 *** depend on shared libraries, but programs linked with such libtool
5707 *** libraries will work regardless of this problem. Nevertheless, you
5708 *** may want to report the problem to your system manager and/or to
5709 *** bug-libtool@gnu.org
5719 MAGIC_CMD="$ac_save_MAGIC_CMD"
5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725 if test -n "$MAGIC_CMD"; then
5726 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5727 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_RANLIB+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$RANLIB"; then
5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 RANLIB=$ac_cv_prog_RANLIB
5771 if test -n "$RANLIB"; then
5772 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5773 echo "${ECHO_T}$RANLIB" >&6; }
5775 { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5781 if test -z "$ac_cv_prog_RANLIB"; then
5782 ac_ct_RANLIB=$RANLIB
5783 # Extract the first word of "ranlib", so it can be a program name with args.
5784 set dummy ranlib; ac_word=$2
5785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 if test -n "$ac_ct_RANLIB"; then
5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_prog_ac_ct_RANLIB="ranlib"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5811 if test -n "$ac_ct_RANLIB"; then
5812 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5813 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5815 { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5819 if test "x$ac_ct_RANLIB" = x; then
5822 case $cross_compiling:$ac_tool_warned in
5824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5825 whose name does not start with the host triplet. If you think this
5826 configuration is useful to you, please write to autoconf@gnu.org." >&5
5827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5828 whose name does not start with the host triplet. If you think this
5829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5830 ac_tool_warned=yes ;;
5832 RANLIB=$ac_ct_RANLIB
5835 RANLIB="$ac_cv_prog_RANLIB"
5838 if test -n "$ac_tool_prefix"; then
5839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5840 set dummy ${ac_tool_prefix}strip; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_prog_STRIP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 if test -n "$STRIP"; then
5847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 STRIP=$ac_cv_prog_STRIP
5867 if test -n "$STRIP"; then
5868 { echo "$as_me:$LINENO: result: $STRIP" >&5
5869 echo "${ECHO_T}$STRIP" >&6; }
5871 { echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6; }
5877 if test -z "$ac_cv_prog_STRIP"; then
5879 # Extract the first word of "strip", so it can be a program name with args.
5880 set dummy strip; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 if test -n "$ac_ct_STRIP"; then
5887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_ac_ct_STRIP="strip"
5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5907 if test -n "$ac_ct_STRIP"; then
5908 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5909 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5911 { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5915 if test "x$ac_ct_STRIP" = x; then
5918 case $cross_compiling:$ac_tool_warned in
5920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5921 whose name does not start with the host triplet. If you think this
5922 configuration is useful to you, please write to autoconf@gnu.org." >&5
5923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5924 whose name does not start with the host triplet. If you think this
5925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5926 ac_tool_warned=yes ;;
5931 STRIP="$ac_cv_prog_STRIP"
5938 # Check whether --enable-libtool-lock was given.
5939 if test "${enable_libtool_lock+set}" = set; then
5940 enableval=$enable_libtool_lock;
5943 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5945 # Some flags need to be propagated to the compiler or linker for good
5949 # Find out which ABI we are using.
5950 echo '#line 5950 "configure"' > conftest.$ac_ext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; then
5956 case `/usr/bin/file conftest.$ac_objext` in
5972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5973 SAVE_CFLAGS="$CFLAGS"
5974 CFLAGS="$CFLAGS -belf"
5975 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5977 if test "${lt_cv_cc_needs_belf+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017 { (case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_try") 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_try") 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 lt_cv_cc_needs_belf=yes
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 lt_cv_cc_needs_belf=no
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6054 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6055 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6056 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6057 CFLAGS="$SAVE_CFLAGS"
6064 # Sed substitution that helps us do robust quoting. It backslashifies
6065 # metacharacters that are still active within double-quoted strings.
6066 Xsed='sed -e s/^X//'
6067 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6069 # Same as above, but do not quote variable references.
6070 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6072 # Sed substitution to delay expansion of an escaped shell variable in a
6073 # double_quote_subst'ed string.
6074 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6080 default_ofile=libtool
6081 can_build_shared=yes
6083 # All known linkers require a `.a' archive for static linking (except M$VC,
6084 # which needs '.lib').
6086 ltmain="$ac_aux_dir/ltmain.sh"
6087 ofile="$default_ofile"
6088 with_gnu_ld="$lt_cv_prog_gnu_ld"
6089 need_locks="$enable_libtool_lock"
6092 old_CFLAGS="$CFLAGS"
6094 # Set sane defaults for various variables
6095 test -z "$AR" && AR=ar
6096 test -z "$AR_FLAGS" && AR_FLAGS=cru
6097 test -z "$AS" && AS=as
6098 test -z "$CC" && CC=cc
6099 test -z "$DLLTOOL" && DLLTOOL=dlltool
6100 test -z "$LD" && LD=ld
6101 test -z "$LN_S" && LN_S="ln -s"
6102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6103 test -z "$NM" && NM=nm
6104 test -z "$OBJDUMP" && OBJDUMP=objdump
6105 test -z "$RANLIB" && RANLIB=:
6106 test -z "$STRIP" && STRIP=:
6107 test -z "$ac_objext" && ac_objext=o
6109 if test x"$host" != x"$build"; then
6110 ac_tool_prefix=${host_alias}-
6115 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6118 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6123 # AIX sometimes has problems with the GCC collect2 program. For some
6124 # reason, if we set the COLLECT_NAMES environment variable, the problems
6125 # vanish in a puff of smoke.
6126 if test "X${COLLECT_NAMES+set}" != Xset; then
6128 export COLLECT_NAMES
6133 # Determine commands to create old-style static archives.
6134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6135 old_postinstall_cmds='chmod 644 $oldlib'
6136 old_postuninstall_cmds=
6138 if test -n "$RANLIB"; then
6141 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6144 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6150 # Allow CC to be a program name with arguments.
6154 ## FIXME: this should be a separate macro
6156 { echo "$as_me:$LINENO: checking for objdir" >&5
6157 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6158 rm -f .libs 2>/dev/null
6159 mkdir .libs 2>/dev/null
6160 if test -d .libs; then
6163 # MS-DOS does not allow filenames that begin with a dot.
6166 rmdir .libs 2>/dev/null
6167 { echo "$as_me:$LINENO: result: $objdir" >&5
6168 echo "${ECHO_T}$objdir" >&6; }
6173 ## FIXME: this should be a separate macro
6176 # Check whether --with-pic was given.
6177 if test "${with_pic+set}" = set; then
6178 withval=$with_pic; pic_mode="$withval"
6183 test -z "$pic_mode" && pic_mode=default
6185 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
6186 # in isolation, and that seeing it set (from the cache) indicates that
6187 # the associated values are set (in the cache) correctly too.
6188 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6189 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6190 if test "${lt_cv_prog_cc_pic+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 lt_cv_prog_cc_shlib=
6196 lt_cv_prog_cc_static=
6197 lt_cv_prog_cc_no_builtin=
6198 lt_cv_prog_cc_can_build_shared=$can_build_shared
6200 if test "$GCC" = yes; then
6201 lt_cv_prog_cc_wl='-Wl,'
6202 lt_cv_prog_cc_static='-static'
6206 # Below there is a dirty hack to force normal static linking with -ldl
6207 # The problem is because libdl dynamically linked with both libc and
6208 # libC (AIX C++ library), which obviously doesn't included in libraries
6209 # list by gcc. This cause undefined symbols with -static flags.
6210 # This hack allows C programs to be linked with "-static -ldl", but
6211 # not sure about C++ programs.
6212 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6215 # FIXME: we need at least 68020 code to build shared libraries, but
6216 # adding the `-m68020' flag to GCC prevents building anything better,
6218 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6221 # PIC is the default for these OSes.
6223 darwin* | rhapsody*)
6224 # PIC is the default on this platform
6225 # Common symbols not allowed in MH_DYLIB files
6226 lt_cv_prog_cc_pic='-fno-common'
6228 cygwin* | mingw* | pw32* | os2*)
6229 # This hack is so that the source file can tell whether it is being
6230 # built for inclusion in a dll (and should export symbols for example).
6231 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6234 if test -d /usr/nec; then
6235 lt_cv_prog_cc_pic=-Kconform_pic
6239 lt_cv_prog_cc_pic='-fPIC'
6243 # PORTME Check for PIC flags for the system compiler.
6245 aix3* | aix4* | aix5*)
6246 lt_cv_prog_cc_wl='-Wl,'
6247 # All AIX code is PIC.
6248 if test "$host_cpu" = ia64; then
6249 # AIX 5 now supports IA64 processor
6250 lt_cv_prog_cc_static='-Bstatic'
6252 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6256 hpux9* | hpux10* | hpux11*)
6257 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6258 lt_cv_prog_cc_wl='-Wl,'
6259 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6260 lt_cv_prog_cc_pic='+Z'
6263 irix5* | irix6* | nonstopux*)
6264 lt_cv_prog_cc_wl='-Wl,'
6265 lt_cv_prog_cc_static='-non_shared'
6266 # PIC (with -KPIC) is the default.
6269 cygwin* | mingw* | pw32* | os2*)
6270 # This hack is so that the source file can tell whether it is being
6271 # built for inclusion in a dll (and should export symbols for example).
6272 lt_cv_prog_cc_pic='-DDLL_EXPORT'
6276 lt_cv_prog_cc_pic='-KPIC'
6277 lt_cv_prog_cc_static='-Bstatic'
6280 osf3* | osf4* | osf5*)
6281 # All OSF/1 code is PIC.
6282 lt_cv_prog_cc_wl='-Wl,'
6283 lt_cv_prog_cc_static='-non_shared'
6287 lt_cv_prog_cc_pic='-Kpic'
6288 lt_cv_prog_cc_static='-dn'
6289 lt_cv_prog_cc_shlib='-belf'
6293 lt_cv_prog_cc_pic='-KPIC'
6294 lt_cv_prog_cc_static='-Bstatic'
6295 lt_cv_prog_cc_wl='-Wl,'
6299 lt_cv_prog_cc_pic='-PIC'
6300 lt_cv_prog_cc_static='-Bstatic'
6301 lt_cv_prog_cc_wl='-Qoption ld '
6304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6305 lt_cv_prog_cc_pic='-KPIC'
6306 lt_cv_prog_cc_static='-Bstatic'
6307 if test "x$host_vendor" = xsni; then
6308 lt_cv_prog_cc_wl='-LD'
6310 lt_cv_prog_cc_wl='-Wl,'
6315 lt_cv_prog_cc_pic='-pic'
6316 lt_cv_prog_cc_static='-Bstatic'
6320 if test -d /usr/nec ;then
6321 lt_cv_prog_cc_pic='-Kconform_pic'
6322 lt_cv_prog_cc_static='-Bstatic'
6327 lt_cv_prog_cc_can_build_shared=no
6334 if test -z "$lt_cv_prog_cc_pic"; then
6335 { echo "$as_me:$LINENO: result: none" >&5
6336 echo "${ECHO_T}none" >&6; }
6338 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6339 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
6341 # Check to make sure the pic_flag actually works.
6342 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
6344 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 save_CFLAGS="$CFLAGS"
6348 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; } &&
6388 { ac_try='test -s conftest.$ac_objext'
6389 { (case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_try") 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6399 hpux9* | hpux10* | hpux11*)
6400 # On HP-UX, both CC and GCC only warn that PIC is supported... then
6401 # they create non-PIC objects. So, if there were any warnings, we
6402 # assume that PIC is not supported.
6403 if test -s conftest.err; then
6404 lt_cv_prog_cc_pic_works=no
6406 lt_cv_prog_cc_pic_works=yes
6410 lt_cv_prog_cc_pic_works=yes
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 lt_cv_prog_cc_pic_works=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 CFLAGS="$save_CFLAGS"
6428 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6430 lt_cv_prog_cc_can_build_shared=no
6432 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6435 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6436 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
6441 # Check for any special shared library compilation flags.
6442 if test -n "$lt_cv_prog_cc_shlib"; then
6443 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6444 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6445 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
6447 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6448 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6449 lt_cv_prog_cc_can_build_shared=no
6453 ## FIXME: this should be a separate macro
6455 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6456 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
6457 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 lt_cv_prog_cc_static_works=no
6461 save_LDFLAGS="$LDFLAGS"
6462 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (ac_try="$ac_link"
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_link") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6493 { (case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_try") 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 lt_cv_prog_cc_static_works=yes
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 LDFLAGS="$save_LDFLAGS"
6527 # Belt *and* braces to stop my trousers falling down:
6528 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6529 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6530 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
6532 pic_flag="$lt_cv_prog_cc_pic"
6533 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6534 wl="$lt_cv_prog_cc_wl"
6535 link_static_flag="$lt_cv_prog_cc_static"
6536 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6537 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6542 ## FIXME: this should be a separate macro
6544 # Check to see if options -o and -c are simultaneously supported by compiler
6545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6547 if test "${lt_cv_compiler_c_o+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 $rm -r conftest 2>/dev/null
6554 echo "int some_variable = 0;" > conftest.$ac_ext
6556 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6557 # that will create temporary files in the current directory regardless of
6558 # the output directory. Thus, making CWD read-only will cause this test
6559 # to fail, enabling locking or at least warning the user not to do parallel
6562 save_CFLAGS="$CFLAGS"
6563 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6565 if { (eval echo configure:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6566 # The compiler can only warn and ignore the option if not recognized
6567 # So say no if there are warnings
6568 if test -s out/conftest.err; then
6569 lt_cv_compiler_c_o=no
6571 lt_cv_compiler_c_o=yes
6574 # Append any errors to the config.log.
6575 cat out/conftest.err 1>&5
6576 lt_cv_compiler_c_o=no
6578 CFLAGS="$save_CFLAGS"
6584 $rm -r conftest 2>/dev/null
6588 compiler_c_o=$lt_cv_compiler_c_o
6589 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6590 echo "${ECHO_T}$compiler_c_o" >&6; }
6592 if test x"$compiler_c_o" = x"yes"; then
6593 # Check to see if we can write to a .lo
6594 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6595 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
6596 if test "${lt_cv_compiler_o_lo+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 lt_cv_compiler_o_lo=no
6601 save_CFLAGS="$CFLAGS"
6602 CFLAGS="$CFLAGS -c -o conftest.lo"
6603 save_objext="$ac_objext"
6605 cat >conftest.$ac_ext <<_ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6615 int some_variable = 0;
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635 { (case "(($ac_try" in
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_try") 2>&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_try") 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 # The compiler can only warn and ignore the option if not recognized
6655 # So say no if there are warnings
6656 if test -s conftest.err; then
6657 lt_cv_compiler_o_lo=no
6659 lt_cv_compiler_o_lo=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 ac_objext="$save_objext"
6671 CFLAGS="$save_CFLAGS"
6675 compiler_o_lo=$lt_cv_compiler_o_lo
6676 { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6677 echo "${ECHO_T}$compiler_o_lo" >&6; }
6684 ## FIXME: this should be a separate macro
6686 # Check to see if we can do hard links to lock some files if needed
6687 hard_links="nottested"
6688 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6689 # do not overwrite the value of need_locks provided by the user
6690 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6691 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6696 ln conftest.a conftest.b 2>&5 || hard_links=no
6697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6698 { echo "$as_me:$LINENO: result: $hard_links" >&5
6699 echo "${ECHO_T}$hard_links" >&6; }
6700 if test "$hard_links" = no; then
6701 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6702 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6711 ## FIXME: this should be a separate macro
6713 if test "$GCC" = yes; then
6714 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6715 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6716 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6717 echo "int some_variable = 0;" > conftest.$ac_ext
6718 save_CFLAGS="$CFLAGS"
6719 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6720 compiler_rtti_exceptions=no
6721 cat >conftest.$ac_ext <<_ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6731 int some_variable = 0;
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6751 { (case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_try") 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_try") 2>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 # The compiler can only warn and ignore the option if not recognized
6771 # So say no if there are warnings
6772 if test -s conftest.err; then
6773 compiler_rtti_exceptions=no
6775 compiler_rtti_exceptions=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 CFLAGS="$save_CFLAGS"
6787 { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6788 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
6790 if test "$compiler_rtti_exceptions" = "yes"; then
6791 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6793 no_builtin_flag=' -fno-builtin'
6799 ## FIXME: this should be a separate macro
6801 # See if the linker supports building shared libraries.
6802 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6803 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6805 allow_undefined_flag=
6807 need_lib_prefix=unknown
6808 need_version=unknown
6809 # when you set need_version to no, make sure it does not cause -set_version
6810 # flags to be left without arguments
6812 archive_expsym_cmds=
6813 old_archive_from_new_cmds=
6814 old_archive_from_expsyms_cmds=
6815 export_dynamic_flag_spec=
6816 whole_archive_flag_spec=
6817 thread_safe_flag_spec=
6818 hardcode_into_libs=no
6819 hardcode_libdir_flag_spec=
6820 hardcode_libdir_separator=
6823 hardcode_shlibpath_var=unsupported
6825 link_all_deplibs=unknown
6826 always_export_symbols=no
6827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6828 # include_expsyms should be a list of space-separated symbols to be *always*
6829 # included in the symbol list
6831 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6834 # as well as any symbol that contains `d'.
6835 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6837 # platforms (ab)use it in PIC code, but their linkers get confused if
6838 # the symbol is explicitly referenced. Since portable code cannot
6839 # rely on this symbol name, it's probably fine to never include it in
6840 # preloaded symbol tables.
6841 extract_expsyms_cmds=
6844 cygwin* | mingw* | pw32*)
6845 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6846 # When not using gcc, we currently assume that we are using
6847 # Microsoft Visual C++.
6848 if test "$GCC" != yes; then
6858 if test "$with_gnu_ld" = yes; then
6859 # If archive_cmds runs LD, not CC, wlarc should be empty
6862 # See if GNU ld supports shared libraries.
6864 aix3* | aix4* | aix5*)
6865 # On AIX, the GNU linker is very broken
6866 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6871 *** to be unable to reliably create shared libraries on AIX.
6872 *** Therefore, libtool is disabling shared libraries support. If you
6873 *** really care for shared libraries, you may want to modify your PATH
6874 *** so that a non-GNU linker is found, and then restart.
6880 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)'
6881 hardcode_libdir_flag_spec='-L$libdir'
6882 hardcode_minus_L=yes
6884 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885 # that the semantics of dynamic libraries on AmigaOS, at least up
6886 # to version 4, is to share data among multiple programs linked
6887 # with the same dynamic library. Since this doesn't match the
6888 # behavior of shared libraries on other platforms, we can use
6894 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6895 allow_undefined_flag=unsupported
6896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897 # support --undefined. This deserves some investigation. FIXME
6898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6904 cygwin* | mingw* | pw32*)
6905 # hardcode_libdir_flag_spec is actually meaningless, as there is
6906 # no search path for DLLs.
6907 hardcode_libdir_flag_spec='-L$libdir'
6908 allow_undefined_flag=unsupported
6909 always_export_symbols=yes
6911 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6912 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6913 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6914 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6915 else $CC -o impgen impgen.c ; fi)~
6916 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6918 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6920 # cygwin and mingw dlls have different entry points and sets of symbols
6922 # FIXME: what about values for MSVC?
6923 dll_entry=__cygwin_dll_entry@12
6924 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6928 dll_entry=_DllMainCRTStartup@12
6929 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6933 # mingw and cygwin differ, and it's simplest to just exclude the union
6934 # of the two symbol sets.
6935 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6937 # recent cygwin and mingw systems supply a stub DllMain which the user
6938 # can override, but on older systems we have to supply one (in ltdll.c)
6939 if test "x$lt_cv_need_dllmain" = "xyes"; then
6940 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6941 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6942 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6948 # Extract the symbol export list from an `--export-all' def file,
6949 # then regenerate the def file from the symbol export list, so that
6950 # the compiled dll only exports the symbol export list.
6951 # Be careful not to strip the DATA tag left be newer dlltools.
6952 export_symbols_cmds="$ltdll_cmds"'
6953 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6954 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6956 # If the export-symbols file already is a .def file (1st line
6957 # is EXPORTS), use it as is.
6958 # If DATA tags from a recent dlltool are present, honour them!
6959 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6960 cp $export_symbols $output_objdir/$soname-def;
6962 echo EXPORTS > $output_objdir/$soname-def;
6964 cat $export_symbols | while read symbol; do
6967 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6968 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6970 _lt_hint=`expr 1 + \$_lt_hint`;
6974 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6975 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6976 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6977 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6978 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6986 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6992 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6996 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6997 *** create shared libraries on Solaris systems. Therefore, libtool
6998 *** is disabling shared libraries support. We urge you to upgrade GNU
6999 *** binutils to release 2.9.1 or newer. Another option is to modify
7000 *** your PATH or compiler configuration so that the native linker is
7001 *** used, and then restart.
7004 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7013 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_shlibpath_var=no
7020 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7029 if test "$ld_shlibs" = yes; then
7030 runpath_var=LD_RUN_PATH
7031 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7032 export_dynamic_flag_spec='${wl}--export-dynamic'
7034 cygwin* | mingw* | pw32*)
7035 # dlltool doesn't understand --whole-archive et. al.
7036 whole_archive_flag_spec=
7039 # ancient GNU ld didn't support --whole-archive et. al.
7040 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7043 whole_archive_flag_spec=
7049 # PORTME fill in a description of your system's linker (not GNU ld)
7052 allow_undefined_flag=unsupported
7053 always_export_symbols=yes
7054 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'
7055 # Note: this linker hardcodes the directories in LIBPATH if there
7056 # are no directories specified by -L.
7057 hardcode_minus_L=yes
7058 if test "$GCC" = yes && test -z "$link_static_flag"; then
7059 # Neither direct hardcoding nor static linking is supported with a
7061 hardcode_direct=unsupported
7066 if test "$host_cpu" = ia64; then
7067 # On IA64, the linker does run time linking by default, so we don't
7068 # have to do anything special.
7069 aix_use_runtimelinking=no
7070 exp_sym_flag='-Bexport'
7073 aix_use_runtimelinking=no
7075 # Test if we are trying to use run time linking or normal
7076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7077 # need to do runtime linking.
7078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7079 for ld_flag in $LDFLAGS; do
7080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7081 aix_use_runtimelinking=yes
7087 exp_sym_flag='-bexport'
7088 no_entry_flag='-bnoentry'
7091 # When large executables or shared objects are built, AIX ld can
7092 # have problems creating the table of contents. If linking a library
7093 # or program results in "error TOC overflow" add -mminimal-toc to
7094 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7095 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7099 hardcode_libdir_separator=':'
7100 if test "$GCC" = yes; then
7101 case $host_os in aix4.[012]|aix4.[012].*)
7102 collect2name=`${CC} -print-prog-name=collect2`
7103 if test -f "$collect2name" && \
7104 strings "$collect2name" | grep resolve_lib_name >/dev/null
7106 # We have reworked collect2
7109 # We have old collect2
7110 hardcode_direct=unsupported
7111 # It fails to find uninstalled libraries when the uninstalled
7112 # path is not listed in the libpath. Setting hardcode_minus_L
7113 # to unsupported forces relinking
7114 hardcode_minus_L=yes
7115 hardcode_libdir_flag_spec='-L$libdir'
7116 hardcode_libdir_separator=
7120 shared_flag='-shared'
7123 if test "$host_cpu" = ia64; then
7124 shared_flag='${wl}-G'
7126 if test "$aix_use_runtimelinking" = yes; then
7127 shared_flag='${wl}-G'
7129 shared_flag='${wl}-bM:SRE'
7134 # It seems that -bexpall can do strange things, so it is better to
7135 # generate a list of symbols to export.
7136 always_export_symbols=yes
7137 if test "$aix_use_runtimelinking" = yes; then
7138 # Warning - without using the other runtime loading flags (-brtl),
7139 # -berok will link without error, but may produce a broken library.
7140 allow_undefined_flag='-berok'
7141 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7142 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7144 if test "$host_cpu" = ia64; then
7145 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7146 allow_undefined_flag="-z nodefs"
7147 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7149 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7150 # Warning - without using the other run time loading flags,
7151 # -berok will link without error, but may produce a broken library.
7152 allow_undefined_flag='${wl}-berok'
7153 # This is a bit strange, but is similar to how AIX traditionally builds
7154 # it's shared libraries.
7155 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
7161 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)'
7162 hardcode_libdir_flag_spec='-L$libdir'
7163 hardcode_minus_L=yes
7164 # see comment about different semantics on the GNU ld section
7168 cygwin* | mingw* | pw32*)
7169 # When not using gcc, we currently assume that we are using
7170 # Microsoft Visual C++.
7171 # hardcode_libdir_flag_spec is actually meaningless, as there is
7172 # no search path for DLLs.
7173 hardcode_libdir_flag_spec=' '
7174 allow_undefined_flag=unsupported
7175 # Tell ltmain to make .lib files, not .a files.
7177 # FIXME: Setting linknames here is a bad hack.
7178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7179 # The linker will automatically build a .lib file if we build a DLL.
7180 old_archive_from_new_cmds='true'
7181 # FIXME: Should let the user specify the lib program.
7182 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7183 fix_srcfile_path='`cygpath -w "$srcfile"`'
7186 darwin* | rhapsody*)
7188 rhapsody* | darwin1.[012])
7189 allow_undefined_flag='-undefined suppress'
7192 allow_undefined_flag='-flat_namespace -undefined suppress'
7195 # FIXME: Relying on posixy $() will cause problems for
7196 # cross-compilation, but unfortunately the echo tests do not
7197 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7198 # `"' quotes if we put them in here... so don't!
7199 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
7200 # We need to add '_' to the symbols in $export_symbols first
7201 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7203 hardcode_shlibpath_var=no
7204 whole_archive_flag_spec='-all_load $convenience'
7211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7212 # support. Future versions do this automatically, but an explicit c++rt0.o
7213 # does not break anything, and helps significantly (at the cost of a little
7216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7217 hardcode_libdir_flag_spec='-R$libdir'
7219 hardcode_shlibpath_var=no
7222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7226 hardcode_minus_L=yes
7227 hardcode_shlibpath_var=no
7230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7232 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7233 hardcode_libdir_flag_spec='-R$libdir'
7235 hardcode_shlibpath_var=no
7238 hpux9* | hpux10* | hpux11*)
7240 hpux9*) 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' ;;
7241 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7244 hardcode_libdir_separator=:
7246 hardcode_minus_L=yes # Not in the search PATH, but as the default
7247 # location of the library.
7248 export_dynamic_flag_spec='${wl}-E'
7251 irix5* | irix6* | nonstopux*)
7252 if test "$GCC" = yes; then
7253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7255 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258 hardcode_libdir_separator=:
7259 link_all_deplibs=yes
7263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7266 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7268 hardcode_libdir_flag_spec='-R$libdir'
7270 hardcode_shlibpath_var=no
7274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 hardcode_shlibpath_var=no
7283 hardcode_shlibpath_var=no
7284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7287 export_dynamic_flag_spec='${wl}-E'
7290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_libdir_flag_spec='-R$libdir'
7295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7303 hardcode_libdir_flag_spec='-L$libdir'
7304 hardcode_minus_L=yes
7305 allow_undefined_flag=unsupported
7306 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'
7307 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7311 if test "$GCC" = yes; then
7312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7313 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7315 allow_undefined_flag=' -expect_unresolved \*'
7316 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator=:
7322 osf4* | osf5*) # as osf3* with the addition of -msym flag
7323 if test "$GCC" = yes; then
7324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7325 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328 allow_undefined_flag=' -expect_unresolved \*'
7329 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7330 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7331 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7333 #Both c and cxx compiler support -rpath directly
7334 hardcode_libdir_flag_spec='-rpath $libdir'
7336 hardcode_libdir_separator=:
7340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_shlibpath_var=no
7342 runpath_var=LD_RUN_PATH
7343 hardcode_runpath_var=yes
7344 export_dynamic_flag_spec='${wl}-Bexport'
7348 # gcc --version < 3.0 without binutils cannot create self contained
7349 # shared libraries reliably, requiring libgcc.a to resolve some of
7350 # the object symbols generated in some cases. Libraries that use
7351 # assert need libgcc.a to resolve __eprintf, for example. Linking
7352 # a copy of libgcc.a into every shared library to guarantee resolving
7353 # such symbols causes other problems: According to Tim Van Holder
7354 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7355 # (to the application) exception stack for one thing.
7356 no_undefined_flag=' -z defs'
7357 if test "$GCC" = yes; then
7358 case `$CC --version 2>/dev/null` in
7362 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7363 *** create self contained shared libraries on Solaris systems, without
7364 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
7365 *** -no-undefined support, which will at least allow you to build shared
7366 *** libraries. However, you may find that when you link such libraries
7367 *** into an application without using GCC, you have to manually add
7368 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
7369 *** upgrade to a newer version of GCC. Another option is to rebuild your
7370 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7377 # $CC -shared without GNU ld will not create a library from C++
7378 # object files and a static libstdc++, better avoid it by now
7379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7382 hardcode_libdir_flag_spec='-R$libdir'
7383 hardcode_shlibpath_var=no
7385 solaris2.[0-5] | solaris2.[0-5].*) ;;
7386 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7389 link_all_deplibs=yes
7393 if test "x$host_vendor" = xsequent; then
7394 # Use $CC to link under sequent, because it throws in some extra .o
7395 # files that make .init and .fini sections work.
7396 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7398 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_libdir_flag_spec='-L$libdir'
7402 hardcode_minus_L=yes
7403 hardcode_shlibpath_var=no
7407 if test "x$host_vendor" = xsno; then
7408 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_direct=yes # is this really true???
7411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7414 runpath_var='LD_RUN_PATH'
7415 hardcode_shlibpath_var=no
7419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420 hardcode_shlibpath_var=no
7421 export_dynamic_flag_spec='-Bexport'
7425 no_undefined_flag=' -z text'
7426 # $CC -shared without GNU ld will not create a library from C++
7427 # object files and a static libstdc++, better avoid it by now
7428 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7431 hardcode_libdir_flag_spec=
7432 hardcode_shlibpath_var=no
7433 runpath_var='LD_RUN_PATH'
7437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 hardcode_shlibpath_var=no
7443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444 hardcode_libdir_flag_spec='-L$libdir'
7445 hardcode_shlibpath_var=no
7449 if test -d /usr/nec; then
7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451 hardcode_shlibpath_var=no
7452 runpath_var=LD_RUN_PATH
7453 hardcode_runpath_var=yes
7459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7462 hardcode_shlibpath_var=no
7463 hardcode_runpath_var=yes
7464 runpath_var=LD_RUN_PATH
7467 sysv5uw7* | unixware7*)
7468 no_undefined_flag='${wl}-z ${wl}text'
7469 if test "$GCC" = yes; then
7470 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 runpath_var='LD_RUN_PATH'
7475 hardcode_shlibpath_var=no
7483 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7484 echo "${ECHO_T}$ld_shlibs" >&6; }
7485 test "$ld_shlibs" = no && can_build_shared=no
7489 ## FIXME: this should be a separate macro
7491 # Check hardcoding attributes.
7492 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
7495 if test -n "$hardcode_libdir_flag_spec" || \
7496 test -n "$runpath_var"; then
7498 # We can hardcode non-existant directories.
7499 if test "$hardcode_direct" != no &&
7500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7501 # have to relink, otherwise we might link with an installed library
7502 # when we should be linking with a yet-to-be-installed one
7503 ## test "$hardcode_shlibpath_var" != no &&
7504 test "$hardcode_minus_L" != no; then
7505 # Linking always hardcodes the temporary library directory.
7506 hardcode_action=relink
7508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7509 hardcode_action=immediate
7512 # We cannot hardcode anything, or else we can only hardcode existing
7514 hardcode_action=unsupported
7516 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
7517 echo "${ECHO_T}$hardcode_action" >&6; }
7521 ## FIXME: this should be a separate macro
7525 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7526 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
7527 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7528 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7529 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7530 { echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6; }
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7540 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7542 ## FIXME: this should be a separate macro
7544 # PORTME Fill in your ld.so characteristics
7545 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7548 libname_spec='lib$name'
7555 shlibpath_overrides_runpath=unknown
7557 dynamic_linker="$host_os ld.so"
7558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7564 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7565 shlibpath_var=LIBPATH
7567 # AIX has no versioning support, so we append a major version to the name.
7568 soname_spec='${libname}${release}.so$major'
7573 if test "$host_cpu" = ia64; then
7574 # AIX 5 supports IA64
7575 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7576 shlibpath_var=LD_LIBRARY_PATH
7578 # With GCC up to 2.95.x, collect2 would create an import file
7579 # for dependence libraries. The import file would start with
7580 # the line `#! .'. This would cause the generated library to
7581 # depend on `.', always an invalid library. This was fixed in
7582 # development snapshots of GCC prior to 3.0.
7584 aix4 | aix4.[01] | aix4.[01].*)
7585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7587 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7594 # AIX (on Power*) has no versioning support, so currently we can
7595 # not hardcode correct soname into executable. Probably we can
7596 # add versioning support to collect2, so additional links can
7597 # be useful in future.
7598 if test "$aix_use_runtimelinking" = yes; then
7599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7600 # instead of lib<name>.a to let people know that these are not
7601 # typical AIX shared libraries.
7602 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7604 # We preserve .a as extension for shared libraries through AIX4.2
7605 # and later when we are not doing run time linking.
7606 library_names_spec='${libname}${release}.a $libname.a'
7607 soname_spec='${libname}${release}.so$major'
7609 shlibpath_var=LIBPATH
7614 library_names_spec='$libname.ixlibrary $libname.a'
7615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7616 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'
7620 library_names_spec='${libname}.so'
7621 dynamic_linker="$host_os ld.so"
7622 shlibpath_var=LIBRARY_PATH
7628 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7629 soname_spec='${libname}${release}.so$major'
7630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7634 export_dynamic_flag_spec=-rdynamic
7635 # the default ld.so.conf also contains /usr/contrib/lib and
7636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7637 # libtool to hard-code these into programs
7640 cygwin* | mingw* | pw32*)
7641 version_type=windows
7644 case $GCC,$host_os in
7646 library_names_spec='$libname.dll.a'
7647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7648 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7649 dldir=$destdir/`dirname \$dlpath`~
7650 test -d \$dldir || mkdir -p \$dldir~
7651 $install_prog .libs/$dlname \$dldir/$dlname'
7652 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7653 dlpath=$dir/\$dldll~
7657 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7664 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7667 dynamic_linker='Win32 ld.exe'
7668 # FIXME: first we should search . and the directory the executable is in
7672 darwin* | rhapsody*)
7673 dynamic_linker="$host_os dyld"
7677 # FIXME: Relying on posixy $() will cause problems for
7678 # cross-compilation, but unfortunately the echo tests do not
7679 # yet detect zsh echo's removal of \ escapes.
7680 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7681 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7682 shlibpath_overrides_runpath=yes
7683 shlibpath_var=DYLD_LIBRARY_PATH
7691 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7692 version_type=freebsd-$objformat
7693 case $version_type in
7695 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7700 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7704 shlibpath_var=LD_LIBRARY_PATH
7707 shlibpath_overrides_runpath=yes
7710 shlibpath_overrides_runpath=no
7711 hardcode_into_libs=yes
7720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7721 soname_spec='${libname}${release}.so$major'
7722 shlibpath_var=LD_LIBRARY_PATH
7723 hardcode_into_libs=yes
7726 hpux9* | hpux10* | hpux11*)
7727 # Give a soname corresponding to the major version so that dld.sl refuses to
7728 # link against other versions.
7729 dynamic_linker="$host_os dld.sl"
7733 shlibpath_var=SHLIB_PATH
7734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7735 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7736 soname_spec='${libname}${release}.sl$major'
7737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7738 postinstall_cmds='chmod 555 $lib'
7741 irix5* | irix6* | nonstopux*)
7743 nonstopux*) version_type=nonstopux ;;
7744 *) version_type=irix ;;
7748 soname_spec='${libname}${release}.so$major'
7749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7751 irix5* | nonstopux*)
7755 case $LD in # libtool.m4 will add one of these switches to LD
7756 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7757 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7758 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7759 *) libsuff= shlibsuff= libmagic=never-match;;
7763 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7764 shlibpath_overrides_runpath=no
7765 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7766 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7769 # No shared lib support for Linux oldld, aout, or coff.
7770 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7774 # This must be Linux ELF.
7779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7780 soname_spec='${libname}${release}.so$major'
7781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7782 shlibpath_var=LD_LIBRARY_PATH
7783 shlibpath_overrides_runpath=no
7784 # This implies no fast_install, which is unacceptable.
7785 # Some rework will be needed to allow for fast_install
7786 # before this can be enabled.
7787 hardcode_into_libs=yes
7789 # We used to test for /lib/ld.so.1 and disable shared libraries on
7790 # powerpc, because MkLinux only supported shared libraries with the
7791 # GNU dynamic linker. Since this was broken with cross compilers,
7792 # most powerpc-linux boxes support dynamic linking these days and
7793 # people can always --disable-shared, the test was removed, and we
7794 # assume the GNU/Linux dynamic linker is in use.
7795 dynamic_linker='GNU/Linux ld.so'
7802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7803 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7805 dynamic_linker='NetBSD (a.out) ld.so'
7807 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7808 soname_spec='${libname}${release}.so$major'
7809 dynamic_linker='NetBSD ld.elf_so'
7811 shlibpath_var=LD_LIBRARY_PATH
7812 shlibpath_overrides_runpath=yes
7813 hardcode_into_libs=yes
7818 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7819 shlibpath_var=LD_LIBRARY_PATH
7820 shlibpath_overrides_runpath=yes
7827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7829 openbsd2.[89] | openbsd2.[89].*)
7830 shlibpath_overrides_runpath=no
7833 shlibpath_overrides_runpath=yes
7837 shlibpath_overrides_runpath=yes
7839 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7841 shlibpath_var=LD_LIBRARY_PATH
7845 libname_spec='$name'
7847 library_names_spec='$libname.dll $libname.a'
7848 dynamic_linker='OS/2 ld.exe'
7849 shlibpath_var=LIBPATH
7852 osf3* | osf4* | osf5*)
7855 soname_spec='${libname}${release}.so'
7856 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7864 soname_spec='${libname}${release}.so$major'
7865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7866 shlibpath_var=LD_LIBRARY_PATH
7873 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7874 soname_spec='${libname}${release}.so$major'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes
7877 hardcode_into_libs=yes
7878 # ldd complains unless libraries are executable
7879 postinstall_cmds='chmod +x $lib'
7884 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7885 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 shlibpath_overrides_runpath=yes
7888 if test "$with_gnu_ld" = yes; then
7894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7896 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7897 soname_spec='${libname}${release}.so$major'
7898 shlibpath_var=LD_LIBRARY_PATH
7899 case $host_vendor in
7901 shlibpath_overrides_runpath=no
7906 shlibpath_overrides_runpath=no
7907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7914 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7915 soname_spec='${libname}${release}.so$major'
7916 shlibpath_var=LD_LIBRARY_PATH
7923 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7924 soname_spec='${libname}${release}.so$major'
7925 shlibpath_var=LD_LIBRARY_PATH
7929 if test -d /usr/nec ;then
7931 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7932 soname_spec='$libname.so.$major'
7933 shlibpath_var=LD_LIBRARY_PATH
7941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7942 echo "${ECHO_T}$dynamic_linker" >&6; }
7943 test "$dynamic_linker" = no && can_build_shared=no
7947 ## FIXME: this should be a separate macro
7949 # Report the final consequences.
7950 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7952 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7953 echo "${ECHO_T}$can_build_shared" >&6; }
7957 ## FIXME: this should be a separate macro
7959 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7960 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7961 test "$can_build_shared" = "no" && enable_shared=no
7963 # On AIX, shared libraries and static libraries use the same namespace, and
7964 # are all built from PIC.
7967 test "$enable_shared" = yes && enable_static=no
7968 if test -n "$RANLIB"; then
7969 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7970 postinstall_cmds='$RANLIB $lib'
7975 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7976 test "$enable_shared" = yes && enable_static=no
7980 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7981 echo "${ECHO_T}$enable_shared" >&6; }
7985 ## FIXME: this should be a separate macro
7987 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7989 # Make sure either enable_shared or enable_static is yes.
7990 test "$enable_shared" = yes || enable_static=yes
7991 { echo "$as_me:$LINENO: result: $enable_static" >&5
7992 echo "${ECHO_T}$enable_static" >&6; }
7996 if test "$hardcode_action" = relink; then
7997 # Fast installation is not supported
7998 enable_fast_install=no
7999 elif test "$shlibpath_overrides_runpath" = yes ||
8000 test "$enable_shared" = no; then
8001 # Fast installation is not necessary
8002 enable_fast_install=needless
8005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8006 if test "$GCC" = yes; then
8007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8010 if test "x$enable_dlopen" != xyes; then
8011 enable_dlopen=unknown
8012 enable_dlopen_self=unknown
8013 enable_dlopen_self_static=unknown
8020 lt_cv_dlopen="load_add_on"
8022 lt_cv_dlopen_self=yes
8025 cygwin* | mingw* | pw32*)
8026 lt_cv_dlopen="LoadLibrary"
8031 { echo "$as_me:$LINENO: checking for shl_load" >&5
8032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8033 if test "${ac_cv_func_shl_load+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8044 #define shl_load innocuous_shl_load
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char shl_load (); below.
8048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8049 <limits.h> exists even on freestanding compilers. */
8052 # include <limits.h>
8054 # include <assert.h>
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8066 /* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069 #if defined __stub_shl_load || defined __stub___shl_load
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_try") 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_cv_func_shl_load=yes
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 ac_cv_func_shl_load=no
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8126 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8128 if test $ac_cv_func_shl_load = yes; then
8129 lt_cv_dlopen="shl_load"
8131 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 ac_check_lib_save_LIBS=$LIBS
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_link") 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_try") 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_cv_lib_dld_shl_load=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_lib_dld_shl_load=no
8202 rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8207 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8208 if test $ac_cv_lib_dld_shl_load = yes; then
8209 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8211 { echo "$as_me:$LINENO: checking for dlopen" >&5
8212 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8213 if test "${ac_cv_func_dlopen+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8224 #define dlopen innocuous_dlopen
8226 /* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char dlopen (); below.
8228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8229 <limits.h> exists even on freestanding compilers. */
8232 # include <limits.h>
8234 # include <assert.h>
8239 /* Override any GCC internal prototype to avoid an error.
8240 Use char because int might match the return type of a GCC
8241 builtin and then its argument prototype would still apply. */
8246 /* The GNU C library defines this for functions which it implements
8247 to always fail with ENOSYS. Some functions are actually named
8248 something starting with __ and the normal name is an alias. */
8249 #if defined __stub_dlopen || defined __stub___dlopen
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_func_dlopen=yes
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_cv_func_dlopen=no
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8307 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8308 if test $ac_cv_func_dlopen = yes; then
8309 lt_cv_dlopen="dlopen"
8311 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 ac_check_lib_save_LIBS=$LIBS
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_link") 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_lib_dl_dlopen=yes
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_lib_dl_dlopen=no
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8386 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8388 if test $ac_cv_lib_dl_dlopen = yes; then
8389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8391 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8392 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8393 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 ac_check_lib_save_LIBS=$LIBS
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8405 /* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_link") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_try") 2>&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_cv_lib_svld_dlopen=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_cv_lib_svld_dlopen=no
8462 rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8466 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8468 if test $ac_cv_lib_svld_dlopen = yes; then
8469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8471 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 ac_check_lib_save_LIBS=$LIBS
8478 cat >conftest.$ac_ext <<_ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8485 /* Override any GCC internal prototype to avoid an error.
8486 Use char because int might match the return type of a GCC
8487 builtin and then its argument prototype would still apply. */
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (ac_try="$ac_link"
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_link") 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8515 { (case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_try") 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dld_dld_link=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_dld_dld_link=no
8542 rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_lib_save_LIBS
8546 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8547 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8548 if test $ac_cv_lib_dld_dld_link = yes; then
8549 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8570 if test "x$lt_cv_dlopen" != xno; then
8576 case $lt_cv_dlopen in
8578 save_CPPFLAGS="$CPPFLAGS"
8579 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8581 save_LDFLAGS="$LDFLAGS"
8582 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8585 LIBS="$lt_cv_dlopen_libs $LIBS"
8587 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8588 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8589 if test "${lt_cv_dlopen_self+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 if test "$cross_compiling" = yes; then :
8593 lt_cv_dlopen_self=cross
8595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8596 lt_status=$lt_dlunknown
8597 cat > conftest.$ac_ext <<EOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8608 # define LT_DLGLOBAL RTLD_GLOBAL
8611 # define LT_DLGLOBAL DL_GLOBAL
8613 # define LT_DLGLOBAL 0
8617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8618 find out it does not work in some platform. */
8619 #ifndef LT_DLLAZY_OR_NOW
8621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8624 # define LT_DLLAZY_OR_NOW DL_LAZY
8627 # define LT_DLLAZY_OR_NOW RTLD_NOW
8630 # define LT_DLLAZY_OR_NOW DL_NOW
8632 # define LT_DLLAZY_OR_NOW 0
8640 extern "C" void exit (int);
8643 void fnord() { int i=42;}
8646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8647 int status = $lt_dlunknown;
8651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8653 /* dlclose (self); */
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8664 (./conftest; exit; ) 2>/dev/null
8667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8669 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8672 # compilation failed
8673 lt_cv_dlopen_self=no
8680 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8681 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8683 if test "x$lt_cv_dlopen_self" = xyes; then
8684 LDFLAGS="$LDFLAGS $link_static_flag"
8685 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8686 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8687 if test "${lt_cv_dlopen_self_static+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 if test "$cross_compiling" = yes; then :
8691 lt_cv_dlopen_self_static=cross
8693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8694 lt_status=$lt_dlunknown
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8696 "configure"
8697 #include "confdefs.h"
8706 # define LT_DLGLOBAL RTLD_GLOBAL
8709 # define LT_DLGLOBAL DL_GLOBAL
8711 # define LT_DLGLOBAL 0
8715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8716 find out it does not work in some platform. */
8717 #ifndef LT_DLLAZY_OR_NOW
8719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8722 # define LT_DLLAZY_OR_NOW DL_LAZY
8725 # define LT_DLLAZY_OR_NOW RTLD_NOW
8728 # define LT_DLLAZY_OR_NOW DL_NOW
8730 # define LT_DLLAZY_OR_NOW 0
8738 extern "C" void exit (int);
8741 void fnord() { int i=42;}
8744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8745 int status = $lt_dlunknown;
8749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8751 /* dlclose (self); */
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8762 (./conftest; exit; ) 2>/dev/null
8765 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8766 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8767 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8770 # compilation failed
8771 lt_cv_dlopen_self_static=no
8778 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8779 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8782 CPPFLAGS="$save_CPPFLAGS"
8783 LDFLAGS="$save_LDFLAGS"
8788 case $lt_cv_dlopen_self in
8789 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8790 *) enable_dlopen_self=unknown ;;
8793 case $lt_cv_dlopen_self_static in
8794 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8795 *) enable_dlopen_self_static=unknown ;;
8800 ## FIXME: this should be a separate macro
8802 if test "$enable_shared" = yes && test "$GCC" = yes; then
8803 case $archive_cmds in
8805 # FIXME: we may have to deal with multi-command sequences.
8808 # Test whether the compiler implicitly links with -lc since on some
8809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8810 # to ld, don't add -lc before -lgcc.
8811 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8813 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 echo 'static int dummy;' > conftest.$ac_ext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; then
8826 libobjs=conftest.$ac_objext
8828 wl=$lt_cv_prog_cc_wl
8834 save_allow_undefined_flag=$allow_undefined_flag
8835 allow_undefined_flag=
8836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }
8842 lt_cv_archive_cmds_need_lc=no
8844 lt_cv_archive_cmds_need_lc=yes
8846 allow_undefined_flag=$save_allow_undefined_flag
8848 cat conftest.err 1>&5
8852 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8853 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
8857 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8861 ## FIXME: this should be a separate macro
8863 # The second clause should only fire when bootstrapping the
8864 # libtool distribution, otherwise you forgot to ship ltmain.sh
8865 # with your package, and you will get complaints that there are
8866 # no rules to generate ltmain.sh.
8867 if test -f "$ltmain"; then
8870 # If there is no Makefile yet, we rely on a make rule to execute
8871 # `config.status --recheck' to rerun these tests and create the
8872 # libtool script then.
8873 test -f Makefile && make "$ltmain"
8876 if test -f "$ltmain"; then
8877 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8880 echo creating $ofile
8882 # Now quote all the things that may contain metacharacters while being
8883 # careful not to overquote the AC_SUBSTed values. We take copies of the
8884 # variables and quote the copies for generation of the libtool script.
8885 for var in echo old_CC old_CFLAGS \
8886 AR AR_FLAGS CC LD LN_S NM SHELL \
8887 reload_flag reload_cmds wl \
8888 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8889 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8890 library_names_spec soname_spec \
8891 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8892 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8893 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8894 old_striplib striplib file_magic_cmd export_symbols_cmds \
8895 deplibs_check_method allow_undefined_flag no_undefined_flag \
8896 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8897 global_symbol_to_c_name_address \
8898 hardcode_libdir_flag_spec hardcode_libdir_separator \
8899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8900 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8903 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8904 old_postinstall_cmds | old_postuninstall_cmds | \
8905 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8906 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8907 postinstall_cmds | postuninstall_cmds | \
8908 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8909 # Double-quote double-evaled strings.
8910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8918 cat <<__EOF__ > "${ofile}T"
8921 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8922 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8925 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8926 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8928 # This program is free software; you can redistribute it and/or modify
8929 # it under the terms of the GNU General Public License as published by
8930 # the Free Software Foundation; either version 2 of the License, or
8931 # (at your option) any later version.
8933 # This program is distributed in the hope that it will be useful, but
8934 # WITHOUT ANY WARRANTY; without even the implied warranty of
8935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8936 # General Public License for more details.
8938 # You should have received a copy of the GNU General Public License
8939 # along with this program; if not, write to the Free Software
8940 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8942 # As a special exception to the GNU General Public License, if you
8943 # distribute this file as part of a program that contains a
8944 # configuration script generated by Autoconf, you may include it under
8945 # the same distribution terms that you use for the rest of that program.
8947 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8948 Xsed="sed -e s/^X//"
8950 # The HP-UX ksh and POSIX shell print the target directory to stdout
8952 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8954 # ### BEGIN LIBTOOL CONFIG
8956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8958 # Shell to use when invoking shell scripts.
8961 # Whether or not to build shared libraries.
8962 build_libtool_libs=$enable_shared
8964 # Whether or not to build static libraries.
8965 build_old_libs=$enable_static
8967 # Whether or not to add -lc for building shared libraries.
8968 build_libtool_need_lc=$need_lc
8970 # Whether or not to optimize for fast installation.
8971 fast_install=$enable_fast_install
8974 host_alias=$host_alias
8977 # An echo program that does not interpret backslashes.
8982 AR_FLAGS=$lt_AR_FLAGS
8984 # The default C compiler.
8987 # Is the compiler the GNU C compiler?
8990 # The linker used to build libraries.
8993 # Whether we need hard or soft links.
8996 # A BSD-compatible nm program.
8999 # A symbol stripping program
9002 # Used to examine libraries when file_magic_cmd begins "file"
9003 MAGIC_CMD=$MAGIC_CMD
9005 # Used on cygwin: DLL creation program.
9008 # Used on cygwin: object dumper.
9011 # Used on cygwin: assembler.
9014 # The name of the directory that contains temporary libtool files.
9017 # How to create reloadable object files.
9018 reload_flag=$lt_reload_flag
9019 reload_cmds=$lt_reload_cmds
9021 # How to pass a linker flag through the compiler.
9024 # Object file suffix (normally "o").
9027 # Old archive suffix (normally "a").
9030 # Executable file suffix (normally "").
9033 # Additional compiler flags for building library objects.
9034 pic_flag=$lt_pic_flag
9037 # Does compiler simultaneously support -c and -o options?
9038 compiler_c_o=$lt_compiler_c_o
9040 # Can we write directly to a .lo ?
9041 compiler_o_lo=$lt_compiler_o_lo
9043 # Must we lock files when doing compilation ?
9044 need_locks=$lt_need_locks
9046 # Do we need the lib prefix for modules?
9047 need_lib_prefix=$need_lib_prefix
9049 # Do we need a version for libraries?
9050 need_version=$need_version
9052 # Whether dlopen is supported.
9053 dlopen_support=$enable_dlopen
9055 # Whether dlopen of programs is supported.
9056 dlopen_self=$enable_dlopen_self
9058 # Whether dlopen of statically linked programs is supported.
9059 dlopen_self_static=$enable_dlopen_self_static
9061 # Compiler flag to prevent dynamic linking.
9062 link_static_flag=$lt_link_static_flag
9064 # Compiler flag to turn off builtin functions.
9065 no_builtin_flag=$lt_no_builtin_flag
9067 # Compiler flag to allow reflexive dlopens.
9068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9070 # Compiler flag to generate shared objects directly from archives.
9071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9073 # Compiler flag to generate thread-safe objects.
9074 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9076 # Library versioning type.
9077 version_type=$version_type
9079 # Format of library name prefix.
9080 libname_spec=$lt_libname_spec
9082 # List of archive names. First name is the real one, the rest are links.
9083 # The last name is the one that the linker finds with -lNAME.
9084 library_names_spec=$lt_library_names_spec
9086 # The coded name of the library, if different from the real name.
9087 soname_spec=$lt_soname_spec
9089 # Commands used to build and install an old-style archive.
9091 old_archive_cmds=$lt_old_archive_cmds
9092 old_postinstall_cmds=$lt_old_postinstall_cmds
9093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9095 # Create an old-style archive from a shared archive.
9096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9098 # Create a temporary old-style archive to link instead of a shared archive.
9099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9101 # Commands used to build and install a shared archive.
9102 archive_cmds=$lt_archive_cmds
9103 archive_expsym_cmds=$lt_archive_expsym_cmds
9104 postinstall_cmds=$lt_postinstall_cmds
9105 postuninstall_cmds=$lt_postuninstall_cmds
9107 # Commands to strip libraries.
9108 old_striplib=$lt_old_striplib
9109 striplib=$lt_striplib
9111 # Method to check whether dependent libraries are shared objects.
9112 deplibs_check_method=$lt_deplibs_check_method
9114 # Command to use when deplibs_check_method == file_magic.
9115 file_magic_cmd=$lt_file_magic_cmd
9117 # Flag that allows shared libraries with undefined symbols to be built.
9118 allow_undefined_flag=$lt_allow_undefined_flag
9120 # Flag that forces no undefined symbols.
9121 no_undefined_flag=$lt_no_undefined_flag
9123 # Commands used to finish a libtool library installation in a directory.
9124 finish_cmds=$lt_finish_cmds
9126 # Same as above, but a single script fragment to be evaled but not shown.
9127 finish_eval=$lt_finish_eval
9129 # Take the output of nm and produce a listing of raw symbols and C names.
9130 global_symbol_pipe=$lt_global_symbol_pipe
9132 # Transform the output of nm in a proper C declaration
9133 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9135 # Transform the output of nm in a C name address pair
9136 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9138 # This is the shared library runtime path variable.
9139 runpath_var=$runpath_var
9141 # This is the shared library path variable.
9142 shlibpath_var=$shlibpath_var
9144 # Is shlibpath searched before the hard-coded library search path?
9145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9147 # How to hardcode a shared library path into an executable.
9148 hardcode_action=$hardcode_action
9150 # Whether we should hardcode library paths into libraries.
9151 hardcode_into_libs=$hardcode_into_libs
9153 # Flag to hardcode \$libdir into a binary during linking.
9154 # This must work even if \$libdir does not exist.
9155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9157 # Whether we need a single -rpath flag with a separated argument.
9158 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9160 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9162 hardcode_direct=$hardcode_direct
9164 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9166 hardcode_minus_L=$hardcode_minus_L
9168 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9169 # the resulting binary.
9170 hardcode_shlibpath_var=$hardcode_shlibpath_var
9172 # Variables whose values should be saved in libtool wrapper scripts and
9173 # restored at relink time.
9174 variables_saved_for_relink="$variables_saved_for_relink"
9176 # Whether libtool must link a program against all its dependency libraries.
9177 link_all_deplibs=$link_all_deplibs
9179 # Compile-time system search path for libraries
9180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9182 # Run-time system search path for libraries
9183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9185 # Fix the shell variable \$srcfile for the compiler.
9186 fix_srcfile_path="$fix_srcfile_path"
9188 # Set to yes if exported symbols are required.
9189 always_export_symbols=$always_export_symbols
9191 # The commands to list exported symbols.
9192 export_symbols_cmds=$lt_export_symbols_cmds
9194 # The commands to extract the exported symbol list from a shared archive.
9195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9197 # Symbols that should not be listed in the preloaded symbols.
9198 exclude_expsyms=$lt_exclude_expsyms
9200 # Symbols that must always be exported.
9201 include_expsyms=$lt_include_expsyms
9203 # ### END LIBTOOL CONFIG
9209 cat <<\EOF >> "${ofile}T"
9211 # AIX sometimes has problems with the GCC collect2 program. For some
9212 # reason, if we set the COLLECT_NAMES environment variable, the problems
9213 # vanish in a puff of smoke.
9214 if test "X${COLLECT_NAMES+set}" != Xset; then
9216 export COLLECT_NAMES
9223 cygwin* | mingw* | pw32* | os2*)
9224 cat <<'EOF' >> "${ofile}T"
9225 # This is a source program that is used to create dlls on Windows
9226 # Don't remove nor modify the starting and closing comments
9227 # /* ltdll.c starts here */
9228 # #define WIN32_LEAN_AND_MEAN
9229 # #include <windows.h>
9230 # #undef WIN32_LEAN_AND_MEAN
9231 # #include <stdio.h>
9233 # #ifndef __CYGWIN__
9234 # # ifdef __CYGWIN32__
9235 # # define __CYGWIN__ __CYGWIN32__
9239 # #ifdef __cplusplus
9242 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9243 # #ifdef __cplusplus
9248 # #include <cygwin/cygwin_dll.h>
9249 # DECLARE_CYGWIN_DLL( DllMain );
9251 # HINSTANCE __hDllInstance_base;
9254 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9256 # __hDllInstance_base = hInst;
9259 # /* ltdll.c ends here */
9260 # This is a source program that is used to create import libraries
9261 # on Windows for dlls which lack them. Don't remove nor modify the
9262 # starting and closing comments
9263 # /* impgen.c starts here */
9264 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
9266 # This file is part of GNU libtool.
9268 # This program is free software; you can redistribute it and/or modify
9269 # it under the terms of the GNU General Public License as published by
9270 # the Free Software Foundation; either version 2 of the License, or
9271 # (at your option) any later version.
9273 # This program is distributed in the hope that it will be useful,
9274 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9275 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9276 # GNU General Public License for more details.
9278 # You should have received a copy of the GNU General Public License
9279 # along with this program; if not, write to the Free Software
9280 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9283 # #include <stdio.h> /* for printf() */
9284 # #include <unistd.h> /* for open(), lseek(), read() */
9285 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
9286 # #include <string.h> /* for strdup() */
9288 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
9290 # #define O_BINARY 0
9293 # static unsigned int
9294 # pe_get16 (fd, offset)
9298 # unsigned char b[2];
9299 # lseek (fd, offset, SEEK_SET);
9301 # return b[0] + (b[1]<<8);
9304 # static unsigned int
9305 # pe_get32 (fd, offset)
9309 # unsigned char b[4];
9310 # lseek (fd, offset, SEEK_SET);
9312 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9315 # static unsigned int
9319 # unsigned char *b = ptr;
9320 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9329 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9330 # unsigned long export_rva, export_size, nsections, secptr, expptr;
9331 # unsigned long name_rvas, nexp;
9332 # unsigned char *expdata, *erva;
9333 # char *filename, *dll_name;
9335 # filename = argv[1];
9337 # dll = open(filename, O_RDONLY|O_BINARY);
9341 # dll_name = filename;
9343 # for (i=0; filename[i]; i++)
9344 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
9345 # dll_name = filename + i +1;
9347 # pe_header_offset = pe_get32 (dll, 0x3c);
9348 # opthdr_ofs = pe_header_offset + 4 + 20;
9349 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
9351 # if (num_entries < 1) /* no exports */
9354 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
9355 # export_size = pe_get32 (dll, opthdr_ofs + 100);
9356 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9357 # secptr = (pe_header_offset + 4 + 20 +
9358 # pe_get16 (dll, pe_header_offset + 4 + 16));
9361 # for (i = 0; i < nsections; i++)
9364 # unsigned long secptr1 = secptr + 40 * i;
9365 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9366 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9367 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9368 # lseek(dll, secptr1, SEEK_SET);
9369 # read(dll, sname, 8);
9370 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
9372 # expptr = fptr + (export_rva - vaddr);
9373 # if (export_rva + export_size > vaddr + vsize)
9374 # export_size = vsize - (export_rva - vaddr);
9379 # expdata = (unsigned char*)malloc(export_size);
9380 # lseek (dll, expptr, SEEK_SET);
9381 # read (dll, expdata, export_size);
9382 # erva = expdata - export_rva;
9384 # nexp = pe_as32 (expdata+24);
9385 # name_rvas = pe_as32 (expdata+32);
9387 # printf ("EXPORTS\n");
9388 # for (i = 0; i<nexp; i++)
9390 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9391 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9396 # /* impgen.c ends here */
9402 # We use sed instead of cat because bash on DJGPP gets confused if
9403 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9404 # text mode, it properly converts lines to CR/LF. This bash problem
9405 # is reportedly fixed, but why not run on old versions too?
9406 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9408 mv -f "${ofile}T" "$ofile" || \
9409 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9419 # This can be used to rebuild libtool when needed
9420 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9422 # Always use our own libtool.
9423 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9425 # Prevent multiple expansion
9430 for ac_prog in flex lex
9432 # Extract the first word of "$ac_prog", so it can be a program name with args.
9433 set dummy $ac_prog; ac_word=$2
9434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9436 if test "${ac_cv_prog_LEX+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 if test -n "$LEX"; then
9440 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_LEX="$ac_prog"
9450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 if test -n "$LEX"; then
9461 { echo "$as_me:$LINENO: result: $LEX" >&5
9462 echo "${ECHO_T}$LEX" >&6; }
9464 { echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6; }
9469 test -n "$LEX" && break
9471 test -n "$LEX" || LEX=":"
9473 if test -z "$LEXLIB"
9475 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9476 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
9477 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 ac_check_lib_save_LIBS=$LIBS
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_lib_fl_yywrap=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_lib_fl_yywrap=no
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9550 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9551 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
9552 if test $ac_cv_lib_fl_yywrap = yes; then
9555 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9556 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
9557 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 ac_check_lib_save_LIBS=$LIBS
9562 cat >conftest.$ac_ext <<_ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9569 /* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_l_yywrap=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_lib_l_yywrap=no
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9631 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
9632 if test $ac_cv_lib_l_yywrap = yes; then
9640 if test "x$LEX" != "x:"; then
9641 { echo "$as_me:$LINENO: checking lex output file root" >&5
9642 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9643 if test "${ac_cv_prog_lex_root+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 # The minimal lex program is just a single line: %%. But some broken lexes
9647 # (Solaris, I think it was) want two %% lines, so accommodate them.
9648 cat >conftest.l <<_ACEOF
9652 { (ac_try="$LEX conftest.l"
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$LEX conftest.l") 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }
9662 if test -f lex.yy.c; then
9663 ac_cv_prog_lex_root=lex.yy
9664 elif test -f lexyy.c; then
9665 ac_cv_prog_lex_root=lexyy
9667 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9668 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9669 { (exit 1); exit 1; }; }
9672 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9673 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9675 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9677 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9678 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9679 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 # POSIX says lex can declare yytext either as a pointer or an array; the
9683 # default is implementation-dependent. Figure out which it is, since
9684 # not all implementations provide the %pointer and %array declarations.
9685 ac_cv_prog_lex_yytext_pointer=no
9686 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9688 LIBS="$LIBS $LEXLIB"
9689 cat >conftest.$ac_ext <<_ACEOF
9690 `cat $LEX_OUTPUT_ROOT.c`
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_prog_lex_yytext_pointer=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9737 rm -f "${LEX_OUTPUT_ROOT}.c"
9740 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9741 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9742 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define YYTEXT_POINTER 1
9751 if test ${LEX} = "flex"; then
9752 cat >>confdefs.h <<\_ACEOF
9757 for ac_prog in 'bison -y' byacc
9759 # Extract the first word of "$ac_prog", so it can be a program name with args.
9760 set dummy $ac_prog; ac_word=$2
9761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9763 if test "${ac_cv_prog_YACC+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 if test -n "$YACC"; then
9767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_prog_YACC="$ac_prog"
9777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 YACC=$ac_cv_prog_YACC
9787 if test -n "$YACC"; then
9788 { echo "$as_me:$LINENO: result: $YACC" >&5
9789 echo "${ECHO_T}$YACC" >&6; }
9791 { echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6; }
9796 test -n "$YACC" && break
9798 test -n "$YACC" || YACC="yacc"
9800 # Extract the first word of "bison++", so it can be a program name with args.
9801 set dummy bison++; ac_word=$2
9802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9804 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 if test -n "$BISON_PLUS_PLUS"; then
9808 ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_BISON_PLUS_PLUS="bison++"
9818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
9828 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
9829 if test -n "$BISON_PLUS_PLUS"; then
9830 { echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
9831 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6; }
9833 { echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6; }
9841 ac_cpp='$CXXCPP $CPPFLAGS'
9842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9847 # Checking for header files.
9848 # ===========================================================================
9850 if test -d /stuff/include; then
9851 CPPFLAGS="$CPPFLAGS -I/stuff/include"
9856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9858 if test "${ac_cv_header_stdc+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9880 rm -f conftest.$ac_objext
9881 if { (ac_try="$ac_compile"
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_compile") 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9895 { (case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_try") 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; } &&
9904 { ac_try='test -s conftest.$ac_objext'
9905 { (case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_try") 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_header_stdc=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_header_stdc=no
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 if test $ac_cv_header_stdc = yes; then
9925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9936 $EGREP "memchr" >/dev/null 2>&1; then
9939 ac_cv_header_stdc=no
9945 if test $ac_cv_header_stdc = yes; then
9946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9957 $EGREP "free" >/dev/null 2>&1; then
9960 ac_cv_header_stdc=no
9966 if test $ac_cv_header_stdc = yes; then
9967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9968 if test "$cross_compiling" = yes; then
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9979 #if ((' ' & 0x0FF) == 0x020)
9980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9983 # define ISLOWER(c) \
9984 (('a' <= (c) && (c) <= 'i') \
9985 || ('j' <= (c) && (c) <= 'r') \
9986 || ('s' <= (c) && (c) <= 'z'))
9987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9995 for (i = 0; i < 256; i++)
9996 if (XOR (islower (i), ISLOWER (i))
9997 || toupper (i) != TOUPPER (i))
10002 rm -f conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10013 { (case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_try") 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10024 echo "$as_me: program exited with status $ac_status" >&5
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ( exit $ac_status )
10029 ac_cv_header_stdc=no
10031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10039 if test $ac_cv_header_stdc = yes; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define STDC_HEADERS 1
10050 for ac_header in getopt.h unistd.h termios.h
10052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 ac_res=`eval echo '${'$as_ac_Header'}'`
10060 { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10063 # Is the header compilable?
10064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10066 cat >conftest.$ac_ext <<_ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10072 $ac_includes_default
10073 #include <$ac_header>
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest.$ac_objext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_header_compiler=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_header_compiler=no
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119 echo "${ECHO_T}$ac_header_compiler" >&6; }
10121 # Is the header present?
10122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10124 cat >conftest.$ac_ext <<_ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 #include <$ac_header>
10132 if { (ac_try="$ac_cpp conftest.$ac_ext"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } >/dev/null; then
10145 if test -s conftest.err; then
10146 ac_cpp_err=$ac_cxx_preproc_warn_flag
10147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10154 if test -z "$ac_cpp_err"; then
10155 ac_header_preproc=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_header_preproc=no
10163 rm -f conftest.err conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10165 echo "${ECHO_T}$ac_header_preproc" >&6; }
10167 # So? What about this header?
10168 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10174 ac_header_preproc=yes
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 eval "$as_ac_Header=\$ac_header_preproc"
10199 ac_res=`eval echo '${'$as_ac_Header'}'`
10200 { echo "$as_me:$LINENO: result: $ac_res" >&5
10201 echo "${ECHO_T}$ac_res" >&6; }
10204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10214 if test "${ac_cv_header_curses_h+set}" = set; then
10215 { echo "$as_me:$LINENO: checking for curses.h" >&5
10216 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10217 if test "${ac_cv_header_curses_h+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10221 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10223 # Is the header compilable?
10224 { echo "$as_me:$LINENO: checking curses.h usability" >&5
10225 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 #include <curses.h>
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_compile") 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_header_compiler=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_header_compiler=no
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 echo "${ECHO_T}$ac_header_compiler" >&6; }
10281 # Is the header present?
10282 { echo "$as_me:$LINENO: checking curses.h presence" >&5
10283 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <curses.h>
10292 if { (ac_try="$ac_cpp conftest.$ac_ext"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } >/dev/null; then
10305 if test -s conftest.err; then
10306 ac_cpp_err=$ac_cxx_preproc_warn_flag
10307 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10314 if test -z "$ac_cpp_err"; then
10315 ac_header_preproc=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_header_preproc=no
10323 rm -f conftest.err conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10325 echo "${ECHO_T}$ac_header_preproc" >&6; }
10327 # So? What about this header?
10328 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10330 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
10331 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10332 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
10333 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
10334 ac_header_preproc=yes
10337 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
10342 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
10344 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
10346 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
10348 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
10352 { echo "$as_me:$LINENO: checking for curses.h" >&5
10353 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10354 if test "${ac_cv_header_curses_h+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 ac_cv_header_curses_h=$ac_header_preproc
10359 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10360 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10363 if test $ac_cv_header_curses_h = yes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_CURSES_H 1
10376 ucsim_cv_socket="unknown"
10377 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10378 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
10379 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
10380 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
10384 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
10386 # Is the header compilable?
10387 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
10388 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 $ac_includes_default
10396 #include <sys/socket.h>
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_compile") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_header_compiler=yes
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_header_compiler=no
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10442 echo "${ECHO_T}$ac_header_compiler" >&6; }
10444 # Is the header present?
10445 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
10446 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
10447 cat >conftest.$ac_ext <<_ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 #include <sys/socket.h>
10455 if { (ac_try="$ac_cpp conftest.$ac_ext"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_cxx_preproc_warn_flag
10470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10477 if test -z "$ac_cpp_err"; then
10478 ac_header_preproc=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_header_preproc=no
10486 rm -f conftest.err conftest.$ac_ext
10487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 echo "${ECHO_T}$ac_header_preproc" >&6; }
10490 # So? What about this header?
10491 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10493 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
10494 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
10496 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
10497 ac_header_preproc=yes
10500 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
10501 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
10503 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
10505 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
10507 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
10509 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
10511 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
10515 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
10516 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
10517 if test "${ac_cv_header_sys_socket_h+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 ac_cv_header_sys_socket_h=$ac_header_preproc
10522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
10523 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
10526 if test $ac_cv_header_sys_socket_h = yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_SYS_SOCKET_H 1
10531 cat >>confdefs.h <<\_ACEOF
10532 #define SOCKET_AVAIL 1
10535 cat >>confdefs.h <<_ACEOF
10536 #define UCSOCKET_T int
10539 ucsim_cv_socket="<sys/socket.h>"
10546 if test $ucsim_cv_socket = unknown; then
10547 if test "${ac_cv_header_winsock2_h+set}" = set; then
10548 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10549 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10550 if test "${ac_cv_header_winsock2_h+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10554 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10556 # Is the header compilable?
10557 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
10558 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <winsock2.h>
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_header_compiler=yes
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_header_compiler=no
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612 echo "${ECHO_T}$ac_header_compiler" >&6; }
10614 # Is the header present?
10615 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
10616 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 #include <winsock2.h>
10625 if { (ac_try="$ac_cpp conftest.$ac_ext"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null; then
10638 if test -s conftest.err; then
10639 ac_cpp_err=$ac_cxx_preproc_warn_flag
10640 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10647 if test -z "$ac_cpp_err"; then
10648 ac_header_preproc=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_header_preproc=no
10656 rm -f conftest.err conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658 echo "${ECHO_T}$ac_header_preproc" >&6; }
10660 # So? What about this header?
10661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10663 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
10664 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
10666 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
10667 ac_header_preproc=yes
10670 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
10671 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
10673 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
10675 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
10677 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
10679 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
10681 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
10685 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10686 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10687 if test "${ac_cv_header_winsock2_h+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 ac_cv_header_winsock2_h=$ac_header_preproc
10692 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10693 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10696 if test $ac_cv_header_winsock2_h = yes; then
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_WINSOCK2_H 1
10701 cat >>confdefs.h <<\_ACEOF
10702 #define SOCKET_AVAIL 1
10705 cat >>confdefs.h <<_ACEOF
10706 #define UCSOCKET_T SOCKET
10709 ucsim_cv_socket="<winsock2.h>"
10718 if test $ucsim_cv_socket != unknown; then
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 #include <$ucsim_cv_socket>
10728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729 $EGREP "socklen_t" >/dev/null 2>&1; then
10730 cat >>confdefs.h <<_ACEOF
10731 #define SOCKLEN_T socklen_t
10735 cat >>confdefs.h <<_ACEOF
10736 #define SOCKLEN_T uint
10743 cat >>confdefs.h <<_ACEOF
10744 #define HEADER_SOCKET ${ucsim_cv_socket}
10748 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10749 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10750 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10751 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10755 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10757 # Is the header compilable?
10758 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10759 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest.$ac_objext'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_header_compiler=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_header_compiler=no
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6; }
10815 # Is the header present?
10816 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10817 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10826 if { (ac_try="$ac_cpp conftest.$ac_ext"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } >/dev/null; then
10839 if test -s conftest.err; then
10840 ac_cpp_err=$ac_cxx_preproc_warn_flag
10841 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10848 if test -z "$ac_cpp_err"; then
10849 ac_header_preproc=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_header_preproc=no
10857 rm -f conftest.err conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10859 echo "${ECHO_T}$ac_header_preproc" >&6; }
10861 # So? What about this header?
10862 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10864 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10865 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10867 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10868 ac_header_preproc=yes
10871 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10872 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
10874 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10876 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
10878 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10880 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10882 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10886 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10887 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10888 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 ac_cv_header_dlfcn_h=$ac_header_preproc
10893 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10894 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10904 ac_header_dirent=no
10905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10906 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10907 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10908 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 cat >conftest.$ac_ext <<_ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #include <sys/types.h>
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_compile") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 eval "$as_ac_Header=yes"
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 eval "$as_ac_Header=no"
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 ac_res=`eval echo '${'$as_ac_Header'}'`
10975 { echo "$as_me:$LINENO: result: $ac_res" >&5
10976 echo "${ECHO_T}$ac_res" >&6; }
10977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10982 ac_header_dirent=$ac_hdr; break
10986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10987 if test $ac_header_dirent = dirent.h; then
10988 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10989 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10990 if test "${ac_cv_search_opendir+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 ac_func_search_save_LIBS=$LIBS
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 for ac_lib in '' dir; do
11017 if test -z "$ac_lib"; then
11018 ac_res="none required"
11021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_search_opendir=$ac_res
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11065 rm -f core conftest.err conftest.$ac_objext \
11067 if test "${ac_cv_search_opendir+set}" = set; then
11071 if test "${ac_cv_search_opendir+set}" = set; then
11074 ac_cv_search_opendir=no
11076 rm conftest.$ac_ext
11077 LIBS=$ac_func_search_save_LIBS
11079 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11080 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11081 ac_res=$ac_cv_search_opendir
11082 if test "$ac_res" != no; then
11083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11088 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11089 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11090 if test "${ac_cv_search_opendir+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 ac_func_search_save_LIBS=$LIBS
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11116 for ac_lib in '' x; do
11117 if test -z "$ac_lib"; then
11118 ac_res="none required"
11121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11132 grep -v '^ *+' conftest.er1 >conftest.err
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11138 { (case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_try") 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_cv_search_opendir=$ac_res
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f core conftest.err conftest.$ac_objext \
11167 if test "${ac_cv_search_opendir+set}" = set; then
11171 if test "${ac_cv_search_opendir+set}" = set; then
11174 ac_cv_search_opendir=no
11176 rm conftest.$ac_ext
11177 LIBS=$ac_func_search_save_LIBS
11179 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11180 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11181 ac_res=$ac_cv_search_opendir
11182 if test "$ac_res" != no; then
11183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11190 # This must be after CXXCPP
11192 { echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
11193 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6; }
11194 if test "${ucsim_cv_fd+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ucsim_cv_fd="unknown"
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11205 #include <winsock2.h>
11210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11211 $EGREP "yes" >/dev/null 2>&1; then
11212 ucsim_cv_fd="<winsock2.h>"
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11223 #include <sys/time.h>
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229 $EGREP "yes" >/dev/null 2>&1; then
11230 ucsim_cv_fd="<sys/time.h>"
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11241 #include <sys/types.h>
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "yes" >/dev/null 2>&1; then
11248 ucsim_cv_fd="<sys/types.h>"
11252 cat >conftest.$ac_ext <<_ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11259 #include <sys/select.h>
11264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11265 $EGREP "yes" >/dev/null 2>&1; then
11266 ucsim_cv_fd="<sys/select.h>"
11271 { echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
11272 echo "${ECHO_T}$ucsim_cv_fd" >&6; }
11274 ucsim_cv_header_ok=0
11275 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define FD_NEED_TIME_H 1
11280 ucsim_cv_header_ok=1
11282 cat >>confdefs.h <<\_ACEOF
11283 #define FD_NEED_TIME_H 0
11287 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define FD_NEED_TYPES_H 1
11292 ucsim_cv_header_ok=1
11294 cat >>confdefs.h <<\_ACEOF
11295 #define FD_NEED_TYPES_H 0
11299 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define FD_NEED_SELECT_H 1
11304 ucsim_cv_header_ok=1
11306 cat >>confdefs.h <<\_ACEOF
11307 #define FD_NEED_SELECT_H 0
11311 if echo $ucsim_cv_fd|grep winsock2 >/dev/null 2>&1; then
11312 cat >>confdefs.h <<\_ACEOF
11313 #define FD_NEED_WINSOCK2_H 1
11316 ucsim_cv_header_ok=1
11318 cat >>confdefs.h <<\_ACEOF
11319 #define FD_NEED_WINSOCK2_H 0
11324 cat >>confdefs.h <<_ACEOF
11325 #define FD_HEADER_OK ${ucsim_cv_header_ok}
11328 cat >>confdefs.h <<_ACEOF
11329 #define HEADER_FD ${ucsim_cv_fd}
11334 # Checking for functions/libs
11335 # ===========================================================================
11336 if echo $ucsim_cv_socket|grep winsock2 >/dev/null 2>&1; then
11337 LIBS="-lws2_32 $LIBS"
11340 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11341 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
11342 if test "${ac_cv_lib_socket_socket+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-lsocket $LIBS"
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_link") 2>conftest.er1
11378 grep -v '^ *+' conftest.er1 >conftest.err
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11384 { (case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_try") 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest$ac_exeext'
11394 { (case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_try") 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ac_cv_lib_socket_socket=yes
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_cv_lib_socket_socket=no
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11416 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
11417 if test $ac_cv_lib_socket_socket = yes; then
11418 cat >>confdefs.h <<_ACEOF
11419 #define HAVE_LIBSOCKET 1
11422 LIBS="-lsocket $LIBS"
11427 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
11428 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
11429 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_check_lib_save_LIBS=$LIBS
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11451 return xdr_short ();
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest$ac_exeext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_lib_nsl_xdr_short=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_lib_nsl_xdr_short=no
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
11503 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
11504 if test $ac_cv_lib_nsl_xdr_short = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_LIBNSL 1
11515 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_check_lib_save_LIBS=$LIBS
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11553 grep -v '^ *+' conftest.er1 >conftest.err
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_try") 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 ac_cv_lib_dl_dlopen=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_lib_dl_dlopen=no
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11592 if test $ac_cv_lib_dl_dlopen = yes; then
11603 #AC_CHECK_LIB(panel,panel_above,
11606 #CURSES_LIBS="-lpanel -lcurses"
11609 #AC_CHECK_LIB(curses,nl,
11611 #CURSES_LIBS="-lcurses"
11617 if test $curses_h_ok != yes; then
11621 { echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
11622 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6; }
11623 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lpanel $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11641 char panel_above ();
11645 return panel_above ();
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_cv_lib_panel_panel_above=yes
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_cv_lib_panel_panel_above=no
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 { echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
11697 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6; }
11698 if test $ac_cv_lib_panel_panel_above = yes; then
11701 CURSES_LIBS="-lpanel"
11709 if test $curses_ok != yes; then
11710 { echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
11711 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6; }
11712 if test "${ac_cv_lib_curses_nl+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 ac_check_lib_save_LIBS=$LIBS
11716 LIBS="-lcurses $LIBS"
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_try") 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_lib_curses_nl=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_cv_lib_curses_nl=no
11781 rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11785 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
11786 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6; }
11787 if test $ac_cv_lib_curses_nl = yes; then
11789 CURSES_LIBS="-lcurses"
11796 if test $curses_ok != yes; then
11797 { echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
11798 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6; }
11799 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lncurses $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_lib_ncurses_nl=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_ncurses_nl=no
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
11873 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6; }
11874 if test $ac_cv_lib_ncurses_nl = yes; then
11876 CURSES_LIBS="-lncurses"
11889 for ac_func in vprintf
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905 #define $ac_func innocuous_$ac_func
11907 /* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11913 # include <limits.h>
11915 # include <assert.h>
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11927 /* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 return $ac_func ();
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 eval "$as_ac_var=yes"
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 eval "$as_ac_var=no"
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11996 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11997 if test "${ac_cv_func__doprnt+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 cat >conftest.$ac_ext <<_ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12008 #define _doprnt innocuous__doprnt
12010 /* System header to define __stub macros and hopefully few prototypes,
12011 which can conflict with char _doprnt (); below.
12012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 <limits.h> exists even on freestanding compilers. */
12016 # include <limits.h>
12018 # include <assert.h>
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12030 /* The GNU C library defines this for functions which it implements
12031 to always fail with ENOSYS. Some functions are actually named
12032 something starting with __ and the normal name is an alias. */
12033 #if defined __stub__doprnt || defined __stub____doprnt
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12060 { (case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_try") 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_try") 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_func__doprnt=yes
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 ac_cv_func__doprnt=no
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12090 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12092 if test $ac_cv_func__doprnt = yes; then
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_DOPRNT 1
12105 for ac_func in vsnprintf
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12121 #define $ac_func innocuous_$ac_func
12123 /* System header to define __stub macros and hopefully few prototypes,
12124 which can conflict with char $ac_func (); below.
12125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126 <limits.h> exists even on freestanding compilers. */
12129 # include <limits.h>
12131 # include <assert.h>
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined __stub_$ac_func || defined __stub___$ac_func
12153 return $ac_func ();
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 eval "$as_ac_var=yes"
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 eval "$as_ac_var=no"
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12203 ac_res=`eval echo '${'$as_ac_var'}'`
12204 { echo "$as_me:$LINENO: result: $ac_res" >&5
12205 echo "${ECHO_T}$ac_res" >&6; }
12206 if test `eval echo '${'$as_ac_var'}'` = yes; then
12207 cat >>confdefs.h <<_ACEOF
12208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 for ac_func in _vsnprintf
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12231 #define $ac_func innocuous_$ac_func
12233 /* System header to define __stub macros and hopefully few prototypes,
12234 which can conflict with char $ac_func (); below.
12235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12236 <limits.h> exists even on freestanding compilers. */
12239 # include <limits.h>
12241 # include <assert.h>
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12253 /* The GNU C library defines this for functions which it implements
12254 to always fail with ENOSYS. Some functions are actually named
12255 something starting with __ and the normal name is an alias. */
12256 #if defined __stub_$ac_func || defined __stub___$ac_func
12263 return $ac_func ();
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_link") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1 >conftest.err
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12283 { (case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest$ac_exeext'
12293 { (case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_try") 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 eval "$as_ac_var=yes"
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 eval "$as_ac_var=no"
12310 rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12313 ac_res=`eval echo '${'$as_ac_var'}'`
12314 { echo "$as_me:$LINENO: result: $ac_res" >&5
12315 echo "${ECHO_T}$ac_res" >&6; }
12316 if test `eval echo '${'$as_ac_var'}'` = yes; then
12317 cat >>confdefs.h <<_ACEOF
12318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12325 for ac_func in vasprintf
12327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12341 #define $ac_func innocuous_$ac_func
12343 /* System header to define __stub macros and hopefully few prototypes,
12344 which can conflict with char $ac_func (); below.
12345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12346 <limits.h> exists even on freestanding compilers. */
12349 # include <limits.h>
12351 # include <assert.h>
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12363 /* The GNU C library defines this for functions which it implements
12364 to always fail with ENOSYS. Some functions are actually named
12365 something starting with __ and the normal name is an alias. */
12366 #if defined __stub_$ac_func || defined __stub___$ac_func
12373 return $ac_func ();
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (ac_try="$ac_link"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_link") 2>conftest.er1
12387 grep -v '^ *+' conftest.er1 >conftest.err
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 eval "$as_ac_var=yes"
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 eval "$as_ac_var=no"
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12423 ac_res=`eval echo '${'$as_ac_var'}'`
12424 { echo "$as_me:$LINENO: result: $ac_res" >&5
12425 echo "${ECHO_T}$ac_res" >&6; }
12426 if test `eval echo '${'$as_ac_var'}'` = yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
12444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12458 #define $ac_func innocuous_$ac_func
12460 /* System header to define __stub macros and hopefully few prototypes,
12461 which can conflict with char $ac_func (); below.
12462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 <limits.h> exists even on freestanding compilers. */
12466 # include <limits.h>
12468 # include <assert.h>
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined __stub_$ac_func || defined __stub___$ac_func
12490 return $ac_func ();
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (ac_try="$ac_link"
12497 case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_link") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12510 { (case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_try") 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_try") 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 eval "$as_ac_var=yes"
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 eval "$as_ac_var=no"
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12540 ac_res=`eval echo '${'$as_ac_var'}'`
12541 { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12543 if test `eval echo '${'$as_ac_var'}'` = yes; then
12544 cat >>confdefs.h <<_ACEOF
12545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 for ac_func in strchr memcpy
12555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12569 #define $ac_func innocuous_$ac_func
12571 /* System header to define __stub macros and hopefully few prototypes,
12572 which can conflict with char $ac_func (); below.
12573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574 <limits.h> exists even on freestanding compilers. */
12577 # include <limits.h>
12579 # include <assert.h>
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined __stub_$ac_func || defined __stub___$ac_func
12601 return $ac_func ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 eval "$as_ac_var=yes"
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 eval "$as_ac_var=no"
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12651 ac_res=`eval echo '${'$as_ac_var'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655 cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12663 for ac_func in fgets
12665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12679 #define $ac_func innocuous_$ac_func
12681 /* System header to define __stub macros and hopefully few prototypes,
12682 which can conflict with char $ac_func (); below.
12683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 <limits.h> exists even on freestanding compilers. */
12687 # include <limits.h>
12689 # include <assert.h>
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined __stub_$ac_func || defined __stub___$ac_func
12711 return $ac_func ();
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 eval "$as_ac_var=yes"
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 eval "$as_ac_var=no"
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12761 ac_res=`eval echo '${'$as_ac_var'}'`
12762 { echo "$as_me:$LINENO: result: $ac_res" >&5
12763 echo "${ECHO_T}$ac_res" >&6; }
12764 if test `eval echo '${'$as_ac_var'}'` = yes; then
12765 cat >>confdefs.h <<_ACEOF
12766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 for ac_func in yylex
12775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12789 #define $ac_func innocuous_$ac_func
12791 /* System header to define __stub macros and hopefully few prototypes,
12792 which can conflict with char $ac_func (); below.
12793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12794 <limits.h> exists even on freestanding compilers. */
12797 # include <limits.h>
12799 # include <assert.h>
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12811 /* The GNU C library defines this for functions which it implements
12812 to always fail with ENOSYS. Some functions are actually named
12813 something starting with __ and the normal name is an alias. */
12814 #if defined __stub_$ac_func || defined __stub___$ac_func
12821 return $ac_func ();
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12841 { (case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_try") 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest$ac_exeext'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 eval "$as_ac_var=yes"
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 eval "$as_ac_var=no"
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12871 ac_res=`eval echo '${'$as_ac_var'}'`
12872 { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12874 if test `eval echo '${'$as_ac_var'}'` = yes; then
12875 cat >>confdefs.h <<_ACEOF
12876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12883 { echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
12884 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6; }
12885 if test "${ucsim_cv_scanf_a+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 echo "a b" >conftest.data
12889 if test "$cross_compiling" = yes; then
12890 ucsim_cv_scanf_a="unknown"
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12905 if ((f= fopen("conftest.data", "r")) == NULL)
12907 i= fscanf(f, " %a[a-z] ", &a);
12916 rm -f conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_link") 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927 { (case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_try") 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ucsim_cv_scanf_a="yes"
12938 echo "$as_me: program exited with status $ac_status" >&5
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ( exit $ac_status )
12943 ucsim_cv_scanf_a="no"
12945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951 { echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
12952 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6; }
12953 if test "$ucsim_cv_scanf_a" = "yes"; then
12954 cat >>confdefs.h <<\_ACEOF
12960 { echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
12961 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6; }
12962 if test "${ucsim_cv_getcwd+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 if test "$cross_compiling" = yes; then
12966 ucsim_cv_getcwd="unknown"
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12975 #include <unistd.h>
12978 if ((getcwd(NULL, 0)) == NULL)
12983 rm -f conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ucsim_cv_getcwd="yes"
13005 echo "$as_me: program exited with status $ac_status" >&5
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ( exit $ac_status )
13010 ucsim_cv_getcwd="no"
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13018 { echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
13019 echo "${ECHO_T}$ucsim_cv_getcwd" >&6; }
13020 if test "$ucsim_cv_getcwd" = "yes"; then
13021 cat >>confdefs.h <<\_ACEOF
13022 #define GNU_GETCWD 1
13030 { echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
13031 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6; }
13032 if test "${ucsim_cv_accept_length_type+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 ac_save_CPPFLAGS="$CPPFLAGS"
13036 ucsim_cv_accept_length_type=no
13037 for ac_val in int size_t socklen_t; do
13038 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <sys/types.h>
13046 #include ${ucsim_cv_socket}
13050 struct sockaddr a; $ac_val len; accept (0, &a, &len);
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compile") 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ucsim_cv_accept_length_type=$ac_val; break
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 CPPFLAGS="$ac_save_CPPFLAGS"
13101 { echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
13102 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6; }
13103 if test "$ucsim_cv_accept_length_type" != no; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
13113 # Macro definitions
13114 ###################
13116 # DD_COPT macro checks if the compiler specified as the 1st parameter
13117 # supports option specified as the 2nd parameter
13118 # For example: DD_COPT(CXX, fPIC)
13123 # Checking characteristics of compilers and other programs
13124 # --------------------------------------------------------
13126 # Cross compiling overrides
13128 if test "$CC" = "i586-mingw32msvc-gcc"; then
13129 ac_cv_c_bigendian=no
13130 ac_cv_sizeof_char=1
13131 ac_cv_sizeof_short=2
13133 ac_cv_sizeof_long=4
13134 ac_cv_sizeof_long_long=4
13137 if test "$cross_compiling" = "no"
13139 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13141 if test "${ac_cv_c_bigendian+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 # See if sys/param.h defines the BYTE_ORDER macro.
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 #include <sys/types.h>
13152 #include <sys/param.h>
13157 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13158 bogus endian macros
13165 rm -f conftest.$ac_objext
13166 if { (ac_try="$ac_compile"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compile") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest.$ac_objext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 # It does; now see whether it defined to BIG_ENDIAN or not.
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <sys/types.h>
13207 #include <sys/param.h>
13212 #if BYTE_ORDER != BIG_ENDIAN
13220 rm -f conftest.$ac_objext
13221 if { (ac_try="$ac_compile"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_compile") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_c_bigendian=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_cv_c_bigendian=no
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 # It does not; compile a test program.
13268 if test "$cross_compiling" = yes; then
13269 # try to guess the endianness by grepping values into an object file
13270 ac_cv_c_bigendian=unknown
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13278 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13279 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13280 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13281 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13282 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13286 _ascii (); _ebcdic ();
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_compile") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1 >conftest.err
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13306 { (case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_try") 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13326 ac_cv_c_bigendian=yes
13328 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13329 if test "$ac_cv_c_bigendian" = unknown; then
13330 ac_cv_c_bigendian=no
13332 # finding both strings is unlikely to happen, but who knows?
13333 ac_cv_c_bigendian=unknown
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 $ac_includes_default
13356 /* Are we little or big endian? From Harbison&Steele. */
13360 char c[sizeof (long int)];
13363 return u.c[sizeof (long int) - 1] == 1;
13369 rm -f conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_link") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_c_bigendian=no
13391 echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ( exit $ac_status )
13396 ac_cv_c_bigendian=yes
13398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13407 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13408 case $ac_cv_c_bigendian in
13411 cat >>confdefs.h <<\_ACEOF
13412 #define WORDS_BIGENDIAN 1
13418 { { echo "$as_me:$LINENO: error: unknown endianness
13419 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13420 echo "$as_me: error: unknown endianness
13421 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13422 { (exit 1); exit 1; }; } ;;
13426 #echo "CROSS ENDIAN"
13427 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
13428 ac_cv_c_bigendian=no
13432 #echo "CROSS ENDIAN DONE"
13435 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
13436 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
13437 if test "${ucsim_cv_MM+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 echo "#include <stdio.h>" >_test_.c
13442 $CXXCPP -v -MM _test_.c 1>&5 2>&5
13443 if test "$?" = "0"; then
13450 { echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
13451 echo "${ECHO_T}$ucsim_cv_MM" >&6; }
13452 M_OR_MM=$ucsim_cv_MM
13455 # This is the first time when CFLAGS are set/modified!!
13458 { echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
13459 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6; }
13460 if test "${ucsim_cv_CXXggdb+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 cat >_test_.c <<EOF
13465 int main(void) {return(0);}
13467 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
13468 if test "$?" = "0"; then
13469 ucsim_cv_CXXggdb="yes"
13471 ucsim_cv_CXXggdb="no"
13473 rm -f _test_.* a.out
13475 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
13476 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6; }
13479 { echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
13480 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6; }
13481 if test "${ucsim_cv_CXXgstabs+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 cat >_test_.c <<EOF
13486 int main(void) {return(0);}
13488 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
13489 if test "$?" = "0"; then
13490 ucsim_cv_CXXgstabs="yes"
13492 ucsim_cv_CXXgstabs="no"
13494 rm -f _test_.* a.out
13496 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
13497 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6; }
13499 if test "$ucsim_cv_CXXgstabs" = "yes"; then
13500 gopt="-gstabs+ -g3"
13501 elif test "$ucsim_cv_CXXggdb" = "yes"; then
13506 if test "$CXXFLAGS"x = x ;then
13509 CXXFLAGS="$CXXFLAGS $gopt"
13513 { echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
13514 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6; }
13515 if test "${ucsim_cv_CXXpipe+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 cat >_test_.c <<EOF
13520 int main(void) {return(0);}
13522 $CXX -v -pipe -c _test_.c 1>&5 2>&5
13523 if test "$?" = "0"; then
13524 ucsim_cv_CXXpipe="yes"
13526 ucsim_cv_CXXpipe="no"
13528 rm -f _test_.* a.out
13530 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
13531 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6; }
13533 if test "$ucsim_cv_CXXpipe" = "yes"; then
13534 CXXFLAGS="$CXXFLAGS -pipe"
13540 { echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
13541 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6; }
13542 if test "${ucsim_cv_CXXfPIC+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 cat >_test_.c <<EOF
13547 int main(void) {return(0);}
13549 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
13550 if test "$?" = "0"; then
13551 ucsim_cv_CXXfPIC="yes"
13553 ucsim_cv_CXXfPIC="no"
13555 rm -f _test_.* a.out
13557 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
13558 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6; }
13560 if test "$ucsim_cv_CXXfPIC" = "yes"; then
13564 { echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
13565 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6; }
13566 if test "${ucsim_cv_CXXfpic+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 cat >_test_.c <<EOF
13571 int main(void) {return(0);}
13573 $CXX -v -fpic -c _test_.c 1>&5 2>&5
13574 if test "$?" = "0"; then
13575 ucsim_cv_CXXfpic="yes"
13577 ucsim_cv_CXXfpic="no"
13579 rm -f _test_.* a.out
13581 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
13582 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6; }
13584 if test "$ucsim_cv_CXXfpic" = "yes"; then
13588 if test "$PICOPT"x != "x"; then
13591 # If this is Cygwin neither use Position Independant Code
13593 # Quick + dirty by Bernhard
13595 if $CXX --version 2>&1 | grep -i cygming 1>&5 2>&5 || $CXX --version 2>&1 | grep -i cygwin 1>&5 2>&5; then
13603 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
13608 # Checks for typedefs, structures, and compiler characteristics.
13609 # ===========================================================================
13611 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13612 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13613 if test "${ac_cv_type_signal+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13623 #include <signal.h>
13628 return *(signal (0, 0)) (0) == 1;
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_compile") 2>conftest.er1
13642 grep -v '^ *+' conftest.er1 >conftest.err
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest.$ac_objext'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_cv_type_signal=int
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 ac_cv_type_signal=void
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13678 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13680 cat >>confdefs.h <<_ACEOF
13681 #define RETSIGTYPE $ac_cv_type_signal
13685 if test "$cross_compiling" = "no"; then
13686 { echo "$as_me:$LINENO: checking for char" >&5
13687 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
13688 if test "${ac_cv_type_char+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 $ac_includes_default
13698 typedef char ac__type_new_;
13702 if ((ac__type_new_ *) 0)
13704 if (sizeof (ac__type_new_))
13710 rm -f conftest.$ac_objext
13711 if { (ac_try="$ac_compile"
13712 case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_compile") 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13725 { (case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_try") 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest.$ac_objext'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_type_char=yes
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13755 echo "${ECHO_T}$ac_cv_type_char" >&6; }
13757 { echo "$as_me:$LINENO: checking size of char" >&5
13758 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
13759 if test "${ac_cv_sizeof_char+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 if test "$ac_cv_type_char" = yes; then
13763 # The cast to long int works around a bug in the HP C Compiler
13764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13766 # This bug is HP SR number 8606223364.
13767 if test "$cross_compiling" = yes; then
13768 # Depending upon the size, compute the lo and hi bounds.
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 typedef char ac__type_sizeof_;
13780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13787 rm -f conftest.$ac_objext
13788 if { (ac_try="$ac_compile"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_compile") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 $ac_includes_default
13830 typedef char ac__type_sizeof_;
13834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_compile") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_hi=$ac_mid; break
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_lo=`expr $ac_mid + 1`
13881 if test $ac_lo -le $ac_mid; then
13885 ac_mid=`expr 2 '*' $ac_mid + 1`
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 cat >conftest.$ac_ext <<_ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13901 typedef char ac__type_sizeof_;
13905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13912 rm -f conftest.$ac_objext
13913 if { (ac_try="$ac_compile"
13914 case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_compile") 2>conftest.er1
13921 grep -v '^ *+' conftest.er1 >conftest.err
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13927 { (case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_try") 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; 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
13955 typedef char ac__type_sizeof_;
13959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_lo=$ac_mid; break
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_hi=`expr '(' $ac_mid ')' - 1`
14006 if test $ac_mid -le $ac_hi; then
14010 ac_mid=`expr 2 '*' $ac_mid`
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 # Binary search between lo and hi bounds.
14027 while test "x$ac_lo" != "x$ac_hi"; do
14028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 $ac_includes_default
14036 typedef char ac__type_sizeof_;
14040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_compile") 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest.$ac_objext'
14072 { (case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_try") 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_lo=`expr '(' $ac_mid ')' + 1`
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 ?*) ac_cv_sizeof_char=$ac_lo;;
14093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14094 See \`config.log' for more details." >&5
14095 echo "$as_me: error: cannot compute sizeof (char)
14096 See \`config.log' for more details." >&2;}
14097 { (exit 77); exit 77; }; } ;;
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 $ac_includes_default
14107 typedef char ac__type_sizeof_;
14108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14111 #include <stdlib.h>
14116 FILE *f = fopen ("conftest.val", "w");
14119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14121 long int i = longval ();
14122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14124 fprintf (f, "%ld\n", i);
14128 unsigned long int i = ulongval ();
14129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14131 fprintf (f, "%lu\n", i);
14133 return ferror (f) || fclose (f) != 0;
14139 rm -f conftest$ac_exeext
14140 if { (ac_try="$ac_link"
14141 case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_link") 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14150 { (case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_try") 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_sizeof_char=`cat conftest.val`
14161 echo "$as_me: program exited with status $ac_status" >&5
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ( exit $ac_status )
14166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14167 See \`config.log' for more details." >&5
14168 echo "$as_me: error: cannot compute sizeof (char)
14169 See \`config.log' for more details." >&2;}
14170 { (exit 77); exit 77; }; }
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14176 ac_cv_sizeof_char=0
14179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14180 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
14181 cat >>confdefs.h <<_ACEOF
14182 #define SIZEOF_CHAR $ac_cv_sizeof_char
14186 { echo "$as_me:$LINENO: checking for short" >&5
14187 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
14188 if test "${ac_cv_type_short+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 typedef short ac__type_new_;
14202 if ((ac__type_new_ *) 0)
14204 if (sizeof (ac__type_new_))
14210 rm -f conftest.$ac_objext
14211 if { (ac_try="$ac_compile"
14212 case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_compile") 2>conftest.er1
14219 grep -v '^ *+' conftest.er1 >conftest.err
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_type_short=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_type_short=no
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14255 echo "${ECHO_T}$ac_cv_type_short" >&6; }
14257 { echo "$as_me:$LINENO: checking size of short" >&5
14258 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
14259 if test "${ac_cv_sizeof_short+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 if test "$ac_cv_type_short" = yes; then
14263 # The cast to long int works around a bug in the HP C Compiler
14264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14266 # This bug is HP SR number 8606223364.
14267 if test "$cross_compiling" = yes; then
14268 # Depending upon the size, compute the lo and hi bounds.
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 $ac_includes_default
14276 typedef short ac__type_sizeof_;
14280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_compile") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 typedef short ac__type_sizeof_;
14334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14341 rm -f conftest.$ac_objext
14342 if { (ac_try="$ac_compile"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_compile") 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14356 { (case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_try") 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_try") 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 ac_hi=$ac_mid; break
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 ac_lo=`expr $ac_mid + 1`
14381 if test $ac_lo -le $ac_mid; then
14385 ac_mid=`expr 2 '*' $ac_mid + 1`
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 $ac_includes_default
14401 typedef short ac__type_sizeof_;
14405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_compile") 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14427 { (case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_try") 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 $ac_includes_default
14455 typedef short ac__type_sizeof_;
14459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_lo=$ac_mid; break
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_hi=`expr '(' $ac_mid ')' - 1`
14506 if test $ac_mid -le $ac_hi; then
14510 ac_mid=`expr 2 '*' $ac_mid`
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 # Binary search between lo and hi bounds.
14527 while test "x$ac_lo" != "x$ac_hi"; do
14528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14536 typedef short ac__type_sizeof_;
14540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_compile") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14562 { (case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_try") 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_try") 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_lo=`expr '(' $ac_mid ')' + 1`
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 ?*) ac_cv_sizeof_short=$ac_lo;;
14593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14594 See \`config.log' for more details." >&5
14595 echo "$as_me: error: cannot compute sizeof (short)
14596 See \`config.log' for more details." >&2;}
14597 { (exit 77); exit 77; }; } ;;
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 typedef short ac__type_sizeof_;
14608 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14609 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14611 #include <stdlib.h>
14616 FILE *f = fopen ("conftest.val", "w");
14619 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14621 long int i = longval ();
14622 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14624 fprintf (f, "%ld\n", i);
14628 unsigned long int i = ulongval ();
14629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14631 fprintf (f, "%lu\n", i);
14633 return ferror (f) || fclose (f) != 0;
14639 rm -f conftest$ac_exeext
14640 if { (ac_try="$ac_link"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_link") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_sizeof_short=`cat conftest.val`
14661 echo "$as_me: program exited with status $ac_status" >&5
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ( exit $ac_status )
14666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14667 See \`config.log' for more details." >&5
14668 echo "$as_me: error: cannot compute sizeof (short)
14669 See \`config.log' for more details." >&2;}
14670 { (exit 77); exit 77; }; }
14672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14676 ac_cv_sizeof_short=0
14679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14680 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
14681 cat >>confdefs.h <<_ACEOF
14682 #define SIZEOF_SHORT $ac_cv_sizeof_short
14686 { echo "$as_me:$LINENO: checking for int" >&5
14687 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14688 if test "${ac_cv_type_int+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 $ac_includes_default
14698 typedef int ac__type_new_;
14702 if ((ac__type_new_ *) 0)
14704 if (sizeof (ac__type_new_))
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14719 grep -v '^ *+' conftest.er1 >conftest.err
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14725 { (case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_try") 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_try") 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14755 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14757 { echo "$as_me:$LINENO: checking size of int" >&5
14758 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14759 if test "${ac_cv_sizeof_int+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 if test "$ac_cv_type_int" = yes; then
14763 # The cast to long int works around a bug in the HP C Compiler
14764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14766 # This bug is HP SR number 8606223364.
14767 if test "$cross_compiling" = yes; then
14768 # Depending upon the size, compute the lo and hi bounds.
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14776 typedef int ac__type_sizeof_;
14780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14823 cat >conftest.$ac_ext <<_ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 $ac_includes_default
14830 typedef int ac__type_sizeof_;
14834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14856 { (case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_try") 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_try") 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_hi=$ac_mid; break
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_lo=`expr $ac_mid + 1`
14881 if test $ac_lo -le $ac_mid; then
14885 ac_mid=`expr 2 '*' $ac_mid + 1`
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 typedef int ac__type_sizeof_;
14905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14927 { (case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_try") 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
14937 { (case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942 (eval "$ac_try") 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 $ac_includes_default
14955 typedef int ac__type_sizeof_;
14959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest.$ac_objext'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 ac_lo=$ac_mid; break
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_hi=`expr '(' $ac_mid ')' - 1`
15006 if test $ac_mid -le $ac_hi; then
15010 ac_mid=`expr 2 '*' $ac_mid`
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 # Binary search between lo and hi bounds.
15027 while test "x$ac_lo" != "x$ac_hi"; do
15028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 typedef int ac__type_sizeof_;
15040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15047 rm -f conftest.$ac_objext
15048 if { (ac_try="$ac_compile"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_compile") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_lo=`expr '(' $ac_mid ')' + 1`
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092 ?*) ac_cv_sizeof_int=$ac_lo;;
15093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15094 See \`config.log' for more details." >&5
15095 echo "$as_me: error: cannot compute sizeof (int)
15096 See \`config.log' for more details." >&2;}
15097 { (exit 77); exit 77; }; } ;;
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 typedef int ac__type_sizeof_;
15108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15111 #include <stdlib.h>
15116 FILE *f = fopen ("conftest.val", "w");
15119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15121 long int i = longval ();
15122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15124 fprintf (f, "%ld\n", i);
15128 unsigned long int i = ulongval ();
15129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15131 fprintf (f, "%lu\n", i);
15133 return ferror (f) || fclose (f) != 0;
15139 rm -f conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150 { (case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_try") 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_sizeof_int=`cat conftest.val`
15161 echo "$as_me: program exited with status $ac_status" >&5
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ( exit $ac_status )
15166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15167 See \`config.log' for more details." >&5
15168 echo "$as_me: error: cannot compute sizeof (int)
15169 See \`config.log' for more details." >&2;}
15170 { (exit 77); exit 77; }; }
15172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15180 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15181 cat >>confdefs.h <<_ACEOF
15182 #define SIZEOF_INT $ac_cv_sizeof_int
15186 { echo "$as_me:$LINENO: checking for long" >&5
15187 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
15188 if test "${ac_cv_type_long+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 typedef long ac__type_new_;
15202 if ((ac__type_new_ *) 0)
15204 if (sizeof (ac__type_new_))
15210 rm -f conftest.$ac_objext
15211 if { (ac_try="$ac_compile"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_compile") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_cv_type_long=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15255 echo "${ECHO_T}$ac_cv_type_long" >&6; }
15257 { echo "$as_me:$LINENO: checking size of long" >&5
15258 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
15259 if test "${ac_cv_sizeof_long+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 if test "$ac_cv_type_long" = yes; then
15263 # The cast to long int works around a bug in the HP C Compiler
15264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15266 # This bug is HP SR number 8606223364.
15267 if test "$cross_compiling" = yes; then
15268 # Depending upon the size, compute the lo and hi bounds.
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15276 typedef long ac__type_sizeof_;
15280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15287 rm -f conftest.$ac_objext
15288 if { (ac_try="$ac_compile"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_compile") 2>conftest.er1
15296 grep -v '^ *+' conftest.er1 >conftest.err
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15302 { (case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_try") 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 typedef long ac__type_sizeof_;
15334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15341 rm -f conftest.$ac_objext
15342 if { (ac_try="$ac_compile"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_compile") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15356 { (case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_try") 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_hi=$ac_mid; break
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_lo=`expr $ac_mid + 1`
15381 if test $ac_lo -le $ac_mid; then
15385 ac_mid=`expr 2 '*' $ac_mid + 1`
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 typedef long ac__type_sizeof_;
15405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_compile") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest.$ac_objext'
15437 { (case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442 (eval "$ac_try") 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 $ac_includes_default
15455 typedef long ac__type_sizeof_;
15459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_lo=$ac_mid; break
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_hi=`expr '(' $ac_mid ')' - 1`
15506 if test $ac_mid -le $ac_hi; then
15510 ac_mid=`expr 2 '*' $ac_mid`
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 # Binary search between lo and hi bounds.
15527 while test "x$ac_lo" != "x$ac_hi"; do
15528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 $ac_includes_default
15536 typedef long ac__type_sizeof_;
15540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_lo=`expr '(' $ac_mid ')' + 1`
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 ?*) ac_cv_sizeof_long=$ac_lo;;
15593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15594 See \`config.log' for more details." >&5
15595 echo "$as_me: error: cannot compute sizeof (long)
15596 See \`config.log' for more details." >&2;}
15597 { (exit 77); exit 77; }; } ;;
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 $ac_includes_default
15607 typedef long ac__type_sizeof_;
15608 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15609 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15611 #include <stdlib.h>
15616 FILE *f = fopen ("conftest.val", "w");
15619 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15621 long int i = longval ();
15622 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15624 fprintf (f, "%ld\n", i);
15628 unsigned long int i = ulongval ();
15629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15631 fprintf (f, "%lu\n", i);
15633 return ferror (f) || fclose (f) != 0;
15639 rm -f conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_link") 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_sizeof_long=`cat conftest.val`
15661 echo "$as_me: program exited with status $ac_status" >&5
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ( exit $ac_status )
15666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15667 See \`config.log' for more details." >&5
15668 echo "$as_me: error: cannot compute sizeof (long)
15669 See \`config.log' for more details." >&2;}
15670 { (exit 77); exit 77; }; }
15672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15676 ac_cv_sizeof_long=0
15679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15680 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15681 cat >>confdefs.h <<_ACEOF
15682 #define SIZEOF_LONG $ac_cv_sizeof_long
15686 { echo "$as_me:$LINENO: checking for long long" >&5
15687 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
15688 if test "${ac_cv_type_long_long+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 $ac_includes_default
15698 typedef long long ac__type_new_;
15702 if ((ac__type_new_ *) 0)
15704 if (sizeof (ac__type_new_))
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15725 { (case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_try") 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_type_long_long=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_cv_type_long_long=no
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15755 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15757 { echo "$as_me:$LINENO: checking size of long long" >&5
15758 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
15759 if test "${ac_cv_sizeof_long_long+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 if test "$ac_cv_type_long_long" = yes; then
15763 # The cast to long int works around a bug in the HP C Compiler
15764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15766 # This bug is HP SR number 8606223364.
15767 if test "$cross_compiling" = yes; then
15768 # Depending upon the size, compute the lo and hi bounds.
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 $ac_includes_default
15776 typedef long long ac__type_sizeof_;
15780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_compile") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest.$ac_objext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 $ac_includes_default
15830 typedef long long ac__type_sizeof_;
15834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_compile") 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_hi=$ac_mid; break
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_lo=`expr $ac_mid + 1`
15881 if test $ac_lo -le $ac_mid; then
15885 ac_mid=`expr 2 '*' $ac_mid + 1`
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15901 typedef long long ac__type_sizeof_;
15905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15912 rm -f conftest.$ac_objext
15913 if { (ac_try="$ac_compile"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_compile") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15927 { (case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_try") 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest.$ac_objext'
15937 { (case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_try") 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15955 typedef long long ac__type_sizeof_;
15959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15981 { (case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_try") 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest.$ac_objext'
15991 { (case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_try") 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_lo=$ac_mid; break
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_hi=`expr '(' $ac_mid ')' - 1`
16006 if test $ac_mid -le $ac_hi; then
16010 ac_mid=`expr 2 '*' $ac_mid`
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 # Binary search between lo and hi bounds.
16027 while test "x$ac_lo" != "x$ac_hi"; do
16028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $ac_includes_default
16036 typedef long long ac__type_sizeof_;
16040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16047 rm -f conftest.$ac_objext
16048 if { (ac_try="$ac_compile"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_compile") 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16062 { (case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_try") 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_try") 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_lo=`expr '(' $ac_mid ')' + 1`
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
16094 See \`config.log' for more details." >&5
16095 echo "$as_me: error: cannot compute sizeof (long long)
16096 See \`config.log' for more details." >&2;}
16097 { (exit 77); exit 77; }; } ;;
16100 cat >conftest.$ac_ext <<_ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 $ac_includes_default
16107 typedef long long ac__type_sizeof_;
16108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
16109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16111 #include <stdlib.h>
16116 FILE *f = fopen ("conftest.val", "w");
16119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16121 long int i = longval ();
16122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16124 fprintf (f, "%ld\n", i);
16128 unsigned long int i = ulongval ();
16129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
16131 fprintf (f, "%lu\n", i);
16133 return ferror (f) || fclose (f) != 0;
16139 rm -f conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16150 { (case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_try") 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_cv_sizeof_long_long=`cat conftest.val`
16161 echo "$as_me: program exited with status $ac_status" >&5
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ( exit $ac_status )
16166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
16167 See \`config.log' for more details." >&5
16168 echo "$as_me: error: cannot compute sizeof (long long)
16169 See \`config.log' for more details." >&2;}
16170 { (exit 77); exit 77; }; }
16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16176 ac_cv_sizeof_long_long=0
16179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16180 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
16181 cat >>confdefs.h <<_ACEOF
16182 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16187 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
16188 ac_cv_sizeof_char=1
16189 ac_cv_sizeof_short=2
16191 ac_cv_sizeof_long=4
16192 ac_cv_sizeof_long_long=4
16201 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
16205 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
16209 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
16213 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
16217 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
16224 { echo "$as_me:$LINENO: checking type name for byte" >&5
16225 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
16226 TYPE_BYTE=`type_name 1`
16227 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
16228 echo "${ECHO_T}$TYPE_BYTE" >&6; }
16229 { echo "$as_me:$LINENO: checking type name for word" >&5
16230 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
16231 TYPE_WORD=`type_name 2`
16232 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
16233 echo "${ECHO_T}$TYPE_WORD" >&6; }
16234 { echo "$as_me:$LINENO: checking type name for dword" >&5
16235 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
16236 TYPE_DWORD=`type_name 4`
16237 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
16238 echo "${ECHO_T}$TYPE_DWORD" >&6; }
16239 cat >>confdefs.h <<_ACEOF
16240 #define TYPE_BYTE $TYPE_BYTE
16243 cat >>confdefs.h <<_ACEOF
16244 #define TYPE_WORD $TYPE_WORD
16247 cat >>confdefs.h <<_ACEOF
16248 #define TYPE_DWORD $TYPE_DWORD
16252 if echo $TYPE_DWORD|grep short >/dev/null; then
16254 elif echo $TYPE_DWORD|grep long >/dev/null; then
16260 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
16261 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
16265 cat >>confdefs.h <<_ACEOF
16269 cat >>confdefs.h <<_ACEOF
16274 # Generating output files
16275 # ===========================================================================
16277 ac_config_files="$ac_config_files Makefile main.mk:main_in.mk packages.mk:packages_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile hc08.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
16279 cat >confcache <<\_ACEOF
16280 # This file is a shell script that caches the results of configure
16281 # tests run on this system so they can be shared between configure
16282 # scripts and configure runs, see configure's option --config-cache.
16283 # It is not useful on other systems. If it contains results you don't
16284 # want to keep, you may remove or edit it.
16286 # config.status only pays attention to the cache file if you give it
16287 # the --recheck option to rerun configure.
16289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16291 # following values.
16295 # The following way of writing the cache mishandles newlines in values,
16296 # but we know of no workaround that is simple, portable, and efficient.
16297 # So, we kill variables containing newlines.
16298 # Ultrix sh set writes to stderr and can't be redirected directly,
16299 # and sets the high bit in the cache file unless we assign to the vars.
16301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16302 eval ac_val=\$$ac_var
16306 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16307 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16310 _ | IFS | as_nl) ;; #(
16311 *) $as_unset $ac_var ;;
16317 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16318 *${as_nl}ac_space=\ *)
16319 # `set' does not quote correctly, so add quotes (double-quote
16320 # substitution turns \\\\ into \\, and sed turns \\ into \).
16323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16326 # `set' quotes correctly as required by POSIX, so do not add quotes.
16327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16340 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16341 if test -w "$cache_file"; then
16342 test "x$cache_file" != "x/dev/null" &&
16343 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16344 echo "$as_me: updating cache $cache_file" >&6;}
16345 cat confcache >$cache_file
16347 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16348 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16354 # Let make expand exec_prefix.
16355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16357 DEFS=-DHAVE_CONFIG_H
16361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16362 # 1. Remove the extension, and $U if already installed.
16363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16364 ac_i=`echo "$ac_i" | sed "$ac_script"`
16365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16366 # will be set to the directory where LIBOBJS objects are built.
16367 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16368 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16370 LIBOBJS=$ac_libobjs
16372 LTLIBOBJS=$ac_ltlibobjs
16376 : ${CONFIG_STATUS=./config.status}
16377 ac_clean_files_save=$ac_clean_files
16378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16381 cat >$CONFIG_STATUS <<_ACEOF
16383 # Generated by $as_me.
16384 # Run this file to recreate the current configuration.
16385 # Compiler output produced by configure, useful for debugging
16386 # configure, is in config.log if it exists.
16389 ac_cs_recheck=false
16391 SHELL=\${CONFIG_SHELL-$SHELL}
16394 cat >>$CONFIG_STATUS <<\_ACEOF
16395 ## --------------------- ##
16396 ## M4sh Initialization. ##
16397 ## --------------------- ##
16399 # Be Bourne compatible
16400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16403 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16404 # is contrary to our usage. Disable this feature.
16405 alias -g '${1+"$@"}'='"$@"'
16406 setopt NO_GLOB_SUBST
16408 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
16410 BIN_SH=xpg4; export BIN_SH # for Tru64
16411 DUALCASE=1; export DUALCASE # for MKS sh
16415 # Avoid depending upon Character Ranges.
16416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16419 as_cr_digits='0123456789'
16420 as_cr_alnum=$as_cr_Letters$as_cr_digits
16422 # The user is always right.
16423 if test "${PATH_SEPARATOR+set}" != set; then
16424 echo "#! /bin/sh" >conf$$.sh
16425 echo "exit 0" >>conf$$.sh
16427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16435 # Support unset when possible.
16436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16444 # We need space, tab and new line, in precisely that order. Quoting is
16445 # there to prevent editors from complaining about space-tab.
16446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16447 # splitting by setting IFS to empty value.)
16452 # Find who we are. Look in the path if we contain no directory separator.
16454 *[\\/]* ) as_myself=$0 ;;
16455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16459 test -z "$as_dir" && as_dir=.
16460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16466 # We did not find ourselves, most probably we were run as `sh COMMAND'
16467 # in which case we are not to be found in the path.
16468 if test "x$as_myself" = x; then
16471 if test ! -f "$as_myself"; then
16472 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16473 { (exit 1); exit 1; }
16476 # Work around bugs in pre-3.0 UWIN ksh.
16477 for as_var in ENV MAIL MAILPATH
16478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16488 LC_TELEPHONE LC_TIME
16490 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16491 eval $as_var=C; export $as_var
16493 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16497 # Required to use basename.
16498 if expr a : '\(a\)' >/dev/null 2>&1 &&
16499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16506 as_basename=basename
16512 # Name of the executable.
16513 as_me=`$as_basename -- "$0" ||
16514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16515 X"$0" : 'X\(//\)$' \| \
16516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16518 sed '/^.*\/\([^/][^/]*\)\/*$/{
16537 as_lineno_1=$LINENO
16538 as_lineno_2=$LINENO
16539 test "x$as_lineno_1" != "x$as_lineno_2" &&
16540 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16542 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16543 # uniformly replaced by the line number. The first 'sed' inserts a
16544 # line-number line after each line using $LINENO; the second 'sed'
16545 # does the real work. The second script uses 'N' to pair each
16546 # line-number line with the line containing $LINENO, and appends
16547 # trailing '-' during substitution so that $LINENO is not a special
16548 # case at line end.
16549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16550 # scripts with optimization help from Paolo Bonzini. Blame Lee
16551 # E. McMahon (1931-1989) for sed's syntax. :-)
16563 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16566 ' >$as_me.lineno &&
16567 chmod +x "$as_me.lineno" ||
16568 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16569 { (exit 1); exit 1; }; }
16571 # Don't try to exec as it changes $[0], causing all sort of problems
16572 # (the dirname of $[0] is not the place where we might find the
16573 # original and so on. Autoconf is especially sensitive to this).
16574 . "./$as_me.lineno"
16575 # Exit status is that of the last command.
16580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16586 ECHO_C= ECHO_N= ECHO_T=
16587 case `echo -n x` in
16589 case `echo 'x\c'` in
16590 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16597 if expr a : '\(a\)' >/dev/null 2>&1 &&
16598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16604 rm -f conf$$ conf$$.exe conf$$.file
16605 if test -d conf$$.dir; then
16606 rm -f conf$$.dir/conf$$.file
16612 if ln -s conf$$.file conf$$ 2>/dev/null; then
16614 # ... but there are two gotchas:
16615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16617 # In both cases, we have to default to `cp -p'.
16618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16620 elif ln conf$$.file conf$$ 2>/dev/null; then
16625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16626 rmdir conf$$.dir 2>/dev/null
16628 if mkdir -p . 2>/dev/null; then
16631 test -d ./-p && rmdir ./-p
16635 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
16636 # systems may use methods other than mode bits to determine executability.
16637 cat >conf$$.file <<_ASEOF
16641 chmod +x conf$$.file
16642 if test -x conf$$.file >/dev/null 2>&1; then
16643 as_executable_p="test -x"
16649 # Sed expression to map a string onto a valid CPP name.
16650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16652 # Sed expression to map a string onto a valid variable name.
16653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16658 # Save the log message, to keep $[0] and so on meaningful, and to
16659 # report actual input values of CONFIG_FILES etc. instead of their
16660 # values after options handling.
16662 This file was extended by $as_me, which was
16663 generated by GNU Autoconf 2.60. Invocation command line was
16665 CONFIG_FILES = $CONFIG_FILES
16666 CONFIG_HEADERS = $CONFIG_HEADERS
16667 CONFIG_LINKS = $CONFIG_LINKS
16668 CONFIG_COMMANDS = $CONFIG_COMMANDS
16671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16676 cat >>$CONFIG_STATUS <<_ACEOF
16677 # Files that config.status was made for.
16678 config_files="$ac_config_files"
16679 config_headers="$ac_config_headers"
16683 cat >>$CONFIG_STATUS <<\_ACEOF
16685 \`$as_me' instantiates files from templates according to the
16686 current configuration.
16688 Usage: $0 [OPTIONS] [FILE]...
16690 -h, --help print this help, then exit
16691 -V, --version print version number, then exit
16692 -q, --quiet do not print progress messages
16693 -d, --debug don't remove temporary files
16694 --recheck update $as_me by reconfiguring in the same conditions
16695 --file=FILE[:TEMPLATE]
16696 instantiate the configuration file FILE
16697 --header=FILE[:TEMPLATE]
16698 instantiate the configuration header FILE
16700 Configuration files:
16703 Configuration headers:
16706 Report bugs to <bug-autoconf@gnu.org>."
16709 cat >>$CONFIG_STATUS <<_ACEOF
16712 configured by $0, generated by GNU Autoconf 2.60,
16713 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16715 Copyright (C) 2006 Free Software Foundation, Inc.
16716 This config.status script is free software; the Free Software Foundation
16717 gives unlimited permission to copy, distribute and modify it."
16724 cat >>$CONFIG_STATUS <<\_ACEOF
16725 # If no file are specified by the user, then we need to provide default
16726 # value. By we need to know if files were specified by the user.
16732 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16733 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16744 # Handling of the options.
16745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16747 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16748 echo "$ac_cs_version"; exit ;;
16749 --debug | --debu | --deb | --de | --d | -d )
16751 --file | --fil | --fi | --f )
16753 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16754 ac_need_defaults=false;;
16755 --header | --heade | --head | --hea )
16757 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16758 ac_need_defaults=false;;
16760 # Conflict between --help and --header
16761 { echo "$as_me: error: ambiguous option: $1
16762 Try \`$0 --help' for more information." >&2
16763 { (exit 1); exit 1; }; };;
16764 --help | --hel | -h )
16765 echo "$ac_cs_usage"; exit ;;
16766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16770 # This is an error.
16771 -*) { echo "$as_me: error: unrecognized option: $1
16772 Try \`$0 --help' for more information." >&2
16773 { (exit 1); exit 1; }; } ;;
16775 *) ac_config_targets="$ac_config_targets $1"
16776 ac_need_defaults=false ;;
16782 ac_configure_extra_args=
16784 if $ac_cs_silent; then
16786 ac_configure_extra_args="$ac_configure_extra_args --silent"
16790 cat >>$CONFIG_STATUS <<_ACEOF
16791 if \$ac_cs_recheck; then
16792 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16793 CONFIG_SHELL=$SHELL
16794 export CONFIG_SHELL
16795 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16799 cat >>$CONFIG_STATUS <<\_ACEOF
16803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16804 ## Running $as_me. ##
16810 cat >>$CONFIG_STATUS <<_ACEOF
16813 cat >>$CONFIG_STATUS <<\_ACEOF
16815 # Handling of arguments.
16816 for ac_config_target in $ac_config_targets
16818 case $ac_config_target in
16819 "ddconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
16820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16821 "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
16822 "packages.mk") CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
16823 "sim.src/Makefile") CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
16824 "cmd.src/Makefile") CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
16825 "s51.src/Makefile") CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
16826 "avr.src/Makefile") CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
16827 "z80.src/Makefile") CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
16828 "hc08.src/Makefile") CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
16829 "xa.src/Makefile") CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
16830 "gui.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
16831 "gui.src/serio.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
16832 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16836 { (exit 1); exit 1; }; };;
16841 # If the user did not use the arguments to specify the items to instantiate,
16842 # then the envvar interface is used. Set only those that are not.
16843 # We use the long form for the default assignment because of an extremely
16844 # bizarre bug on SunOS 4.1.3.
16845 if $ac_need_defaults; then
16846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16850 # Have a temporary directory for convenience. Make it in the build tree
16851 # simply because there is no reason against having it here, and in addition,
16852 # creating and moving files from /tmp can sometimes cause problems.
16853 # Hook for its removal unless debugging.
16854 # Note that there is a small window in which the directory will not be cleaned:
16855 # after its creation but before its name has been assigned to `$tmp'.
16859 trap 'exit_status=$?
16860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16862 trap '{ (exit 1); exit 1; }' 1 2 13 15
16864 # Create a (secure) tmp directory for tmp files.
16867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16868 test -n "$tmp" && test -d "$tmp"
16871 tmp=./conf$$-$RANDOM
16872 (umask 077 && mkdir "$tmp")
16875 echo "$me: cannot create a temporary directory in ." >&2
16876 { (exit 1); exit 1; }
16880 # Set up the sed scripts for CONFIG_FILES section.
16883 # No need to generate the scripts if there are no CONFIG_FILES.
16884 # This happens for instance when ./config.status config.h
16885 if test -n "$CONFIG_FILES"; then
16892 for ac_last_try in false false false false false :; do
16893 cat >conf$$subs.sed <<_ACEOF
16894 SHELL!$SHELL$ac_delim
16895 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16896 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16897 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16898 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16899 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16900 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16901 exec_prefix!$exec_prefix$ac_delim
16902 prefix!$prefix$ac_delim
16903 program_transform_name!$program_transform_name$ac_delim
16904 bindir!$bindir$ac_delim
16905 sbindir!$sbindir$ac_delim
16906 libexecdir!$libexecdir$ac_delim
16907 datarootdir!$datarootdir$ac_delim
16908 datadir!$datadir$ac_delim
16909 sysconfdir!$sysconfdir$ac_delim
16910 sharedstatedir!$sharedstatedir$ac_delim
16911 localstatedir!$localstatedir$ac_delim
16912 includedir!$includedir$ac_delim
16913 oldincludedir!$oldincludedir$ac_delim
16914 docdir!$docdir$ac_delim
16915 infodir!$infodir$ac_delim
16916 htmldir!$htmldir$ac_delim
16917 dvidir!$dvidir$ac_delim
16918 pdfdir!$pdfdir$ac_delim
16919 psdir!$psdir$ac_delim
16920 libdir!$libdir$ac_delim
16921 localedir!$localedir$ac_delim
16922 mandir!$mandir$ac_delim
16923 DEFS!$DEFS$ac_delim
16924 ECHO_C!$ECHO_C$ac_delim
16925 ECHO_N!$ECHO_N$ac_delim
16926 ECHO_T!$ECHO_T$ac_delim
16927 LIBS!$LIBS$ac_delim
16928 build_alias!$build_alias$ac_delim
16929 host_alias!$host_alias$ac_delim
16930 target_alias!$target_alias$ac_delim
16932 VERSION!$VERSION$ac_delim
16933 VERSIONHI!$VERSIONHI$ac_delim
16934 VERSIONLO!$VERSIONLO$ac_delim
16935 VERSIONP!$VERSIONP$ac_delim
16936 enable_ucsim!$enable_ucsim$ac_delim
16937 enable_dlso!$enable_dlso$ac_delim
16938 enable_51!$enable_51$ac_delim
16939 enable_avr!$enable_avr$ac_delim
16940 enable_z80!$enable_z80$ac_delim
16941 enable_hc08!$enable_hc08$ac_delim
16942 enable_xa!$enable_xa$ac_delim
16943 enable_serio!$enable_serio$ac_delim
16945 CXXFLAGS!$CXXFLAGS$ac_delim
16946 LDFLAGS!$LDFLAGS$ac_delim
16947 CPPFLAGS!$CPPFLAGS$ac_delim
16948 ac_ct_CXX!$ac_ct_CXX$ac_delim
16949 EXEEXT!$EXEEXT$ac_delim
16950 OBJEXT!$OBJEXT$ac_delim
16951 CXXCPP!$CXXCPP$ac_delim
16952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16954 INSTALL_DATA!$INSTALL_DATA$ac_delim
16955 RANLIB!$RANLIB$ac_delim
16956 STRIP!$STRIP$ac_delim
16957 build!$build$ac_delim
16958 build_cpu!$build_cpu$ac_delim
16959 build_vendor!$build_vendor$ac_delim
16960 build_os!$build_os$ac_delim
16961 host!$host$ac_delim
16962 host_cpu!$host_cpu$ac_delim
16963 host_vendor!$host_vendor$ac_delim
16964 host_os!$host_os$ac_delim
16966 CFLAGS!$CFLAGS$ac_delim
16967 ac_ct_CC!$ac_ct_CC$ac_delim
16968 LN_S!$LN_S$ac_delim
16969 ECHO!$ECHO$ac_delim
16971 GREP!$GREP$ac_delim
16972 EGREP!$EGREP$ac_delim
16973 LIBTOOL!$LIBTOOL$ac_delim
16974 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
16976 LEXLIB!$LEXLIB$ac_delim
16977 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
16978 YACC!$YACC$ac_delim
16979 YFLAGS!$YFLAGS$ac_delim
16980 BISON_PLUS_PLUS!$BISON_PLUS_PLUS$ac_delim
16981 WINSOCK_AVAIL!$WINSOCK_AVAIL$ac_delim
16982 dl_ok!$dl_ok$ac_delim
16984 panel_ok!$panel_ok$ac_delim
16985 curses_ok!$curses_ok$ac_delim
16986 CURSES_LIBS!$CURSES_LIBS$ac_delim
16987 M_OR_MM!$M_OR_MM$ac_delim
16988 SHAREDLIB!$SHAREDLIB$ac_delim
16989 PICOPT!$PICOPT$ac_delim
16990 dlso_ok!$dlso_ok$ac_delim
16993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16995 elif $ac_last_try; then
16996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16998 { (exit 1); exit 1; }; }
17000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17005 if test -n "$ac_eof"; then
17006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17007 ac_eof=`expr $ac_eof + 1`
17010 cat >>$CONFIG_STATUS <<_ACEOF
17011 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17016 s/^/s,@/; s/!/@,|#_!!_#|/
17019 s/'"$ac_delim"'$/,g/; t
17021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17022 ' >>$CONFIG_STATUS <conf$$subs.sed
17023 rm -f conf$$subs.sed
17024 cat >>$CONFIG_STATUS <<_ACEOF
17030 for ac_last_try in false false false false false :; do
17031 cat >conf$$subs.sed <<_ACEOF
17032 LIBOBJS!$LIBOBJS$ac_delim
17033 LTLIBOBJS!$LTLIBOBJS$ac_delim
17036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
17038 elif $ac_last_try; then
17039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17041 { (exit 1); exit 1; }; }
17043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17048 if test -n "$ac_eof"; then
17049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17050 ac_eof=`expr $ac_eof + 1`
17053 cat >>$CONFIG_STATUS <<_ACEOF
17054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17059 s/^/s,@/; s/!/@,|#_!!_#|/
17062 s/'"$ac_delim"'$/,g/; t
17064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17065 ' >>$CONFIG_STATUS <conf$$subs.sed
17066 rm -f conf$$subs.sed
17067 cat >>$CONFIG_STATUS <<_ACEOF
17074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17076 # trailing colons and then remove the whole line if VPATH becomes empty
17077 # (actually we leave an empty line to preserve line numbers).
17078 if test "x$srcdir" = x.; then
17079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17080 s/:*\$(srcdir):*/:/
17081 s/:*\${srcdir}:*/:/
17083 s/^\([^=]*=[ ]*\):*/\1/
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 fi # test -n "$CONFIG_FILES"
17093 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17096 :[FHLC]) ac_mode=$ac_tag; continue;;
17098 case $ac_mode$ac_tag in
17100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17102 { (exit 1); exit 1; }; };;
17103 :[FH]-) ac_tag=-:-;;
17104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17121 -) ac_f="$tmp/stdin";;
17122 *) # Look for the file first in the build tree, then in the source tree
17123 # (if the path is not absolute). The absolute path cannot be DOS-style,
17124 # because $ac_f cannot contain `:'.
17128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17132 { (exit 1); exit 1; }; };;
17134 ac_file_inputs="$ac_file_inputs $ac_f"
17137 # Let's still pretend it is `configure' which instantiates (i.e., don't
17138 # use $as_me), people would be surprised to read:
17139 # /* config.h. Generated by config.status. */
17140 configure_input="Generated from "`IFS=:
17141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17142 if test x"$ac_file" != x-; then
17143 configure_input="$ac_file. $configure_input"
17144 { echo "$as_me:$LINENO: creating $ac_file" >&5
17145 echo "$as_me: creating $ac_file" >&6;}
17149 *:-:* | *:-) cat >"$tmp/stdin";;
17154 ac_dir=`$as_dirname -- "$ac_file" ||
17155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17156 X"$ac_file" : 'X\(//\)[^/]' \| \
17157 X"$ac_file" : 'X\(//\)$' \| \
17158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17164 /^X\(\/\/\)[^/].*/{
17179 -*) as_dir=./$as_dir;;
17181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17186 *) as_qdir=$as_dir;;
17188 as_dirs="'$as_qdir' $as_dirs"
17189 as_dir=`$as_dirname -- "$as_dir" ||
17190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$as_dir" : 'X\(//\)[^/]' \| \
17192 X"$as_dir" : 'X\(//\)$' \| \
17193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17199 /^X\(\/\/\)[^/].*/{
17212 test -d "$as_dir" && break
17214 test -z "$as_dirs" || eval "mkdir $as_dirs"
17215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17217 { (exit 1); exit 1; }; }; }
17221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17224 # A ".." for each directory in $ac_dir_suffix.
17225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17226 case $ac_top_builddir_sub in
17227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17231 ac_abs_top_builddir=$ac_pwd
17232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17233 # for backward compatibility:
17234 ac_top_builddir=$ac_top_build_prefix
17237 .) # We are building in place.
17239 ac_top_srcdir=$ac_top_builddir_sub
17240 ac_abs_top_srcdir=$ac_pwd ;;
17241 [\\/]* | ?:[\\/]* ) # Absolute name.
17242 ac_srcdir=$srcdir$ac_dir_suffix;
17243 ac_top_srcdir=$srcdir
17244 ac_abs_top_srcdir=$srcdir ;;
17245 *) # Relative name.
17246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17247 ac_top_srcdir=$ac_top_build_prefix$srcdir
17248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17266 # If the template does not know about datarootdir, expand it.
17267 # FIXME: This hack should be removed a few years after 2.60.
17268 ac_datarootdir_hack=; ac_datarootdir_seen=
17270 case `sed -n '/datarootdir/ {
17279 ' $ac_file_inputs` in
17280 *datarootdir*) ac_datarootdir_seen=yes;;
17281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17285 cat >>$CONFIG_STATUS <<_ACEOF
17286 ac_datarootdir_hack='
17287 s&@datadir@&$datadir&g
17288 s&@docdir@&$docdir&g
17289 s&@infodir@&$infodir&g
17290 s&@localedir@&$localedir&g
17291 s&@mandir@&$mandir&g
17292 s&\\\${datarootdir}&$datarootdir&g' ;;
17296 # Neutralize VPATH when `$srcdir' = `.'.
17297 # Shell code in configure.ac might set extrasub.
17298 # FIXME: do we really want to maintain this feature?
17299 cat >>$CONFIG_STATUS <<_ACEOF
17303 cat >>$CONFIG_STATUS <<\_ACEOF
17305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17306 s&@configure_input@&$configure_input&;t t
17307 s&@top_builddir@&$ac_top_builddir_sub&;t t
17308 s&@srcdir@&$ac_srcdir&;t t
17309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17310 s&@top_srcdir@&$ac_top_srcdir&;t t
17311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17312 s&@builddir@&$ac_builddir&;t t
17313 s&@abs_builddir@&$ac_abs_builddir&;t t
17314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17315 s&@INSTALL@&$ac_INSTALL&;t t
17316 $ac_datarootdir_hack
17317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17323 which seems to be undefined. Please make sure it is defined." >&5
17324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17325 which seems to be undefined. Please make sure it is defined." >&2;}
17329 -) cat "$tmp/out"; rm -f "$tmp/out";;
17330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17339 # Transform confdefs.h into a sed script `conftest.defines', that
17340 # substitutes the proper values into config.h.in to produce config.h.
17341 rm -f conftest.defines conftest.tail
17342 # First, append a space to every undef/define line, to ease matching.
17343 echo 's/$/ /' >conftest.defines
17344 # Then, protect against being on the right side of a sed subst, or in
17345 # an unquoted here document, in config.status. If some macros were
17346 # called several times there might be several #defines for the same
17347 # symbol, which is useless. But do not sort them, since the last
17348 # AC_DEFINE must be honored.
17349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17352 # PARAMS is the parameter list in the macro definition--in most cases, it's
17353 # just an empty string.
17354 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17355 ac_dB='\\)[ (].*,\\1define\\2'
17363 s/^[ ]*#[ ]*define[ ][ ]*//
17368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17370 ' >>conftest.defines
17372 # Remove the space that was appended to ease matching.
17373 # Then replace #undef with comments. This is necessary, for
17374 # example, in the case of _POSIX_SOURCE, which is predefined and required
17375 # on some systems where configure will not decide to define it.
17376 # (The regexp can be short, since the line contains either #define or #undef.)
17378 s,^[ #]*u.*,/* & */,' >>conftest.defines
17380 # Break up conftest.defines:
17381 ac_max_sed_lines=50
17383 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17384 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17385 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17387 ac_in='$ac_file_inputs'
17388 ac_out='"$tmp/out1"'
17389 ac_nxt='"$tmp/out2"'
17393 # Write a here document:
17394 cat >>$CONFIG_STATUS <<_ACEOF
17395 # First, check the format of the line:
17396 cat >"\$tmp/defines.sed" <<\\CEOF
17397 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17398 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17407 grep . conftest.tail >/dev/null || break
17408 rm -f conftest.defines
17409 mv conftest.tail conftest.defines
17411 rm -f conftest.defines conftest.tail
17413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17415 if test x"$ac_file" != x-; then
17416 echo "/* $configure_input */" >"$tmp/config.h"
17417 cat "$ac_result" >>"$tmp/config.h"
17418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17420 echo "$as_me: $ac_file is unchanged" >&6;}
17423 mv "$tmp/config.h" $ac_file
17426 echo "/* $configure_input */"
17438 { (exit 0); exit 0; }
17440 chmod +x $CONFIG_STATUS
17441 ac_clean_files=$ac_clean_files_save
17444 # configure is writing to config.log, and then calls config.status.
17445 # config.status does its own redirection, appending to config.log.
17446 # Unfortunately, on DOS this fails, as config.log is still kept open
17447 # by configure, so config.status won't be able to write to it; its
17448 # output is simply discarded. So we exec the FD to /dev/null,
17449 # effectively closing config.log, so it can be properly (re)opened and
17450 # appended to by config.status. When coming back to configure, we
17451 # need to make the FD available again.
17452 if test "$no_create" != yes; then
17454 ac_config_status_args=
17455 test "$silent" = yes &&
17456 ac_config_status_args="$ac_config_status_args --quiet"
17458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17461 # would make configure fail if this is the last instruction.
17462 $ac_cs_success || { (exit 1); exit 1; }
17466 #gui.src/portmon.src/Makefile
17469 # End of configure/configure.in