2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file=".version"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP docdir enable_ucsim enable_dlso enable_51 enable_avr enable_z80 enable_hc08 enable_xa enable_serio CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB STRIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC LN_S ECHO ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON_PLUS_PLUS WINSOCK_AVAIL dl_ok DL panel_ok curses_ok CURSES_LIBS M_OR_MM SHAREDLIB PICOPT dlso_ok LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_docdir_set=${docdir+set}
913 ac_env_docdir_value=$docdir
914 ac_cv_env_docdir_set=${docdir+set}
915 ac_cv_env_docdir_value=$docdir
916 ac_env_CXX_set=${CXX+set}
917 ac_env_CXX_value=$CXX
918 ac_cv_env_CXX_set=${CXX+set}
919 ac_cv_env_CXX_value=$CXX
920 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
921 ac_env_CXXFLAGS_value=$CXXFLAGS
922 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
924 ac_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_env_LDFLAGS_value=$LDFLAGS
926 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_cv_env_LDFLAGS_value=$LDFLAGS
928 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_env_CPPFLAGS_value=$CPPFLAGS
930 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
932 ac_env_CXXCPP_set=${CXXCPP+set}
933 ac_env_CXXCPP_value=$CXXCPP
934 ac_cv_env_CXXCPP_set=${CXXCPP+set}
935 ac_cv_env_CXXCPP_value=$CXXCPP
936 ac_env_CC_set=${CC+set}
938 ac_cv_env_CC_set=${CC+set}
939 ac_cv_env_CC_value=$CC
940 ac_env_CFLAGS_set=${CFLAGS+set}
941 ac_env_CFLAGS_value=$CFLAGS
942 ac_cv_env_CFLAGS_set=${CFLAGS+set}
943 ac_cv_env_CFLAGS_value=$CFLAGS
944 ac_env_CPP_set=${CPP+set}
945 ac_env_CPP_value=$CPP
946 ac_cv_env_CPP_set=${CPP+set}
947 ac_cv_env_CPP_value=$CPP
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 if test -n "$ac_init_help"; then
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-ucsim compile ucsim frontend
1023 --enable-dlso compile dynamically loadable shared libraries
1024 --disable-51 do not compile simulator for MCS51
1025 --disable-avr do not compile simulator for AVR
1026 --disable-z80 do not compile simulator for Z80
1027 --disable-hc08 do not compile simulator for hc08
1028 --enable-xa compile simulator for XA
1029 --enable-serio compile serio GUI tool (needs curses)
1030 --enable-statistic compile statistical features (slower simulation)
1031 --enable-shared=PKGS build shared libraries default=yes
1032 --enable-static=PKGS build static libraries default=yes
1033 --enable-fast-install=PKGS optimize for fast installation default=yes
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld default=no
1040 --with-pic try to use only PIC/non-PIC objects default=use both
1042 Some influential environment variables:
1043 docdir documentation installation directory
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1047 nonstandard directory <lib dir>
1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049 headers in a nonstandard directory <include dir>
1050 CXXCPP C++ preprocessor
1051 CC C compiler command
1052 CFLAGS C compiler flags
1055 Use these variables to override the choices made by `configure' or to help
1056 it to find libraries and programs with nonstandard names/locations.
1061 if test "$ac_init_help" = "recursive"; then
1062 # If there are subdirs, report their specific --help.
1064 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1065 test -d $ac_dir || continue
1068 if test "$ac_dir" != .; then
1069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1070 # A "../" for each directory in $ac_dir_suffix.
1071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1073 ac_dir_suffix= ac_top_builddir=
1077 .) # No --srcdir option. We are building in place.
1079 if test -z "$ac_top_builddir"; then
1082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1084 [\\/]* | ?:[\\/]* ) # Absolute path.
1085 ac_srcdir=$srcdir$ac_dir_suffix;
1086 ac_top_srcdir=$srcdir ;;
1088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1092 # Do not use `cd foo && pwd` to compute absolute paths, because
1093 # the directories may not exist.
1095 .) ac_abs_builddir="$ac_dir";;
1098 .) ac_abs_builddir=`pwd`;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1106 case ${ac_top_builddir}. in
1107 .) ac_abs_top_builddir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1112 case $ac_abs_builddir in
1113 .) ac_abs_srcdir=$ac_srcdir;;
1116 .) ac_abs_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1124 case $ac_top_srcdir in
1125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 # Check for guested configure; otherwise get Cygnus style configure.
1133 if test -f $ac_srcdir/configure.gnu; then
1135 $SHELL $ac_srcdir/configure.gnu --help=recursive
1136 elif test -f $ac_srcdir/configure; then
1138 $SHELL $ac_srcdir/configure --help=recursive
1139 elif test -f $ac_srcdir/configure.ac ||
1140 test -f $ac_srcdir/configure.in; then
1142 $ac_configure --help
1144 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 test -n "$ac_init_help" && exit 0
1151 if $ac_init_version; then
1154 Copyright (C) 2003 Free Software Foundation, Inc.
1155 This configure script is free software; the Free Software Foundation
1156 gives unlimited permission to copy, distribute and modify it.
1162 This file contains any messages produced by compilers while
1163 running configure, to aid debugging if configure makes a mistake.
1165 It was created by $as_me, which was
1166 generated by GNU Autoconf 2.59. Invocation command line was
1177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1189 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1200 test -z "$as_dir" && as_dir=.
1201 echo "PATH: $as_dir"
1216 # Keep a trace of the command line.
1217 # Strip out --no-create and --no-recursion so they do not pile up.
1218 # Strip out --silent because we don't want to record it for future runs.
1219 # Also quote any args containing shell meta-characters.
1220 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_must_keep_next=false
1231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1241 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1242 if test $ac_must_keep_next = true; then
1243 ac_must_keep_next=false # Got value, back to normal.
1246 *=* | --config-cache | -C | -disable-* | --disable-* \
1247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1249 | -with-* | --with-* | -without-* | --without-* | --x)
1250 case "$ac_configure_args0 " in
1251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1254 -* ) ac_must_keep_next=true ;;
1257 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1258 # Get rid of the leading space.
1264 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1265 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1267 # When interrupted or exit'd, cleanup temporary files, and complete
1268 # config.log. We remove comments because anyway the quotes in there
1269 # would cause problems or look ugly.
1270 # WARNING: Be sure not to use single quotes in there, as some shells,
1271 # such as our DU 5.0 friend, will then `close' the trap.
1272 trap 'exit_status=$?
1273 # Save into config.log some information that might help in debugging.
1278 ## ---------------- ##
1279 ## Cache variables. ##
1280 ## ---------------- ##
1283 # The following way of writing the cache mishandles newlines in values,
1286 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1289 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 ## ----------------- ##
1302 ## Output variables. ##
1303 ## ----------------- ##
1306 for ac_var in $ac_subst_vars
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -n "$ac_subst_files"; then
1320 for ac_var in $ac_subst_files
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -s confdefs.h; then
1335 sed "/^$/d" confdefs.h | sort
1338 test "$ac_signal" != 0 &&
1339 echo "$as_me: caught signal $ac_signal"
1340 echo "$as_me: exit $exit_status"
1342 rm -f core *.core &&
1343 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1346 for ac_signal in 1 2 13 15; do
1347 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1351 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1352 rm -rf conftest* confdefs.h
1353 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1356 # Predefined preprocessor variables.
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_NAME "$PACKAGE_NAME"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_STRING "$PACKAGE_STRING"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1383 # Let the site file select an alternate cache file if it wants to.
1384 # Prefer explicitly selected file to automatically selected ones.
1385 if test -z "$CONFIG_SITE"; then
1386 if test "x$prefix" != xNONE; then
1387 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1389 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1392 for ac_site_file in $CONFIG_SITE; do
1393 if test -r "$ac_site_file"; then
1394 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1395 echo "$as_me: loading site script $ac_site_file" >&6;}
1396 sed 's/^/| /' "$ac_site_file" >&5
1401 if test -r "$cache_file"; then
1402 # Some versions of bash will fail to source /dev/null (special
1403 # files actually), so we avoid doing that.
1404 if test -f "$cache_file"; then
1405 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1406 echo "$as_me: loading cache $cache_file" >&6;}
1408 [\\/]* | ?:[\\/]* ) . $cache_file;;
1409 *) . ./$cache_file;;
1413 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1414 echo "$as_me: creating cache $cache_file" >&6;}
1418 # Check that the precious variables saved in the cache have kept the same
1420 ac_cache_corrupted=false
1421 for ac_var in `(set) 2>&1 |
1422 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1424 eval ac_new_set=\$ac_env_${ac_var}_set
1425 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1426 eval ac_new_val="\$ac_env_${ac_var}_value"
1427 case $ac_old_set,$ac_new_set in
1429 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1430 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1431 ac_cache_corrupted=: ;;
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1438 if test "x$ac_old_val" != "x$ac_new_val"; then
1439 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1440 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1441 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1442 echo "$as_me: former value: $ac_old_val" >&2;}
1443 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1444 echo "$as_me: current value: $ac_new_val" >&2;}
1445 ac_cache_corrupted=:
1448 # Pass precious variables to config.status.
1449 if test "$ac_new_set" = set; then
1451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1452 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1453 *) ac_arg=$ac_var=$ac_new_val ;;
1455 case " $ac_configure_args " in
1456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1457 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 if $ac_cache_corrupted; then
1462 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1464 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1465 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466 { (exit 1); exit 1; }; }
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1496 for ac_prog in gawk mawk nawk awk
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_AWK+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 if test -n "$AWK"; then
1506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 for ac_exec_ext in '' $ac_executable_extensions; do
1514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515 ac_cv_prog_AWK="$ac_prog"
1516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test -n "$AWK"; then
1526 echo "$as_me:$LINENO: result: $AWK" >&5
1527 echo "${ECHO_T}$AWK" >&6
1529 echo "$as_me:$LINENO: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$AWK" && break
1537 echo "$as_me:$LINENO: checking version of the package" >&5
1538 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1539 if test -f ${srcdir}/.version; then
1540 VERSION=`cat ${srcdir}/.version`
1541 echo "$as_me:$LINENO: result: $VERSION" >&5
1542 echo "${ECHO_T}$VERSION" >&6
1545 echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1546 echo "${ECHO_T}unknown using 0.0.0" >&6
1548 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1549 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1550 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1555 cat >>confdefs.h <<_ACEOF
1556 #define VERSIONSTR "${VERSION}"
1559 cat >>confdefs.h <<_ACEOF
1560 #define VERSIONHI $VERSIONHI
1563 cat >>confdefs.h <<_ACEOF
1564 #define VERSIONLO $VERSIONLO
1567 cat >>confdefs.h <<_ACEOF
1568 #define VERSIONP $VERSIONP
1574 # *nix default: "${datadir}/sdcc/doc"
1576 if test "${docdir}" = ""; then
1577 docdir="\${datadir}"/sdcc/doc
1581 # Check whether --enable-ucsim or --disable-ucsim was given.
1582 if test "${enable_ucsim+set}" = set; then
1583 enableval="$enable_ucsim"
1584 if test $enable_ucsim != "no"; then
1591 # Check whether --enable-dlso or --disable-dlso was given.
1592 if test "${enable_dlso+set}" = set; then
1593 enableval="$enable_dlso"
1594 if test $enable_dlso != "no"; then
1600 # Check whether --enable-51 or --disable-51 was given.
1601 if test "${enable_51+set}" = set; then
1602 enableval="$enable_51"
1603 if test $enable_51 != "no"; then
1609 # Check whether --enable-avr or --disable-avr was given.
1610 if test "${enable_avr+set}" = set; then
1611 enableval="$enable_avr"
1612 if test $enable_avr != "no"; then
1618 # Check whether --enable-z80 or --disable-z80 was given.
1619 if test "${enable_z80+set}" = set; then
1620 enableval="$enable_z80"
1621 if test $enable_z80 != "no"; then
1627 # Check whether --enable-hc08 or --disable-hc08 was given.
1628 if test "${enable_hc08+set}" = set; then
1629 enableval="$enable_hc08"
1630 if test $enable_hc08 != "no"; then
1636 # Check whether --enable-xa or --disable-xa was given.
1637 if test "${enable_xa+set}" = set; then
1638 enableval="$enable_xa"
1639 if test $enable_xa != "no"; then
1645 # Check whether --enable-portmon or --disable-portmon was given.
1646 if test "${enable_portmon+set}" = set; then
1647 enableval="$enable_portmon"
1648 if test $enable_serio != "no"; then
1663 # Check whether --enable-statistic or --disable-statistic was given.
1664 if test "${enable_statistic+set}" = set; then
1665 enableval="$enable_statistic"
1666 if test $enable_statistic != "no"; then
1667 enable_statistic="yes"
1670 enable_statistic="no"
1672 cat >>confdefs.h <<_ACEOF
1673 #define STATISTIC $enable_statistic
1679 #-------------------
1681 ac_cpp='$CXXCPP $CPPFLAGS'
1682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1685 if test -n "$ac_tool_prefix"; then
1686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CXX+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CXX"; then
1696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CXX"; then
1716 echo "$as_me:$LINENO: result: $CXX" >&5
1717 echo "${ECHO_T}$CXX" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CXX" && break
1726 if test -z "$CXX"; then
1728 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CXX"; then
1738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CXX="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1757 if test -n "$ac_ct_CXX"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1759 echo "${ECHO_T}$ac_ct_CXX" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CXX" && break
1767 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C++ compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.$ac_ext <<_ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1814 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1831 test -f "$ac_file" || continue
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C++ compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1871 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe; then
1886 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C++ compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1996 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 cat >conftest.$ac_ext <<_ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2021 grep -v '^ *+' conftest.er1 >conftest.err
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_cxx_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2052 GXX=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CXXFLAGS=${CXXFLAGS+set}
2054 ac_save_CXXFLAGS=$CXXFLAGS
2056 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2057 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cxx_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_cxx_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_cv_prog_cxx_g=yes
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2109 if test "$ac_test_CXXFLAGS" = set; then
2110 CXXFLAGS=$ac_save_CXXFLAGS
2111 elif test $ac_cv_prog_cxx_g = yes; then
2112 if test "$GXX" = yes; then
2118 if test "$GXX" = yes; then
2124 for ac_declaration in \
2126 'extern "C" void std::exit (int) throw (); using std::exit;' \
2127 'extern "C" void std::exit (int); using std::exit;' \
2128 'extern "C" void exit (int) throw ();' \
2129 'extern "C" void exit (int);' \
2132 cat >conftest.$ac_ext <<_ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_cxx_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 cat >conftest.$ac_ext <<_ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_cxx_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224 if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 ac_cpp='$CXXCPP $CPPFLAGS'
2238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2241 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2242 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2243 if test -z "$CXXCPP"; then
2244 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 # Double quotes because CXXCPP needs to be expanded
2248 for CXXCPP in "$CXX -E" "/lib/cpp"
2251 for ac_cxx_preproc_warn_flag in '' yes
2253 # Use a header file that comes with gcc, so configuring glibc
2254 # with a fresh cross-compiler works.
2255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 # <limits.h> exists even on freestanding compilers.
2257 # On the NeXT, cc -E runs the code through the compiler's parser,
2258 # not just through cpp. "Syntax error" is here to catch this case.
2259 cat >conftest.$ac_ext <<_ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2266 # include <limits.h>
2268 # include <assert.h>
2272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2275 grep -v '^ *+' conftest.er1 >conftest.err
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } >/dev/null; then
2280 if test -s conftest.err; then
2281 ac_cpp_err=$ac_cxx_preproc_warn_flag
2282 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2289 if test -z "$ac_cpp_err"; then
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 # Broken: fails on valid input.
2298 rm -f conftest.err conftest.$ac_ext
2300 # OK, works on sane cases. Now check whether non-existent headers
2301 # can be detected and how.
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 #include <ac_nonexistent.h>
2310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } >/dev/null; then
2318 if test -s conftest.err; then
2319 ac_cpp_err=$ac_cxx_preproc_warn_flag
2320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2327 if test -z "$ac_cpp_err"; then
2328 # Broken: success on invalid input.
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 # Passes both tests.
2338 rm -f conftest.err conftest.$ac_ext
2341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342 rm -f conftest.err conftest.$ac_ext
2343 if $ac_preproc_ok; then
2348 ac_cv_prog_CXXCPP=$CXXCPP
2351 CXXCPP=$ac_cv_prog_CXXCPP
2353 ac_cv_prog_CXXCPP=$CXXCPP
2355 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2356 echo "${ECHO_T}$CXXCPP" >&6
2358 for ac_cxx_preproc_warn_flag in '' yes
2360 # Use a header file that comes with gcc, so configuring glibc
2361 # with a fresh cross-compiler works.
2362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2363 # <limits.h> exists even on freestanding compilers.
2364 # On the NeXT, cc -E runs the code through the compiler's parser,
2365 # not just through cpp. "Syntax error" is here to catch this case.
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2373 # include <limits.h>
2375 # include <assert.h>
2379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } >/dev/null; then
2387 if test -s conftest.err; then
2388 ac_cpp_err=$ac_cxx_preproc_warn_flag
2389 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2396 if test -z "$ac_cpp_err"; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Broken: fails on valid input.
2405 rm -f conftest.err conftest.$ac_ext
2407 # OK, works on sane cases. Now check whether non-existent headers
2408 # can be detected and how.
2409 cat >conftest.$ac_ext <<_ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 #include <ac_nonexistent.h>
2417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } >/dev/null; then
2425 if test -s conftest.err; then
2426 ac_cpp_err=$ac_cxx_preproc_warn_flag
2427 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2434 if test -z "$ac_cpp_err"; then
2435 # Broken: success on invalid input.
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 # Passes both tests.
2445 rm -f conftest.err conftest.$ac_ext
2448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2449 rm -f conftest.err conftest.$ac_ext
2450 if $ac_preproc_ok; then
2453 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2456 See \`config.log' for more details." >&2;}
2457 { (exit 1); exit 1; }; }
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2468 if test -f $ac_dir/install-sh; then
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 elif test -f $ac_dir/install.sh; then
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 elif test -f $ac_dir/shtool; then
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2482 if test -z "$ac_aux_dir"; then
2483 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2484 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2485 { (exit 1); exit 1; }; }
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2489 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2491 # Find a good install program. We prefer a C program (faster),
2492 # so one script is as good as another. But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528 if test $ac_prog = install &&
2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # AIX install. It has an incompatible calling convention.
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
2556 INSTALL=$ac_install_sh
2559 echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 echo "${ECHO_T}$INSTALL" >&6
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_RANLIB+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$RANLIB"; then
2579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 RANLIB=$ac_cv_prog_RANLIB
2598 if test -n "$RANLIB"; then
2599 echo "$as_me:$LINENO: result: $RANLIB" >&5
2600 echo "${ECHO_T}$RANLIB" >&6
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2607 if test -z "$ac_cv_prog_RANLIB"; then
2608 ac_ct_RANLIB=$RANLIB
2609 # Extract the first word of "ranlib", so it can be a program name with args.
2610 set dummy ranlib; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_RANLIB"; then
2617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_RANLIB="ranlib"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2637 if test -n "$ac_ct_RANLIB"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2639 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2645 RANLIB=$ac_ct_RANLIB
2647 RANLIB="$ac_cv_prog_RANLIB"
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_STRIP+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_STRIP="strip"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680 echo "$as_me:$LINENO: result: $STRIP" >&5
2681 echo "${ECHO_T}$STRIP" >&6
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2689 # Check whether --enable-shared or --disable-shared was given.
2690 if test "${enable_shared+set}" = set; then
2691 enableval="$enable_shared"
2692 p=${PACKAGE-default}
2694 yes) enable_shared=yes ;;
2695 no) enable_shared=no ;;
2698 # Look at the argument we got. We use all the common list separators.
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2700 for pkg in $enableval; do
2701 if test "X$pkg" = "X$p"; then
2711 # Check whether --enable-static or --disable-static was given.
2712 if test "${enable_static+set}" = set; then
2713 enableval="$enable_static"
2714 p=${PACKAGE-default}
2716 yes) enable_static=yes ;;
2717 no) enable_static=no ;;
2720 # Look at the argument we got. We use all the common list separators.
2721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2722 for pkg in $enableval; do
2723 if test "X$pkg" = "X$p"; then
2733 # Check whether --enable-fast-install or --disable-fast-install was given.
2734 if test "${enable_fast_install+set}" = set; then
2735 enableval="$enable_fast_install"
2736 p=${PACKAGE-default}
2738 yes) enable_fast_install=yes ;;
2739 no) enable_fast_install=no ;;
2741 enable_fast_install=no
2742 # Look at the argument we got. We use all the common list separators.
2743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2744 for pkg in $enableval; do
2745 if test "X$pkg" = "X$p"; then
2746 enable_fast_install=yes
2753 enable_fast_install=yes
2755 # Make sure we can run config.sub.
2756 $ac_config_sub sun4 >/dev/null 2>&1 ||
2757 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2758 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2759 { (exit 1); exit 1; }; }
2761 echo "$as_me:$LINENO: checking build system type" >&5
2762 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2763 if test "${ac_cv_build+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 ac_cv_build_alias=$build_alias
2767 test -z "$ac_cv_build_alias" &&
2768 ac_cv_build_alias=`$ac_config_guess`
2769 test -z "$ac_cv_build_alias" &&
2770 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2771 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2772 { (exit 1); exit 1; }; }
2773 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2774 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2775 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2776 { (exit 1); exit 1; }; }
2779 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2780 echo "${ECHO_T}$ac_cv_build" >&6
2782 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2783 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2784 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2787 echo "$as_me:$LINENO: checking host system type" >&5
2788 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2789 if test "${ac_cv_host+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 ac_cv_host_alias=$host_alias
2793 test -z "$ac_cv_host_alias" &&
2794 ac_cv_host_alias=$ac_cv_build_alias
2795 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2796 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2797 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2798 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2802 echo "${ECHO_T}$ac_cv_host" >&6
2804 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2805 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2806 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2851 if test -z "$ac_cv_prog_CC"; then
2853 # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2931 if test -z "$ac_cv_prog_CC"; then
2933 # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="cc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2974 if test -z "$CC"; then
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994 ac_prog_rejected=yes
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test $ac_prog_rejected = yes; then
3005 # We found a bogon in the path, so make sure we never use it.
3006 set dummy $ac_cv_prog_CC
3008 if test $# != 0; then
3009 # We chose a different compiler from the bogus one.
3010 # However, it has the same basename, so the bogon will be chosen
3011 # first if we set CC to just the basename; use the full file name.
3013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 if test -n "$CC"; then
3020 echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6
3023 echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 echo "${ECHO_T}$ac_ct_CC" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$ac_ct_CC" && break
3118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3124 # Provide some information about the compiler.
3125 echo "$as_me:$LINENO:" \
3126 "checking for C compiler version" >&5
3127 ac_compiler=`set X $ac_compile; echo $2`
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129 (eval $ac_compiler --version </dev/null >&5) 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134 (eval $ac_compiler -v </dev/null >&5) 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139 (eval $ac_compiler -V </dev/null >&5) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag"
3177 || test ! -s conftest.err'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3202 GCC=`test $ac_compiler_gnu = yes && echo yes`
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3208 if test "${ac_cv_prog_cc_g+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3268 if test "$GCC" = yes; then
3274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_cv_prog_cc_stdc=no
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std1 is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std1. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 # Don't try gcc -ansi; that turns off useful extensions and
3334 # breaks some systems' header files.
3335 # AIX -qlanglvl=ansi
3336 # Ultrix and OSF/1 -std1
3337 # HP-UX 10.20 and later -Ae
3338 # HP-UX older versions -Aa -D_HPUX_SOURCE
3339 # SVR4 -Xc -D__EXTENSIONS__
3340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3342 CC="$ac_save_CC $ac_arg"
3343 rm -f conftest.$ac_objext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345 (eval $ac_compile) 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try='test -z "$ac_c_werror_flag"
3353 || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_cv_prog_cc_stdc=$ac_arg
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f conftest.err conftest.$ac_objext
3374 rm -f conftest.$ac_ext conftest.$ac_objext
3379 case "x$ac_cv_prog_cc_stdc" in
3381 echo "$as_me:$LINENO: result: none needed" >&5
3382 echo "${ECHO_T}none needed" >&6 ;;
3384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3386 CC="$CC $ac_cv_prog_cc_stdc" ;;
3389 # Some people use a C++ compiler to compile C. Since we use `exit',
3390 # in C++ we need to declare it. In case someone uses the same compiler
3391 # for both compiling C and C++ we need to have the C++ compiler decide
3392 # the declaration of exit, since it's the most demanding environment.
3393 cat >conftest.$ac_ext <<_ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 for ac_declaration in \
3422 'extern "C" void std::exit (int) throw (); using std::exit;' \
3423 'extern "C" void std::exit (int); using std::exit;' \
3424 'extern "C" void exit (int) throw ();' \
3425 'extern "C" void exit (int);' \
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -z "$ac_c_werror_flag"
3454 || test ! -s conftest.err'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 if test -n "$ac_declaration"; then
3521 echo '#ifdef __cplusplus' >>confdefs.h
3522 echo $ac_declaration >>confdefs.h
3523 echo '#endif' >>confdefs.h
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 # Find the correct PATH separator. Usually this is `:', but
3539 # DJGPP uses `;' like DOS.
3540 if test "X${PATH_SEPARATOR+set}" != Xset; then
3541 UNAME=${UNAME-`uname 2>/dev/null`}
3543 *-DOS) lt_cv_sys_path_separator=';' ;;
3544 *) lt_cv_sys_path_separator=':' ;;
3546 PATH_SEPARATOR=$lt_cv_sys_path_separator
3550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3551 if test "${with_gnu_ld+set}" = set; then
3552 withval="$with_gnu_ld"
3553 test "$withval" = no || with_gnu_ld=yes
3558 if test "$GCC" = yes; then
3559 # Check if gcc -print-prog-name=ld gives a path.
3560 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3561 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3564 # gcc leaves a trailing carriage return which upsets mingw
3565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3570 # Accept absolute paths.
3571 [\\/]* | [A-Za-z]:[\\/]*)
3572 re_direlt='/[^/][^/]*/\.\./'
3573 # Canonicalize the path of ld
3574 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3575 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3576 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3578 test -z "$LD" && LD="$ac_prog"
3581 # If it fails, then pretend we aren't using GCC.
3585 # If it is relative, then search for the first ld in PATH.
3589 elif test "$with_gnu_ld" = yes; then
3590 echo "$as_me:$LINENO: checking for GNU ld" >&5
3591 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3593 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3594 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3596 if test "${lt_cv_path_LD+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 if test -z "$LD"; then
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3601 for ac_dir in $PATH; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3604 lt_cv_path_LD="$ac_dir/$ac_prog"
3605 # Check to see if the program is GNU ld. I'd rather use --version,
3606 # but apparently some GNU ld's only accept -v.
3607 # Break only if it was the GNU/non-GNU ld that we prefer.
3608 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3609 test "$with_gnu_ld" != no && break
3611 test "$with_gnu_ld" != yes && break
3617 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3622 if test -n "$LD"; then
3623 echo "$as_me:$LINENO: result: $LD" >&5
3624 echo "${ECHO_T}$LD" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3629 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3630 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3631 { (exit 1); exit 1; }; }
3632 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3633 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3634 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3638 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3639 lt_cv_prog_gnu_ld=yes
3641 lt_cv_prog_gnu_ld=no
3644 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3645 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3646 with_gnu_ld=$lt_cv_prog_gnu_ld
3649 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3650 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3651 if test "${lt_cv_ld_reload_flag+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 lt_cv_ld_reload_flag='-r'
3656 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3657 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3658 reload_flag=$lt_cv_ld_reload_flag
3659 test -n "$reload_flag" && reload_flag=" $reload_flag"
3661 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3662 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3663 if test "${lt_cv_path_NM+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if test -n "$NM"; then
3667 # Let the user override the test.
3670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3672 test -z "$ac_dir" && ac_dir=.
3673 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3674 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3675 # Check to see if the nm accepts a BSD-compat flag.
3676 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3677 # nm: unknown option "B" ignored
3678 # Tru64's nm complains that /dev/null is an invalid object file
3679 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3680 lt_cv_path_NM="$tmp_nm -B"
3682 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3683 lt_cv_path_NM="$tmp_nm -p"
3686 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3687 continue # so that we can try to find one that supports BSD flags
3692 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3697 echo "$as_me:$LINENO: result: $NM" >&5
3698 echo "${ECHO_T}$NM" >&6
3700 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3701 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3703 if test "$LN_S" = "ln -s"; then
3704 echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6
3707 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3708 echo "${ECHO_T}no, using $LN_S" >&6
3711 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3712 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3713 if test "${lt_cv_deplibs_check_method+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 lt_cv_file_magic_cmd='$MAGIC_CMD'
3717 lt_cv_file_magic_test_file=
3718 lt_cv_deplibs_check_method='unknown'
3719 # Need to set the preceding variable on all platforms that support
3720 # interlibrary dependencies.
3721 # 'none' -- dependencies not supported.
3722 # `unknown' -- same as none, but documents that we really don't know.
3723 # 'pass_all' -- all dependencies passed with no checks.
3724 # 'test_compile' -- check by making test program.
3725 # 'file_magic [[regex]]' -- check by looking for files in library path
3726 # which responds to the $file_magic_cmd with a given egrep regex.
3727 # If you have `file' or equivalent on your system and you're not sure
3728 # whether `pass_all' will *always* work, you probably want this one.
3732 lt_cv_deplibs_check_method=pass_all
3736 lt_cv_deplibs_check_method=pass_all
3740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3741 lt_cv_file_magic_cmd='/usr/bin/file -L'
3742 lt_cv_file_magic_test_file=/shlib/libc.so
3745 cygwin* | mingw* | pw32*)
3746 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3747 lt_cv_file_magic_cmd='$OBJDUMP -f'
3750 darwin* | rhapsody*)
3751 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3752 lt_cv_file_magic_cmd='/usr/bin/file -L'
3754 rhapsody* | darwin1.[012])
3755 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3758 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3767 # Not sure whether the presence of OpenBSD here was a mistake.
3768 # Let's accept both of them until this is cleared up.
3769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3770 lt_cv_file_magic_cmd=/usr/bin/file
3771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3775 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3785 lt_cv_file_magic_cmd=/usr/bin/file
3786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3789 irix5* | irix6* | nonstopux*)
3791 irix5* | nonstopux*)
3792 # this will be overridden with pass_all, but let us keep it just in case
3793 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3797 *-32|*"-32 ") libmagic=32-bit;;
3798 *-n32|*"-n32 ") libmagic=N32;;
3799 *-64|*"-64 ") libmagic=64-bit;;
3800 *) libmagic=never-match;;
3802 # this will be overridden with pass_all, but let us keep it just in case
3803 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3806 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3807 lt_cv_deplibs_check_method=pass_all
3810 # This must be Linux ELF.
3813 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3814 lt_cv_deplibs_check_method=pass_all ;;
3816 # glibc up to 2.1.1 does not perform some relocations on ARM
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3819 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3823 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3826 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3842 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3846 osf3* | osf4* | osf5*)
3847 # this will be overridden with pass_all, but let us keep it just in case
3848 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3849 lt_cv_file_magic_test_file=/shlib/libc.so
3850 lt_cv_deplibs_check_method=pass_all
3854 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_deplibs_check_method=pass_all
3859 lt_cv_file_magic_test_file=/lib/libc.so
3862 sysv5uw[78]* | sysv4*uw2*)
3863 lt_cv_deplibs_check_method=pass_all
3866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3867 case $host_vendor in
3869 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]'
3870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3873 lt_cv_deplibs_check_method=pass_all
3876 lt_cv_file_magic_cmd='/bin/file'
3877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3880 lt_cv_file_magic_cmd='/bin/file'
3881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3882 lt_cv_file_magic_test_file=/lib/libc.so
3889 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3890 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3891 file_magic_cmd=$lt_cv_file_magic_cmd
3892 deplibs_check_method=$lt_cv_deplibs_check_method
3901 # Check for command to grab the raw symbol name followed by C symbol from nm.
3902 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3903 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3904 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 # These are sane defaults that work on at least a few old systems.
3909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3911 # Character class describing NM global symbol codes.
3912 symcode='[BCDEGRST]'
3914 # Regexp to match symbols that can be accessed directly from C.
3915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3917 # Transform the above into a raw symbol and a C symbol.
3918 symxfrm='\1 \2\3 \3'
3920 # Transform an extracted symbol line into a proper C declaration
3921 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3923 # Transform an extracted symbol line into symbol name and symbol address
3924 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'"
3926 # Define system-specific variables.
3931 cygwin* | mingw* | pw32*)
3932 symcode='[ABCDGISTW]'
3934 hpux*) # Its linker distinguishes data from code symbols
3935 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3936 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'"
3939 symcode='[BCDEGRST]'
3949 # Handle CRLF in mingw tool chain
3953 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3957 # If we're using GNU nm, then use its standard symbol codes.
3958 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3959 symcode='[ABCDGISTW]'
3962 # Try without a prefix undercore, then with it.
3963 for ac_symprfx in "" "_"; do
3965 # Write the raw and C identifiers.
3966 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3968 # Check to see that the pipe works correctly.
3971 cat > conftest.$ac_ext <<EOF
3976 void nm_test_func(){}
3980 int main(){nm_test_var='a';nm_test_func();return(0);}
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
3988 # Now try to grab the symbols.
3990 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && test -s "$nlist"; then
3995 # Try sorting and uniquifying the output.
3996 if sort "$nlist" | uniq > "$nlist"T; then
3997 mv -f "$nlist"T "$nlist"
4002 # Make sure that we snagged all the symbols we need.
4003 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4004 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4005 cat <<EOF > conftest.$ac_ext
4011 # Now generate the symbol file.
4012 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4014 cat <<EOF >> conftest.$ac_ext
4015 #if defined (__STDC__) && __STDC__
4016 # define lt_ptr void *
4018 # define lt_ptr char *
4022 /* The mapping between symbol names and symbols. */
4027 lt_preloaded_symbols[] =
4030 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4031 cat <<\EOF >> conftest.$ac_ext
4039 # Now try linking the two files.
4040 mv conftest.$ac_objext conftstm.$ac_objext
4042 save_CFLAGS="$CFLAGS"
4043 LIBS="conftstm.$ac_objext"
4044 CFLAGS="$CFLAGS$no_builtin_flag"
4045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && test -s conftest; then
4053 CFLAGS="$save_CFLAGS"
4055 echo "cannot find nm_test_func in $nlist" >&5
4058 echo "cannot find nm_test_var in $nlist" >&5
4061 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4064 echo "$progname: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 rm -f conftest* conftst*
4069 # Do not use the global_symbol_pipe unless it works.
4070 if test "$pipe_works" = yes; then
4073 lt_cv_sys_global_symbol_pipe=
4079 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4080 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4081 global_symbol_to_cdecl=
4082 global_symbol_to_c_name_address=
4084 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4085 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4087 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4089 echo "$as_me:$LINENO: result: failed" >&5
4090 echo "${ECHO_T}failed" >&6
4092 echo "$as_me:$LINENO: result: ok" >&5
4093 echo "${ECHO_T}ok" >&6
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4103 # On Suns, sometimes $CPP names a directory.
4104 if test -n "$CPP" && test -d "$CPP"; then
4107 if test -z "$CPP"; then
4108 if test "${ac_cv_prog_CPP+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 # Double quotes because CPP needs to be expanded
4112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4115 for ac_c_preproc_warn_flag in '' yes
4117 # Use a header file that comes with gcc, so configuring glibc
4118 # with a fresh cross-compiler works.
4119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 # <limits.h> exists even on freestanding compilers.
4121 # On the NeXT, cc -E runs the code through the compiler's parser,
4122 # not just through cpp. "Syntax error" is here to catch this case.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4130 # include <limits.h>
4132 # include <assert.h>
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null; then
4144 if test -s conftest.err; then
4145 ac_cpp_err=$ac_c_preproc_warn_flag
4146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4153 if test -z "$ac_cpp_err"; then
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Broken: fails on valid input.
4162 rm -f conftest.err conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether non-existent headers
4165 # can be detected and how.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_c_preproc_warn_flag
4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 if test -z "$ac_cpp_err"; then
4192 # Broken: success on invalid input.
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Passes both tests.
4202 rm -f conftest.err conftest.$ac_ext
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then
4219 echo "$as_me:$LINENO: result: $CPP" >&5
4220 echo "${ECHO_T}$CPP" >&6
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260 if test -z "$ac_cpp_err"; then
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Broken: fails on valid input.
4269 rm -f conftest.err conftest.$ac_ext
4271 # OK, works on sane cases. Now check whether non-existent headers
4272 # can be detected and how.
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } >/dev/null; then
4289 if test -s conftest.err; then
4290 ac_cpp_err=$ac_c_preproc_warn_flag
4291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4298 if test -z "$ac_cpp_err"; then
4299 # Broken: success on invalid input.
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 # Passes both tests.
4309 rm -f conftest.err conftest.$ac_ext
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then
4317 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4318 See \`config.log' for more details." >&5
4319 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4320 See \`config.log' for more details." >&2;}
4321 { (exit 1); exit 1; }; }
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 echo "$as_me:$LINENO: checking for egrep" >&5
4332 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4333 if test "${ac_cv_prog_egrep+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4337 then ac_cv_prog_egrep='grep -E'
4338 else ac_cv_prog_egrep='egrep'
4341 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4342 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4343 EGREP=$ac_cv_prog_egrep
4346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag"
4380 || test ! -s conftest.err'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_header_stdc=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 ac_cv_header_stdc=no
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 if test $ac_cv_header_stdc = yes; then
4402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4416 ac_cv_header_stdc=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev/null 2>&1; then
4437 ac_cv_header_stdc=no
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4478 rm -f conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_cv_header_stdc=no
4498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4504 if test $ac_cv_header_stdc = yes; then
4506 cat >>confdefs.h <<\_ACEOF
4507 #define STDC_HEADERS 1
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4523 inttypes.h stdint.h unistd.h
4525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4539 #include <$ac_header>
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_Header=yes"
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 eval "$as_ac_Header=no"
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4575 cat >>confdefs.h <<_ACEOF
4576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 for ac_header in dlfcn.h
4587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 #include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_header_compiler=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_header_compiler=no
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4640 echo "${ECHO_T}$ac_header_compiler" >&6
4642 # Is the header present?
4643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <$ac_header>
4653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null; then
4661 if test -s conftest.err; then
4662 ac_cpp_err=$ac_c_preproc_warn_flag
4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4670 if test -z "$ac_cpp_err"; then
4671 ac_header_preproc=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_header_preproc=no
4678 rm -f conftest.err conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4706 ## ------------------------------------------ ##
4707 ## Report this to the AC_PACKAGE_NAME lists. ##
4708 ## ------------------------------------------ ##
4711 sed "s/^/$as_me: WARNING: /" >&2
4714 echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 eval "$as_ac_Header=\$ac_header_preproc"
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 # Only perform the check for file, if the check method requires it
4739 case $deplibs_check_method in
4741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4742 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4743 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4755 ac_save_MAGIC_CMD="$MAGIC_CMD"
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4757 ac_dummy="/usr/bin:$PATH"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/${ac_tool_prefix}file; then
4761 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4762 if test -n "$file_magic_test_file"; then
4763 case $deplibs_check_method in
4765 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4768 egrep "$file_magic_regex" > /dev/null; then
4773 *** Warning: the command libtool uses to detect shared libraries,
4774 *** $file_magic_cmd, produces output that libtool cannot recognize.
4775 *** The result is that libtool may fail to recognize shared libraries
4776 *** as such. This will affect the creation of libtool libraries that
4777 *** depend on shared libraries, but programs linked with such libtool
4778 *** libraries will work regardless of this problem. Nevertheless, you
4779 *** may want to report the problem to your system manager and/or to
4780 *** bug-libtool@gnu.org
4790 MAGIC_CMD="$ac_save_MAGIC_CMD"
4795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4796 if test -n "$MAGIC_CMD"; then
4797 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4798 echo "${ECHO_T}$MAGIC_CMD" >&6
4800 echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4804 if test -z "$lt_cv_path_MAGIC_CMD"; then
4805 if test -n "$ac_tool_prefix"; then
4806 echo "$as_me:$LINENO: checking for file" >&5
4807 echo $ECHO_N "checking for file... $ECHO_C" >&6
4808 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4819 ac_save_MAGIC_CMD="$MAGIC_CMD"
4820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4821 ac_dummy="/usr/bin:$PATH"
4822 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f $ac_dir/file; then
4825 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4826 if test -n "$file_magic_test_file"; then
4827 case $deplibs_check_method in
4829 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4832 egrep "$file_magic_regex" > /dev/null; then
4837 *** Warning: the command libtool uses to detect shared libraries,
4838 *** $file_magic_cmd, produces output that libtool cannot recognize.
4839 *** The result is that libtool may fail to recognize shared libraries
4840 *** as such. This will affect the creation of libtool libraries that
4841 *** depend on shared libraries, but programs linked with such libtool
4842 *** libraries will work regardless of this problem. Nevertheless, you
4843 *** may want to report the problem to your system manager and/or to
4844 *** bug-libtool@gnu.org
4854 MAGIC_CMD="$ac_save_MAGIC_CMD"
4859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4860 if test -n "$MAGIC_CMD"; then
4861 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4862 echo "${ECHO_T}$MAGIC_CMD" >&6
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_RANLIB+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$RANLIB"; then
4886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 RANLIB=$ac_cv_prog_RANLIB
4905 if test -n "$RANLIB"; then
4906 echo "$as_me:$LINENO: result: $RANLIB" >&5
4907 echo "${ECHO_T}$RANLIB" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4914 if test -z "$ac_cv_prog_RANLIB"; then
4915 ac_ct_RANLIB=$RANLIB
4916 # Extract the first word of "ranlib", so it can be a program name with args.
4917 set dummy ranlib; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$ac_ct_RANLIB"; then
4924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_ac_ct_RANLIB="ranlib"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4943 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4944 if test -n "$ac_ct_RANLIB"; then
4945 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4946 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4952 RANLIB=$ac_ct_RANLIB
4954 RANLIB="$ac_cv_prog_RANLIB"
4957 if test -n "$ac_tool_prefix"; then
4958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4959 set dummy ${ac_tool_prefix}strip; ac_word=$2
4960 echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4962 if test "${ac_cv_prog_STRIP+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if test -n "$STRIP"; then
4966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 STRIP=$ac_cv_prog_STRIP
4985 if test -n "$STRIP"; then
4986 echo "$as_me:$LINENO: result: $STRIP" >&5
4987 echo "${ECHO_T}$STRIP" >&6
4989 echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4994 if test -z "$ac_cv_prog_STRIP"; then
4996 # Extract the first word of "strip", so it can be a program name with args.
4997 set dummy strip; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$ac_ct_STRIP"; then
5004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_STRIP="strip"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5024 if test -n "$ac_ct_STRIP"; then
5025 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5026 echo "${ECHO_T}$ac_ct_STRIP" >&6
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5034 STRIP="$ac_cv_prog_STRIP"
5041 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5042 if test "${enable_libtool_lock+set}" = set; then
5043 enableval="$enable_libtool_lock"
5046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5048 # Some flags need to be propagated to the compiler or linker for good
5052 # Find out which ABI we are using.
5053 echo '#line 5053 "configure"' > conftest.$ac_ext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; then
5059 case `/usr/bin/file conftest.$ac_objext` in
5075 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5076 SAVE_CFLAGS="$CFLAGS"
5077 CFLAGS="$CFLAGS -belf"
5078 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5079 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5080 if test "${lt_cv_cc_needs_belf+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 lt_cv_cc_needs_belf=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 lt_cv_cc_needs_belf=no
5135 rm -f conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5146 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148 CFLAGS="$SAVE_CFLAGS"
5155 # Sed substitution that helps us do robust quoting. It backslashifies
5156 # metacharacters that are still active within double-quoted strings.
5157 Xsed='sed -e s/^X//'
5158 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5160 # Same as above, but do not quote variable references.
5161 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5163 # Sed substitution to delay expansion of an escaped shell variable in a
5164 # double_quote_subst'ed string.
5165 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171 default_ofile=libtool
5172 can_build_shared=yes
5174 # All known linkers require a `.a' archive for static linking (except M$VC,
5175 # which needs '.lib').
5177 ltmain="$ac_aux_dir/ltmain.sh"
5178 ofile="$default_ofile"
5179 with_gnu_ld="$lt_cv_prog_gnu_ld"
5180 need_locks="$enable_libtool_lock"
5183 old_CFLAGS="$CFLAGS"
5185 # Set sane defaults for various variables
5186 test -z "$AR" && AR=ar
5187 test -z "$AR_FLAGS" && AR_FLAGS=cru
5188 test -z "$AS" && AS=as
5189 test -z "$CC" && CC=cc
5190 test -z "$DLLTOOL" && DLLTOOL=dlltool
5191 test -z "$LD" && LD=ld
5192 test -z "$LN_S" && LN_S="ln -s"
5193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5194 test -z "$NM" && NM=nm
5195 test -z "$OBJDUMP" && OBJDUMP=objdump
5196 test -z "$RANLIB" && RANLIB=:
5197 test -z "$STRIP" && STRIP=:
5198 test -z "$ac_objext" && ac_objext=o
5200 if test x"$host" != x"$build"; then
5201 ac_tool_prefix=${host_alias}-
5206 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5209 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5214 # AIX sometimes has problems with the GCC collect2 program. For some
5215 # reason, if we set the COLLECT_NAMES environment variable, the problems
5216 # vanish in a puff of smoke.
5217 if test "X${COLLECT_NAMES+set}" != Xset; then
5219 export COLLECT_NAMES
5224 # Determine commands to create old-style static archives.
5225 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5226 old_postinstall_cmds='chmod 644 $oldlib'
5227 old_postuninstall_cmds=
5229 if test -n "$RANLIB"; then
5232 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5235 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5238 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5241 # Allow CC to be a program name with arguments.
5245 ## FIXME: this should be a separate macro
5247 echo "$as_me:$LINENO: checking for objdir" >&5
5248 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5249 rm -f .libs 2>/dev/null
5250 mkdir .libs 2>/dev/null
5251 if test -d .libs; then
5254 # MS-DOS does not allow filenames that begin with a dot.
5257 rmdir .libs 2>/dev/null
5258 echo "$as_me:$LINENO: result: $objdir" >&5
5259 echo "${ECHO_T}$objdir" >&6
5264 ## FIXME: this should be a separate macro
5267 # Check whether --with-pic or --without-pic was given.
5268 if test "${with_pic+set}" = set; then
5274 test -z "$pic_mode" && pic_mode=default
5276 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5277 # in isolation, and that seeing it set (from the cache) indicates that
5278 # the associated values are set (in the cache) correctly too.
5279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5281 if test "${lt_cv_prog_cc_pic+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 lt_cv_prog_cc_shlib=
5287 lt_cv_prog_cc_static=
5288 lt_cv_prog_cc_no_builtin=
5289 lt_cv_prog_cc_can_build_shared=$can_build_shared
5291 if test "$GCC" = yes; then
5292 lt_cv_prog_cc_wl='-Wl,'
5293 lt_cv_prog_cc_static='-static'
5297 # Below there is a dirty hack to force normal static linking with -ldl
5298 # The problem is because libdl dynamically linked with both libc and
5299 # libC (AIX C++ library), which obviously doesn't included in libraries
5300 # list by gcc. This cause undefined symbols with -static flags.
5301 # This hack allows C programs to be linked with "-static -ldl", but
5302 # not sure about C++ programs.
5303 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5306 # FIXME: we need at least 68020 code to build shared libraries, but
5307 # adding the `-m68020' flag to GCC prevents building anything better,
5309 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5312 # PIC is the default for these OSes.
5314 darwin* | rhapsody*)
5315 # PIC is the default on this platform
5316 # Common symbols not allowed in MH_DYLIB files
5317 lt_cv_prog_cc_pic='-fno-common'
5319 cygwin* | mingw* | pw32* | os2*)
5320 # This hack is so that the source file can tell whether it is being
5321 # built for inclusion in a dll (and should export symbols for example).
5322 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5325 if test -d /usr/nec; then
5326 lt_cv_prog_cc_pic=-Kconform_pic
5330 lt_cv_prog_cc_pic='-fPIC'
5334 # PORTME Check for PIC flags for the system compiler.
5336 aix3* | aix4* | aix5*)
5337 lt_cv_prog_cc_wl='-Wl,'
5338 # All AIX code is PIC.
5339 if test "$host_cpu" = ia64; then
5340 # AIX 5 now supports IA64 processor
5341 lt_cv_prog_cc_static='-Bstatic'
5343 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5347 hpux9* | hpux10* | hpux11*)
5348 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5349 lt_cv_prog_cc_wl='-Wl,'
5350 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5351 lt_cv_prog_cc_pic='+Z'
5354 irix5* | irix6* | nonstopux*)
5355 lt_cv_prog_cc_wl='-Wl,'
5356 lt_cv_prog_cc_static='-non_shared'
5357 # PIC (with -KPIC) is the default.
5360 cygwin* | mingw* | pw32* | os2*)
5361 # This hack is so that the source file can tell whether it is being
5362 # built for inclusion in a dll (and should export symbols for example).
5363 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5367 lt_cv_prog_cc_pic='-KPIC'
5368 lt_cv_prog_cc_static='-Bstatic'
5371 osf3* | osf4* | osf5*)
5372 # All OSF/1 code is PIC.
5373 lt_cv_prog_cc_wl='-Wl,'
5374 lt_cv_prog_cc_static='-non_shared'
5378 lt_cv_prog_cc_pic='-Kpic'
5379 lt_cv_prog_cc_static='-dn'
5380 lt_cv_prog_cc_shlib='-belf'
5384 lt_cv_prog_cc_pic='-KPIC'
5385 lt_cv_prog_cc_static='-Bstatic'
5386 lt_cv_prog_cc_wl='-Wl,'
5390 lt_cv_prog_cc_pic='-PIC'
5391 lt_cv_prog_cc_static='-Bstatic'
5392 lt_cv_prog_cc_wl='-Qoption ld '
5395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5396 lt_cv_prog_cc_pic='-KPIC'
5397 lt_cv_prog_cc_static='-Bstatic'
5398 if test "x$host_vendor" = xsni; then
5399 lt_cv_prog_cc_wl='-LD'
5401 lt_cv_prog_cc_wl='-Wl,'
5406 lt_cv_prog_cc_pic='-pic'
5407 lt_cv_prog_cc_static='-Bstatic'
5411 if test -d /usr/nec ;then
5412 lt_cv_prog_cc_pic='-Kconform_pic'
5413 lt_cv_prog_cc_static='-Bstatic'
5418 lt_cv_prog_cc_can_build_shared=no
5425 if test -z "$lt_cv_prog_cc_pic"; then
5426 echo "$as_me:$LINENO: result: none" >&5
5427 echo "${ECHO_T}none" >&6
5429 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5430 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5432 # Check to make sure the pic_flag actually works.
5433 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5434 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5435 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 save_CFLAGS="$CFLAGS"
5439 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5478 hpux9* | hpux10* | hpux11*)
5479 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5480 # they create non-PIC objects. So, if there were any warnings, we
5481 # assume that PIC is not supported.
5482 if test -s conftest.err; then
5483 lt_cv_prog_cc_pic_works=no
5485 lt_cv_prog_cc_pic_works=yes
5489 lt_cv_prog_cc_pic_works=yes
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 lt_cv_prog_cc_pic_works=no
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 CFLAGS="$save_CFLAGS"
5506 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5508 lt_cv_prog_cc_can_build_shared=no
5510 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5513 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5514 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5519 # Check for any special shared library compilation flags.
5520 if test -n "$lt_cv_prog_cc_shlib"; then
5521 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5522 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5523 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5525 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5526 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5527 lt_cv_prog_cc_can_build_shared=no
5531 ## FIXME: this should be a separate macro
5533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5534 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5535 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 lt_cv_prog_cc_static_works=no
5539 save_LDFLAGS="$LDFLAGS"
5540 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 lt_cv_prog_cc_static_works=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 LDFLAGS="$save_LDFLAGS"
5591 # Belt *and* braces to stop my trousers falling down:
5592 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5593 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5594 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5596 pic_flag="$lt_cv_prog_cc_pic"
5597 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5598 wl="$lt_cv_prog_cc_wl"
5599 link_static_flag="$lt_cv_prog_cc_static"
5600 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5601 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5606 ## FIXME: this should be a separate macro
5608 # Check to see if options -o and -c are simultaneously supported by compiler
5609 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5610 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5611 if test "${lt_cv_compiler_c_o+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 $rm -r conftest 2>/dev/null
5618 echo "int some_variable = 0;" > conftest.$ac_ext
5620 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5621 # that will create temporary files in the current directory regardless of
5622 # the output directory. Thus, making CWD read-only will cause this test
5623 # to fail, enabling locking or at least warning the user not to do parallel
5626 save_CFLAGS="$CFLAGS"
5627 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5629 if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5630 # The compiler can only warn and ignore the option if not recognized
5631 # So say no if there are warnings
5632 if test -s out/conftest.err; then
5633 lt_cv_compiler_c_o=no
5635 lt_cv_compiler_c_o=yes
5638 # Append any errors to the config.log.
5639 cat out/conftest.err 1>&5
5640 lt_cv_compiler_c_o=no
5642 CFLAGS="$save_CFLAGS"
5648 $rm -r conftest 2>/dev/null
5652 compiler_c_o=$lt_cv_compiler_c_o
5653 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5654 echo "${ECHO_T}$compiler_c_o" >&6
5656 if test x"$compiler_c_o" = x"yes"; then
5657 # Check to see if we can write to a .lo
5658 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5659 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5660 if test "${lt_cv_compiler_o_lo+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 lt_cv_compiler_o_lo=no
5665 save_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -c -o conftest.lo"
5667 save_objext="$ac_objext"
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5679 int some_variable = 0;
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 # The compiler can only warn and ignore the option if not recognized
5707 # So say no if there are warnings
5708 if test -s conftest.err; then
5709 lt_cv_compiler_o_lo=no
5711 lt_cv_compiler_o_lo=yes
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_objext="$save_objext"
5721 CFLAGS="$save_CFLAGS"
5725 compiler_o_lo=$lt_cv_compiler_o_lo
5726 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5727 echo "${ECHO_T}$compiler_o_lo" >&6
5734 ## FIXME: this should be a separate macro
5736 # Check to see if we can do hard links to lock some files if needed
5737 hard_links="nottested"
5738 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5739 # do not overwrite the value of need_locks provided by the user
5740 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5741 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5746 ln conftest.a conftest.b 2>&5 || hard_links=no
5747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5748 echo "$as_me:$LINENO: result: $hard_links" >&5
5749 echo "${ECHO_T}$hard_links" >&6
5750 if test "$hard_links" = no; then
5751 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5752 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5761 ## FIXME: this should be a separate macro
5763 if test "$GCC" = yes; then
5764 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5765 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5766 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5767 echo "int some_variable = 0;" > conftest.$ac_ext
5768 save_CFLAGS="$CFLAGS"
5769 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5770 compiler_rtti_exceptions=no
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5781 int some_variable = 0;
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 # The compiler can only warn and ignore the option if not recognized
5809 # So say no if there are warnings
5810 if test -s conftest.err; then
5811 compiler_rtti_exceptions=no
5813 compiler_rtti_exceptions=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 CFLAGS="$save_CFLAGS"
5823 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5824 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5826 if test "$compiler_rtti_exceptions" = "yes"; then
5827 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5829 no_builtin_flag=' -fno-builtin'
5835 ## FIXME: this should be a separate macro
5837 # See if the linker supports building shared libraries.
5838 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5839 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5841 allow_undefined_flag=
5843 need_lib_prefix=unknown
5844 need_version=unknown
5845 # when you set need_version to no, make sure it does not cause -set_version
5846 # flags to be left without arguments
5848 archive_expsym_cmds=
5849 old_archive_from_new_cmds=
5850 old_archive_from_expsyms_cmds=
5851 export_dynamic_flag_spec=
5852 whole_archive_flag_spec=
5853 thread_safe_flag_spec=
5854 hardcode_into_libs=no
5855 hardcode_libdir_flag_spec=
5856 hardcode_libdir_separator=
5859 hardcode_shlibpath_var=unsupported
5861 link_all_deplibs=unknown
5862 always_export_symbols=no
5863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5864 # include_expsyms should be a list of space-separated symbols to be *always*
5865 # included in the symbol list
5867 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5870 # as well as any symbol that contains `d'.
5871 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5873 # platforms (ab)use it in PIC code, but their linkers get confused if
5874 # the symbol is explicitly referenced. Since portable code cannot
5875 # rely on this symbol name, it's probably fine to never include it in
5876 # preloaded symbol tables.
5877 extract_expsyms_cmds=
5880 cygwin* | mingw* | pw32*)
5881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5882 # When not using gcc, we currently assume that we are using
5883 # Microsoft Visual C++.
5884 if test "$GCC" != yes; then
5894 if test "$with_gnu_ld" = yes; then
5895 # If archive_cmds runs LD, not CC, wlarc should be empty
5898 # See if GNU ld supports shared libraries.
5900 aix3* | aix4* | aix5*)
5901 # On AIX, the GNU linker is very broken
5902 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5906 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5907 *** to be unable to reliably create shared libraries on AIX.
5908 *** Therefore, libtool is disabling shared libraries support. If you
5909 *** really care for shared libraries, you may want to modify your PATH
5910 *** so that a non-GNU linker is found, and then restart.
5916 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)'
5917 hardcode_libdir_flag_spec='-L$libdir'
5918 hardcode_minus_L=yes
5920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5921 # that the semantics of dynamic libraries on AmigaOS, at least up
5922 # to version 4, is to share data among multiple programs linked
5923 # with the same dynamic library. Since this doesn't match the
5924 # behavior of shared libraries on other platforms, we can use
5930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5931 allow_undefined_flag=unsupported
5932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5933 # support --undefined. This deserves some investigation. FIXME
5934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 cygwin* | mingw* | pw32*)
5941 # hardcode_libdir_flag_spec is actually meaningless, as there is
5942 # no search path for DLLs.
5943 hardcode_libdir_flag_spec='-L$libdir'
5944 allow_undefined_flag=unsupported
5945 always_export_symbols=yes
5947 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5948 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5949 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5950 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5951 else $CC -o impgen impgen.c ; fi)~
5952 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5954 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5956 # cygwin and mingw dlls have different entry points and sets of symbols
5958 # FIXME: what about values for MSVC?
5959 dll_entry=__cygwin_dll_entry@12
5960 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5964 dll_entry=_DllMainCRTStartup@12
5965 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5969 # mingw and cygwin differ, and it's simplest to just exclude the union
5970 # of the two symbol sets.
5971 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5973 # recent cygwin and mingw systems supply a stub DllMain which the user
5974 # can override, but on older systems we have to supply one (in ltdll.c)
5975 if test "x$lt_cv_need_dllmain" = "xyes"; then
5976 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5977 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~
5978 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5984 # Extract the symbol export list from an `--export-all' def file,
5985 # then regenerate the def file from the symbol export list, so that
5986 # the compiled dll only exports the symbol export list.
5987 # Be careful not to strip the DATA tag left be newer dlltools.
5988 export_symbols_cmds="$ltdll_cmds"'
5989 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5990 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5992 # If the export-symbols file already is a .def file (1st line
5993 # is EXPORTS), use it as is.
5994 # If DATA tags from a recent dlltool are present, honour them!
5995 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5996 cp $export_symbols $output_objdir/$soname-def;
5998 echo EXPORTS > $output_objdir/$soname-def;
6000 cat $export_symbols | while read symbol; do
6003 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6004 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6006 _lt_hint=`expr 1 + \$_lt_hint`;
6010 $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~
6011 $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~
6012 $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~
6013 $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~
6014 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6022 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6028 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6033 *** create shared libraries on Solaris systems. Therefore, libtool
6034 *** is disabling shared libraries support. We urge you to upgrade GNU
6035 *** binutils to release 2.9.1 or newer. Another option is to modify
6036 *** your PATH or compiler configuration so that the native linker is
6037 *** used, and then restart.
6040 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6049 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6052 hardcode_shlibpath_var=no
6056 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6065 if test "$ld_shlibs" = yes; then
6066 runpath_var=LD_RUN_PATH
6067 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6068 export_dynamic_flag_spec='${wl}--export-dynamic'
6070 cygwin* | mingw* | pw32*)
6071 # dlltool doesn't understand --whole-archive et. al.
6072 whole_archive_flag_spec=
6075 # ancient GNU ld didn't support --whole-archive et. al.
6076 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6077 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6079 whole_archive_flag_spec=
6085 # PORTME fill in a description of your system's linker (not GNU ld)
6088 allow_undefined_flag=unsupported
6089 always_export_symbols=yes
6090 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'
6091 # Note: this linker hardcodes the directories in LIBPATH if there
6092 # are no directories specified by -L.
6093 hardcode_minus_L=yes
6094 if test "$GCC" = yes && test -z "$link_static_flag"; then
6095 # Neither direct hardcoding nor static linking is supported with a
6097 hardcode_direct=unsupported
6102 if test "$host_cpu" = ia64; then
6103 # On IA64, the linker does run time linking by default, so we don't
6104 # have to do anything special.
6105 aix_use_runtimelinking=no
6106 exp_sym_flag='-Bexport'
6109 aix_use_runtimelinking=no
6111 # Test if we are trying to use run time linking or normal
6112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6113 # need to do runtime linking.
6114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6115 for ld_flag in $LDFLAGS; do
6116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6117 aix_use_runtimelinking=yes
6123 exp_sym_flag='-bexport'
6124 no_entry_flag='-bnoentry'
6127 # When large executables or shared objects are built, AIX ld can
6128 # have problems creating the table of contents. If linking a library
6129 # or program results in "error TOC overflow" add -mminimal-toc to
6130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6135 hardcode_libdir_separator=':'
6136 if test "$GCC" = yes; then
6137 case $host_os in aix4.[012]|aix4.[012].*)
6138 collect2name=`${CC} -print-prog-name=collect2`
6139 if test -f "$collect2name" && \
6140 strings "$collect2name" | grep resolve_lib_name >/dev/null
6142 # We have reworked collect2
6145 # We have old collect2
6146 hardcode_direct=unsupported
6147 # It fails to find uninstalled libraries when the uninstalled
6148 # path is not listed in the libpath. Setting hardcode_minus_L
6149 # to unsupported forces relinking
6150 hardcode_minus_L=yes
6151 hardcode_libdir_flag_spec='-L$libdir'
6152 hardcode_libdir_separator=
6156 shared_flag='-shared'
6159 if test "$host_cpu" = ia64; then
6160 shared_flag='${wl}-G'
6162 if test "$aix_use_runtimelinking" = yes; then
6163 shared_flag='${wl}-G'
6165 shared_flag='${wl}-bM:SRE'
6170 # It seems that -bexpall can do strange things, so it is better to
6171 # generate a list of symbols to export.
6172 always_export_symbols=yes
6173 if test "$aix_use_runtimelinking" = yes; then
6174 # Warning - without using the other runtime loading flags (-brtl),
6175 # -berok will link without error, but may produce a broken library.
6176 allow_undefined_flag='-berok'
6177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6178 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"
6180 if test "$host_cpu" = ia64; then
6181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6182 allow_undefined_flag="-z nodefs"
6183 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"
6185 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6186 # Warning - without using the other run time loading flags,
6187 # -berok will link without error, but may produce a broken library.
6188 allow_undefined_flag='${wl}-berok'
6189 # This is a bit strange, but is similar to how AIX traditionally builds
6190 # it's shared libraries.
6191 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'
6197 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)'
6198 hardcode_libdir_flag_spec='-L$libdir'
6199 hardcode_minus_L=yes
6200 # see comment about different semantics on the GNU ld section
6204 cygwin* | mingw* | pw32*)
6205 # When not using gcc, we currently assume that we are using
6206 # Microsoft Visual C++.
6207 # hardcode_libdir_flag_spec is actually meaningless, as there is
6208 # no search path for DLLs.
6209 hardcode_libdir_flag_spec=' '
6210 allow_undefined_flag=unsupported
6211 # Tell ltmain to make .lib files, not .a files.
6213 # FIXME: Setting linknames here is a bad hack.
6214 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6215 # The linker will automatically build a .lib file if we build a DLL.
6216 old_archive_from_new_cmds='true'
6217 # FIXME: Should let the user specify the lib program.
6218 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6219 fix_srcfile_path='`cygpath -w "$srcfile"`'
6222 darwin* | rhapsody*)
6224 rhapsody* | darwin1.[012])
6225 allow_undefined_flag='-undefined suppress'
6228 allow_undefined_flag='-flat_namespace -undefined suppress'
6231 # FIXME: Relying on posixy $() will cause problems for
6232 # cross-compilation, but unfortunately the echo tests do not
6233 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6234 # `"' quotes if we put them in here... so don't!
6235 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6236 # We need to add '_' to the symbols in $export_symbols first
6237 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6239 hardcode_shlibpath_var=no
6240 whole_archive_flag_spec='-all_load $convenience'
6247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6248 # support. Future versions do this automatically, but an explicit c++rt0.o
6249 # does not break anything, and helps significantly (at the cost of a little
6252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6253 hardcode_libdir_flag_spec='-R$libdir'
6255 hardcode_shlibpath_var=no
6258 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6262 hardcode_minus_L=yes
6263 hardcode_shlibpath_var=no
6266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6268 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6269 hardcode_libdir_flag_spec='-R$libdir'
6271 hardcode_shlibpath_var=no
6274 hpux9* | hpux10* | hpux11*)
6276 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' ;;
6277 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6280 hardcode_libdir_separator=:
6282 hardcode_minus_L=yes # Not in the search PATH, but as the default
6283 # location of the library.
6284 export_dynamic_flag_spec='${wl}-E'
6287 irix5* | irix6* | nonstopux*)
6288 if test "$GCC" = yes; then
6289 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'
6291 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'
6293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6294 hardcode_libdir_separator=:
6295 link_all_deplibs=yes
6299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6304 hardcode_libdir_flag_spec='-R$libdir'
6306 hardcode_shlibpath_var=no
6310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6313 hardcode_libdir_separator=:
6314 hardcode_shlibpath_var=no
6319 hardcode_shlibpath_var=no
6320 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6323 export_dynamic_flag_spec='${wl}-E'
6326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6328 hardcode_libdir_flag_spec='-R$libdir'
6331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6339 hardcode_libdir_flag_spec='-L$libdir'
6340 hardcode_minus_L=yes
6341 allow_undefined_flag=unsupported
6342 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'
6343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6347 if test "$GCC" = yes; then
6348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6349 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'
6351 allow_undefined_flag=' -expect_unresolved \*'
6352 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'
6354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6355 hardcode_libdir_separator=:
6358 osf4* | osf5*) # as osf3* with the addition of -msym flag
6359 if test "$GCC" = yes; then
6360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6361 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'
6362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6364 allow_undefined_flag=' -expect_unresolved \*'
6365 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'
6366 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6367 $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'
6369 #Both c and cxx compiler support -rpath directly
6370 hardcode_libdir_flag_spec='-rpath $libdir'
6372 hardcode_libdir_separator=:
6376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6377 hardcode_shlibpath_var=no
6378 runpath_var=LD_RUN_PATH
6379 hardcode_runpath_var=yes
6380 export_dynamic_flag_spec='${wl}-Bexport'
6384 # gcc --version < 3.0 without binutils cannot create self contained
6385 # shared libraries reliably, requiring libgcc.a to resolve some of
6386 # the object symbols generated in some cases. Libraries that use
6387 # assert need libgcc.a to resolve __eprintf, for example. Linking
6388 # a copy of libgcc.a into every shared library to guarantee resolving
6389 # such symbols causes other problems: According to Tim Van Holder
6390 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6391 # (to the application) exception stack for one thing.
6392 no_undefined_flag=' -z defs'
6393 if test "$GCC" = yes; then
6394 case `$CC --version 2>/dev/null` in
6398 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6399 *** create self contained shared libraries on Solaris systems, without
6400 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6401 *** -no-undefined support, which will at least allow you to build shared
6402 *** libraries. However, you may find that when you link such libraries
6403 *** into an application without using GCC, you have to manually add
6404 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6405 *** upgrade to a newer version of GCC. Another option is to rebuild your
6406 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6413 # $CC -shared without GNU ld will not create a library from C++
6414 # object files and a static libstdc++, better avoid it by now
6415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6418 hardcode_libdir_flag_spec='-R$libdir'
6419 hardcode_shlibpath_var=no
6421 solaris2.[0-5] | solaris2.[0-5].*) ;;
6422 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6425 link_all_deplibs=yes
6429 if test "x$host_vendor" = xsequent; then
6430 # Use $CC to link under sequent, because it throws in some extra .o
6431 # files that make .init and .fini sections work.
6432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_libdir_flag_spec='-L$libdir'
6438 hardcode_minus_L=yes
6439 hardcode_shlibpath_var=no
6443 if test "x$host_vendor" = xsno; then
6444 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6445 hardcode_direct=yes # is this really true???
6447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6450 runpath_var='LD_RUN_PATH'
6451 hardcode_shlibpath_var=no
6455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6456 hardcode_shlibpath_var=no
6457 export_dynamic_flag_spec='-Bexport'
6461 no_undefined_flag=' -z text'
6462 # $CC -shared without GNU ld will not create a library from C++
6463 # object files and a static libstdc++, better avoid it by now
6464 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6465 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6467 hardcode_libdir_flag_spec=
6468 hardcode_shlibpath_var=no
6469 runpath_var='LD_RUN_PATH'
6473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6474 hardcode_libdir_flag_spec='-L$libdir'
6475 hardcode_shlibpath_var=no
6479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6480 hardcode_libdir_flag_spec='-L$libdir'
6481 hardcode_shlibpath_var=no
6485 if test -d /usr/nec; then
6486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6487 hardcode_shlibpath_var=no
6488 runpath_var=LD_RUN_PATH
6489 hardcode_runpath_var=yes
6495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6498 hardcode_shlibpath_var=no
6499 hardcode_runpath_var=yes
6500 runpath_var=LD_RUN_PATH
6503 sysv5uw7* | unixware7*)
6504 no_undefined_flag='${wl}-z ${wl}text'
6505 if test "$GCC" = yes; then
6506 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6508 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6510 runpath_var='LD_RUN_PATH'
6511 hardcode_shlibpath_var=no
6519 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6520 echo "${ECHO_T}$ld_shlibs" >&6
6521 test "$ld_shlibs" = no && can_build_shared=no
6525 ## FIXME: this should be a separate macro
6527 # Check hardcoding attributes.
6528 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6531 if test -n "$hardcode_libdir_flag_spec" || \
6532 test -n "$runpath_var"; then
6534 # We can hardcode non-existant directories.
6535 if test "$hardcode_direct" != no &&
6536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6537 # have to relink, otherwise we might link with an installed library
6538 # when we should be linking with a yet-to-be-installed one
6539 ## test "$hardcode_shlibpath_var" != no &&
6540 test "$hardcode_minus_L" != no; then
6541 # Linking always hardcodes the temporary library directory.
6542 hardcode_action=relink
6544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6545 hardcode_action=immediate
6548 # We cannot hardcode anything, or else we can only hardcode existing
6550 hardcode_action=unsupported
6552 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6553 echo "${ECHO_T}$hardcode_action" >&6
6557 ## FIXME: this should be a separate macro
6561 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6562 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6563 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6566 echo "$as_me:$LINENO: result: yes" >&5
6567 echo "${ECHO_T}yes" >&6
6569 echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6
6575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6576 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6578 ## FIXME: this should be a separate macro
6580 # PORTME Fill in your ld.so characteristics
6581 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6584 libname_spec='lib$name'
6591 shlibpath_overrides_runpath=unknown
6593 dynamic_linker="$host_os ld.so"
6594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6600 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6601 shlibpath_var=LIBPATH
6603 # AIX has no versioning support, so we append a major version to the name.
6604 soname_spec='${libname}${release}.so$major'
6609 if test "$host_cpu" = ia64; then
6610 # AIX 5 supports IA64
6611 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6612 shlibpath_var=LD_LIBRARY_PATH
6614 # With GCC up to 2.95.x, collect2 would create an import file
6615 # for dependence libraries. The import file would start with
6616 # the line `#! .'. This would cause the generated library to
6617 # depend on `.', always an invalid library. This was fixed in
6618 # development snapshots of GCC prior to 3.0.
6620 aix4 | aix4.[01] | aix4.[01].*)
6621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6630 # AIX (on Power*) has no versioning support, so currently we can
6631 # not hardcode correct soname into executable. Probably we can
6632 # add versioning support to collect2, so additional links can
6633 # be useful in future.
6634 if test "$aix_use_runtimelinking" = yes; then
6635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6636 # instead of lib<name>.a to let people know that these are not
6637 # typical AIX shared libraries.
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6640 # We preserve .a as extension for shared libraries through AIX4.2
6641 # and later when we are not doing run time linking.
6642 library_names_spec='${libname}${release}.a $libname.a'
6643 soname_spec='${libname}${release}.so$major'
6645 shlibpath_var=LIBPATH
6650 library_names_spec='$libname.ixlibrary $libname.a'
6651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6652 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'
6656 library_names_spec='${libname}.so'
6657 dynamic_linker="$host_os ld.so"
6658 shlibpath_var=LIBRARY_PATH
6664 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6665 soname_spec='${libname}${release}.so$major'
6666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6667 shlibpath_var=LD_LIBRARY_PATH
6668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6670 export_dynamic_flag_spec=-rdynamic
6671 # the default ld.so.conf also contains /usr/contrib/lib and
6672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6673 # libtool to hard-code these into programs
6676 cygwin* | mingw* | pw32*)
6677 version_type=windows
6680 case $GCC,$host_os in
6682 library_names_spec='$libname.dll.a'
6683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6684 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6685 dldir=$destdir/`dirname \$dlpath`~
6686 test -d \$dldir || mkdir -p \$dldir~
6687 $install_prog .libs/$dlname \$dldir/$dlname'
6688 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6689 dlpath=$dir/\$dldll~
6693 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6700 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6703 dynamic_linker='Win32 ld.exe'
6704 # FIXME: first we should search . and the directory the executable is in
6708 darwin* | rhapsody*)
6709 dynamic_linker="$host_os dyld"
6713 # FIXME: Relying on posixy $() will cause problems for
6714 # cross-compilation, but unfortunately the echo tests do not
6715 # yet detect zsh echo's removal of \ escapes.
6716 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)'
6717 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6718 shlibpath_overrides_runpath=yes
6719 shlibpath_var=DYLD_LIBRARY_PATH
6727 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6728 version_type=freebsd-$objformat
6729 case $version_type in
6731 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6736 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6740 shlibpath_var=LD_LIBRARY_PATH
6743 shlibpath_overrides_runpath=yes
6746 shlibpath_overrides_runpath=no
6747 hardcode_into_libs=yes
6756 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6757 soname_spec='${libname}${release}.so$major'
6758 shlibpath_var=LD_LIBRARY_PATH
6759 hardcode_into_libs=yes
6762 hpux9* | hpux10* | hpux11*)
6763 # Give a soname corresponding to the major version so that dld.sl refuses to
6764 # link against other versions.
6765 dynamic_linker="$host_os dld.sl"
6769 shlibpath_var=SHLIB_PATH
6770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6771 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6772 soname_spec='${libname}${release}.sl$major'
6773 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6774 postinstall_cmds='chmod 555 $lib'
6777 irix5* | irix6* | nonstopux*)
6779 nonstopux*) version_type=nonstopux ;;
6780 *) version_type=irix ;;
6784 soname_spec='${libname}${release}.so$major'
6785 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6787 irix5* | nonstopux*)
6791 case $LD in # libtool.m4 will add one of these switches to LD
6792 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6793 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6794 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6795 *) libsuff= shlibsuff= libmagic=never-match;;
6799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6800 shlibpath_overrides_runpath=no
6801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6805 # No shared lib support for Linux oldld, aout, or coff.
6806 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6810 # This must be Linux ELF.
6815 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6816 soname_spec='${libname}${release}.so$major'
6817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6818 shlibpath_var=LD_LIBRARY_PATH
6819 shlibpath_overrides_runpath=no
6820 # This implies no fast_install, which is unacceptable.
6821 # Some rework will be needed to allow for fast_install
6822 # before this can be enabled.
6823 hardcode_into_libs=yes
6825 # We used to test for /lib/ld.so.1 and disable shared libraries on
6826 # powerpc, because MkLinux only supported shared libraries with the
6827 # GNU dynamic linker. Since this was broken with cross compilers,
6828 # most powerpc-linux boxes support dynamic linking these days and
6829 # people can always --disable-shared, the test was removed, and we
6830 # assume the GNU/Linux dynamic linker is in use.
6831 dynamic_linker='GNU/Linux ld.so'
6838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6839 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6841 dynamic_linker='NetBSD (a.out) ld.so'
6843 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6844 soname_spec='${libname}${release}.so$major'
6845 dynamic_linker='NetBSD ld.elf_so'
6847 shlibpath_var=LD_LIBRARY_PATH
6848 shlibpath_overrides_runpath=yes
6849 hardcode_into_libs=yes
6854 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855 shlibpath_var=LD_LIBRARY_PATH
6856 shlibpath_overrides_runpath=yes
6863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6865 openbsd2.[89] | openbsd2.[89].*)
6866 shlibpath_overrides_runpath=no
6869 shlibpath_overrides_runpath=yes
6873 shlibpath_overrides_runpath=yes
6875 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6877 shlibpath_var=LD_LIBRARY_PATH
6881 libname_spec='$name'
6883 library_names_spec='$libname.dll $libname.a'
6884 dynamic_linker='OS/2 ld.exe'
6885 shlibpath_var=LIBPATH
6888 osf3* | osf4* | osf5*)
6891 soname_spec='${libname}${release}.so'
6892 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6893 shlibpath_var=LD_LIBRARY_PATH
6894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6900 soname_spec='${libname}${release}.so$major'
6901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6902 shlibpath_var=LD_LIBRARY_PATH
6909 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6910 soname_spec='${libname}${release}.so$major'
6911 shlibpath_var=LD_LIBRARY_PATH
6912 shlibpath_overrides_runpath=yes
6913 hardcode_into_libs=yes
6914 # ldd complains unless libraries are executable
6915 postinstall_cmds='chmod +x $lib'
6920 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 shlibpath_overrides_runpath=yes
6924 if test "$with_gnu_ld" = yes; then
6930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6933 soname_spec='${libname}${release}.so$major'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 case $host_vendor in
6937 shlibpath_overrides_runpath=no
6942 shlibpath_overrides_runpath=no
6943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6950 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6951 soname_spec='${libname}${release}.so$major'
6952 shlibpath_var=LD_LIBRARY_PATH
6959 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6960 soname_spec='${libname}${release}.so$major'
6961 shlibpath_var=LD_LIBRARY_PATH
6965 if test -d /usr/nec ;then
6967 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6968 soname_spec='$libname.so.$major'
6969 shlibpath_var=LD_LIBRARY_PATH
6977 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6978 echo "${ECHO_T}$dynamic_linker" >&6
6979 test "$dynamic_linker" = no && can_build_shared=no
6983 ## FIXME: this should be a separate macro
6985 # Report the final consequences.
6986 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6987 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6989 echo "${ECHO_T}$can_build_shared" >&6
6993 ## FIXME: this should be a separate macro
6995 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6996 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6997 test "$can_build_shared" = "no" && enable_shared=no
6999 # On AIX, shared libraries and static libraries use the same namespace, and
7000 # are all built from PIC.
7003 test "$enable_shared" = yes && enable_static=no
7004 if test -n "$RANLIB"; then
7005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7006 postinstall_cmds='$RANLIB $lib'
7011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7012 test "$enable_shared" = yes && enable_static=no
7016 echo "$as_me:$LINENO: result: $enable_shared" >&5
7017 echo "${ECHO_T}$enable_shared" >&6
7021 ## FIXME: this should be a separate macro
7023 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7024 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7025 # Make sure either enable_shared or enable_static is yes.
7026 test "$enable_shared" = yes || enable_static=yes
7027 echo "$as_me:$LINENO: result: $enable_static" >&5
7028 echo "${ECHO_T}$enable_static" >&6
7032 if test "$hardcode_action" = relink; then
7033 # Fast installation is not supported
7034 enable_fast_install=no
7035 elif test "$shlibpath_overrides_runpath" = yes ||
7036 test "$enable_shared" = no; then
7037 # Fast installation is not necessary
7038 enable_fast_install=needless
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7046 if test "x$enable_dlopen" != xyes; then
7047 enable_dlopen=unknown
7048 enable_dlopen_self=unknown
7049 enable_dlopen_self_static=unknown
7056 lt_cv_dlopen="load_add_on"
7058 lt_cv_dlopen_self=yes
7061 cygwin* | mingw* | pw32*)
7062 lt_cv_dlopen="LoadLibrary"
7067 echo "$as_me:$LINENO: checking for shl_load" >&5
7068 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7069 if test "${ac_cv_func_shl_load+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7080 #define shl_load innocuous_shl_load
7082 /* System header to define __stub macros and hopefully few prototypes,
7083 which can conflict with char shl_load (); below.
7084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085 <limits.h> exists even on freestanding compilers. */
7088 # include <limits.h>
7090 # include <assert.h>
7095 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7103 /* The GNU C library defines this for functions which it implements
7104 to always fail with ENOSYS. Some functions are actually named
7105 something starting with __ and the normal name is an alias. */
7106 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7109 char (*f) () = shl_load;
7118 return f != shl_load;
7123 rm -f conftest.$ac_objext conftest$ac_exeext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125 (eval $ac_link) 2>conftest.er1
7127 grep -v '^ *+' conftest.er1 >conftest.err
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -z "$ac_c_werror_flag"
7133 || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_func_shl_load=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_func_shl_load=no
7152 rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7156 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7157 if test $ac_cv_func_shl_load = yes; then
7158 lt_cv_dlopen="shl_load"
7160 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7161 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7162 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_check_lib_save_LIBS=$LIBS
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_dld_shl_load=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_lib_dld_shl_load=no
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7224 if test $ac_cv_lib_dld_shl_load = yes; then
7225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7227 echo "$as_me:$LINENO: checking for dlopen" >&5
7228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7229 if test "${ac_cv_func_dlopen+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7240 #define dlopen innocuous_dlopen
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char dlopen (); below.
7244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 <limits.h> exists even on freestanding compilers. */
7248 # include <limits.h>
7250 # include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7269 char (*f) () = dlopen;
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_func_dlopen=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_func_dlopen=no
7312 rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7316 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7317 if test $ac_cv_func_dlopen = yes; then
7318 lt_cv_dlopen="dlopen"
7320 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7321 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_check_lib_save_LIBS=$LIBS
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1 >conftest.err
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_lib_dl_dlopen=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_lib_dl_dlopen=no
7378 rm -f conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 LIBS=$ac_check_lib_save_LIBS
7382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7384 if test $ac_cv_lib_dl_dlopen = yes; then
7385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7387 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7388 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_check_lib_save_LIBS=$LIBS
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7401 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_lib_svld_dlopen=yes
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 ac_cv_lib_svld_dlopen=no
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7449 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7450 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7451 if test $ac_cv_lib_svld_dlopen = yes; then
7452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7454 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7455 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7456 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_check_lib_save_LIBS=$LIBS
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1 >conftest.err
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_dld_dld_link=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_lib_dld_dld_link=no
7512 rm -f conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7518 if test $ac_cv_lib_dld_dld_link = yes; then
7519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7540 if test "x$lt_cv_dlopen" != xno; then
7546 case $lt_cv_dlopen in
7548 save_CPPFLAGS="$CPPFLAGS"
7549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7551 save_LDFLAGS="$LDFLAGS"
7552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7555 LIBS="$lt_cv_dlopen_libs $LIBS"
7557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7559 if test "${lt_cv_dlopen_self+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test "$cross_compiling" = yes; then :
7563 lt_cv_dlopen_self=cross
7565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7566 lt_status=$lt_dlunknown
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7568 "configure"
7569 #include "confdefs.h"
7578 # define LT_DLGLOBAL RTLD_GLOBAL
7581 # define LT_DLGLOBAL DL_GLOBAL
7583 # define LT_DLGLOBAL 0
7587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7588 find out it does not work in some platform. */
7589 #ifndef LT_DLLAZY_OR_NOW
7591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7594 # define LT_DLLAZY_OR_NOW DL_LAZY
7597 # define LT_DLLAZY_OR_NOW RTLD_NOW
7600 # define LT_DLLAZY_OR_NOW DL_NOW
7602 # define LT_DLLAZY_OR_NOW 0
7610 extern "C" void exit (int);
7613 void fnord() { int i=42;}
7616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7617 int status = $lt_dlunknown;
7621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7623 /* dlclose (self); */
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7634 (./conftest; exit; ) 2>/dev/null
7637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7642 # compilation failed
7643 lt_cv_dlopen_self=no
7650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7653 if test "x$lt_cv_dlopen_self" = xyes; then
7654 LDFLAGS="$LDFLAGS $link_static_flag"
7655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7657 if test "${lt_cv_dlopen_self_static+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test "$cross_compiling" = yes; then :
7661 lt_cv_dlopen_self_static=cross
7663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7664 lt_status=$lt_dlunknown
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7676 # define LT_DLGLOBAL RTLD_GLOBAL
7679 # define LT_DLGLOBAL DL_GLOBAL
7681 # define LT_DLGLOBAL 0
7685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7686 find out it does not work in some platform. */
7687 #ifndef LT_DLLAZY_OR_NOW
7689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7692 # define LT_DLLAZY_OR_NOW DL_LAZY
7695 # define LT_DLLAZY_OR_NOW RTLD_NOW
7698 # define LT_DLLAZY_OR_NOW DL_NOW
7700 # define LT_DLLAZY_OR_NOW 0
7708 extern "C" void exit (int);
7711 void fnord() { int i=42;}
7714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7715 int status = $lt_dlunknown;
7719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7721 /* dlclose (self); */
7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7732 (./conftest; exit; ) 2>/dev/null
7735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7740 # compilation failed
7741 lt_cv_dlopen_self_static=no
7748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7752 CPPFLAGS="$save_CPPFLAGS"
7753 LDFLAGS="$save_LDFLAGS"
7758 case $lt_cv_dlopen_self in
7759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7760 *) enable_dlopen_self=unknown ;;
7763 case $lt_cv_dlopen_self_static in
7764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7765 *) enable_dlopen_self_static=unknown ;;
7770 ## FIXME: this should be a separate macro
7772 if test "$enable_shared" = yes && test "$GCC" = yes; then
7773 case $archive_cmds in
7775 # FIXME: we may have to deal with multi-command sequences.
7778 # Test whether the compiler implicitly links with -lc since on some
7779 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7780 # to ld, don't add -lc before -lgcc.
7781 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7782 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7783 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 echo 'static int dummy;' > conftest.$ac_ext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; then
7796 libobjs=conftest.$ac_objext
7798 wl=$lt_cv_prog_cc_wl
7804 save_allow_undefined_flag=$allow_undefined_flag
7805 allow_undefined_flag=
7806 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7807 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }
7812 lt_cv_archive_cmds_need_lc=no
7814 lt_cv_archive_cmds_need_lc=yes
7816 allow_undefined_flag=$save_allow_undefined_flag
7818 cat conftest.err 1>&5
7822 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7823 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7827 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7831 ## FIXME: this should be a separate macro
7833 # The second clause should only fire when bootstrapping the
7834 # libtool distribution, otherwise you forgot to ship ltmain.sh
7835 # with your package, and you will get complaints that there are
7836 # no rules to generate ltmain.sh.
7837 if test -f "$ltmain"; then
7840 # If there is no Makefile yet, we rely on a make rule to execute
7841 # `config.status --recheck' to rerun these tests and create the
7842 # libtool script then.
7843 test -f Makefile && make "$ltmain"
7846 if test -f "$ltmain"; then
7847 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7850 echo creating $ofile
7852 # Now quote all the things that may contain metacharacters while being
7853 # careful not to overquote the AC_SUBSTed values. We take copies of the
7854 # variables and quote the copies for generation of the libtool script.
7855 for var in echo old_CC old_CFLAGS \
7856 AR AR_FLAGS CC LD LN_S NM SHELL \
7857 reload_flag reload_cmds wl \
7858 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7859 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7860 library_names_spec soname_spec \
7861 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7862 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7863 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7864 old_striplib striplib file_magic_cmd export_symbols_cmds \
7865 deplibs_check_method allow_undefined_flag no_undefined_flag \
7866 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7867 global_symbol_to_c_name_address \
7868 hardcode_libdir_flag_spec hardcode_libdir_separator \
7869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7870 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7873 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7874 old_postinstall_cmds | old_postuninstall_cmds | \
7875 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7876 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7877 postinstall_cmds | postuninstall_cmds | \
7878 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7879 # Double-quote double-evaled strings.
7880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7888 cat <<__EOF__ > "${ofile}T"
7891 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7892 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7895 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7896 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7898 # This program is free software; you can redistribute it and/or modify
7899 # it under the terms of the GNU General Public License as published by
7900 # the Free Software Foundation; either version 2 of the License, or
7901 # (at your option) any later version.
7903 # This program is distributed in the hope that it will be useful, but
7904 # WITHOUT ANY WARRANTY; without even the implied warranty of
7905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7906 # General Public License for more details.
7908 # You should have received a copy of the GNU General Public License
7909 # along with this program; if not, write to the Free Software
7910 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7912 # As a special exception to the GNU General Public License, if you
7913 # distribute this file as part of a program that contains a
7914 # configuration script generated by Autoconf, you may include it under
7915 # the same distribution terms that you use for the rest of that program.
7917 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7918 Xsed="sed -e s/^X//"
7920 # The HP-UX ksh and POSIX shell print the target directory to stdout
7922 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7924 # ### BEGIN LIBTOOL CONFIG
7926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7928 # Shell to use when invoking shell scripts.
7931 # Whether or not to build shared libraries.
7932 build_libtool_libs=$enable_shared
7934 # Whether or not to build static libraries.
7935 build_old_libs=$enable_static
7937 # Whether or not to add -lc for building shared libraries.
7938 build_libtool_need_lc=$need_lc
7940 # Whether or not to optimize for fast installation.
7941 fast_install=$enable_fast_install
7944 host_alias=$host_alias
7947 # An echo program that does not interpret backslashes.
7952 AR_FLAGS=$lt_AR_FLAGS
7954 # The default C compiler.
7957 # Is the compiler the GNU C compiler?
7960 # The linker used to build libraries.
7963 # Whether we need hard or soft links.
7966 # A BSD-compatible nm program.
7969 # A symbol stripping program
7972 # Used to examine libraries when file_magic_cmd begins "file"
7973 MAGIC_CMD=$MAGIC_CMD
7975 # Used on cygwin: DLL creation program.
7978 # Used on cygwin: object dumper.
7981 # Used on cygwin: assembler.
7984 # The name of the directory that contains temporary libtool files.
7987 # How to create reloadable object files.
7988 reload_flag=$lt_reload_flag
7989 reload_cmds=$lt_reload_cmds
7991 # How to pass a linker flag through the compiler.
7994 # Object file suffix (normally "o").
7997 # Old archive suffix (normally "a").
8000 # Executable file suffix (normally "").
8003 # Additional compiler flags for building library objects.
8004 pic_flag=$lt_pic_flag
8007 # Does compiler simultaneously support -c and -o options?
8008 compiler_c_o=$lt_compiler_c_o
8010 # Can we write directly to a .lo ?
8011 compiler_o_lo=$lt_compiler_o_lo
8013 # Must we lock files when doing compilation ?
8014 need_locks=$lt_need_locks
8016 # Do we need the lib prefix for modules?
8017 need_lib_prefix=$need_lib_prefix
8019 # Do we need a version for libraries?
8020 need_version=$need_version
8022 # Whether dlopen is supported.
8023 dlopen_support=$enable_dlopen
8025 # Whether dlopen of programs is supported.
8026 dlopen_self=$enable_dlopen_self
8028 # Whether dlopen of statically linked programs is supported.
8029 dlopen_self_static=$enable_dlopen_self_static
8031 # Compiler flag to prevent dynamic linking.
8032 link_static_flag=$lt_link_static_flag
8034 # Compiler flag to turn off builtin functions.
8035 no_builtin_flag=$lt_no_builtin_flag
8037 # Compiler flag to allow reflexive dlopens.
8038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8040 # Compiler flag to generate shared objects directly from archives.
8041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8043 # Compiler flag to generate thread-safe objects.
8044 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8046 # Library versioning type.
8047 version_type=$version_type
8049 # Format of library name prefix.
8050 libname_spec=$lt_libname_spec
8052 # List of archive names. First name is the real one, the rest are links.
8053 # The last name is the one that the linker finds with -lNAME.
8054 library_names_spec=$lt_library_names_spec
8056 # The coded name of the library, if different from the real name.
8057 soname_spec=$lt_soname_spec
8059 # Commands used to build and install an old-style archive.
8061 old_archive_cmds=$lt_old_archive_cmds
8062 old_postinstall_cmds=$lt_old_postinstall_cmds
8063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8065 # Create an old-style archive from a shared archive.
8066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8068 # Create a temporary old-style archive to link instead of a shared archive.
8069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8071 # Commands used to build and install a shared archive.
8072 archive_cmds=$lt_archive_cmds
8073 archive_expsym_cmds=$lt_archive_expsym_cmds
8074 postinstall_cmds=$lt_postinstall_cmds
8075 postuninstall_cmds=$lt_postuninstall_cmds
8077 # Commands to strip libraries.
8078 old_striplib=$lt_old_striplib
8079 striplib=$lt_striplib
8081 # Method to check whether dependent libraries are shared objects.
8082 deplibs_check_method=$lt_deplibs_check_method
8084 # Command to use when deplibs_check_method == file_magic.
8085 file_magic_cmd=$lt_file_magic_cmd
8087 # Flag that allows shared libraries with undefined symbols to be built.
8088 allow_undefined_flag=$lt_allow_undefined_flag
8090 # Flag that forces no undefined symbols.
8091 no_undefined_flag=$lt_no_undefined_flag
8093 # Commands used to finish a libtool library installation in a directory.
8094 finish_cmds=$lt_finish_cmds
8096 # Same as above, but a single script fragment to be evaled but not shown.
8097 finish_eval=$lt_finish_eval
8099 # Take the output of nm and produce a listing of raw symbols and C names.
8100 global_symbol_pipe=$lt_global_symbol_pipe
8102 # Transform the output of nm in a proper C declaration
8103 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8105 # Transform the output of nm in a C name address pair
8106 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8108 # This is the shared library runtime path variable.
8109 runpath_var=$runpath_var
8111 # This is the shared library path variable.
8112 shlibpath_var=$shlibpath_var
8114 # Is shlibpath searched before the hard-coded library search path?
8115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8117 # How to hardcode a shared library path into an executable.
8118 hardcode_action=$hardcode_action
8120 # Whether we should hardcode library paths into libraries.
8121 hardcode_into_libs=$hardcode_into_libs
8123 # Flag to hardcode \$libdir into a binary during linking.
8124 # This must work even if \$libdir does not exist.
8125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8127 # Whether we need a single -rpath flag with a separated argument.
8128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8130 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8132 hardcode_direct=$hardcode_direct
8134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8136 hardcode_minus_L=$hardcode_minus_L
8138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8139 # the resulting binary.
8140 hardcode_shlibpath_var=$hardcode_shlibpath_var
8142 # Variables whose values should be saved in libtool wrapper scripts and
8143 # restored at relink time.
8144 variables_saved_for_relink="$variables_saved_for_relink"
8146 # Whether libtool must link a program against all its dependency libraries.
8147 link_all_deplibs=$link_all_deplibs
8149 # Compile-time system search path for libraries
8150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8152 # Run-time system search path for libraries
8153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8155 # Fix the shell variable \$srcfile for the compiler.
8156 fix_srcfile_path="$fix_srcfile_path"
8158 # Set to yes if exported symbols are required.
8159 always_export_symbols=$always_export_symbols
8161 # The commands to list exported symbols.
8162 export_symbols_cmds=$lt_export_symbols_cmds
8164 # The commands to extract the exported symbol list from a shared archive.
8165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8167 # Symbols that should not be listed in the preloaded symbols.
8168 exclude_expsyms=$lt_exclude_expsyms
8170 # Symbols that must always be exported.
8171 include_expsyms=$lt_include_expsyms
8173 # ### END LIBTOOL CONFIG
8179 cat <<\EOF >> "${ofile}T"
8181 # AIX sometimes has problems with the GCC collect2 program. For some
8182 # reason, if we set the COLLECT_NAMES environment variable, the problems
8183 # vanish in a puff of smoke.
8184 if test "X${COLLECT_NAMES+set}" != Xset; then
8186 export COLLECT_NAMES
8193 cygwin* | mingw* | pw32* | os2*)
8194 cat <<'EOF' >> "${ofile}T"
8195 # This is a source program that is used to create dlls on Windows
8196 # Don't remove nor modify the starting and closing comments
8197 # /* ltdll.c starts here */
8198 # #define WIN32_LEAN_AND_MEAN
8199 # #include <windows.h>
8200 # #undef WIN32_LEAN_AND_MEAN
8201 # #include <stdio.h>
8203 # #ifndef __CYGWIN__
8204 # # ifdef __CYGWIN32__
8205 # # define __CYGWIN__ __CYGWIN32__
8209 # #ifdef __cplusplus
8212 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8213 # #ifdef __cplusplus
8218 # #include <cygwin/cygwin_dll.h>
8219 # DECLARE_CYGWIN_DLL( DllMain );
8221 # HINSTANCE __hDllInstance_base;
8224 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8226 # __hDllInstance_base = hInst;
8229 # /* ltdll.c ends here */
8230 # This is a source program that is used to create import libraries
8231 # on Windows for dlls which lack them. Don't remove nor modify the
8232 # starting and closing comments
8233 # /* impgen.c starts here */
8234 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8236 # This file is part of GNU libtool.
8238 # This program is free software; you can redistribute it and/or modify
8239 # it under the terms of the GNU General Public License as published by
8240 # the Free Software Foundation; either version 2 of the License, or
8241 # (at your option) any later version.
8243 # This program is distributed in the hope that it will be useful,
8244 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8246 # GNU General Public License for more details.
8248 # You should have received a copy of the GNU General Public License
8249 # along with this program; if not, write to the Free Software
8250 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8253 # #include <stdio.h> /* for printf() */
8254 # #include <unistd.h> /* for open(), lseek(), read() */
8255 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8256 # #include <string.h> /* for strdup() */
8258 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8260 # #define O_BINARY 0
8263 # static unsigned int
8264 # pe_get16 (fd, offset)
8268 # unsigned char b[2];
8269 # lseek (fd, offset, SEEK_SET);
8271 # return b[0] + (b[1]<<8);
8274 # static unsigned int
8275 # pe_get32 (fd, offset)
8279 # unsigned char b[4];
8280 # lseek (fd, offset, SEEK_SET);
8282 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8285 # static unsigned int
8289 # unsigned char *b = ptr;
8290 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8299 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8300 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8301 # unsigned long name_rvas, nexp;
8302 # unsigned char *expdata, *erva;
8303 # char *filename, *dll_name;
8305 # filename = argv[1];
8307 # dll = open(filename, O_RDONLY|O_BINARY);
8311 # dll_name = filename;
8313 # for (i=0; filename[i]; i++)
8314 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8315 # dll_name = filename + i +1;
8317 # pe_header_offset = pe_get32 (dll, 0x3c);
8318 # opthdr_ofs = pe_header_offset + 4 + 20;
8319 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8321 # if (num_entries < 1) /* no exports */
8324 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8325 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8326 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8327 # secptr = (pe_header_offset + 4 + 20 +
8328 # pe_get16 (dll, pe_header_offset + 4 + 16));
8331 # for (i = 0; i < nsections; i++)
8334 # unsigned long secptr1 = secptr + 40 * i;
8335 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8336 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8337 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8338 # lseek(dll, secptr1, SEEK_SET);
8339 # read(dll, sname, 8);
8340 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8342 # expptr = fptr + (export_rva - vaddr);
8343 # if (export_rva + export_size > vaddr + vsize)
8344 # export_size = vsize - (export_rva - vaddr);
8349 # expdata = (unsigned char*)malloc(export_size);
8350 # lseek (dll, expptr, SEEK_SET);
8351 # read (dll, expdata, export_size);
8352 # erva = expdata - export_rva;
8354 # nexp = pe_as32 (expdata+24);
8355 # name_rvas = pe_as32 (expdata+32);
8357 # printf ("EXPORTS\n");
8358 # for (i = 0; i<nexp; i++)
8360 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8361 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8366 # /* impgen.c ends here */
8372 # We use sed instead of cat because bash on DJGPP gets confused if
8373 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8374 # text mode, it properly converts lines to CR/LF. This bash problem
8375 # is reportedly fixed, but why not run on old versions too?
8376 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8378 mv -f "${ofile}T" "$ofile" || \
8379 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8389 # This can be used to rebuild libtool when needed
8390 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8392 # Always use our own libtool.
8393 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8395 # Prevent multiple expansion
8400 for ac_prog in flex lex
8402 # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8406 if test "${ac_cv_prog_LEX+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 if test -n "$LEX"; then
8410 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_LEX="$ac_prog"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 if test -n "$LEX"; then
8430 echo "$as_me:$LINENO: result: $LEX" >&5
8431 echo "${ECHO_T}$LEX" >&6
8433 echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8437 test -n "$LEX" && break
8439 test -n "$LEX" || LEX=":"
8441 if test -z "$LEXLIB"
8443 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8444 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8445 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_check_lib_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Override any gcc2 internal prototype to avoid an error. */
8461 /* We use char because int might match the return type of a gcc2
8462 builtin and then its argument prototype would still apply. */
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474 (eval $ac_link) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_lib_fl_yywrap=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_lib_fl_yywrap=no
8501 rm -f conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 LIBS=$ac_check_lib_save_LIBS
8505 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8506 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8507 if test $ac_cv_lib_fl_yywrap = yes; then
8510 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8511 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8512 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 ac_check_lib_save_LIBS=$LIBS
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_l_yywrap=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 ac_cv_lib_l_yywrap=no
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8573 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8574 if test $ac_cv_lib_l_yywrap = yes; then
8582 if test "x$LEX" != "x:"; then
8583 echo "$as_me:$LINENO: checking lex output file root" >&5
8584 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8585 if test "${ac_cv_prog_lex_root+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 # The minimal lex program is just a single line: %%. But some broken lexes
8589 # (Solaris, I think it was) want two %% lines, so accommodate them.
8590 cat >conftest.l <<_ACEOF
8594 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8595 (eval $LEX conftest.l) 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }
8599 if test -f lex.yy.c; then
8600 ac_cv_prog_lex_root=lex.yy
8601 elif test -f lexyy.c; then
8602 ac_cv_prog_lex_root=lexyy
8604 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8605 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8606 { (exit 1); exit 1; }; }
8609 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8610 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8612 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8614 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8615 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8616 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 # POSIX says lex can declare yytext either as a pointer or an array; the
8620 # default is implementation-dependent. Figure out which it is, since
8621 # not all implementations provide the %pointer and %array declarations.
8622 ac_cv_prog_lex_yytext_pointer=no
8623 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8625 LIBS="$LIBS $LEXLIB"
8626 cat >conftest.$ac_ext <<_ACEOF
8627 `cat $LEX_OUTPUT_ROOT.c`
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag"
8639 || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_prog_lex_yytext_pointer=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8657 rm -f conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8660 rm -f "${LEX_OUTPUT_ROOT}.c"
8663 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8664 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8665 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define YYTEXT_POINTER 1
8674 if test ${LEX} = "flex"; then
8675 cat >>confdefs.h <<\_ACEOF
8680 for ac_prog in 'bison -y' byacc
8682 # Extract the first word of "$ac_prog", so it can be a program name with args.
8683 set dummy $ac_prog; ac_word=$2
8684 echo "$as_me:$LINENO: checking for $ac_word" >&5
8685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686 if test "${ac_cv_prog_YACC+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 if test -n "$YACC"; then
8690 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_YACC="$ac_prog"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 YACC=$ac_cv_prog_YACC
8709 if test -n "$YACC"; then
8710 echo "$as_me:$LINENO: result: $YACC" >&5
8711 echo "${ECHO_T}$YACC" >&6
8713 echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8717 test -n "$YACC" && break
8719 test -n "$YACC" || YACC="yacc"
8721 # Extract the first word of "bison++", so it can be a program name with args.
8722 set dummy bison++; ac_word=$2
8723 echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8725 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 if test -n "$BISON_PLUS_PLUS"; then
8729 ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_BISON_PLUS_PLUS="bison++"
8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
8748 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
8749 if test -n "$BISON_PLUS_PLUS"; then
8750 echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
8751 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6
8753 echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6
8760 ac_cpp='$CXXCPP $CPPFLAGS'
8761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8766 # Checking for header files.
8767 # ===========================================================================
8769 if test -d /stuff/include; then
8770 CPPFLAGS="$CPPFLAGS -I/stuff/include"
8775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8777 if test "${ac_cv_header_stdc+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_cxx_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_header_stdc=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_cv_header_stdc=no
8828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8830 if test $ac_cv_header_stdc = yes; then
8831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8842 $EGREP "memchr" >/dev/null 2>&1; then
8845 ac_cv_header_stdc=no
8851 if test $ac_cv_header_stdc = yes; then
8852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8863 $EGREP "free" >/dev/null 2>&1; then
8866 ac_cv_header_stdc=no
8872 if test $ac_cv_header_stdc = yes; then
8873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8874 if test "$cross_compiling" = yes; then
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #if ((' ' & 0x0FF) == 0x020)
8885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8888 # define ISLOWER(c) \
8889 (('a' <= (c) && (c) <= 'i') \
8890 || ('j' <= (c) && (c) <= 'r') \
8891 || ('s' <= (c) && (c) <= 'z'))
8892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8900 for (i = 0; i < 256; i++)
8901 if (XOR (islower (i), ISLOWER (i))
8902 || toupper (i) != TOUPPER (i))
8907 rm -f conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8920 echo "$as_me: program exited with status $ac_status" >&5
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_header_stdc=no
8927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8932 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8933 if test $ac_cv_header_stdc = yes; then
8935 cat >>confdefs.h <<\_ACEOF
8936 #define STDC_HEADERS 1
8944 for ac_header in getopt.h unistd.h termios.h
8946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8948 echo "$as_me:$LINENO: checking for $ac_header" >&5
8949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8956 # Is the header compilable?
8957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 $ac_includes_default
8966 #include <$ac_header>
8968 rm -f conftest.$ac_objext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8970 (eval $ac_compile) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_cxx_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest.$ac_objext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_header_compiler=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_header_compiler=no
8997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999 echo "${ECHO_T}$ac_header_compiler" >&6
9001 # Is the header present?
9002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 #include <$ac_header>
9012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } >/dev/null; then
9020 if test -s conftest.err; then
9021 ac_cpp_err=$ac_cxx_preproc_warn_flag
9022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9029 if test -z "$ac_cpp_err"; then
9030 ac_header_preproc=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_header_preproc=no
9037 rm -f conftest.err conftest.$ac_ext
9038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9039 echo "${ECHO_T}$ac_header_preproc" >&6
9041 # So? What about this header?
9042 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9048 ac_header_preproc=yes
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9065 ## ------------------------------------------ ##
9066 ## Report this to the AC_PACKAGE_NAME lists. ##
9067 ## ------------------------------------------ ##
9070 sed "s/^/$as_me: WARNING: /" >&2
9073 echo "$as_me:$LINENO: checking for $ac_header" >&5
9074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 eval "$as_ac_Header=\$ac_header_preproc"
9080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 if test "${ac_cv_header_curses_h+set}" = set; then
9095 echo "$as_me:$LINENO: checking for curses.h" >&5
9096 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6
9097 if test "${ac_cv_header_curses_h+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9101 echo "${ECHO_T}$ac_cv_header_curses_h" >&6
9103 # Is the header compilable?
9104 echo "$as_me:$LINENO: checking curses.h usability" >&5
9105 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $ac_includes_default
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_cxx_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_header_compiler=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_header_compiler=no
9144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9146 echo "${ECHO_T}$ac_header_compiler" >&6
9148 # Is the header present?
9149 echo "$as_me:$LINENO: checking curses.h presence" >&5
9150 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } >/dev/null; then
9167 if test -s conftest.err; then
9168 ac_cpp_err=$ac_cxx_preproc_warn_flag
9169 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9176 if test -z "$ac_cpp_err"; then
9177 ac_header_preproc=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9191 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9198 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
9212 ## ------------------------------------------ ##
9213 ## Report this to the AC_PACKAGE_NAME lists. ##
9214 ## ------------------------------------------ ##
9217 sed "s/^/$as_me: WARNING: /" >&2
9220 echo "$as_me:$LINENO: checking for curses.h" >&5
9221 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6
9222 if test "${ac_cv_header_curses_h+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 ac_cv_header_curses_h=$ac_header_preproc
9227 echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9228 echo "${ECHO_T}$ac_cv_header_curses_h" >&6
9231 if test $ac_cv_header_curses_h = yes; then
9232 cat >>confdefs.h <<\_ACEOF
9233 #define HAVE_CURSES_H 1
9244 ucsim_cv_socket="unknown"
9245 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9246 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9247 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9248 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9252 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9254 # Is the header compilable?
9255 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
9256 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9264 #include <sys/socket.h>
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_cxx_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_header_compiler=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_header_compiler=no
9295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9297 echo "${ECHO_T}$ac_header_compiler" >&6
9299 # Is the header present?
9300 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
9301 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 #include <sys/socket.h>
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } >/dev/null; then
9318 if test -s conftest.err; then
9319 ac_cpp_err=$ac_cxx_preproc_warn_flag
9320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9327 if test -z "$ac_cpp_err"; then
9328 ac_header_preproc=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_header_preproc=no
9335 rm -f conftest.err conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9337 echo "${ECHO_T}$ac_header_preproc" >&6
9339 # So? What about this header?
9340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9342 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
9343 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
9345 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
9346 ac_header_preproc=yes
9349 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
9350 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
9352 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
9354 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
9356 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
9358 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
9360 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
9363 ## ------------------------------------------ ##
9364 ## Report this to the AC_PACKAGE_NAME lists. ##
9365 ## ------------------------------------------ ##
9368 sed "s/^/$as_me: WARNING: /" >&2
9371 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9372 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
9373 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 ac_cv_header_sys_socket_h=$ac_header_preproc
9378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
9382 if test $ac_cv_header_sys_socket_h = yes; then
9383 cat >>confdefs.h <<\_ACEOF
9384 #define HAVE_SYS_SOCKET_H 1
9387 cat >>confdefs.h <<\_ACEOF
9388 #define SOCKET_AVAIL 1
9391 cat >>confdefs.h <<_ACEOF
9392 #define UCSOCKET_T int
9395 ucsim_cv_socket="<sys/socket.h>"
9402 if test $ucsim_cv_socket = unknown; then
9403 if test "${ac_cv_header_winsock2_h+set}" = set; then
9404 echo "$as_me:$LINENO: checking for winsock2.h" >&5
9405 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
9406 if test "${ac_cv_header_winsock2_h+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9410 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
9412 # Is the header compilable?
9413 echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9414 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 $ac_includes_default
9422 #include <winsock2.h>
9424 rm -f conftest.$ac_objext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9426 (eval $ac_compile) 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_cxx_werror_flag"
9434 || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest.$ac_objext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_header_compiler=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_header_compiler=no
9453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9455 echo "${ECHO_T}$ac_header_compiler" >&6
9457 # Is the header present?
9458 echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9459 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <winsock2.h>
9468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } >/dev/null; then
9476 if test -s conftest.err; then
9477 ac_cpp_err=$ac_cxx_preproc_warn_flag
9478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9485 if test -z "$ac_cpp_err"; then
9486 ac_header_preproc=yes
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9491 ac_header_preproc=no
9493 rm -f conftest.err conftest.$ac_ext
9494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9495 echo "${ECHO_T}$ac_header_preproc" >&6
9497 # So? What about this header?
9498 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9500 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
9501 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9502 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
9503 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
9504 ac_header_preproc=yes
9507 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
9508 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
9510 echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
9511 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
9512 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
9514 echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
9516 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
9518 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
9521 ## ------------------------------------------ ##
9522 ## Report this to the AC_PACKAGE_NAME lists. ##
9523 ## ------------------------------------------ ##
9526 sed "s/^/$as_me: WARNING: /" >&2
9529 echo "$as_me:$LINENO: checking for winsock2.h" >&5
9530 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
9531 if test "${ac_cv_header_winsock2_h+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_cv_header_winsock2_h=$ac_header_preproc
9536 echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
9540 if test $ac_cv_header_winsock2_h = yes; then
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_WINSOCK2_H 1
9545 cat >>confdefs.h <<\_ACEOF
9546 #define SOCKET_AVAIL 1
9549 cat >>confdefs.h <<_ACEOF
9550 #define UCSOCKET_T SOCKET
9553 ucsim_cv_socket="<winsock2.h>"
9562 if test $ucsim_cv_socket != unknown; then
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 #include <$ucsim_cv_socket>
9572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9573 $EGREP "socklen_t" >/dev/null 2>&1; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define SOCKLEN_T socklen_t
9579 cat >>confdefs.h <<_ACEOF
9580 #define SOCKLEN_T uint
9587 cat >>confdefs.h <<_ACEOF
9588 #define HEADER_SOCKET ${ucsim_cv_socket}
9592 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9593 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9594 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9595 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9599 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9601 # Is the header compilable?
9602 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9603 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9613 rm -f conftest.$ac_objext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>conftest.er1
9617 grep -v '^ *+' conftest.er1 >conftest.err
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_cxx_werror_flag"
9623 || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_header_compiler=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_compiler=no
9642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9644 echo "${ECHO_T}$ac_header_compiler" >&6
9646 # Is the header present?
9647 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9648 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null; then
9665 if test -s conftest.err; then
9666 ac_cpp_err=$ac_cxx_preproc_warn_flag
9667 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9674 if test -z "$ac_cpp_err"; then
9675 ac_header_preproc=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9682 rm -f conftest.err conftest.$ac_ext
9683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9684 echo "${ECHO_T}$ac_header_preproc" >&6
9686 # So? What about this header?
9687 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9689 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9690 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9692 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9693 ac_header_preproc=yes
9696 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9697 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9699 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9701 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9703 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9705 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9707 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9710 ## ------------------------------------------ ##
9711 ## Report this to the AC_PACKAGE_NAME lists. ##
9712 ## ------------------------------------------ ##
9715 sed "s/^/$as_me: WARNING: /" >&2
9718 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9719 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
9720 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 ac_cv_header_dlfcn_h=$ac_header_preproc
9725 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9726 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
9737 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9739 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9740 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <sys/types.h>
9762 rm -f conftest.$ac_objext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 (eval $ac_compile) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_cxx_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest.$ac_objext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 eval "$as_ac_Header=yes"
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 eval "$as_ac_Header=no"
9791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9796 cat >>confdefs.h <<_ACEOF
9797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9800 ac_header_dirent=$ac_hdr; break
9804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9805 if test $ac_header_dirent = dirent.h; then
9806 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9808 if test "${ac_cv_search_opendir+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_func_search_save_LIBS=$LIBS
9812 ac_cv_search_opendir=no
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9820 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_cxx_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_search_opendir="none required"
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 if test "$ac_cv_search_opendir" = no; then
9866 for ac_lib in dir; do
9867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_cxx_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_opendir="-l$ac_lib"
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9919 rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_func_search_save_LIBS
9925 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9926 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9927 if test "$ac_cv_search_opendir" != no; then
9928 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9933 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9934 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9935 if test "${ac_cv_search_opendir+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 ac_func_search_save_LIBS=$LIBS
9939 ac_cv_search_opendir=no
9940 cat >conftest.$ac_ext <<_ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_cxx_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_search_opendir="none required"
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9990 rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 if test "$ac_cv_search_opendir" = no; then
9994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10002 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_cxx_werror_flag"
10027 || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 ac_cv_search_opendir="-l$ac_lib"
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10046 rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10050 LIBS=$ac_func_search_save_LIBS
10052 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10053 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10054 if test "$ac_cv_search_opendir" != no; then
10055 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10062 # This must be after CXXCPP
10064 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
10065 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
10066 if test "${ucsim_cv_fd+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 ucsim_cv_fd="unknown"
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 #include <winsock2.h>
10082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083 $EGREP "yes" >/dev/null 2>&1; then
10084 ucsim_cv_fd="<winsock2.h>"
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 #include <sys/time.h>
10100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10101 $EGREP "yes" >/dev/null 2>&1; then
10102 ucsim_cv_fd="<sys/time.h>"
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10113 #include <sys/types.h>
10118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10119 $EGREP "yes" >/dev/null 2>&1; then
10120 ucsim_cv_fd="<sys/types.h>"
10124 cat >conftest.$ac_ext <<_ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10131 #include <sys/select.h>
10136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10137 $EGREP "yes" >/dev/null 2>&1; then
10138 ucsim_cv_fd="<sys/select.h>"
10143 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
10144 echo "${ECHO_T}$ucsim_cv_fd" >&6
10146 ucsim_cv_header_ok=0
10147 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
10148 cat >>confdefs.h <<\_ACEOF
10149 #define FD_NEED_TIME_H 1
10152 ucsim_cv_header_ok=1
10154 cat >>confdefs.h <<\_ACEOF
10155 #define FD_NEED_TIME_H 0
10159 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
10160 cat >>confdefs.h <<\_ACEOF
10161 #define FD_NEED_TYPES_H 1
10164 ucsim_cv_header_ok=1
10166 cat >>confdefs.h <<\_ACEOF
10167 #define FD_NEED_TYPES_H 0
10171 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
10172 cat >>confdefs.h <<\_ACEOF
10173 #define FD_NEED_SELECT_H 1
10176 ucsim_cv_header_ok=1
10178 cat >>confdefs.h <<\_ACEOF
10179 #define FD_NEED_SELECT_H 0
10183 if echo $ucsim_cv_fd|grep winsock2 >/dev/null 2>&1; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define FD_NEED_WINSOCK2_H 1
10188 ucsim_cv_header_ok=1
10190 cat >>confdefs.h <<\_ACEOF
10191 #define FD_NEED_WINSOCK2_H 0
10196 cat >>confdefs.h <<_ACEOF
10197 #define FD_HEADER_OK ${ucsim_cv_header_ok}
10200 cat >>confdefs.h <<_ACEOF
10201 #define HEADER_FD ${ucsim_cv_fd}
10206 # Checking for functions/libs
10207 # ===========================================================================
10208 if echo $ucsim_cv_socket|grep winsock2 >/dev/null 2>&1; then
10209 LIBS="-lws2_32 $LIBS"
10212 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10213 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10214 if test "${ac_cv_lib_socket_socket+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-lsocket $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10226 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243 (eval $ac_link) 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_cxx_werror_flag"
10251 || test ! -s conftest.err'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_lib_socket_socket=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_lib_socket_socket=no
10270 rm -f conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10275 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10276 if test $ac_cv_lib_socket_socket = yes; then
10277 cat >>confdefs.h <<_ACEOF
10278 #define HAVE_LIBSOCKET 1
10281 LIBS="-lsocket $LIBS"
10286 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
10287 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
10288 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 ac_check_lib_save_LIBS=$LIBS
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10300 /* Override any gcc2 internal prototype to avoid an error. */
10304 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_cxx_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_lib_nsl_xdr_short=yes
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_cv_lib_nsl_xdr_short=no
10344 rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
10349 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
10350 if test $ac_cv_lib_nsl_xdr_short = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_LIBNSL 1
10361 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10362 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10363 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_check_lib_save_LIBS=$LIBS
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10375 /* Override any gcc2 internal prototype to avoid an error. */
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_lib_dl_dlopen=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_lib_dl_dlopen=no
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10423 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10424 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10425 if test $ac_cv_lib_dl_dlopen = yes; then
10436 #AC_CHECK_LIB(panel,panel_above,
10439 #CURSES_LIBS="-lpanel -lcurses"
10442 #AC_CHECK_LIB(curses,nl,
10444 #CURSES_LIBS="-lcurses"
10450 if test $curses_h_ok != yes; then
10454 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
10455 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
10456 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-lpanel $LIBS"
10461 cat >conftest.$ac_ext <<_ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10468 /* Override any gcc2 internal prototype to avoid an error. */
10472 /* We use char because int might match the return type of a gcc2
10473 builtin and then its argument prototype would still apply. */
10474 char panel_above ();
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485 (eval $ac_link) 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_cxx_werror_flag"
10493 || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lib_panel_panel_above=yes
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 ac_cv_lib_panel_panel_above=no
10512 rm -f conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10516 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
10517 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
10518 if test $ac_cv_lib_panel_panel_above = yes; then
10521 CURSES_LIBS="-lpanel"
10529 if test $curses_ok != yes; then
10530 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
10531 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
10532 if test "${ac_cv_lib_curses_nl+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-lcurses $LIBS"
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 /* Override any gcc2 internal prototype to avoid an error. */
10548 /* We use char because int might match the return type of a gcc2
10549 builtin and then its argument prototype would still apply. */
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_cxx_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_lib_curses_nl=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_cv_lib_curses_nl=no
10588 rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10592 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
10593 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
10594 if test $ac_cv_lib_curses_nl = yes; then
10596 CURSES_LIBS="-lcurses"
10603 if test $curses_ok != yes; then
10604 echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
10605 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6
10606 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 ac_check_lib_save_LIBS=$LIBS
10610 LIBS="-lncurses $LIBS"
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10618 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_cxx_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_lib_ncurses_nl=yes
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_lib_ncurses_nl=no
10662 rm -f conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 LIBS=$ac_check_lib_save_LIBS
10666 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
10667 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6
10668 if test $ac_cv_lib_ncurses_nl = yes; then
10670 CURSES_LIBS="-lncurses"
10683 for ac_func in vprintf
10685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10686 echo "$as_me:$LINENO: checking for $ac_func" >&5
10687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_var+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10699 #define $ac_func innocuous_$ac_func
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10707 # include <limits.h>
10709 # include <assert.h>
10714 /* Override any gcc2 internal prototype to avoid an error. */
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10722 /* The GNU C library defines this for functions which it implements
10723 to always fail with ENOSYS. Some functions are actually named
10724 something starting with __ and the normal name is an alias. */
10725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10728 char (*f) () = $ac_func;
10737 return f != $ac_func;
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744 (eval $ac_link) 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -z "$ac_cxx_werror_flag"
10752 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest$ac_exeext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 eval "$as_ac_var=yes"
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 eval "$as_ac_var=no"
10771 rm -f conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10776 if test `eval echo '${'$as_ac_var'}'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10781 echo "$as_me:$LINENO: checking for _doprnt" >&5
10782 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10783 if test "${ac_cv_func__doprnt+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10794 #define _doprnt innocuous__doprnt
10796 /* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char _doprnt (); below.
10798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10799 <limits.h> exists even on freestanding compilers. */
10802 # include <limits.h>
10804 # include <assert.h>
10809 /* Override any gcc2 internal prototype to avoid an error. */
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10817 /* The GNU C library defines this for functions which it implements
10818 to always fail with ENOSYS. Some functions are actually named
10819 something starting with __ and the normal name is an alias. */
10820 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10823 char (*f) () = _doprnt;
10832 return f != _doprnt;
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10841 grep -v '^ *+' conftest.er1 >conftest.err
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_cxx_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_func__doprnt=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_func__doprnt=no
10866 rm -f conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10870 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10871 if test $ac_cv_func__doprnt = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_DOPRNT 1
10884 for ac_func in vsnprintf
10886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10887 echo "$as_me:$LINENO: checking for $ac_func" >&5
10888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10889 if eval "test \"\${$as_ac_var+set}\" = set"; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10900 #define $ac_func innocuous_$ac_func
10902 /* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char $ac_func (); below.
10904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10905 <limits.h> exists even on freestanding compilers. */
10908 # include <limits.h>
10910 # include <assert.h>
10915 /* Override any gcc2 internal prototype to avoid an error. */
10920 /* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10929 char (*f) () = $ac_func;
10938 return f != $ac_func;
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_cxx_werror_flag"
10953 || test ! -s conftest.err'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 eval "$as_ac_var=yes"
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 eval "$as_ac_var=no"
10972 rm -f conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10977 if test `eval echo '${'$as_ac_var'}'` = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10986 for ac_func in _vsnprintf
10988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10989 echo "$as_me:$LINENO: checking for $ac_func" >&5
10990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10991 if eval "test \"\${$as_ac_var+set}\" = set"; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define $ac_func innocuous_$ac_func
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char $ac_func (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any gcc2 internal prototype to avoid an error. */
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11031 char (*f) () = $ac_func;
11040 return f != $ac_func;
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_cxx_werror_flag"
11055 || test ! -s conftest.err'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 eval "$as_ac_var=yes"
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 eval "$as_ac_var=no"
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11079 if test `eval echo '${'$as_ac_var'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 for ac_func in vasprintf
11090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 echo "$as_me:$LINENO: checking for $ac_func" >&5
11092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11093 if eval "test \"\${$as_ac_var+set}\" = set"; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104 #define $ac_func innocuous_$ac_func
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11112 # include <limits.h>
11114 # include <assert.h>
11119 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 char (*f) () = $ac_func;
11142 return f != $ac_func;
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>conftest.er1
11151 grep -v '^ *+' conftest.er1 >conftest.err
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -z "$ac_cxx_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 eval "$as_ac_var=yes"
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 eval "$as_ac_var=no"
11176 rm -f conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11182 cat >>confdefs.h <<_ACEOF
11183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11197 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
11199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_var+set}\" = set"; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11221 # include <limits.h>
11223 # include <assert.h>
11228 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11236 /* The GNU C library defines this for functions which it implements
11237 to always fail with ENOSYS. Some functions are actually named
11238 something starting with __ and the normal name is an alias. */
11239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 char (*f) () = $ac_func;
11251 return f != $ac_func;
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11258 (eval $ac_link) 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_cxx_werror_flag"
11266 || test ! -s conftest.err'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11285 rm -f conftest.err conftest.$ac_objext \
11286 conftest$ac_exeext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300 for ac_func in strchr memcpy
11302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_var+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 char (*f) () = $ac_func;
11354 return f != $ac_func;
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_cxx_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 for ac_func in fgets
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11418 #define $ac_func innocuous_$ac_func
11420 /* System header to define __stub macros and hopefully few prototypes,
11421 which can conflict with char $ac_func (); below.
11422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11423 <limits.h> exists even on freestanding compilers. */
11426 # include <limits.h>
11428 # include <assert.h>
11433 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11447 char (*f) () = $ac_func;
11456 return f != $ac_func;
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 eval "$as_ac_var=yes"
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 eval "$as_ac_var=no"
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11495 if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11504 for ac_func in yylex
11506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11507 echo "$as_me:$LINENO: checking for $ac_func" >&5
11508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11509 if eval "test \"\${$as_ac_var+set}\" = set"; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11520 #define $ac_func innocuous_$ac_func
11522 /* System header to define __stub macros and hopefully few prototypes,
11523 which can conflict with char $ac_func (); below.
11524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11525 <limits.h> exists even on freestanding compilers. */
11528 # include <limits.h>
11530 # include <assert.h>
11535 /* Override any gcc2 internal prototype to avoid an error. */
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11543 /* The GNU C library defines this for functions which it implements
11544 to always fail with ENOSYS. Some functions are actually named
11545 something starting with __ and the normal name is an alias. */
11546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11549 char (*f) () = $ac_func;
11558 return f != $ac_func;
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565 (eval $ac_link) 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -z "$ac_cxx_werror_flag"
11573 || test ! -s conftest.err'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest$ac_exeext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 eval "$as_ac_var=yes"
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 eval "$as_ac_var=no"
11592 rm -f conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11606 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
11607 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
11608 if test "${ucsim_cv_scanf_a+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 echo "a b" >conftest.data
11612 if test "$cross_compiling" = yes; then
11613 ucsim_cv_scanf_a="unknown"
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11628 if ((f= fopen("conftest.data", "r")) == NULL)
11630 i= fscanf(f, " %a[a-z] ", &a);
11639 rm -f conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ucsim_cv_scanf_a="yes"
11652 echo "$as_me: program exited with status $ac_status" >&5
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ( exit $ac_status )
11657 ucsim_cv_scanf_a="no"
11659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11663 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
11664 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
11665 if test "$ucsim_cv_scanf_a" = "yes"; then
11666 cat >>confdefs.h <<\_ACEOF
11672 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
11673 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
11674 if test "${ucsim_cv_getcwd+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 if test "$cross_compiling" = yes; then
11678 ucsim_cv_getcwd="unknown"
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11687 #include <unistd.h>
11690 if ((getcwd(NULL, 0)) == NULL)
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ucsim_cv_getcwd="yes"
11708 echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ( exit $ac_status )
11713 ucsim_cv_getcwd="no"
11715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
11720 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
11721 if test "$ucsim_cv_getcwd" = "yes"; then
11722 cat >>confdefs.h <<\_ACEOF
11723 #define GNU_GETCWD 1
11731 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
11732 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
11733 if test "${ucsim_cv_accept_length_type+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_save_CPPFLAGS="$CPPFLAGS"
11737 ucsim_cv_accept_length_type=no
11738 for ac_val in int size_t socklen_t; do
11739 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 #include <sys/types.h>
11747 #include ${ucsim_cv_socket}
11751 struct sockaddr a; $ac_val len; accept (0, &a, &len);
11756 rm -f conftest.$ac_objext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11758 (eval $ac_compile) 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -z "$ac_cxx_werror_flag"
11766 || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ucsim_cv_accept_length_type=$ac_val; break
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11786 CPPFLAGS="$ac_save_CPPFLAGS"
11788 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
11789 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
11790 if test "$ucsim_cv_accept_length_type" != no; then
11792 cat >>confdefs.h <<_ACEOF
11793 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
11800 # Macro definitions
11801 ###################
11803 # DD_COPT macro checks if the compiler specified as the 1st parameter
11804 # supports option specified as the 2nd parameter
11805 # For example: DD_COPT(CXX, fPIC)
11810 # Checking characteristics of compilers and other programs
11811 # --------------------------------------------------------
11813 # Cross compiling overrides
11815 if test "$CC" = "i586-mingw32msvc-gcc"; then
11816 ac_cv_c_bigendian=no
11817 ac_cv_sizeof_char=1
11818 ac_cv_sizeof_short=2
11820 ac_cv_sizeof_long=4
11821 ac_cv_sizeof_long_long=4
11824 if test "$cross_compiling" = "no"
11826 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11827 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11828 if test "${ac_cv_c_bigendian+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 # See if sys/param.h defines the BYTE_ORDER macro.
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 #include <sys/types.h>
11839 #include <sys/param.h>
11844 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11845 bogus endian macros
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_cxx_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 # It does; now see whether it defined to BIG_ENDIAN or not.
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <sys/types.h>
11882 #include <sys/param.h>
11887 #if BYTE_ORDER != BIG_ENDIAN
11895 rm -f conftest.$ac_objext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897 (eval $ac_compile) 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
11904 { ac_try='test -z "$ac_cxx_werror_flag"
11905 || test ! -s conftest.err'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest.$ac_objext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_cv_c_bigendian=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_c_bigendian=no
11924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 # It does not; compile a test program.
11930 if test "$cross_compiling" = yes; then
11931 # try to guess the endianness by grepping values into an object file
11932 ac_cv_c_bigendian=unknown
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11940 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11941 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11942 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11943 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11944 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11948 _ascii (); _ebcdic ();
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_cxx_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11976 ac_cv_c_bigendian=yes
11978 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11979 if test "$ac_cv_c_bigendian" = unknown; then
11980 ac_cv_c_bigendian=no
11982 # finding both strings is unlikely to happen, but who knows?
11983 ac_cv_c_bigendian=unknown
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993 cat >conftest.$ac_ext <<_ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
12002 /* Are we little or big endian? From Harbison&Steele. */
12006 char c[sizeof (long)];
12009 exit (u.c[sizeof (long) - 1] == 1);
12012 rm -f conftest$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_c_bigendian=no
12025 echo "$as_me: program exited with status $ac_status" >&5
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 ( exit $ac_status )
12030 ac_cv_c_bigendian=yes
12032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12038 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12039 case $ac_cv_c_bigendian in
12042 cat >>confdefs.h <<\_ACEOF
12043 #define WORDS_BIGENDIAN 1
12049 { { echo "$as_me:$LINENO: error: unknown endianness
12050 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12051 echo "$as_me: error: unknown endianness
12052 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12053 { (exit 1); exit 1; }; } ;;
12057 #echo "CROSS ENDIAN"
12058 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
12059 ac_cv_c_bigendian=no
12063 #echo "CROSS ENDIAN DONE"
12066 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
12067 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
12068 if test "${ucsim_cv_MM+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 echo "#include <stdio.h>" >_test_.c
12073 $CXXCPP -v -MM _test_.c 1>&5 2>&5
12074 if test "$?" = "0"; then
12081 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
12082 echo "${ECHO_T}$ucsim_cv_MM" >&6
12083 M_OR_MM=$ucsim_cv_MM
12086 # This is the first time when CFLAGS are set/modified!!
12089 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
12090 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
12091 if test "${ucsim_cv_CXXggdb+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >_test_.c <<EOF
12096 int main(void) {return(0);}
12098 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
12099 if test "$?" = "0"; then
12100 ucsim_cv_CXXggdb="yes"
12102 ucsim_cv_CXXggdb="no"
12104 rm -f _test_.* a.out
12106 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
12107 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
12110 echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
12111 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6
12112 if test "${ucsim_cv_CXXgstabs+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 cat >_test_.c <<EOF
12117 int main(void) {return(0);}
12119 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
12120 if test "$?" = "0"; then
12121 ucsim_cv_CXXgstabs="yes"
12123 ucsim_cv_CXXgstabs="no"
12125 rm -f _test_.* a.out
12127 echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
12128 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6
12130 if test "$ucsim_cv_CXXgstabs" = "yes"; then
12131 gopt="-gstabs+ -g3"
12132 elif test "$ucsim_cv_CXXggdb" = "yes"; then
12137 if test "$CXXFLAGS"x = x ;then
12140 CXXFLAGS="$CXXFLAGS $gopt"
12144 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
12145 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
12146 if test "${ucsim_cv_CXXpipe+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >_test_.c <<EOF
12151 int main(void) {return(0);}
12153 $CXX -v -pipe -c _test_.c 1>&5 2>&5
12154 if test "$?" = "0"; then
12155 ucsim_cv_CXXpipe="yes"
12157 ucsim_cv_CXXpipe="no"
12159 rm -f _test_.* a.out
12161 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
12162 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
12164 if test "$ucsim_cv_CXXpipe" = "yes"; then
12165 CXXFLAGS="$CXXFLAGS -pipe"
12171 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
12172 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
12173 if test "${ucsim_cv_CXXfPIC+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >_test_.c <<EOF
12178 int main(void) {return(0);}
12180 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
12181 if test "$?" = "0"; then
12182 ucsim_cv_CXXfPIC="yes"
12184 ucsim_cv_CXXfPIC="no"
12186 rm -f _test_.* a.out
12188 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
12189 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
12191 if test "$ucsim_cv_CXXfPIC" = "yes"; then
12195 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
12196 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
12197 if test "${ucsim_cv_CXXfpic+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 cat >_test_.c <<EOF
12202 int main(void) {return(0);}
12204 $CXX -v -fpic -c _test_.c 1>&5 2>&5
12205 if test "$?" = "0"; then
12206 ucsim_cv_CXXfpic="yes"
12208 ucsim_cv_CXXfpic="no"
12210 rm -f _test_.* a.out
12212 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
12213 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
12215 if test "$ucsim_cv_CXXfpic" = "yes"; then
12219 if test "$PICOPT"x != "x"; then
12222 # If this is Cygwin neither use Position Independant Code
12224 # Quick + dirty by Bernhard
12226 if $CXX --version 2>&1 | grep -i cygming 1>&5 2>&5 || $CXX --version 2>&1 | grep -i cygwin 1>&5 2>&5; then
12234 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
12239 # Checks for typedefs, structures, and compiler characteristics.
12240 # ===========================================================================
12242 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12243 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12244 if test "${ac_cv_type_signal+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 cat >conftest.$ac_ext <<_ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 #include <sys/types.h>
12254 #include <signal.h>
12259 extern "C" void (*signal (int, void (*)(int)))(int);
12261 void (*signal ()) ();
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_cxx_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest.$ac_objext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_type_signal=void
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_type_signal=int
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12304 echo "${ECHO_T}$ac_cv_type_signal" >&6
12306 cat >>confdefs.h <<_ACEOF
12307 #define RETSIGTYPE $ac_cv_type_signal
12311 if test "$cross_compiling" = "no"; then
12312 echo "$as_me:$LINENO: checking for char" >&5
12313 echo $ECHO_N "checking for char... $ECHO_C" >&6
12314 if test "${ac_cv_type_char+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 $ac_includes_default
12335 rm -f conftest.$ac_objext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest.$ac_objext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_type_char=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12367 echo "${ECHO_T}$ac_cv_type_char" >&6
12369 echo "$as_me:$LINENO: checking size of char" >&5
12370 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12371 if test "${ac_cv_sizeof_char+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 if test "$ac_cv_type_char" = yes; then
12375 # The cast to unsigned long works around a bug in the HP C Compiler
12376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12378 # This bug is HP SR number 8606223364.
12379 if test "$cross_compiling" = yes; then
12380 # Depending upon the size, compute the lo and hi bounds.
12381 cat >conftest.$ac_ext <<_ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 $ac_includes_default
12391 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_cxx_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12422 cat >conftest.$ac_ext <<_ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 $ac_includes_default
12432 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_cxx_werror_flag"
12449 || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_hi=$ac_mid; break
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 ac_lo=`expr $ac_mid + 1`
12467 if test $ac_lo -le $ac_mid; then
12471 ac_mid=`expr 2 '*' $ac_mid + 1`
12473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12489 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_cxx_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12530 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_cxx_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_lo=$ac_mid; break
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_hi=`expr '(' $ac_mid ')' - 1`
12565 if test $ac_mid -le $ac_hi; then
12569 ac_mid=`expr 2 '*' $ac_mid`
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 # Binary search between lo and hi bounds.
12583 while test "x$ac_lo" != "x$ac_hi"; do
12584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 $ac_includes_default
12595 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12602 rm -f conftest.$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_cxx_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest.$ac_objext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_lo=`expr '(' $ac_mid ')' + 1`
12631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634 ?*) ac_cv_sizeof_char=$ac_lo;;
12635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12636 See \`config.log' for more details." >&5
12637 echo "$as_me: error: cannot compute sizeof (char), 77
12638 See \`config.log' for more details." >&2;}
12639 { (exit 1); exit 1; }; } ;;
12642 if test "$cross_compiling" = yes; then
12643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12644 See \`config.log' for more details." >&5
12645 echo "$as_me: error: cannot run test program while cross compiling
12646 See \`config.log' for more details." >&2;}
12647 { (exit 1); exit 1; }; }
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12656 long longval () { return (long) (sizeof (char)); }
12657 unsigned long ulongval () { return (long) (sizeof (char)); }
12659 #include <stdlib.h>
12664 FILE *f = fopen ("conftest.val", "w");
12667 if (((long) (sizeof (char))) < 0)
12669 long i = longval ();
12670 if (i != ((long) (sizeof (char))))
12672 fprintf (f, "%ld\n", i);
12676 unsigned long i = ulongval ();
12677 if (i != ((long) (sizeof (char))))
12679 fprintf (f, "%lu\n", i);
12681 exit (ferror (f) || fclose (f) != 0);
12687 rm -f conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_sizeof_char=`cat conftest.val`
12700 echo "$as_me: program exited with status $ac_status" >&5
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ( exit $ac_status )
12705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot compute sizeof (char), 77
12708 See \`config.log' for more details." >&2;}
12709 { (exit 1); exit 1; }; }
12711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12716 ac_cv_sizeof_char=0
12719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12720 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_CHAR $ac_cv_sizeof_char
12726 echo "$as_me:$LINENO: checking for short" >&5
12727 echo $ECHO_N "checking for short... $ECHO_C" >&6
12728 if test "${ac_cv_type_short+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12743 if (sizeof (short))
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>conftest.er1
12753 grep -v '^ *+' conftest.er1 >conftest.err
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
12758 { ac_try='test -z "$ac_cxx_werror_flag"
12759 || test ! -s conftest.err'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_type_short=yes
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 ac_cv_type_short=no
12778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12780 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12781 echo "${ECHO_T}$ac_cv_type_short" >&6
12783 echo "$as_me:$LINENO: checking size of short" >&5
12784 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12785 if test "${ac_cv_sizeof_short+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 if test "$ac_cv_type_short" = yes; then
12789 # The cast to unsigned long works around a bug in the HP C Compiler
12790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12792 # This bug is HP SR number 8606223364.
12793 if test "$cross_compiling" = yes; then
12794 # Depending upon the size, compute the lo and hi bounds.
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12805 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12812 rm -f conftest.$ac_objext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_cxx_werror_flag"
12822 || test ! -s conftest.err'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest.$ac_objext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 $ac_includes_default
12846 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_cxx_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest.$ac_objext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_hi=$ac_mid; break
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_lo=`expr $ac_mid + 1`
12881 if test $ac_lo -le $ac_mid; then
12885 ac_mid=`expr 2 '*' $ac_mid + 1`
12887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12903 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_cxx_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest.$ac_objext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12944 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_cxx_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_lo=$ac_mid; break
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_hi=`expr '(' $ac_mid ')' - 1`
12979 if test $ac_mid -le $ac_hi; then
12983 ac_mid=`expr 2 '*' $ac_mid`
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12996 # Binary search between lo and hi bounds.
12997 while test "x$ac_lo" != "x$ac_hi"; do
12998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 $ac_includes_default
13009 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_cxx_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_lo=`expr '(' $ac_mid ')' + 1`
13045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13048 ?*) ac_cv_sizeof_short=$ac_lo;;
13049 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13050 See \`config.log' for more details." >&5
13051 echo "$as_me: error: cannot compute sizeof (short), 77
13052 See \`config.log' for more details." >&2;}
13053 { (exit 1); exit 1; }; } ;;
13056 if test "$cross_compiling" = yes; then
13057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13058 See \`config.log' for more details." >&5
13059 echo "$as_me: error: cannot run test program while cross compiling
13060 See \`config.log' for more details." >&2;}
13061 { (exit 1); exit 1; }; }
13063 cat >conftest.$ac_ext <<_ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13070 long longval () { return (long) (sizeof (short)); }
13071 unsigned long ulongval () { return (long) (sizeof (short)); }
13073 #include <stdlib.h>
13078 FILE *f = fopen ("conftest.val", "w");
13081 if (((long) (sizeof (short))) < 0)
13083 long i = longval ();
13084 if (i != ((long) (sizeof (short))))
13086 fprintf (f, "%ld\n", i);
13090 unsigned long i = ulongval ();
13091 if (i != ((long) (sizeof (short))))
13093 fprintf (f, "%lu\n", i);
13095 exit (ferror (f) || fclose (f) != 0);
13101 rm -f conftest$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_sizeof_short=`cat conftest.val`
13114 echo "$as_me: program exited with status $ac_status" >&5
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ( exit $ac_status )
13119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: cannot compute sizeof (short), 77
13122 See \`config.log' for more details." >&2;}
13123 { (exit 1); exit 1; }; }
13125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13130 ac_cv_sizeof_short=0
13133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13134 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13135 cat >>confdefs.h <<_ACEOF
13136 #define SIZEOF_SHORT $ac_cv_sizeof_short
13140 echo "$as_me:$LINENO: checking for int" >&5
13141 echo $ECHO_N "checking for int... $ECHO_C" >&6
13142 if test "${ac_cv_type_int+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 $ac_includes_default
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>conftest.er1
13167 grep -v '^ *+' conftest.er1 >conftest.err
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_cxx_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest.$ac_objext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13194 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13195 echo "${ECHO_T}$ac_cv_type_int" >&6
13197 echo "$as_me:$LINENO: checking size of int" >&5
13198 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13199 if test "${ac_cv_sizeof_int+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 if test "$ac_cv_type_int" = yes; then
13203 # The cast to unsigned long works around a bug in the HP C Compiler
13204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13206 # This bug is HP SR number 8606223364.
13207 if test "$cross_compiling" = yes; then
13208 # Depending upon the size, compute the lo and hi bounds.
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 $ac_includes_default
13219 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13226 rm -f conftest.$ac_objext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_cxx_werror_flag"
13236 || test ! -s conftest.err'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13250 cat >conftest.$ac_ext <<_ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13260 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>conftest.er1
13271 grep -v '^ *+' conftest.er1 >conftest.err
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_cxx_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_hi=$ac_mid; break
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_lo=`expr $ac_mid + 1`
13295 if test $ac_lo -le $ac_mid; then
13299 ac_mid=`expr 2 '*' $ac_mid + 1`
13301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13317 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_cxx_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13358 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_cxx_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_lo=$ac_mid; break
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_hi=`expr '(' $ac_mid ')' - 1`
13393 if test $ac_mid -le $ac_hi; then
13397 ac_mid=`expr 2 '*' $ac_mid`
13399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13410 # Binary search between lo and hi bounds.
13411 while test "x$ac_lo" != "x$ac_hi"; do
13412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13423 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432 (eval $ac_compile) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -z "$ac_cxx_werror_flag"
13440 || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_lo=`expr '(' $ac_mid ')' + 1`
13459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 ?*) ac_cv_sizeof_int=$ac_lo;;
13463 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13464 See \`config.log' for more details." >&5
13465 echo "$as_me: error: cannot compute sizeof (int), 77
13466 See \`config.log' for more details." >&2;}
13467 { (exit 1); exit 1; }; } ;;
13470 if test "$cross_compiling" = yes; then
13471 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13472 See \`config.log' for more details." >&5
13473 echo "$as_me: error: cannot run test program while cross compiling
13474 See \`config.log' for more details." >&2;}
13475 { (exit 1); exit 1; }; }
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 long longval () { return (long) (sizeof (int)); }
13485 unsigned long ulongval () { return (long) (sizeof (int)); }
13487 #include <stdlib.h>
13492 FILE *f = fopen ("conftest.val", "w");
13495 if (((long) (sizeof (int))) < 0)
13497 long i = longval ();
13498 if (i != ((long) (sizeof (int))))
13500 fprintf (f, "%ld\n", i);
13504 unsigned long i = ulongval ();
13505 if (i != ((long) (sizeof (int))))
13507 fprintf (f, "%lu\n", i);
13509 exit (ferror (f) || fclose (f) != 0);
13515 rm -f conftest$ac_exeext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517 (eval $ac_link) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 ac_cv_sizeof_int=`cat conftest.val`
13528 echo "$as_me: program exited with status $ac_status" >&5
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ( exit $ac_status )
13533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13534 See \`config.log' for more details." >&5
13535 echo "$as_me: error: cannot compute sizeof (int), 77
13536 See \`config.log' for more details." >&2;}
13537 { (exit 1); exit 1; }; }
13539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13548 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13549 cat >>confdefs.h <<_ACEOF
13550 #define SIZEOF_INT $ac_cv_sizeof_int
13554 echo "$as_me:$LINENO: checking for long" >&5
13555 echo $ECHO_N "checking for long... $ECHO_C" >&6
13556 if test "${ac_cv_type_long+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 cat >conftest.$ac_ext <<_ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13577 rm -f conftest.$ac_objext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_cxx_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest.$ac_objext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_type_long=yes
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13609 echo "${ECHO_T}$ac_cv_type_long" >&6
13611 echo "$as_me:$LINENO: checking size of long" >&5
13612 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13613 if test "${ac_cv_sizeof_long+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 if test "$ac_cv_type_long" = yes; then
13617 # The cast to unsigned long works around a bug in the HP C Compiler
13618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13620 # This bug is HP SR number 8606223364.
13621 if test "$cross_compiling" = yes; then
13622 # Depending upon the size, compute the lo and hi bounds.
13623 cat >conftest.$ac_ext <<_ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 $ac_includes_default
13633 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13640 rm -f conftest.$ac_objext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642 (eval $ac_compile) 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_cxx_werror_flag"
13650 || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 $ac_includes_default
13674 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_cxx_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_hi=$ac_mid; break
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_lo=`expr $ac_mid + 1`
13709 if test $ac_lo -le $ac_mid; then
13713 ac_mid=`expr 2 '*' $ac_mid + 1`
13715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13731 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_cxx_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 $ac_includes_default
13772 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781 (eval $ac_compile) 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_cxx_werror_flag"
13789 || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_lo=$ac_mid; break
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_hi=`expr '(' $ac_mid ')' - 1`
13807 if test $ac_mid -le $ac_hi; then
13811 ac_mid=`expr 2 '*' $ac_mid`
13813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824 # Binary search between lo and hi bounds.
13825 while test "x$ac_lo" != "x$ac_hi"; do
13826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13837 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13844 rm -f conftest.$ac_objext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_cxx_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ac_lo=`expr '(' $ac_mid ')' + 1`
13873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13876 ?*) ac_cv_sizeof_long=$ac_lo;;
13877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13878 See \`config.log' for more details." >&5
13879 echo "$as_me: error: cannot compute sizeof (long), 77
13880 See \`config.log' for more details." >&2;}
13881 { (exit 1); exit 1; }; } ;;
13884 if test "$cross_compiling" = yes; then
13885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13886 See \`config.log' for more details." >&5
13887 echo "$as_me: error: cannot run test program while cross compiling
13888 See \`config.log' for more details." >&2;}
13889 { (exit 1); exit 1; }; }
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 long longval () { return (long) (sizeof (long)); }
13899 unsigned long ulongval () { return (long) (sizeof (long)); }
13901 #include <stdlib.h>
13906 FILE *f = fopen ("conftest.val", "w");
13909 if (((long) (sizeof (long))) < 0)
13911 long i = longval ();
13912 if (i != ((long) (sizeof (long))))
13914 fprintf (f, "%ld\n", i);
13918 unsigned long i = ulongval ();
13919 if (i != ((long) (sizeof (long))))
13921 fprintf (f, "%lu\n", i);
13923 exit (ferror (f) || fclose (f) != 0);
13929 rm -f conftest$ac_exeext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13931 (eval $ac_link) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_cv_sizeof_long=`cat conftest.val`
13942 echo "$as_me: program exited with status $ac_status" >&5
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13946 ( exit $ac_status )
13947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13948 See \`config.log' for more details." >&5
13949 echo "$as_me: error: cannot compute sizeof (long), 77
13950 See \`config.log' for more details." >&2;}
13951 { (exit 1); exit 1; }; }
13953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13958 ac_cv_sizeof_long=0
13961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13962 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13963 cat >>confdefs.h <<_ACEOF
13964 #define SIZEOF_LONG $ac_cv_sizeof_long
13968 echo "$as_me:$LINENO: checking for long long" >&5
13969 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13970 if test "${ac_cv_type_long_long+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13983 if ((long long *) 0)
13985 if (sizeof (long long))
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_cxx_werror_flag"
14001 || test ! -s conftest.err'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_type_long_long=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_cv_type_long_long=no
14020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14023 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14025 echo "$as_me:$LINENO: checking size of long long" >&5
14026 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14027 if test "${ac_cv_sizeof_long_long+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 if test "$ac_cv_type_long_long" = yes; then
14031 # The cast to unsigned long works around a bug in the HP C Compiler
14032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14034 # This bug is HP SR number 8606223364.
14035 if test "$cross_compiling" = yes; then
14036 # Depending upon the size, compute the lo and hi bounds.
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14047 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_cxx_werror_flag"
14064 || test ! -s conftest.err'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14088 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_cxx_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_hi=$ac_mid; break
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_lo=`expr $ac_mid + 1`
14123 if test $ac_lo -le $ac_mid; then
14127 ac_mid=`expr 2 '*' $ac_mid + 1`
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14145 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_cxx_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 $ac_includes_default
14186 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_cxx_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest.$ac_objext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_lo=$ac_mid; break
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_hi=`expr '(' $ac_mid ')' - 1`
14221 if test $ac_mid -le $ac_hi; then
14225 ac_mid=`expr 2 '*' $ac_mid`
14227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 # Binary search between lo and hi bounds.
14239 while test "x$ac_lo" != "x$ac_hi"; do
14240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 $ac_includes_default
14251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_cxx_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_lo=`expr '(' $ac_mid ')' + 1`
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14292 See \`config.log' for more details." >&5
14293 echo "$as_me: error: cannot compute sizeof (long long), 77
14294 See \`config.log' for more details." >&2;}
14295 { (exit 1); exit 1; }; } ;;
14298 if test "$cross_compiling" = yes; then
14299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14300 See \`config.log' for more details." >&5
14301 echo "$as_me: error: cannot run test program while cross compiling
14302 See \`config.log' for more details." >&2;}
14303 { (exit 1); exit 1; }; }
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 $ac_includes_default
14312 long longval () { return (long) (sizeof (long long)); }
14313 unsigned long ulongval () { return (long) (sizeof (long long)); }
14315 #include <stdlib.h>
14320 FILE *f = fopen ("conftest.val", "w");
14323 if (((long) (sizeof (long long))) < 0)
14325 long i = longval ();
14326 if (i != ((long) (sizeof (long long))))
14328 fprintf (f, "%ld\n", i);
14332 unsigned long i = ulongval ();
14333 if (i != ((long) (sizeof (long long))))
14335 fprintf (f, "%lu\n", i);
14337 exit (ferror (f) || fclose (f) != 0);
14343 rm -f conftest$ac_exeext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345 (eval $ac_link) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_sizeof_long_long=`cat conftest.val`
14356 echo "$as_me: program exited with status $ac_status" >&5
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ( exit $ac_status )
14361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14362 See \`config.log' for more details." >&5
14363 echo "$as_me: error: cannot compute sizeof (long long), 77
14364 See \`config.log' for more details." >&2;}
14365 { (exit 1); exit 1; }; }
14367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14372 ac_cv_sizeof_long_long=0
14375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14376 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14377 cat >>confdefs.h <<_ACEOF
14378 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14383 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
14384 ac_cv_sizeof_char=1
14385 ac_cv_sizeof_short=2
14387 ac_cv_sizeof_long=4
14388 ac_cv_sizeof_long_long=4
14397 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
14401 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
14405 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
14409 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
14413 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
14420 echo "$as_me:$LINENO: checking type name for byte" >&5
14421 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
14422 TYPE_BYTE=`type_name 1`
14423 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
14424 echo "${ECHO_T}$TYPE_BYTE" >&6
14425 echo "$as_me:$LINENO: checking type name for word" >&5
14426 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
14427 TYPE_WORD=`type_name 2`
14428 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
14429 echo "${ECHO_T}$TYPE_WORD" >&6
14430 echo "$as_me:$LINENO: checking type name for dword" >&5
14431 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
14432 TYPE_DWORD=`type_name 4`
14433 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
14434 echo "${ECHO_T}$TYPE_DWORD" >&6
14435 cat >>confdefs.h <<_ACEOF
14436 #define TYPE_BYTE $TYPE_BYTE
14439 cat >>confdefs.h <<_ACEOF
14440 #define TYPE_WORD $TYPE_WORD
14443 cat >>confdefs.h <<_ACEOF
14444 #define TYPE_DWORD $TYPE_DWORD
14448 if echo $TYPE_DWORD|grep short >/dev/null; then
14450 elif echo $TYPE_DWORD|grep long >/dev/null; then
14456 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
14457 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
14461 cat >>confdefs.h <<_ACEOF
14465 cat >>confdefs.h <<_ACEOF
14470 # Generating output files
14471 # ===========================================================================
14473 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"
14474 cat >confcache <<\_ACEOF
14475 # This file is a shell script that caches the results of configure
14476 # tests run on this system so they can be shared between configure
14477 # scripts and configure runs, see configure's option --config-cache.
14478 # It is not useful on other systems. If it contains results you don't
14479 # want to keep, you may remove or edit it.
14481 # config.status only pays attention to the cache file if you give it
14482 # the --recheck option to rerun configure.
14484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14486 # following values.
14490 # The following way of writing the cache mishandles newlines in values,
14491 # but we know of no workaround that is simple, portable, and efficient.
14492 # So, don't put newlines in cache variables' values.
14493 # Ultrix sh set writes to stderr and can't be redirected directly,
14494 # and sets the high bit in the cache file unless we assign to the vars.
14497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14499 # `set' does not quote correctly, so add quotes (double-quote
14500 # substitution turns \\\\ into \\, and sed turns \\ into \).
14503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14506 # `set' quotes correctly as required by POSIX, so do not add quotes.
14508 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14517 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14520 if test -w $cache_file; then
14521 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14522 cat confcache >$cache_file
14524 echo "not updating unwritable cache $cache_file"
14529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14530 # Let make expand exec_prefix.
14531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14535 # trailing colons and then remove the whole line if VPATH becomes empty
14536 # (actually we leave an empty line to preserve line numbers).
14537 if test "x$srcdir" = x.; then
14538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14539 s/:*\$(srcdir):*/:/;
14540 s/:*\${srcdir}:*/:/;
14542 s/^\([^=]*=[ ]*\):*/\1/;
14548 DEFS=-DHAVE_CONFIG_H
14552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14553 # 1. Remove the extension, and $U if already installed.
14554 ac_i=`echo "$ac_i" |
14555 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14557 # will be set to the directory where LIBOBJS objects are built.
14558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14561 LIBOBJS=$ac_libobjs
14563 LTLIBOBJS=$ac_ltlibobjs
14567 : ${CONFIG_STATUS=./config.status}
14568 ac_clean_files_save=$ac_clean_files
14569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14572 cat >$CONFIG_STATUS <<_ACEOF
14574 # Generated by $as_me.
14575 # Run this file to recreate the current configuration.
14576 # Compiler output produced by configure, useful for debugging
14577 # configure, is in config.log if it exists.
14580 ac_cs_recheck=false
14582 SHELL=\${CONFIG_SHELL-$SHELL}
14585 cat >>$CONFIG_STATUS <<\_ACEOF
14586 ## --------------------- ##
14587 ## M4sh Initialization. ##
14588 ## --------------------- ##
14590 # Be Bourne compatible
14591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14594 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14595 # is contrary to our usage. Disable this feature.
14596 alias -g '${1+"$@"}'='"$@"'
14597 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14600 DUALCASE=1; export DUALCASE # for MKS sh
14602 # Support unset when possible.
14603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14610 # Work around bugs in pre-3.0 UWIN ksh.
14611 $as_unset ENV MAIL MAILPATH
14618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14620 LC_TELEPHONE LC_TIME
14622 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14623 eval $as_var=C; export $as_var
14629 # Required to use basename.
14630 if expr a : '\(a\)' >/dev/null 2>&1; then
14636 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14637 as_basename=basename
14643 # Name of the executable.
14644 as_me=`$as_basename "$0" ||
14645 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14646 X"$0" : 'X\(//\)$' \| \
14647 X"$0" : 'X\(/\)$' \| \
14648 . : '\(.\)' 2>/dev/null ||
14650 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14651 /^X\/\(\/\/\)$/{ s//\1/; q; }
14652 /^X\/\(\/\).*/{ s//\1/; q; }
14656 # PATH needs CR, and LINENO needs CR and PATH.
14657 # Avoid depending upon Character Ranges.
14658 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14659 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14660 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14661 as_cr_digits='0123456789'
14662 as_cr_alnum=$as_cr_Letters$as_cr_digits
14664 # The user is always right.
14665 if test "${PATH_SEPARATOR+set}" != set; then
14666 echo "#! /bin/sh" >conf$$.sh
14667 echo "exit 0" >>conf$$.sh
14669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14678 as_lineno_1=$LINENO
14679 as_lineno_2=$LINENO
14680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14681 test "x$as_lineno_1" != "x$as_lineno_2" &&
14682 test "x$as_lineno_3" = "x$as_lineno_2" || {
14683 # Find who we are. Look in the path if we contain no path at all
14686 *[\\/]* ) as_myself=$0 ;;
14687 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14691 test -z "$as_dir" && as_dir=.
14692 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14697 # We did not find ourselves, most probably we were run as `sh COMMAND'
14698 # in which case we are not to be found in the path.
14699 if test "x$as_myself" = x; then
14702 if test ! -f "$as_myself"; then
14703 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14704 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14705 { (exit 1); exit 1; }; }
14707 case $CONFIG_SHELL in
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14713 test -z "$as_dir" && as_dir=.
14714 for as_base in sh bash ksh sh5; do
14717 if ("$as_dir/$as_base" -c '
14718 as_lineno_1=$LINENO
14719 as_lineno_2=$LINENO
14720 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14721 test "x$as_lineno_1" != "x$as_lineno_2" &&
14722 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14723 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14724 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14725 CONFIG_SHELL=$as_dir/$as_base
14726 export CONFIG_SHELL
14727 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14736 # uniformly replaced by the line number. The first 'sed' inserts a
14737 # line-number line before each line; the second 'sed' does the real
14738 # work. The second script uses 'N' to pair each line-number line
14739 # with the numbered line, and appends trailing '-' during
14740 # substitution so that $LINENO is not a special case at line end.
14741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14742 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14743 sed '=' <$as_myself |
14748 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14751 s,^['$as_cr_digits']*\n,,
14752 ' >$as_me.lineno &&
14753 chmod +x $as_me.lineno ||
14754 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14755 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14756 { (exit 1); exit 1; }; }
14758 # Don't try to exec as it changes $[0], causing all sort of problems
14759 # (the dirname of $[0] is not the place where we might find the
14760 # original and so on. Autoconf is especially sensible to this).
14762 # Exit status is that of the last command.
14767 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14768 *c*,-n*) ECHO_N= ECHO_C='
14770 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14771 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14774 if expr a : '\(a\)' >/dev/null 2>&1; then
14780 rm -f conf$$ conf$$.exe conf$$.file
14782 if ln -s conf$$.file conf$$ 2>/dev/null; then
14783 # We could just check for DJGPP; but this test a) works b) is more generic
14784 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14785 if test -f conf$$.exe; then
14786 # Don't use ln at all; we don't have any links
14791 elif ln conf$$.file conf$$ 2>/dev/null; then
14796 rm -f conf$$ conf$$.exe conf$$.file
14798 if mkdir -p . 2>/dev/null; then
14801 test -d ./-p && rmdir ./-p
14805 as_executable_p="test -f"
14807 # Sed expression to map a string onto a valid CPP name.
14808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14810 # Sed expression to map a string onto a valid variable name.
14811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14815 # We need space, tab and new line, in precisely that order.
14825 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14826 # report actual input values of CONFIG_FILES etc. instead of their
14827 # values after options handling. Logging --version etc. is OK.
14831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14832 ## Running $as_me. ##
14837 This file was extended by $as_me, which was
14838 generated by GNU Autoconf 2.59. Invocation command line was
14840 CONFIG_FILES = $CONFIG_FILES
14841 CONFIG_HEADERS = $CONFIG_HEADERS
14842 CONFIG_LINKS = $CONFIG_LINKS
14843 CONFIG_COMMANDS = $CONFIG_COMMANDS
14847 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14851 # Files that config.status was made for.
14852 if test -n "$ac_config_files"; then
14853 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14856 if test -n "$ac_config_headers"; then
14857 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14860 if test -n "$ac_config_links"; then
14861 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14864 if test -n "$ac_config_commands"; then
14865 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14868 cat >>$CONFIG_STATUS <<\_ACEOF
14871 \`$as_me' instantiates files from templates according to the
14872 current configuration.
14874 Usage: $0 [OPTIONS] [FILE]...
14876 -h, --help print this help, then exit
14877 -V, --version print version number, then exit
14878 -q, --quiet do not print progress messages
14879 -d, --debug don't remove temporary files
14880 --recheck update $as_me by reconfiguring in the same conditions
14881 --file=FILE[:TEMPLATE]
14882 instantiate the configuration file FILE
14883 --header=FILE[:TEMPLATE]
14884 instantiate the configuration header FILE
14886 Configuration files:
14889 Configuration headers:
14892 Report bugs to <bug-autoconf@gnu.org>."
14895 cat >>$CONFIG_STATUS <<_ACEOF
14898 configured by $0, generated by GNU Autoconf 2.59,
14899 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14901 Copyright (C) 2003 Free Software Foundation, Inc.
14902 This config.status script is free software; the Free Software Foundation
14903 gives unlimited permission to copy, distribute and modify it."
14908 cat >>$CONFIG_STATUS <<\_ACEOF
14909 # If no file are specified by the user, then we need to provide default
14910 # value. By we need to know if files were specified by the user.
14916 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14917 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14925 *) # This is not an option, so the user has probably given explicit
14928 ac_need_defaults=false;;
14932 # Handling of the options.
14934 cat >>$CONFIG_STATUS <<\_ACEOF
14935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14937 --version | --vers* | -V )
14938 echo "$ac_cs_version"; exit 0 ;;
14940 # Conflict between --help and --header
14941 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14942 Try \`$0 --help' for more information." >&5
14943 echo "$as_me: error: ambiguous option: $1
14944 Try \`$0 --help' for more information." >&2;}
14945 { (exit 1); exit 1; }; };;
14946 --help | --hel | -h )
14947 echo "$ac_cs_usage"; exit 0 ;;
14948 --debug | --d* | -d )
14950 --file | --fil | --fi | --f )
14952 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14953 ac_need_defaults=false;;
14954 --header | --heade | --head | --hea )
14956 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14957 ac_need_defaults=false;;
14958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14962 # This is an error.
14963 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14964 Try \`$0 --help' for more information." >&5
14965 echo "$as_me: error: unrecognized option: $1
14966 Try \`$0 --help' for more information." >&2;}
14967 { (exit 1); exit 1; }; } ;;
14969 *) ac_config_targets="$ac_config_targets $1" ;;
14975 ac_configure_extra_args=
14977 if $ac_cs_silent; then
14979 ac_configure_extra_args="$ac_configure_extra_args --silent"
14983 cat >>$CONFIG_STATUS <<_ACEOF
14984 if \$ac_cs_recheck; then
14985 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14986 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14995 cat >>$CONFIG_STATUS <<\_ACEOF
14996 for ac_config_target in $ac_config_targets
14998 case "$ac_config_target" in
14999 # Handling of arguments.
15000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15001 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
15002 "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
15003 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
15004 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
15005 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
15006 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
15007 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
15008 "hc08.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
15009 "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
15010 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
15011 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
15012 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15013 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
15014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15016 { (exit 1); exit 1; }; };;
15020 # If the user did not use the arguments to specify the items to instantiate,
15021 # then the envvar interface is used. Set only those that are not.
15022 # We use the long form for the default assignment because of an extremely
15023 # bizarre bug on SunOS 4.1.3.
15024 if $ac_need_defaults; then
15025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15029 # Have a temporary directory for convenience. Make it in the build tree
15030 # simply because there is no reason to put it here, and in addition,
15031 # creating and moving files from /tmp can sometimes cause problems.
15032 # Create a temporary directory, and hook for its removal unless debugging.
15035 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15036 trap '{ (exit 1); exit 1; }' 1 2 13 15
15039 # Create a (secure) tmp directory for tmp files.
15042 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15043 test -n "$tmp" && test -d "$tmp"
15046 tmp=./confstat$$-$RANDOM
15047 (umask 077 && mkdir $tmp)
15050 echo "$me: cannot create a temporary directory in ." >&2
15051 { (exit 1); exit 1; }
15056 cat >>$CONFIG_STATUS <<_ACEOF
15059 # CONFIG_FILES section.
15062 # No need to generate the scripts if there are no CONFIG_FILES.
15063 # This happens for instance when ./config.status config.h
15064 if test -n "\$CONFIG_FILES"; then
15065 # Protect against being on the right side of a sed subst in config.status.
15066 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15067 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15068 s,@SHELL@,$SHELL,;t t
15069 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15070 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15071 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15072 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15073 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15074 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15075 s,@exec_prefix@,$exec_prefix,;t t
15076 s,@prefix@,$prefix,;t t
15077 s,@program_transform_name@,$program_transform_name,;t t
15078 s,@bindir@,$bindir,;t t
15079 s,@sbindir@,$sbindir,;t t
15080 s,@libexecdir@,$libexecdir,;t t
15081 s,@datadir@,$datadir,;t t
15082 s,@sysconfdir@,$sysconfdir,;t t
15083 s,@sharedstatedir@,$sharedstatedir,;t t
15084 s,@localstatedir@,$localstatedir,;t t
15085 s,@libdir@,$libdir,;t t
15086 s,@includedir@,$includedir,;t t
15087 s,@oldincludedir@,$oldincludedir,;t t
15088 s,@infodir@,$infodir,;t t
15089 s,@mandir@,$mandir,;t t
15090 s,@build_alias@,$build_alias,;t t
15091 s,@host_alias@,$host_alias,;t t
15092 s,@target_alias@,$target_alias,;t t
15093 s,@DEFS@,$DEFS,;t t
15094 s,@ECHO_C@,$ECHO_C,;t t
15095 s,@ECHO_N@,$ECHO_N,;t t
15096 s,@ECHO_T@,$ECHO_T,;t t
15097 s,@LIBS@,$LIBS,;t t
15099 s,@VERSION@,$VERSION,;t t
15100 s,@VERSIONHI@,$VERSIONHI,;t t
15101 s,@VERSIONLO@,$VERSIONLO,;t t
15102 s,@VERSIONP@,$VERSIONP,;t t
15103 s,@docdir@,$docdir,;t t
15104 s,@enable_ucsim@,$enable_ucsim,;t t
15105 s,@enable_dlso@,$enable_dlso,;t t
15106 s,@enable_51@,$enable_51,;t t
15107 s,@enable_avr@,$enable_avr,;t t
15108 s,@enable_z80@,$enable_z80,;t t
15109 s,@enable_hc08@,$enable_hc08,;t t
15110 s,@enable_xa@,$enable_xa,;t t
15111 s,@enable_serio@,$enable_serio,;t t
15113 s,@CXXFLAGS@,$CXXFLAGS,;t t
15114 s,@LDFLAGS@,$LDFLAGS,;t t
15115 s,@CPPFLAGS@,$CPPFLAGS,;t t
15116 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15117 s,@EXEEXT@,$EXEEXT,;t t
15118 s,@OBJEXT@,$OBJEXT,;t t
15119 s,@CXXCPP@,$CXXCPP,;t t
15120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15123 s,@RANLIB@,$RANLIB,;t t
15124 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15125 s,@STRIP@,$STRIP,;t t
15126 s,@build@,$build,;t t
15127 s,@build_cpu@,$build_cpu,;t t
15128 s,@build_vendor@,$build_vendor,;t t
15129 s,@build_os@,$build_os,;t t
15130 s,@host@,$host,;t t
15131 s,@host_cpu@,$host_cpu,;t t
15132 s,@host_vendor@,$host_vendor,;t t
15133 s,@host_os@,$host_os,;t t
15135 s,@CFLAGS@,$CFLAGS,;t t
15136 s,@ac_ct_CC@,$ac_ct_CC,;t t
15137 s,@LN_S@,$LN_S,;t t
15138 s,@ECHO@,$ECHO,;t t
15139 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15141 s,@EGREP@,$EGREP,;t t
15142 s,@LIBTOOL@,$LIBTOOL,;t t
15143 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
15145 s,@LEXLIB@,$LEXLIB,;t t
15146 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15147 s,@YACC@,$YACC,;t t
15148 s,@BISON_PLUS_PLUS@,$BISON_PLUS_PLUS,;t t
15149 s,@WINSOCK_AVAIL@,$WINSOCK_AVAIL,;t t
15150 s,@dl_ok@,$dl_ok,;t t
15152 s,@panel_ok@,$panel_ok,;t t
15153 s,@curses_ok@,$curses_ok,;t t
15154 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
15155 s,@M_OR_MM@,$M_OR_MM,;t t
15156 s,@SHAREDLIB@,$SHAREDLIB,;t t
15157 s,@PICOPT@,$PICOPT,;t t
15158 s,@dlso_ok@,$dlso_ok,;t t
15159 s,@LIBOBJS@,$LIBOBJS,;t t
15160 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15165 cat >>$CONFIG_STATUS <<\_ACEOF
15166 # Split the substitutions into bite-sized pieces for seds with
15167 # small command number limits, like on Digital OSF/1 and HP-UX.
15168 ac_max_sed_lines=48
15169 ac_sed_frag=1 # Number of current file.
15170 ac_beg=1 # First line for current file.
15171 ac_end=$ac_max_sed_lines # Line after last line for current file.
15174 while $ac_more_lines; do
15175 if test $ac_beg -gt 1; then
15176 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15178 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15180 if test ! -s $tmp/subs.frag; then
15181 ac_more_lines=false
15183 # The purpose of the label and of the branching condition is to
15184 # speed up the sed processing (if there are no `@' at all, there
15185 # is no need to browse any of the substitutions).
15186 # These are the two extra sed commands mentioned above.
15188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15189 if test -z "$ac_sed_cmds"; then
15190 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15192 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15194 ac_sed_frag=`expr $ac_sed_frag + 1`
15196 ac_end=`expr $ac_end + $ac_max_sed_lines`
15199 if test -z "$ac_sed_cmds"; then
15202 fi # test -n "$CONFIG_FILES"
15205 cat >>$CONFIG_STATUS <<\_ACEOF
15206 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15209 - | *:- | *:-:* ) # input from stdin
15211 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15212 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15213 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15214 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15215 * ) ac_file_in=$ac_file.in ;;
15218 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15219 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15221 X"$ac_file" : 'X\(//\)[^/]' \| \
15222 X"$ac_file" : 'X\(//\)$' \| \
15223 X"$ac_file" : 'X\(/\)' \| \
15224 . : '\(.\)' 2>/dev/null ||
15226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15228 /^X\(\/\/\)$/{ s//\1/; q; }
15229 /^X\(\/\).*/{ s//\1/; q; }
15231 { if $as_mkdir_p; then
15236 while test ! -d "$as_dir"; do
15237 as_dirs="$as_dir $as_dirs"
15238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15240 X"$as_dir" : 'X\(//\)[^/]' \| \
15241 X"$as_dir" : 'X\(//\)$' \| \
15242 X"$as_dir" : 'X\(/\)' \| \
15243 . : '\(.\)' 2>/dev/null ||
15245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15247 /^X\(\/\/\)$/{ s//\1/; q; }
15248 /^X\(\/\).*/{ s//\1/; q; }
15251 test ! -n "$as_dirs" || mkdir $as_dirs
15252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15254 { (exit 1); exit 1; }; }; }
15258 if test "$ac_dir" != .; then
15259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15260 # A "../" for each directory in $ac_dir_suffix.
15261 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15263 ac_dir_suffix= ac_top_builddir=
15267 .) # No --srcdir option. We are building in place.
15269 if test -z "$ac_top_builddir"; then
15272 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15274 [\\/]* | ?:[\\/]* ) # Absolute path.
15275 ac_srcdir=$srcdir$ac_dir_suffix;
15276 ac_top_srcdir=$srcdir ;;
15277 *) # Relative path.
15278 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15279 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15282 # Do not use `cd foo && pwd` to compute absolute paths, because
15283 # the directories may not exist.
15285 .) ac_abs_builddir="$ac_dir";;
15288 .) ac_abs_builddir=`pwd`;;
15289 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15290 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15293 case $ac_abs_builddir in
15294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15296 case ${ac_top_builddir}. in
15297 .) ac_abs_top_builddir=$ac_abs_builddir;;
15298 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15299 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15302 case $ac_abs_builddir in
15303 .) ac_abs_srcdir=$ac_srcdir;;
15306 .) ac_abs_srcdir=$ac_abs_builddir;;
15307 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15308 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15311 case $ac_abs_builddir in
15312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15314 case $ac_top_srcdir in
15315 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15316 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15317 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15324 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15327 if test x"$ac_file" != x-; then
15328 { echo "$as_me:$LINENO: creating $ac_file" >&5
15329 echo "$as_me: creating $ac_file" >&6;}
15332 # Let's still pretend it is `configure' which instantiates (i.e., don't
15333 # use $as_me), people would be surprised to read:
15334 # /* config.h. Generated by config.status. */
15335 if test x"$ac_file" = x-; then
15338 configure_input="$ac_file. "
15340 configure_input=$configure_input"Generated from `echo $ac_file_in |
15341 sed 's,.*/,,'` by configure."
15343 # First look for the input files in the build tree, otherwise in the
15345 ac_file_inputs=`IFS=:
15346 for f in $ac_file_in; do
15348 -) echo $tmp/stdin ;;
15350 # Absolute (can't be DOS-style, as IFS=:)
15351 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15352 echo "$as_me: error: cannot find input file: $f" >&2;}
15353 { (exit 1); exit 1; }; }
15356 if test -f "$f"; then
15359 elif test -f "$srcdir/$f"; then
15364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15365 echo "$as_me: error: cannot find input file: $f" >&2;}
15366 { (exit 1); exit 1; }; }
15369 done` || { (exit 1); exit 1; }
15371 cat >>$CONFIG_STATUS <<_ACEOF
15375 cat >>$CONFIG_STATUS <<\_ACEOF
15377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15378 s,@configure_input@,$configure_input,;t t
15379 s,@srcdir@,$ac_srcdir,;t t
15380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15381 s,@top_srcdir@,$ac_top_srcdir,;t t
15382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15383 s,@builddir@,$ac_builddir,;t t
15384 s,@abs_builddir@,$ac_abs_builddir,;t t
15385 s,@top_builddir@,$ac_top_builddir,;t t
15386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15387 s,@INSTALL@,$ac_INSTALL,;t t
15388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15390 if test x"$ac_file" != x-; then
15391 mv $tmp/out $ac_file
15399 cat >>$CONFIG_STATUS <<\_ACEOF
15402 # CONFIG_HEADER section.
15405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15408 # ac_d sets the value in "#define NAME VALUE" lines.
15409 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15410 ac_dB='[ ].*$,\1#\2'
15413 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15414 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15415 ac_uB='$,\1#\2define\3'
15419 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15422 - | *:- | *:-:* ) # input from stdin
15424 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15426 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15428 * ) ac_file_in=$ac_file.in ;;
15431 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15432 echo "$as_me: creating $ac_file" >&6;}
15434 # First look for the input files in the build tree, otherwise in the
15436 ac_file_inputs=`IFS=:
15437 for f in $ac_file_in; do
15439 -) echo $tmp/stdin ;;
15441 # Absolute (can't be DOS-style, as IFS=:)
15442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15443 echo "$as_me: error: cannot find input file: $f" >&2;}
15444 { (exit 1); exit 1; }; }
15445 # Do quote $f, to prevent DOS paths from being IFS'd.
15448 if test -f "$f"; then
15451 elif test -f "$srcdir/$f"; then
15456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15457 echo "$as_me: error: cannot find input file: $f" >&2;}
15458 { (exit 1); exit 1; }; }
15461 done` || { (exit 1); exit 1; }
15462 # Remove the trailing spaces.
15463 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15467 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15468 # `conftest.undefs', that substitutes the proper values into
15469 # config.h.in to produce config.h. The first handles `#define'
15470 # templates, and the second `#undef' templates.
15471 # And first: Protect against being on the right side of a sed subst in
15472 # config.status. Protect against being in an unquoted here document
15473 # in config.status.
15474 rm -f conftest.defines conftest.undefs
15475 # Using a here document instead of a string reduces the quoting nightmare.
15476 # Putting comments in sed scripts is not portable.
15478 # `end' is used to avoid that the second main sed command (meant for
15479 # 0-ary CPP macros) applies to n-ary macro definitions.
15480 # See the Autoconf documentation for `clear'.
15481 cat >confdef2sed.sed <<\_ACEOF
15486 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15488 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15491 # If some macros were called several times there might be several times
15492 # the same #defines, which is useless. Nevertheless, we may not want to
15493 # sort them, since we want the *last* AC-DEFINE to be honored.
15494 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15495 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15496 rm -f confdef2sed.sed
15498 # This sed command replaces #undef with comments. This is necessary, for
15499 # example, in the case of _POSIX_SOURCE, which is predefined and required
15500 # on some systems where configure will not decide to define it.
15501 cat >>conftest.undefs <<\_ACEOF
15502 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15505 # Break up conftest.defines because some shells have a limit on the size
15506 # of here documents, and old seds have small limits too (100 cmds).
15507 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15508 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15509 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15510 echo ' :' >>$CONFIG_STATUS
15511 rm -f conftest.tail
15512 while grep . conftest.defines >/dev/null
15514 # Write a limited-size here document to $tmp/defines.sed.
15515 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15516 # Speed up: don't consider the non `#define' lines.
15517 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15518 # Work around the forget-to-reset-the-flag bug.
15519 echo 't clr' >>$CONFIG_STATUS
15520 echo ': clr' >>$CONFIG_STATUS
15521 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15523 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15525 mv $tmp/out $tmp/in
15527 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15528 rm -f conftest.defines
15529 mv conftest.tail conftest.defines
15531 rm -f conftest.defines
15532 echo ' fi # grep' >>$CONFIG_STATUS
15533 echo >>$CONFIG_STATUS
15535 # Break up conftest.undefs because some shells have a limit on the size
15536 # of here documents, and old seds have small limits too (100 cmds).
15537 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15538 rm -f conftest.tail
15539 while grep . conftest.undefs >/dev/null
15541 # Write a limited-size here document to $tmp/undefs.sed.
15542 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15543 # Speed up: don't consider the non `#undef'
15544 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15545 # Work around the forget-to-reset-the-flag bug.
15546 echo 't clr' >>$CONFIG_STATUS
15547 echo ': clr' >>$CONFIG_STATUS
15548 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15550 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15552 mv $tmp/out $tmp/in
15554 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15555 rm -f conftest.undefs
15556 mv conftest.tail conftest.undefs
15558 rm -f conftest.undefs
15560 cat >>$CONFIG_STATUS <<\_ACEOF
15561 # Let's still pretend it is `configure' which instantiates (i.e., don't
15562 # use $as_me), people would be surprised to read:
15563 # /* config.h. Generated by config.status. */
15564 if test x"$ac_file" = x-; then
15565 echo "/* Generated by configure. */" >$tmp/config.h
15567 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15569 cat $tmp/in >>$tmp/config.h
15571 if test x"$ac_file" != x-; then
15572 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15574 echo "$as_me: $ac_file is unchanged" >&6;}
15576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578 X"$ac_file" : 'X\(//\)[^/]' \| \
15579 X"$ac_file" : 'X\(//\)$' \| \
15580 X"$ac_file" : 'X\(/\)' \| \
15581 . : '\(.\)' 2>/dev/null ||
15583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15585 /^X\(\/\/\)$/{ s//\1/; q; }
15586 /^X\(\/\).*/{ s//\1/; q; }
15588 { if $as_mkdir_p; then
15593 while test ! -d "$as_dir"; do
15594 as_dirs="$as_dir $as_dirs"
15595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15597 X"$as_dir" : 'X\(//\)[^/]' \| \
15598 X"$as_dir" : 'X\(//\)$' \| \
15599 X"$as_dir" : 'X\(/\)' \| \
15600 . : '\(.\)' 2>/dev/null ||
15602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15604 /^X\(\/\/\)$/{ s//\1/; q; }
15605 /^X\(\/\).*/{ s//\1/; q; }
15608 test ! -n "$as_dirs" || mkdir $as_dirs
15609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15611 { (exit 1); exit 1; }; }; }
15614 mv $tmp/config.h $ac_file
15618 rm -f $tmp/config.h
15623 cat >>$CONFIG_STATUS <<\_ACEOF
15625 { (exit 0); exit 0; }
15627 chmod +x $CONFIG_STATUS
15628 ac_clean_files=$ac_clean_files_save
15631 # configure is writing to config.log, and then calls config.status.
15632 # config.status does its own redirection, appending to config.log.
15633 # Unfortunately, on DOS this fails, as config.log is still kept open
15634 # by configure, so config.status won't be able to write to it; its
15635 # output is simply discarded. So we exec the FD to /dev/null,
15636 # effectively closing config.log, so it can be properly (re)opened and
15637 # appended to by config.status. When coming back to configure, we
15638 # need to make the FD available again.
15639 if test "$no_create" != yes; then
15641 ac_config_status_args=
15642 test "$silent" = yes &&
15643 ac_config_status_args="$ac_config_status_args --quiet"
15645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15648 # would make configure fail if this is the last instruction.
15649 $ac_cs_success || { (exit 1); exit 1; }
15653 #gui.src/portmon.src/Makefile
15656 # End of configure/configure.in