2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="Makefile"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subdirs_all="$ac_subdirs_all support/cpp2"
309 ac_subdirs_all="$ac_subdirs_all packihx"
310 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
311 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP EGREP M_OR_MM sdcc_datadir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 if test -n "$ac_init_help"; then
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-mcs51-port Excludes the Intel mcs51 port
856 --disable-gbz80-port Excludes the Gameboy gbz80 port
857 --disable-z80-port Excludes the z80 port
858 --disable-avr-port Excludes the AVR port
859 --disable-ds390-port Excludes the DS390 port
860 --disable-pic-port Excludes the PIC port
861 --disable-xa51-port Excludes the XA51 port
862 --disable-ucsim Disables configuring and building of ucsim
863 --disable-device-lib-build Disables automatically building device libraries
864 --disable-packihx Disables building packihx
865 --enable-libgc Use the Bohem memory allocator. Lower runtime footprint.
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
916 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
917 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
918 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
919 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
922 # Check for guested configure; otherwise get Cygnus style configure.
923 if test -f $ac_srcdir/configure.gnu; then
925 $SHELL $ac_srcdir/configure.gnu --help=recursive
926 elif test -f $ac_srcdir/configure; then
928 $SHELL $ac_srcdir/configure --help=recursive
929 elif test -f $ac_srcdir/configure.ac ||
930 test -f $ac_srcdir/configure.in; then
934 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 test -n "$ac_init_help" && exit 0
941 if $ac_init_version; then
944 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
945 Free Software Foundation, Inc.
946 This configure script is free software; the Free Software Foundation
947 gives unlimited permission to copy, distribute and modify it.
953 This file contains any messages produced by compilers while
954 running configure, to aid debugging if configure makes a mistake.
956 It was created by $as_me, which was
957 generated by GNU Autoconf 2.54. Invocation command line was
968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
980 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 test -z "$as_dir" && as_dir=.
1007 # Keep a trace of the command line.
1008 # Strip out --no-create and --no-recursion so they do not pile up.
1009 # Also quote any args containing shell meta-characters.
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n ) continue ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1021 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1024 # Get rid of the leading space.
1028 # When interrupted or exit'd, cleanup temporary files, and complete
1029 # config.log. We remove comments because anyway the quotes in there
1030 # would cause problems or look ugly.
1031 # WARNING: Be sure not to use single quotes in there, as some shells,
1032 # such as our DU 5.0 friend, will then `close' the trap.
1033 trap 'exit_status=$?
1034 # Save into config.log some information that might help in debugging.
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1044 # The following way of writing the cache mishandles newlines in values,
1047 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1067 for ac_var in $ac_subst_vars
1069 eval ac_val=$`echo $ac_var`
1070 echo "$ac_var='"'"'$ac_val'"'"'"
1074 if test -n "$ac_subst_files"; then
1081 for ac_var in $ac_subst_files
1083 eval ac_val=$`echo $ac_var`
1084 echo "$ac_var='"'"'$ac_val'"'"'"
1089 if test -s confdefs.h; then
1096 sed "/^$/d" confdefs.h | sort
1099 test "$ac_signal" != 0 &&
1100 echo "$as_me: caught signal $ac_signal"
1101 echo "$as_me: exit $exit_status"
1103 rm -f core core.* *.core &&
1104 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 for ac_signal in 1 2 13 15; do
1108 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 # Predefined preprocessor variables.
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147 if test "x$prefix" != xNONE; then
1148 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1150 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 for ac_site_file in $CONFIG_SITE; do
1154 if test -r "$ac_site_file"; then
1155 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157 sed 's/^/| /' "$ac_site_file" >&5
1162 if test -r "$cache_file"; then
1163 # Some versions of bash will fail to source /dev/null (special
1164 # files actually), so we avoid doing that.
1165 if test -f "$cache_file"; then
1166 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1169 [\\/]* | ?:[\\/]* ) . $cache_file;;
1170 *) . ./$cache_file;;
1174 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1179 # Check that the precious variables saved in the cache have kept the same
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185 eval ac_new_set=\$ac_env_${ac_var}_set
1186 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187 eval ac_new_val="\$ac_env_${ac_var}_value"
1188 case $ac_old_set,$ac_new_set in
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1199 if test "x$ac_old_val" != "x$ac_new_val"; then
1200 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1203 echo "$as_me: former value: $ac_old_val" >&2;}
1204 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1205 echo "$as_me: current value: $ac_new_val" >&2;}
1206 ac_cache_corrupted=:
1209 # Pass precious variables to config.status.
1210 if test "$ac_new_set" = set; then
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 *) ac_arg=$ac_var=$ac_new_val ;;
1216 case " $ac_configure_args " in
1217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1218 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1222 if $ac_cache_corrupted; then
1223 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227 { (exit 1); exit 1; }; }
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1257 for ac_prog in gawk mawk nawk awk
1259 # Extract the first word of "$ac_prog", so it can be a program name with args.
1260 set dummy $ac_prog; ac_word=$2
1261 echo "$as_me:$LINENO: checking for $ac_word" >&5
1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1263 if test "${ac_cv_prog_AWK+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 if test -n "$AWK"; then
1267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 test -z "$as_dir" && as_dir=.
1274 for ac_exec_ext in '' $ac_executable_extensions; do
1275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1276 ac_cv_prog_AWK="$ac_prog"
1277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1286 if test -n "$AWK"; then
1287 echo "$as_me:$LINENO: result: $AWK" >&5
1288 echo "${ECHO_T}$AWK" >&6
1290 echo "$as_me:$LINENO: result: no" >&5
1291 echo "${ECHO_T}no" >&6
1294 test -n "$AWK" && break
1298 echo "$as_me:$LINENO: checking version of the package" >&5
1299 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1300 if test -f .version; then
1301 VERSION=`cat .version`
1302 elif test -f ../.version; then
1303 VERSION=`cat ../.version`
1307 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1308 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1309 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1310 # Assume no special extension
1311 EXEEXT=`echo $EXEEXT`
1313 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1314 echo "${ECHO_T}${VERSION}" >&6
1319 cat >>confdefs.h <<_ACEOF
1320 #define SDCC_VERSION_LO ${VERSIONLO}
1323 cat >>confdefs.h <<_ACEOF
1324 #define SDCC_VERSION_HI ${VERSIONHI}
1327 cat >>confdefs.h <<_ACEOF
1328 #define SDCC_VERSION_P ${VERSIONP}
1331 cat >>confdefs.h <<_ACEOF
1332 #define SDCC_VERSION_STR "${VERSION}"
1335 test "$program_prefix" != NONE &&
1336 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1337 # Use a double $ so make ignores it.
1338 test "$program_suffix" != NONE &&
1339 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1340 # Double any \ or $. echo might interpret backslashes.
1341 # By default was `s,x,x', remove it if useless.
1342 cat <<\_ACEOF >conftest.sed
1343 s/[\\$]/&&/g;s/;s,x,x,$//
1345 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 sdcc_cv_version=$VERSION
1349 sdcc_cv_versionhi=$VERSIONHI
1350 sdcc_cv_versionlo=$VERSIONLO
1351 sdcc_cv_versionp=$VERSIONP
1354 #-------------------
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388 if test -n "$CC"; then
1389 echo "$as_me:$LINENO: result: $CC" >&5
1390 echo "${ECHO_T}$CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1397 if test -z "$ac_cv_prog_CC"; then
1399 # Extract the first word of "gcc", so it can be a program name with args.
1400 set dummy gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$ac_ct_CC"; then
1407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_ac_ct_CC="gcc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1439 if test -z "$CC"; then
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1479 # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1540 ac_prog_rejected=yes
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 if test $ac_prog_rejected = yes; then
1551 # We found a bogon in the path, so make sure we never use it.
1552 set dummy $ac_cv_prog_CC
1554 if test $# != 0; then
1555 # We chose a different compiler from the bogus one.
1556 # However, it has the same basename, so the bogon will be chosen
1557 # first if we set CC to just the basename; use the full file name.
1559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$CC"; then
1575 if test -n "$ac_tool_prefix"; then
1578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1613 test -n "$CC" && break
1616 if test -z "$CC"; then
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$ac_ct_CC"; then
1628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_CC="$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647 if test -n "$ac_ct_CC"; then
1648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649 echo "${ECHO_T}$ac_ct_CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$ac_ct_CC" && break
1664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1665 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1666 { (exit 1); exit 1; }; }
1668 # Provide some information about the compiler.
1669 echo "$as_me:$LINENO:" \
1670 "checking for C compiler version" >&5
1671 ac_compiler=`set X $ac_compile; echo $2`
1672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1673 (eval $ac_compiler --version </dev/null >&5) 2>&5
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }
1677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1678 (eval $ac_compiler -v </dev/null >&5) 2>&5
1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681 (exit $ac_status); }
1682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1683 (eval $ac_compiler -V </dev/null >&5) 2>&5
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }
1688 cat >conftest.$ac_ext <<_ACEOF
1689 #line $LINENO "configure"
1690 #include "confdefs.h"
1700 ac_clean_files_save=$ac_clean_files
1701 ac_clean_files="$ac_clean_files a.out a.exe"
1702 # Try to create an executable without -o first, disregard a.out.
1703 # It will help us diagnose broken compilers, and finding out an intuition
1705 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1706 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1708 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1709 (eval $ac_link_default) 2>&5
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }; then
1713 # Find the output, starting from the most likely. This scheme is
1714 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1717 # Be careful to initialize this variable, since it used to be cached.
1718 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1720 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1721 test -f "$ac_file" || continue
1723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1724 a.out ) # We found the default executable, but exeext='' is most
1727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1728 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1735 echo "$as_me: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1738 check \`config.log' for details." >&5
1739 echo "$as_me: error: C compiler cannot create executables
1740 check \`config.log' for details." >&2;}
1741 { (exit 77); exit 77; }; }
1744 ac_exeext=$ac_cv_exeext
1745 echo "$as_me:$LINENO: result: $ac_file" >&5
1746 echo "${ECHO_T}$ac_file" >&6
1748 # Check the compiler produces executables we can run. If not, either
1749 # the compiler is broken, or we cross compile.
1750 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1751 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1752 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1753 # If not cross compiling, check that we can run a simple program.
1754 if test "$cross_compiling" != yes; then
1755 if { ac_try='./$ac_file'
1756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1763 if test "$cross_compiling" = maybe; then
1766 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1767 If you meant to cross compile, use \`--host'." >&5
1768 echo "$as_me: error: cannot run C compiled programs.
1769 If you meant to cross compile, use \`--host'." >&2;}
1770 { (exit 1); exit 1; }; }
1774 echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1777 rm -f a.out a.exe conftest$ac_cv_exeext
1778 ac_clean_files=$ac_clean_files_save
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1782 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1783 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1784 echo "${ECHO_T}$cross_compiling" >&6
1786 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1787 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1789 (eval $ac_link) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1794 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1795 # work properly (i.e., refer to `conftest.exe'), while it won't with
1797 for ac_file in conftest.exe conftest conftest.*; do
1798 test -f "$ac_file" || continue
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line $LINENO "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1854 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1967 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 ac_cv_prog_cc_stdc=no
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 #include "confdefs.h"
1978 #include <sys/types.h>
1979 #include <sys/stat.h>
1980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1981 struct buf { int x; };
1982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1983 static char *e (p, i)
1989 static char *f (char * (*g) (char **, int), char **p, ...)
1994 s = g (p, va_arg (v,int));
1998 int test (int i, double x);
1999 struct s1 {int (*f) (int a);};
2000 struct s2 {int (*f) (double a);};
2001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2012 # Don't try gcc -ansi; that turns off useful extensions and
2013 # breaks some systems' header files.
2014 # AIX -qlanglvl=ansi
2015 # Ultrix and OSF/1 -std1
2016 # HP-UX 10.20 and later -Ae
2017 # HP-UX older versions -Aa -D_HPUX_SOURCE
2018 # SVR4 -Xc -D__EXTENSIONS__
2019 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2021 CC="$ac_save_CC $ac_arg"
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 ac_cv_prog_cc_stdc=$ac_arg
2037 echo "$as_me: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2040 rm -f conftest.$ac_objext
2042 rm -f conftest.$ac_ext conftest.$ac_objext
2047 case "x$ac_cv_prog_cc_stdc" in
2049 echo "$as_me:$LINENO: result: none needed" >&5
2050 echo "${ECHO_T}none needed" >&6 ;;
2052 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2053 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2054 CC="$CC $ac_cv_prog_cc_stdc" ;;
2057 # Some people use a C++ compiler to compile C. Since we use `exit',
2058 # in C++ we need to declare it. In case someone uses the same compiler
2059 # for both compiling C and C++ we need to have the C++ compiler decide
2060 # the declaration of exit, since it's the most demanding environment.
2061 cat >conftest.$ac_ext <<_ACEOF
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2078 for ac_declaration in \
2080 '#include <stdlib.h>' \
2081 'extern "C" void std::exit (int) throw (); using std::exit;' \
2082 'extern "C" void std::exit (int); using std::exit;' \
2083 'extern "C" void exit (int) throw ();' \
2084 'extern "C" void exit (int);' \
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2118 rm -f conftest.$ac_objext conftest.$ac_ext
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2121 #include "confdefs.h"
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -s conftest.$ac_objext'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 rm -f conftest.$ac_objext conftest.$ac_ext
2151 if test -n "$ac_declaration"; then
2152 echo '#ifdef __cplusplus' >>confdefs.h
2153 echo $ac_declaration >>confdefs.h
2154 echo '#endif' >>confdefs.h
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2161 rm -f conftest.$ac_objext conftest.$ac_ext
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2169 ac_cpp='$CXXCPP $CPPFLAGS'
2170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2173 if test -n "$ac_tool_prefix"; then
2174 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_CXX+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$CXX"; then
2184 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CXX"; then
2204 echo "$as_me:$LINENO: result: $CXX" >&5
2205 echo "${ECHO_T}$CXX" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2211 test -n "$CXX" && break
2214 if test -z "$CXX"; then
2216 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2218 # Extract the first word of "$ac_prog", so it can be a program name with args.
2219 set dummy $ac_prog; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$ac_ct_CXX"; then
2226 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_ac_ct_CXX="$ac_prog"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2245 if test -n "$ac_ct_CXX"; then
2246 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2247 echo "${ECHO_T}$ac_ct_CXX" >&6
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2253 test -n "$ac_ct_CXX" && break
2255 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO:" \
2263 "checking for C++ compiler version" >&5
2264 ac_compiler=`set X $ac_compile; echo $2`
2265 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2266 (eval $ac_compiler --version </dev/null >&5) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }
2270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2271 (eval $ac_compiler -v </dev/null >&5) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }
2275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2276 (eval $ac_compiler -V </dev/null >&5) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }
2281 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2282 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2283 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2288 #include "confdefs.h"
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2323 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2324 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2325 GXX=`test $ac_compiler_gnu = yes && echo yes`
2326 ac_test_CXXFLAGS=${CXXFLAGS+set}
2327 ac_save_CXXFLAGS=$CXXFLAGS
2329 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2330 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cxx_g+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 cat >conftest.$ac_ext <<_ACEOF
2335 #line $LINENO "configure"
2336 #include "confdefs.h"
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 ac_cv_prog_cxx_g=yes
2360 echo "$as_me: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2364 rm -f conftest.$ac_objext conftest.$ac_ext
2366 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2367 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2368 if test "$ac_test_CXXFLAGS" = set; then
2369 CXXFLAGS=$ac_save_CXXFLAGS
2370 elif test $ac_cv_prog_cxx_g = yes; then
2371 if test "$GXX" = yes; then
2377 if test "$GXX" = yes; then
2383 for ac_declaration in \
2385 '#include <stdlib.h>' \
2386 'extern "C" void std::exit (int) throw (); using std::exit;' \
2387 'extern "C" void std::exit (int); using std::exit;' \
2388 'extern "C" void exit (int) throw ();' \
2389 'extern "C" void exit (int);' \
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2394 #include "confdefs.h"
2405 rm -f conftest.$ac_objext
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2423 rm -f conftest.$ac_objext conftest.$ac_ext
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2426 #include "confdefs.h"
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2450 echo "$as_me: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2456 if test -n "$ac_declaration"; then
2457 echo '#ifdef __cplusplus' >>confdefs.h
2458 echo $ac_declaration >>confdefs.h
2459 echo '#endif' >>confdefs.h
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2474 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2475 # On Suns, sometimes $CPP names a directory.
2476 if test -n "$CPP" && test -d "$CPP"; then
2479 if test -z "$CPP"; then
2480 if test "${ac_cv_prog_CPP+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 # Double quotes because CPP needs to be expanded
2484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2487 for ac_c_preproc_warn_flag in '' yes
2489 # Use a header file that comes with gcc, so configuring glibc
2490 # with a fresh cross-compiler works.
2491 # On the NeXT, cc -E runs the code through the compiler's parser,
2492 # not just through cpp. "Syntax error" is here to catch this case.
2493 cat >conftest.$ac_ext <<_ACEOF
2494 #line $LINENO "configure"
2495 #include "confdefs.h"
2499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } >/dev/null; then
2507 if test -s conftest.err; then
2508 ac_cpp_err=$ac_c_preproc_warn_flag
2515 if test -z "$ac_cpp_err"; then
2518 echo "$as_me: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 # Broken: fails on valid input.
2523 rm -f conftest.err conftest.$ac_ext
2525 # OK, works on sane cases. Now check whether non-existent headers
2526 # can be detected and how.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2530 #include <ac_nonexistent.h>
2532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } >/dev/null; then
2540 if test -s conftest.err; then
2541 ac_cpp_err=$ac_c_preproc_warn_flag
2548 if test -z "$ac_cpp_err"; then
2549 # Broken: success on invalid input.
2552 echo "$as_me: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2554 # Passes both tests.
2558 rm -f conftest.err conftest.$ac_ext
2561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2562 rm -f conftest.err conftest.$ac_ext
2563 if $ac_preproc_ok; then
2575 echo "$as_me:$LINENO: result: $CPP" >&5
2576 echo "${ECHO_T}$CPP" >&6
2578 for ac_c_preproc_warn_flag in '' yes
2580 # Use a header file that comes with gcc, so configuring glibc
2581 # with a fresh cross-compiler works.
2582 # On the NeXT, cc -E runs the code through the compiler's parser,
2583 # not just through cpp. "Syntax error" is here to catch this case.
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev/null; then
2598 if test -s conftest.err; then
2599 ac_cpp_err=$ac_c_preproc_warn_flag
2606 if test -z "$ac_cpp_err"; then
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2611 # Broken: fails on valid input.
2614 rm -f conftest.err conftest.$ac_ext
2616 # OK, works on sane cases. Now check whether non-existent headers
2617 # can be detected and how.
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2621 #include <ac_nonexistent.h>
2623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } >/dev/null; then
2631 if test -s conftest.err; then
2632 ac_cpp_err=$ac_c_preproc_warn_flag
2639 if test -z "$ac_cpp_err"; then
2640 # Broken: success on invalid input.
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 # Passes both tests.
2649 rm -f conftest.err conftest.$ac_ext
2652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2653 rm -f conftest.err conftest.$ac_ext
2654 if $ac_preproc_ok; then
2657 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2659 { (exit 1); exit 1; }; }
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2670 if test -f $ac_dir/install-sh; then
2672 ac_install_sh="$ac_aux_dir/install-sh -c"
2674 elif test -f $ac_dir/install.sh; then
2676 ac_install_sh="$ac_aux_dir/install.sh -c"
2678 elif test -f $ac_dir/shtool; then
2680 ac_install_sh="$ac_aux_dir/shtool install -c"
2684 if test -z "$ac_aux_dir"; then
2685 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2686 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2687 { (exit 1); exit 1; }; }
2689 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2690 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2691 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2693 # Find a good install program. We prefer a C program (faster),
2694 # so one script is as good as another. But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2707 if test -z "$INSTALL"; then
2708 if test "${ac_cv_path_install+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 # Account for people who put trailing slashes in PATH elements.
2718 ./ | .// | /cC/* | \
2719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 # OSF1 and SCO ODT 3.0 have their own names for install.
2723 # Don't use installbsd from OSF since it installs stuff as root
2725 for ac_prog in ginstall scoinst install; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2728 if test $ac_prog = install &&
2729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # AIX install. It has an incompatible calling convention.
2732 elif test $ac_prog = install &&
2733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # program-specific install script used by HP pwplus--don't use.
2737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2749 if test "${ac_cv_path_install+set}" = set; then
2750 INSTALL=$ac_cv_path_install
2752 # As a last resort, use the slow shell script. We don't cache a
2753 # path for INSTALL within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the path is relative.
2756 INSTALL=$ac_install_sh
2759 echo "$as_me:$LINENO: result: $INSTALL" >&5
2760 echo "${ECHO_T}$INSTALL" >&6
2762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2763 # It thinks the first close brace ends the variable substitution.
2764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_RANLIB+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$RANLIB"; then
2779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 RANLIB=$ac_cv_prog_RANLIB
2798 if test -n "$RANLIB"; then
2799 echo "$as_me:$LINENO: result: $RANLIB" >&5
2800 echo "${ECHO_T}$RANLIB" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_RANLIB"; then
2808 ac_ct_RANLIB=$RANLIB
2809 # Extract the first word of "ranlib", so it can be a program name with args.
2810 set dummy ranlib; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_RANLIB"; then
2817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_RANLIB="ranlib"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2837 if test -n "$ac_ct_RANLIB"; then
2838 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2839 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2845 RANLIB=$ac_ct_RANLIB
2847 RANLIB="$ac_cv_prog_RANLIB"
2851 for ac_prog in flex lex
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; 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_LEX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$LEX"; then
2861 ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$LEX"; then
2881 echo "$as_me:$LINENO: result: $LEX" >&5
2882 echo "${ECHO_T}$LEX" >&6
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2888 test -n "$LEX" && break
2890 test -n "$LEX" || LEX=":"
2892 if test -z "$LEXLIB"
2894 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 ac_check_lib_save_LIBS=$LIBS
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 #include "confdefs.h"
2905 /* Override any gcc2 internal prototype to avoid an error. */
2909 /* We use char because int might match the return type of a gcc2
2910 builtin and then its argument prototype would still apply. */
2920 rm -f conftest.$ac_objext conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest$ac_exeext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_lib_fl_yywrap=yes
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 ac_cv_lib_fl_yywrap=no
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939 LIBS=$ac_check_lib_save_LIBS
2941 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2942 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2943 if test $ac_cv_lib_fl_yywrap = yes; then
2946 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2947 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2948 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 ac_check_lib_save_LIBS=$LIBS
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 #include "confdefs.h"
2957 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2972 rm -f conftest.$ac_objext conftest$ac_exeext
2973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2974 (eval $ac_link) 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest$ac_exeext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_cv_lib_l_yywrap=yes
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 ac_cv_lib_l_yywrap=no
2990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2991 LIBS=$ac_check_lib_save_LIBS
2993 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2994 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2995 if test $ac_cv_lib_l_yywrap = yes; then
3003 if test "x$LEX" != "x:"; then
3004 echo "$as_me:$LINENO: checking lex output file root" >&5
3005 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3006 if test "${ac_cv_prog_lex_root+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 # The minimal lex program is just a single line: %%. But some broken lexes
3010 # (Solaris, I think it was) want two %% lines, so accommodate them.
3011 cat >conftest.l <<_ACEOF
3015 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3016 (eval $LEX conftest.l) 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }
3020 if test -f lex.yy.c; then
3021 ac_cv_prog_lex_root=lex.yy
3022 elif test -f lexyy.c; then
3023 ac_cv_prog_lex_root=lexyy
3025 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3026 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3027 { (exit 1); exit 1; }; }
3030 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3031 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3033 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3035 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3036 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3037 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 # POSIX says lex can declare yytext either as a pointer or an array; the
3041 # default is implementation-dependent. Figure out which it is, since
3042 # not all implementations provide the %pointer and %array declarations.
3043 ac_cv_prog_lex_yytext_pointer=no
3044 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3046 LIBS="$LIBS $LEXLIB"
3047 cat >conftest.$ac_ext <<_ACEOF
3048 `cat $LEX_OUTPUT_ROOT.c`
3050 rm -f conftest.$ac_objext conftest$ac_exeext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052 (eval $ac_link) 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -s conftest$ac_exeext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 ac_cv_prog_lex_yytext_pointer=yes
3064 echo "$as_me: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3069 rm -f "${LEX_OUTPUT_ROOT}.c"
3072 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3073 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3074 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3076 cat >>confdefs.h <<\_ACEOF
3077 #define YYTEXT_POINTER 1
3083 # Extract the first word of "bison", so it can be a program name with args.
3084 set dummy bison; ac_word=$2
3085 echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087 if test "${ac_cv_prog_YACC+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 if test -n "$YACC"; then
3091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_YACC="bison -y"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC=":"
3110 YACC=$ac_cv_prog_YACC
3111 if test -n "$YACC"; then
3112 echo "$as_me:$LINENO: result: $YACC" >&5
3113 echo "${ECHO_T}$YACC" >&6
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3119 # Extract the first word of "autoconf", so it can be a program name with args.
3120 set dummy autoconf; ac_word=$2
3121 echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 if test -n "$AUTOCONF"; then
3127 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_AUTOCONF="autoconf"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3146 AUTOCONF=$ac_cv_prog_AUTOCONF
3147 if test -n "$AUTOCONF"; then
3148 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3149 echo "${ECHO_T}$AUTOCONF" >&6
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3155 # Extract the first word of "strip", so it can be a program name with args.
3156 set dummy strip; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_STRIP+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$STRIP"; then
3163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_STRIP="strip"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3182 STRIP=$ac_cv_prog_STRIP
3183 if test -n "$STRIP"; then
3184 echo "$as_me:$LINENO: result: $STRIP" >&5
3185 echo "${ECHO_T}$STRIP" >&6
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3191 # Extract the first word of "as", so it can be a program name with args.
3192 set dummy as; ac_word=$2
3193 echo "$as_me:$LINENO: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_AS+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$AS"; then
3199 ac_cv_prog_AS="$AS" # Let the user override the test.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3219 if test -n "$AS"; then
3220 echo "$as_me:$LINENO: result: $AS" >&5
3221 echo "${ECHO_T}$AS" >&6
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3227 # Extract the first word of "cp", so it can be a program name with args.
3228 set dummy cp; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_CP+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if test -n "$CP"; then
3235 ac_cv_prog_CP="$CP" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3255 if test -n "$CP"; then
3256 echo "$as_me:$LINENO: result: $CP" >&5
3257 echo "${ECHO_T}$CP" >&6
3259 echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3266 if test "$YACC" = ":"; then
3267 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3268 echo "$as_me: error: Cannot find required program bison." >&2;}
3269 { (exit 1); exit 1; }; }
3272 if test "$LEX" = ":"; then
3273 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3274 echo "$as_me: error: Cannot find required program lex." >&2;}
3275 { (exit 1); exit 1; }; }
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 # Checking for header files.
3287 # ===========================================================================
3289 echo "$as_me:$LINENO: checking for egrep" >&5
3290 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3291 if test "${ac_cv_prog_egrep+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3295 then ac_cv_prog_egrep='grep -E'
3296 else ac_cv_prog_egrep='egrep'
3299 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3300 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3301 EGREP=$ac_cv_prog_egrep
3304 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3306 if test "${ac_cv_header_stdc+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 #include "confdefs.h"
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3334 if test -z "$ac_cpp_err"; then
3335 ac_cv_header_stdc=yes
3337 echo "$as_me: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 ac_cv_header_stdc=no
3341 rm -f conftest.err conftest.$ac_ext
3343 if test $ac_cv_header_stdc = yes; then
3344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3345 cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 #include "confdefs.h"
3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3352 $EGREP "memchr" >/dev/null 2>&1; then
3355 ac_cv_header_stdc=no
3361 if test $ac_cv_header_stdc = yes; then
3362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3363 cat >conftest.$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3365 #include "confdefs.h"
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 $EGREP "free" >/dev/null 2>&1; then
3373 ac_cv_header_stdc=no
3379 if test $ac_cv_header_stdc = yes; then
3380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3381 if test "$cross_compiling" = yes; then
3384 cat >conftest.$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3386 #include "confdefs.h"
3388 #if ((' ' & 0x0FF) == 0x020)
3389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3393 || ('j' <= (c) && (c) <= 'r') \
3394 || ('s' <= (c) && (c) <= 'z'))
3395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3403 for (i = 0; i < 256; i++)
3404 if (XOR (islower (i), ISLOWER (i))
3405 || toupper (i) != TOUPPER (i))
3410 rm -f conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3423 echo "$as_me: program exited with status $ac_status" >&5
3424 echo "$as_me: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 ac_cv_header_stdc=no
3429 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3434 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3435 if test $ac_cv_header_stdc = yes; then
3437 cat >>confdefs.h <<\_ACEOF
3438 #define STDC_HEADERS 1
3443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3454 inttypes.h stdint.h unistd.h
3456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3465 $ac_includes_default
3467 #include <$ac_header>
3469 rm -f conftest.$ac_objext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 eval "$as_ac_Header=yes"
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 eval "$as_ac_Header=no"
3487 rm -f conftest.$ac_objext conftest.$ac_ext
3489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3492 cat >>confdefs.h <<_ACEOF
3493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3502 for ac_header in getopt.h
3504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3506 echo "$as_me:$LINENO: checking for $ac_header" >&5
3507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3514 # Is the header compilable?
3515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3517 cat >conftest.$ac_ext <<_ACEOF
3518 #line $LINENO "configure"
3519 #include "confdefs.h"
3520 $ac_includes_default
3521 #include <$ac_header>
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 ac_header_compiler=yes
3537 echo "$as_me: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 ac_header_compiler=no
3541 rm -f conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3543 echo "${ECHO_T}$ac_header_compiler" >&6
3545 # Is the header present?
3546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 #include "confdefs.h"
3551 #include <$ac_header>
3553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } >/dev/null; then
3561 if test -s conftest.err; then
3562 ac_cpp_err=$ac_c_preproc_warn_flag
3569 if test -z "$ac_cpp_err"; then
3570 ac_header_preproc=yes
3572 echo "$as_me: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 ac_header_preproc=no
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc in
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3595 echo "$as_me:$LINENO: checking for $ac_header" >&5
3596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 eval "$as_ac_Header=$ac_header_preproc"
3602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3607 cat >>confdefs.h <<_ACEOF
3608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3616 for ac_header in unistd.h
3618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620 echo "$as_me:$LINENO: checking for $ac_header" >&5
3621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 # Is the header compilable?
3629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 #include "confdefs.h"
3634 $ac_includes_default
3635 #include <$ac_header>
3637 rm -f conftest.$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_header_compiler=yes
3651 echo "$as_me: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 ac_header_compiler=no
3655 rm -f conftest.$ac_objext conftest.$ac_ext
3656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3657 echo "${ECHO_T}$ac_header_compiler" >&6
3659 # Is the header present?
3660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #include <$ac_header>
3667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } >/dev/null; then
3675 if test -s conftest.err; then
3676 ac_cpp_err=$ac_c_preproc_warn_flag
3683 if test -z "$ac_cpp_err"; then
3684 ac_header_preproc=yes
3686 echo "$as_me: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 ac_header_preproc=no
3690 rm -f conftest.err conftest.$ac_ext
3691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692 echo "${ECHO_T}$ac_header_preproc" >&6
3694 # So? What about this header?
3695 case $ac_header_compiler:$ac_header_preproc in
3697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3709 echo "$as_me:$LINENO: checking for $ac_header" >&5
3710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 eval "$as_ac_Header=$ac_header_preproc"
3716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3721 cat >>confdefs.h <<_ACEOF
3722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3730 for ac_header in endian.h
3732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3734 echo "$as_me:$LINENO: checking for $ac_header" >&5
3735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3742 # Is the header compilable?
3743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3748 $ac_includes_default
3749 #include <$ac_header>
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 ac_header_compiler=yes
3765 echo "$as_me: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3767 ac_header_compiler=no
3769 rm -f conftest.$ac_objext conftest.$ac_ext
3770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3771 echo "${ECHO_T}$ac_header_compiler" >&6
3773 # Is the header present?
3774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3778 #include "confdefs.h"
3779 #include <$ac_header>
3781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784 grep -v '^ *+' conftest.er1 >conftest.err
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } >/dev/null; then
3789 if test -s conftest.err; then
3790 ac_cpp_err=$ac_c_preproc_warn_flag
3797 if test -z "$ac_cpp_err"; then
3798 ac_header_preproc=yes
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 ac_header_preproc=no
3804 rm -f conftest.err conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6
3808 # So? What about this header?
3809 case $ac_header_compiler:$ac_header_preproc in
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3823 echo "$as_me:$LINENO: checking for $ac_header" >&5
3824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 eval "$as_ac_Header=$ac_header_preproc"
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3835 cat >>confdefs.h <<_ACEOF
3836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3844 for ac_header in machine/endian.h
3846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3848 echo "$as_me:$LINENO: checking for $ac_header" >&5
3849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856 # Is the header compilable?
3857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3860 #line $LINENO "configure"
3861 #include "confdefs.h"
3862 $ac_includes_default
3863 #include <$ac_header>
3865 rm -f conftest.$ac_objext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867 (eval $ac_compile) 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_header_compiler=yes
3879 echo "$as_me: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 ac_header_compiler=no
3883 rm -f conftest.$ac_objext conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3885 echo "${ECHO_T}$ac_header_compiler" >&6
3887 # Is the header present?
3888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3890 cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3892 #include "confdefs.h"
3893 #include <$ac_header>
3895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null; then
3903 if test -s conftest.err; then
3904 ac_cpp_err=$ac_c_preproc_warn_flag
3911 if test -z "$ac_cpp_err"; then
3912 ac_header_preproc=yes
3914 echo "$as_me: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 ac_header_preproc=no
3918 rm -f conftest.err conftest.$ac_ext
3919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3920 echo "${ECHO_T}$ac_header_preproc" >&6
3922 # So? What about this header?
3923 case $ac_header_compiler:$ac_header_preproc in
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3937 echo "$as_me:$LINENO: checking for $ac_header" >&5
3938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 eval "$as_ac_Header=$ac_header_preproc"
3944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3958 for ac_header in malloc.h
3960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3962 echo "$as_me:$LINENO: checking for $ac_header" >&5
3963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3970 # Is the header compilable?
3971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3974 #line $LINENO "configure"
3975 #include "confdefs.h"
3976 $ac_includes_default
3977 #include <$ac_header>
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_header_compiler=yes
3993 echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 ac_header_compiler=no
3997 rm -f conftest.$ac_objext conftest.$ac_ext
3998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3999 echo "${ECHO_T}$ac_header_compiler" >&6
4001 # Is the header present?
4002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4004 cat >conftest.$ac_ext <<_ACEOF
4005 #line $LINENO "configure"
4006 #include "confdefs.h"
4007 #include <$ac_header>
4009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } >/dev/null; then
4017 if test -s conftest.err; then
4018 ac_cpp_err=$ac_c_preproc_warn_flag
4025 if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4028 echo "$as_me: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4030 ac_header_preproc=no
4032 rm -f conftest.err conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4034 echo "${ECHO_T}$ac_header_preproc" >&6
4036 # So? What about this header?
4037 case $ac_header_compiler:$ac_header_preproc in
4039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 eval "$as_ac_Header=$ac_header_preproc"
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063 cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 for ac_header in sys/isa_defs.h
4074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4084 # Is the header compilable?
4085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4088 #line $LINENO "configure"
4089 #include "confdefs.h"
4090 $ac_includes_default
4091 #include <$ac_header>
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_header_compiler=yes
4107 echo "$as_me: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 ac_header_compiler=no
4111 rm -f conftest.$ac_objext conftest.$ac_ext
4112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4113 echo "${ECHO_T}$ac_header_compiler" >&6
4115 # Is the header present?
4116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4118 cat >conftest.$ac_ext <<_ACEOF
4119 #line $LINENO "configure"
4120 #include "confdefs.h"
4121 #include <$ac_header>
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null; then
4131 if test -s conftest.err; then
4132 ac_cpp_err=$ac_c_preproc_warn_flag
4139 if test -z "$ac_cpp_err"; then
4140 ac_header_preproc=yes
4142 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 ac_header_preproc=no
4146 rm -f conftest.err conftest.$ac_ext
4147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6
4150 # So? What about this header?
4151 case $ac_header_compiler:$ac_header_preproc in
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 eval "$as_ac_Header=$ac_header_preproc"
4172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4177 cat >>confdefs.h <<_ACEOF
4178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 for ac_header in sys/socket.h
4188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4190 echo "$as_me:$LINENO: checking for $ac_header" >&5
4191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4198 # Is the header compilable?
4199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 #include "confdefs.h"
4204 $ac_includes_default
4205 #include <$ac_header>
4207 rm -f conftest.$ac_objext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -s conftest.$ac_objext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_header_compiler=yes
4221 echo "$as_me: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4223 ac_header_compiler=no
4225 rm -f conftest.$ac_objext conftest.$ac_ext
4226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4227 echo "${ECHO_T}$ac_header_compiler" >&6
4229 # Is the header present?
4230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4232 cat >conftest.$ac_ext <<_ACEOF
4233 #line $LINENO "configure"
4234 #include "confdefs.h"
4235 #include <$ac_header>
4237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null; then
4245 if test -s conftest.err; then
4246 ac_cpp_err=$ac_c_preproc_warn_flag
4253 if test -z "$ac_cpp_err"; then
4254 ac_header_preproc=yes
4256 echo "$as_me: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 ac_header_preproc=no
4260 rm -f conftest.err conftest.$ac_ext
4261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4262 echo "${ECHO_T}$ac_header_preproc" >&6
4264 # So? What about this header?
4265 case $ac_header_compiler:$ac_header_preproc in
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4279 echo "$as_me:$LINENO: checking for $ac_header" >&5
4280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 eval "$as_ac_Header=$ac_header_preproc"
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4306 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4307 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4308 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 cat >conftest.$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4314 #include "confdefs.h"
4315 #include <sys/types.h>
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 eval "$as_ac_Header=yes"
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 eval "$as_ac_Header=no"
4345 rm -f conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4350 cat >>confdefs.h <<_ACEOF
4351 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4354 ac_header_dirent=$ac_hdr; break
4358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4359 if test $ac_header_dirent = dirent.h; then
4360 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4361 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4362 if test "${ac_cv_search_opendir+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_func_search_save_LIBS=$LIBS
4366 ac_cv_search_opendir=no
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4369 #include "confdefs.h"
4371 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest$ac_exeext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_search_opendir="none required"
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4404 if test "$ac_cv_search_opendir" = no; then
4405 for ac_lib in dir; do
4406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4407 cat >conftest.$ac_ext <<_ACEOF
4408 #line $LINENO "configure"
4409 #include "confdefs.h"
4411 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try='test -s conftest$ac_exeext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_search_opendir="-l$ac_lib"
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4447 LIBS=$ac_func_search_save_LIBS
4449 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4450 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4451 if test "$ac_cv_search_opendir" != no; then
4452 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4457 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4458 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4459 if test "${ac_cv_search_opendir+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_func_search_save_LIBS=$LIBS
4463 ac_cv_search_opendir=no
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_search_opendir="none required"
4497 echo "$as_me: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501 if test "$ac_cv_search_opendir" = no; then
4503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 #include "confdefs.h"
4508 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -s conftest$ac_exeext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 ac_cv_search_opendir="-l$ac_lib"
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4544 LIBS=$ac_func_search_save_LIBS
4546 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4547 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4548 if test "$ac_cv_search_opendir" != no; then
4549 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4556 # This must be after CPP
4558 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
4559 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
4560 if test "${s51_cv_fd+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 sdcc_cv_fd="unknown"
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 #include "confdefs.h"
4568 #include <sys/time.h>
4573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 $EGREP "yes" >/dev/null 2>&1; then
4575 sdcc_cv_fd="<sys/time.h>"
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 #include "confdefs.h"
4583 #include <sys/types.h>
4588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 $EGREP "yes" >/dev/null 2>&1; then
4590 sdcc_cv_fd="<sys/types.h>"
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4596 #include "confdefs.h"
4598 #include <sys/select.h>
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "yes" >/dev/null 2>&1; then
4605 sdcc_cv_fd="<sys/types.h>"
4610 echo "$as_me:$LINENO: result: $s51_cv_fd" >&5
4611 echo "${ECHO_T}$s51_cv_fd" >&6
4613 cat >>confdefs.h <<\_ACEOF
4614 #define FD_HEADER_OK 0
4617 if echo $sdcc_cv_fd|grep time >/dev/null 2>&1; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define FD_NEED_TIME_H 1
4622 cat >>confdefs.h <<\_ACEOF
4623 #define FD_HEADER_OK 1
4627 cat >>confdefs.h <<\_ACEOF
4628 #define FD_NEED_TIME_H 0
4632 if echo $sdcc_cv_fd|grep types >/dev/null 2>&1; then
4633 cat >>confdefs.h <<\_ACEOF
4634 #define FD_NEED_TYPES_H 1
4637 cat >>confdefs.h <<\_ACEOF
4638 #define FD_HEADER_OK 1
4642 cat >>confdefs.h <<\_ACEOF
4643 #define FD_NEED_TYPES_H 0
4647 if echo $sdcc_cv_fd|grep select >/dev/null 2>&1; then
4648 cat >>confdefs.h <<\_ACEOF
4649 #define FD_NEED_SELECT_H 1
4652 cat >>confdefs.h <<\_ACEOF
4653 #define FD_HEADER_OK 1
4657 cat >>confdefs.h <<\_ACEOF
4658 #define FD_NEED_SELECT_H 0
4663 cat >>confdefs.h <<_ACEOF
4664 #define HEADER_FD ${sdcc_cv_fd}
4669 # Checking for functions
4670 # ===========================================================================
4679 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
4681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4682 echo "$as_me:$LINENO: checking for $ac_func" >&5
4683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4684 if eval "test \"\${$as_ac_var+set}\" = set"; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line $LINENO "configure"
4689 #include "confdefs.h"
4690 /* System header to define __stub macros and hopefully few prototypes,
4691 which can conflict with char $ac_func (); below. */
4693 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4705 /* The GNU C library defines this for functions which it implements
4706 to always fail with ENOSYS. Some functions are actually named
4707 something starting with __ and the normal name is an alias. */
4708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 eval "$as_ac_var=yes"
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 eval "$as_ac_var=no"
4736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4740 if test `eval echo '${'$as_ac_var'}'` = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4753 for ac_func in strchr memcpy vsnprintf snprintf vsprintf
4755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_func" >&5
4757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_var+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func (); below. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 eval "$as_ac_var=yes"
4806 echo "$as_me: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 eval "$as_ac_var=no"
4810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4814 if test `eval echo '${'$as_ac_var'}'` = yes; then
4815 cat >>confdefs.h <<_ACEOF
4816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4823 for ac_func in mkstemp
4825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4826 echo "$as_me:$LINENO: checking for $ac_func" >&5
4827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4828 if eval "test \"\${$as_ac_var+set}\" = set"; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #line $LINENO "configure"
4833 #include "confdefs.h"
4834 /* System header to define __stub macros and hopefully few prototypes,
4835 which can conflict with char $ac_func (); below. */
4837 /* Override any gcc2 internal prototype to avoid an error. */
4841 /* We use char because int might match the return type of a gcc2
4842 builtin and then its argument prototype would still apply. */
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 eval "$as_ac_var=yes"
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 eval "$as_ac_var=no"
4880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4884 if test `eval echo '${'$as_ac_var'}'` = yes; then
4885 cat >>confdefs.h <<_ACEOF
4886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4893 for ac_func in fgets
4895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4896 echo "$as_me:$LINENO: checking for $ac_func" >&5
4897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4898 if eval "test \"\${$as_ac_var+set}\" = set"; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4903 #include "confdefs.h"
4904 /* System header to define __stub macros and hopefully few prototypes,
4905 which can conflict with char $ac_func (); below. */
4907 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4919 /* The GNU C library defines this for functions which it implements
4920 to always fail with ENOSYS. Some functions are actually named
4921 something starting with __ and the normal name is an alias. */
4922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 eval "$as_ac_var=yes"
4946 echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 eval "$as_ac_var=no"
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4954 if test `eval echo '${'$as_ac_var'}'` = yes; then
4955 cat >>confdefs.h <<_ACEOF
4956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 for ac_func in yylex
4965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4966 echo "$as_me:$LINENO: checking for $ac_func" >&5
4967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4968 if eval "test \"\${$as_ac_var+set}\" = set"; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 cat >conftest.$ac_ext <<_ACEOF
4972 #line $LINENO "configure"
4973 #include "confdefs.h"
4974 /* System header to define __stub macros and hopefully few prototypes,
4975 which can conflict with char $ac_func (); below. */
4977 /* Override any gcc2 internal prototype to avoid an error. */
4981 /* We use char because int might match the return type of a gcc2
4982 builtin and then its argument prototype would still apply. */
4989 /* The GNU C library defines this for functions which it implements
4990 to always fail with ENOSYS. Some functions are actually named
4991 something starting with __ and the normal name is an alias. */
4992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -s conftest$ac_exeext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 eval "$as_ac_var=yes"
5016 echo "$as_me: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 eval "$as_ac_var=no"
5020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5024 if test `eval echo '${'$as_ac_var'}'` = yes; then
5025 cat >>confdefs.h <<_ACEOF
5026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5033 # check if -lsocket && -lxnet is required to compile socket stuff
5034 echo "$as_me:$LINENO: checking for library containing socket" >&5
5035 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5036 if test "${ac_cv_search_socket+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_func_search_save_LIBS=$LIBS
5040 ac_cv_search_socket=no
5041 cat >conftest.$ac_ext <<_ACEOF
5042 #line $LINENO "configure"
5043 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_search_socket="none required"
5074 echo "$as_me: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5078 if test "$ac_cv_search_socket" = no; then
5079 for ac_lib in socket; do
5080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 #include "confdefs.h"
5085 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5100 rm -f conftest.$ac_objext conftest$ac_exeext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102 (eval $ac_link) 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_cv_search_socket="-l$ac_lib"
5115 echo "$as_me: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_func_search_save_LIBS
5123 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5124 echo "${ECHO_T}$ac_cv_search_socket" >&6
5125 if test "$ac_cv_search_socket" != no; then
5126 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5130 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
5131 echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6
5132 if test "${ac_cv_search_inet_addr+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_func_search_save_LIBS=$LIBS
5136 ac_cv_search_inet_addr=no
5137 cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 #include "confdefs.h"
5141 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158 (eval $ac_link) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -s conftest$ac_exeext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_search_inet_addr="none required"
5170 echo "$as_me: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 if test "$ac_cv_search_inet_addr" = no; then
5175 for ac_lib in nsl xnet; do
5176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5181 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198 (eval $ac_link) 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_search_inet_addr="-l$ac_lib"
5211 echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_func_search_save_LIBS
5219 echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
5220 echo "${ECHO_T}$ac_cv_search_inet_addr" >&6
5221 if test "$ac_cv_search_inet_addr" != no; then
5222 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
5230 # DD_COPT macro checks if the compiler specified as the 1st parameter
5231 # supports option specified as the 2nd parameter
5232 # For example: DD_CPORT(CXX, fPIC)
5237 # Checking characteristics of compilers and other programs
5238 # --------------------------------------------------------
5239 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5240 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
5241 if test "${sdcc_cv_MM+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 echo "#include <stdio.h>" >_test_.c
5246 $CPP -v -MM _test_.c 1>&5 2>&5
5247 if test "$?" = "0"; then
5254 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5255 echo "${ECHO_T}$sdcc_cv_MM" >&6
5259 # This is the first time when CFLAGS are set/modified!!
5261 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5262 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
5263 if test "${sdcc_cv_CCggdb+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5271 if test "$?" = "0"; then
5272 sdcc_cv_CCggdb="yes"
5276 rm -f _test_.* a.out
5278 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5279 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
5281 if test "$sdcc_cv_CCggdb" = "yes"; then
5286 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5287 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
5288 if test "${sdcc_cv_CCpipe+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 $CC -v -pipe -c _test_.c 1>&5 2>&5
5296 if test "$?" = "0"; then
5297 sdcc_cv_CCpipe="yes"
5301 rm -f _test_.* a.out
5303 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5304 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
5306 if test "$sdcc_cv_CCpipe" = "yes"; then
5307 CFLAGS="$CFLAGS -pipe"
5311 # Checks for typedefs, structures, and compiler characteristics.
5312 # ===========================================================================
5313 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5314 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5315 if test "${ac_cv_type_signal+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 #include "confdefs.h"
5321 #include <sys/types.h>
5327 extern "C" void (*signal (int, void (*)(int)))(int);
5329 void (*signal ()) ();
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_type_signal=void
5354 echo "$as_me: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5356 ac_cv_type_signal=int
5358 rm -f conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5361 echo "${ECHO_T}$ac_cv_type_signal" >&6
5363 cat >>confdefs.h <<_ACEOF
5364 #define RETSIGTYPE $ac_cv_type_signal
5369 if test "$cross_compiling" = "no"; then
5370 echo "$as_me:$LINENO: checking for char" >&5
5371 echo $ECHO_N "checking for char... $ECHO_C" >&6
5372 if test "${ac_cv_type_char+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 cat >conftest.$ac_ext <<_ACEOF
5376 #line $LINENO "configure"
5377 #include "confdefs.h"
5378 $ac_includes_default
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5411 echo "${ECHO_T}$ac_cv_type_char" >&6
5413 echo "$as_me:$LINENO: checking size of char" >&5
5414 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5415 if test "${ac_cv_sizeof_char+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 if test "$ac_cv_type_char" = yes; then
5419 # The cast to unsigned long works around a bug in the HP C Compiler
5420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5422 # This bug is HP SR number 8606223364.
5423 if test "$cross_compiling" = yes; then
5424 # Depending upon the size, compute the lo and hi bounds.
5425 cat >conftest.$ac_ext <<_ACEOF
5426 #line $LINENO "configure"
5427 #include "confdefs.h"
5428 $ac_includes_default
5432 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 #include "confdefs.h"
5456 $ac_includes_default
5460 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_hi=$ac_mid; break
5481 echo "$as_me: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 ac_lo=`expr $ac_mid + 1`
5484 if test $ac_lo -le $ac_mid; then
5488 ac_mid=`expr 2 '*' $ac_mid + 1`
5490 rm -f conftest.$ac_objext conftest.$ac_ext
5493 echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 cat >conftest.$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 #include "confdefs.h"
5498 $ac_includes_default
5502 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 #include "confdefs.h"
5526 $ac_includes_default
5530 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_lo=$ac_mid; break
5551 echo "$as_me: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5553 ac_hi=`expr '(' $ac_mid ')' - 1`
5554 if test $ac_mid -le $ac_hi; then
5558 ac_mid=`expr 2 '*' $ac_mid`
5560 rm -f conftest.$ac_objext conftest.$ac_ext
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5567 rm -f conftest.$ac_objext conftest.$ac_ext
5569 rm -f conftest.$ac_objext conftest.$ac_ext
5570 # Binary search between lo and hi bounds.
5571 while test "x$ac_lo" != "x$ac_hi"; do
5572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5573 cat >conftest.$ac_ext <<_ACEOF
5574 #line $LINENO "configure"
5575 #include "confdefs.h"
5576 $ac_includes_default
5580 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5601 echo "$as_me: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5603 ac_lo=`expr '(' $ac_mid ')' + 1`
5605 rm -f conftest.$ac_objext conftest.$ac_ext
5608 ?*) ac_cv_sizeof_char=$ac_lo;;
5609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
5610 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
5611 { (exit 1); exit 1; }; } ;;
5614 if test "$cross_compiling" = yes; then
5615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5616 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5617 { (exit 1); exit 1; }; }
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 #include "confdefs.h"
5622 $ac_includes_default
5623 long longval () { return (long) (sizeof (char)); }
5624 unsigned long ulongval () { return (long) (sizeof (char)); }
5631 FILE *f = fopen ("conftest.val", "w");
5634 if (((long) (sizeof (char))) < 0)
5636 long i = longval ();
5637 if (i != ((long) (sizeof (char))))
5639 fprintf (f, "%ld\n", i);
5643 unsigned long i = ulongval ();
5644 if (i != ((long) (sizeof (char))))
5646 fprintf (f, "%lu\n", i);
5648 exit (ferror (f) || fclose (f) != 0);
5654 rm -f conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_sizeof_char=`cat conftest.val`
5667 echo "$as_me: program exited with status $ac_status" >&5
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
5672 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
5673 { (exit 1); exit 1; }; }
5675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5684 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5685 cat >>confdefs.h <<_ACEOF
5686 #define SIZEOF_CHAR $ac_cv_sizeof_char
5690 echo "$as_me:$LINENO: checking for short" >&5
5691 echo $ECHO_N "checking for short... $ECHO_C" >&6
5692 if test "${ac_cv_type_short+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 #include "confdefs.h"
5698 $ac_includes_default
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -s conftest.$ac_objext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_cv_type_short=yes
5724 echo "$as_me: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5728 rm -f conftest.$ac_objext conftest.$ac_ext
5730 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5731 echo "${ECHO_T}$ac_cv_type_short" >&6
5733 echo "$as_me:$LINENO: checking size of short" >&5
5734 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5735 if test "${ac_cv_sizeof_short+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test "$ac_cv_type_short" = yes; then
5739 # The cast to unsigned long works around a bug in the HP C Compiler
5740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5742 # This bug is HP SR number 8606223364.
5743 if test "$cross_compiling" = yes; then
5744 # Depending upon the size, compute the lo and hi bounds.
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line $LINENO "configure"
5747 #include "confdefs.h"
5748 $ac_includes_default
5752 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5773 cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5775 #include "confdefs.h"
5776 $ac_includes_default
5780 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5787 rm -f conftest.$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_hi=$ac_mid; break
5801 echo "$as_me: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 ac_lo=`expr $ac_mid + 1`
5804 if test $ac_lo -le $ac_mid; then
5808 ac_mid=`expr 2 '*' $ac_mid + 1`
5810 rm -f conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 #include "confdefs.h"
5818 $ac_includes_default
5822 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5843 cat >conftest.$ac_ext <<_ACEOF
5844 #line $LINENO "configure"
5845 #include "confdefs.h"
5846 $ac_includes_default
5850 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_lo=$ac_mid; break
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 ac_hi=`expr '(' $ac_mid ')' - 1`
5874 if test $ac_mid -le $ac_hi; then
5878 ac_mid=`expr 2 '*' $ac_mid`
5880 rm -f conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5887 rm -f conftest.$ac_objext conftest.$ac_ext
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5890 # Binary search between lo and hi bounds.
5891 while test "x$ac_lo" != "x$ac_hi"; do
5892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5896 $ac_includes_default
5900 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5921 echo "$as_me: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5925 rm -f conftest.$ac_objext conftest.$ac_ext
5928 ?*) ac_cv_sizeof_short=$ac_lo;;
5929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
5930 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
5931 { (exit 1); exit 1; }; } ;;
5934 if test "$cross_compiling" = yes; then
5935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5936 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5937 { (exit 1); exit 1; }; }
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5942 $ac_includes_default
5943 long longval () { return (long) (sizeof (short)); }
5944 unsigned long ulongval () { return (long) (sizeof (short)); }
5951 FILE *f = fopen ("conftest.val", "w");
5954 if (((long) (sizeof (short))) < 0)
5956 long i = longval ();
5957 if (i != ((long) (sizeof (short))))
5959 fprintf (f, "%ld\n", i);
5963 unsigned long i = ulongval ();
5964 if (i != ((long) (sizeof (short))))
5966 fprintf (f, "%lu\n", i);
5968 exit (ferror (f) || fclose (f) != 0);
5974 rm -f conftest$ac_exeext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976 (eval $ac_link) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 ac_cv_sizeof_short=`cat conftest.val`
5987 echo "$as_me: program exited with status $ac_status" >&5
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5991 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
5992 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
5993 { (exit 1); exit 1; }; }
5995 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6000 ac_cv_sizeof_short=0
6003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6004 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6005 cat >>confdefs.h <<_ACEOF
6006 #define SIZEOF_SHORT $ac_cv_sizeof_short
6010 echo "$as_me:$LINENO: checking for int" >&5
6011 echo $ECHO_N "checking for int... $ECHO_C" >&6
6012 if test "${ac_cv_type_int+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6018 $ac_includes_default
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6048 rm -f conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6051 echo "${ECHO_T}$ac_cv_type_int" >&6
6053 echo "$as_me:$LINENO: checking size of int" >&5
6054 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6055 if test "${ac_cv_sizeof_int+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test "$ac_cv_type_int" = yes; then
6059 # The cast to unsigned long works around a bug in the HP C Compiler
6060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6062 # This bug is HP SR number 8606223364.
6063 if test "$cross_compiling" = yes; then
6064 # Depending upon the size, compute the lo and hi bounds.
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6068 $ac_includes_default
6072 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 #include "confdefs.h"
6096 $ac_includes_default
6100 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_hi=$ac_mid; break
6121 echo "$as_me: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6123 ac_lo=`expr $ac_mid + 1`
6124 if test $ac_lo -le $ac_mid; then
6128 ac_mid=`expr 2 '*' $ac_mid + 1`
6130 rm -f conftest.$ac_objext conftest.$ac_ext
6133 echo "$as_me: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6138 $ac_includes_default
6142 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6149 rm -f conftest.$ac_objext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6151 (eval $ac_compile) 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6163 cat >conftest.$ac_ext <<_ACEOF
6164 #line $LINENO "configure"
6165 #include "confdefs.h"
6166 $ac_includes_default
6170 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_lo=$ac_mid; break
6191 echo "$as_me: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 ac_hi=`expr '(' $ac_mid ')' - 1`
6194 if test $ac_mid -le $ac_hi; then
6198 ac_mid=`expr 2 '*' $ac_mid`
6200 rm -f conftest.$ac_objext conftest.$ac_ext
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6207 rm -f conftest.$ac_objext conftest.$ac_ext
6209 rm -f conftest.$ac_objext conftest.$ac_ext
6210 # Binary search between lo and hi bounds.
6211 while test "x$ac_lo" != "x$ac_hi"; do
6212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6213 cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6216 $ac_includes_default
6220 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6241 echo "$as_me: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 ac_lo=`expr '(' $ac_mid ')' + 1`
6245 rm -f conftest.$ac_objext conftest.$ac_ext
6248 ?*) ac_cv_sizeof_int=$ac_lo;;
6249 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6250 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6251 { (exit 1); exit 1; }; } ;;
6254 if test "$cross_compiling" = yes; then
6255 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6256 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6257 { (exit 1); exit 1; }; }
6259 cat >conftest.$ac_ext <<_ACEOF
6260 #line $LINENO "configure"
6261 #include "confdefs.h"
6262 $ac_includes_default
6263 long longval () { return (long) (sizeof (int)); }
6264 unsigned long ulongval () { return (long) (sizeof (int)); }
6271 FILE *f = fopen ("conftest.val", "w");
6274 if (((long) (sizeof (int))) < 0)
6276 long i = longval ();
6277 if (i != ((long) (sizeof (int))))
6279 fprintf (f, "%ld\n", i);
6283 unsigned long i = ulongval ();
6284 if (i != ((long) (sizeof (int))))
6286 fprintf (f, "%lu\n", i);
6288 exit (ferror (f) || fclose (f) != 0);
6294 rm -f conftest$ac_exeext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6296 (eval $ac_link) 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6305 ac_cv_sizeof_int=`cat conftest.val`
6307 echo "$as_me: program exited with status $ac_status" >&5
6308 echo "$as_me: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6312 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6313 { (exit 1); exit 1; }; }
6315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6323 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6324 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6325 cat >>confdefs.h <<_ACEOF
6326 #define SIZEOF_INT $ac_cv_sizeof_int
6330 echo "$as_me:$LINENO: checking for long" >&5
6331 echo $ECHO_N "checking for long... $ECHO_C" >&6
6332 if test "${ac_cv_type_long+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 #include "confdefs.h"
6338 $ac_includes_default
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6364 echo "$as_me: failed program was:" >&5
6365 cat conftest.$ac_ext >&5
6368 rm -f conftest.$ac_objext conftest.$ac_ext
6370 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6371 echo "${ECHO_T}$ac_cv_type_long" >&6
6373 echo "$as_me:$LINENO: checking size of long" >&5
6374 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6375 if test "${ac_cv_sizeof_long+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 if test "$ac_cv_type_long" = yes; then
6379 # The cast to unsigned long works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 if test "$cross_compiling" = yes; then
6384 # Depending upon the size, compute the lo and hi bounds.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 #line $LINENO "configure"
6387 #include "confdefs.h"
6388 $ac_includes_default
6392 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6413 cat >conftest.$ac_ext <<_ACEOF
6414 #line $LINENO "configure"
6415 #include "confdefs.h"
6416 $ac_includes_default
6420 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_hi=$ac_mid; break
6441 echo "$as_me: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6443 ac_lo=`expr $ac_mid + 1`
6444 if test $ac_lo -le $ac_mid; then
6448 ac_mid=`expr 2 '*' $ac_mid + 1`
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6458 $ac_includes_default
6462 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest.$ac_objext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6483 cat >conftest.$ac_ext <<_ACEOF
6484 #line $LINENO "configure"
6485 #include "confdefs.h"
6486 $ac_includes_default
6490 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_lo=$ac_mid; break
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 ac_hi=`expr '(' $ac_mid ')' - 1`
6514 if test $ac_mid -le $ac_hi; then
6518 ac_mid=`expr 2 '*' $ac_mid`
6520 rm -f conftest.$ac_objext conftest.$ac_ext
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6527 rm -f conftest.$ac_objext conftest.$ac_ext
6529 rm -f conftest.$ac_objext conftest.$ac_ext
6530 # Binary search between lo and hi bounds.
6531 while test "x$ac_lo" != "x$ac_hi"; do
6532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6533 cat >conftest.$ac_ext <<_ACEOF
6534 #line $LINENO "configure"
6535 #include "confdefs.h"
6536 $ac_includes_default
6540 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6561 echo "$as_me: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 ac_lo=`expr '(' $ac_mid ')' + 1`
6565 rm -f conftest.$ac_objext conftest.$ac_ext
6568 ?*) ac_cv_sizeof_long=$ac_lo;;
6569 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6570 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6571 { (exit 1); exit 1; }; } ;;
6574 if test "$cross_compiling" = yes; then
6575 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6577 { (exit 1); exit 1; }; }
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line $LINENO "configure"
6581 #include "confdefs.h"
6582 $ac_includes_default
6583 long longval () { return (long) (sizeof (long)); }
6584 unsigned long ulongval () { return (long) (sizeof (long)); }
6591 FILE *f = fopen ("conftest.val", "w");
6594 if (((long) (sizeof (long))) < 0)
6596 long i = longval ();
6597 if (i != ((long) (sizeof (long))))
6599 fprintf (f, "%ld\n", i);
6603 unsigned long i = ulongval ();
6604 if (i != ((long) (sizeof (long))))
6606 fprintf (f, "%lu\n", i);
6608 exit (ferror (f) || fclose (f) != 0);
6614 rm -f conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_sizeof_long=`cat conftest.val`
6627 echo "$as_me: program exited with status $ac_status" >&5
6628 echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6632 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6633 { (exit 1); exit 1; }; }
6635 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6644 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6645 cat >>confdefs.h <<_ACEOF
6646 #define SIZEOF_LONG $ac_cv_sizeof_long
6650 echo "$as_me:$LINENO: checking for long long" >&5
6651 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6652 if test "${ac_cv_type_long_long+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 #include "confdefs.h"
6658 $ac_includes_default
6662 if ((long long *) 0)
6664 if (sizeof (long long))
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_type_long_long=yes
6684 echo "$as_me: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6686 ac_cv_type_long_long=no
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6691 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6693 echo "$as_me:$LINENO: checking size of long long" >&5
6694 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6695 if test "${ac_cv_sizeof_long_long+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 if test "$ac_cv_type_long_long" = yes; then
6699 # The cast to unsigned long works around a bug in the HP C Compiler
6700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6702 # This bug is HP SR number 8606223364.
6703 if test "$cross_compiling" = yes; then
6704 # Depending upon the size, compute the lo and hi bounds.
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 $ac_includes_default
6712 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 (eval $ac_compile) 2>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 #include "confdefs.h"
6736 $ac_includes_default
6740 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6747 rm -f conftest.$ac_objext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749 (eval $ac_compile) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest.$ac_objext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_hi=$ac_mid; break
6761 echo "$as_me: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6763 ac_lo=`expr $ac_mid + 1`
6764 if test $ac_lo -le $ac_mid; then
6768 ac_mid=`expr 2 '*' $ac_mid + 1`
6770 rm -f conftest.$ac_objext conftest.$ac_ext
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6778 $ac_includes_default
6782 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -s conftest.$ac_objext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6803 cat >conftest.$ac_ext <<_ACEOF
6804 #line $LINENO "configure"
6805 #include "confdefs.h"
6806 $ac_includes_default
6810 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -s conftest.$ac_objext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_lo=$ac_mid; break
6831 echo "$as_me: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6838 ac_mid=`expr 2 '*' $ac_mid`
6840 rm -f conftest.$ac_objext conftest.$ac_ext
6843 echo "$as_me: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6847 rm -f conftest.$ac_objext conftest.$ac_ext
6849 rm -f conftest.$ac_objext conftest.$ac_ext
6850 # Binary search between lo and hi bounds.
6851 while test "x$ac_lo" != "x$ac_hi"; do
6852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line $LINENO "configure"
6855 #include "confdefs.h"
6856 $ac_includes_default
6860 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6867 rm -f conftest.$ac_objext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6881 echo "$as_me: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 ac_lo=`expr '(' $ac_mid ')' + 1`
6885 rm -f conftest.$ac_objext conftest.$ac_ext
6888 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
6890 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
6891 { (exit 1); exit 1; }; } ;;
6894 if test "$cross_compiling" = yes; then
6895 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6896 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6897 { (exit 1); exit 1; }; }
6899 cat >conftest.$ac_ext <<_ACEOF
6900 #line $LINENO "configure"
6901 #include "confdefs.h"
6902 $ac_includes_default
6903 long longval () { return (long) (sizeof (long long)); }
6904 unsigned long ulongval () { return (long) (sizeof (long long)); }
6911 FILE *f = fopen ("conftest.val", "w");
6914 if (((long) (sizeof (long long))) < 0)
6916 long i = longval ();
6917 if (i != ((long) (sizeof (long long))))
6919 fprintf (f, "%ld\n", i);
6923 unsigned long i = ulongval ();
6924 if (i != ((long) (sizeof (long long))))
6926 fprintf (f, "%lu\n", i);
6928 exit (ferror (f) || fclose (f) != 0);
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_sizeof_long_long=`cat conftest.val`
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
6952 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
6953 { (exit 1); exit 1; }; }
6955 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6960 ac_cv_sizeof_long_long=0
6963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6964 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6965 cat >>confdefs.h <<_ACEOF
6966 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6971 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
6973 ac_cv_sizeof_short=2
6976 ac_cv_sizeof_long_long=4
6985 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6989 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6993 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6997 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
7004 echo "$as_me:$LINENO: checking type name for byte" >&5
7005 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
7006 TYPE_BYTE=`type_name 1`
7007 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
7008 echo "${ECHO_T}$TYPE_BYTE" >&6
7009 echo "$as_me:$LINENO: checking type name for word" >&5
7010 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
7011 TYPE_WORD=`type_name 2`
7012 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
7013 echo "${ECHO_T}$TYPE_WORD" >&6
7014 echo "$as_me:$LINENO: checking type name for dword" >&5
7015 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
7016 TYPE_DWORD=`type_name 4`
7017 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
7018 echo "${ECHO_T}$TYPE_DWORD" >&6
7019 cat >>confdefs.h <<_ACEOF
7020 #define TYPE_BYTE $TYPE_BYTE
7023 cat >>confdefs.h <<_ACEOF
7024 #define TYPE_WORD $TYPE_WORD
7027 cat >>confdefs.h <<_ACEOF
7028 #define TYPE_DWORD $TYPE_DWORD
7032 if echo $TYPE_DWORD|grep short >/dev/null; then
7034 elif echo $TYPE_DWORD|grep long >/dev/null; then
7040 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
7041 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
7045 cat >>confdefs.h <<_ACEOF
7049 cat >>confdefs.h <<_ACEOF
7057 if test "${prefix}" = "NONE"; then
7062 sdcc_datadir=${datadir}/sdcc
7065 # For some unknown reason, putting this assignment in a subshell
7066 # like this causes the rvalue to be fully substituted. We need this
7067 # for the defines below to generate the right thing. We keep this
7068 # separate from the substituted sdcc_datadir because we want the
7069 # latter for makefiles.
7070 if test "${datadir}" = "\${prefix}/share"; then
7071 sdcc_datadir_tmp=${prefix}/share/sdcc
7073 sdcc_datadir_tmp=${datadir}/sdcc
7076 if test "${includedir}" = "\${prefix}/include"; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define STANDARD_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
7081 cat >>confdefs.h <<_ACEOF
7082 #define SDCC_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
7086 cat >>confdefs.h <<_ACEOF
7087 #define STANDARD_INCLUDE_DIR "${includedir}"
7090 cat >>confdefs.h <<_ACEOF
7091 #define SDCC_INCLUDE_DIR "${includedir}"
7096 cat >>confdefs.h <<_ACEOF
7097 #define SDCC_LIB_DIR "${sdcc_datadir_tmp}/lib"
7100 cat >>confdefs.h <<_ACEOF
7101 #define STD_LIB "libsdcc"
7104 cat >>confdefs.h <<_ACEOF
7105 #define STD_INT_LIB "libint"
7108 cat >>confdefs.h <<_ACEOF
7109 #define STD_LONG_LIB "liblong"
7112 cat >>confdefs.h <<_ACEOF
7113 #define STD_FP_LIB "libfloat"
7116 cat >>confdefs.h <<_ACEOF
7117 #define STD_DS390_LIB "libds390"
7120 cat >>confdefs.h <<_ACEOF
7121 #define STD_xa51_LIB "xa51"
7125 cat >>confdefs.h <<_ACEOF
7126 #define PREFIX "${prefix}"
7129 cat >>confdefs.h <<_ACEOF
7130 #define DATADIR "${sdcc_datadir_tmp}"
7133 cat >>confdefs.h <<_ACEOF
7134 #define SRCDIR "${config_in}"
7140 # Now handle the port selection
7141 rm -f ports.all ports.build
7142 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
7143 if test "${enable_mcs51_port+set}" = set; then
7144 enableval="$enable_mcs51_port"
7147 echo mcs51 >>ports.all
7148 if test "$enable_mcs51_port" = "no"; then
7149 cat >>confdefs.h <<_ACEOF
7150 #define OPT_DISABLE_MCS51 1
7154 echo mcs51 >>ports.build
7155 cat >>confdefs.h <<_ACEOF
7156 #define OPT_DISABLE_MCS51 0
7161 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
7162 if test "${enable_gbz80_port+set}" = set; then
7163 enableval="$enable_gbz80_port"
7166 echo z80 >>ports.all
7167 if test "$enable_gbz80_port" = "no"; then
7168 cat >>confdefs.h <<_ACEOF
7169 #define OPT_DISABLE_GBZ80 1
7173 echo z80 >>ports.build
7174 cat >>confdefs.h <<_ACEOF
7175 #define OPT_DISABLE_GBZ80 0
7180 # Check whether --enable-z80-port or --disable-z80-port was given.
7181 if test "${enable_z80_port+set}" = set; then
7182 enableval="$enable_z80_port"
7185 echo z80 >>ports.all
7186 if test "$enable_z80_port" = "no"; then
7187 cat >>confdefs.h <<_ACEOF
7188 #define OPT_DISABLE_Z80 1
7192 echo z80 >>ports.build
7193 cat >>confdefs.h <<_ACEOF
7194 #define OPT_DISABLE_Z80 0
7199 # Check whether --enable-avr-port or --disable-avr-port was given.
7200 if test "${enable_avr_port+set}" = set; then
7201 enableval="$enable_avr_port"
7204 echo avr >>ports.all
7205 if test "$enable_avr_port" = "no"; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define OPT_DISABLE_AVR 1
7211 echo avr >>ports.build
7212 cat >>confdefs.h <<_ACEOF
7213 #define OPT_DISABLE_AVR 0
7218 # Check whether --enable-ds390-port or --disable-ds390-port was given.
7219 if test "${enable_ds390_port+set}" = set; then
7220 enableval="$enable_ds390_port"
7223 echo ds390 >>ports.all
7224 if test "$enable_ds390_port" = "no"; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define OPT_DISABLE_DS390 1
7229 cat >>confdefs.h <<_ACEOF
7230 #define OPT_DISABLE_TININative 1
7234 echo ds390 >>ports.build
7235 cat >>confdefs.h <<_ACEOF
7236 #define OPT_DISABLE_DS390 0
7239 cat >>confdefs.h <<_ACEOF
7240 #define OPT_DISABLE_TININative 0
7245 # Check whether --enable-pic-port or --disable-pic-port was given.
7246 if test "${enable_pic_port+set}" = set; then
7247 enableval="$enable_pic_port"
7250 echo pic >>ports.all
7251 if test "$enable_pic_port" = "no"; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define OPT_DISABLE_PIC 1
7257 echo pic >>ports.build
7258 cat >>confdefs.h <<_ACEOF
7259 #define OPT_DISABLE_PIC 0
7264 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7265 if test "${enable_xa51_port+set}" = set; then
7266 enableval="$enable_xa51_port"
7269 echo xa51 >>ports.all
7270 if test "$enable_xa51_port" = "no"; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define OPT_DISABLE_XA51 1
7276 echo xa51 >>ports.build
7277 cat >>confdefs.h <<_ACEOF
7278 #define OPT_DISABLE_XA51 0
7283 # Check whether --enable-ucsim or --disable-ucsim was given.
7284 if test "${enable_ucsim+set}" = set; then
7285 enableval="$enable_ucsim"
7288 OPT_ENABLE_UCSIM=$enable_ucsim
7291 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7292 if test "${enable_device_lib_build+set}" = set; then
7293 enableval="$enable_device_lib_build"
7296 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7299 # Check whether --enable-packihx or --disable-packihx was given.
7300 if test "${enable_packihx+set}" = set; then
7301 enableval="$enable_packihx"
7304 OPT_ENABLE_PACKIHX=$enable_packihx
7307 # Check whether --enable-libgc or --disable-libgc was given.
7308 if test "${enable_libgc+set}" = set; then
7309 enableval="$enable_libgc"
7312 if test "$enable_libgc" = "yes"; then
7314 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7315 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7316 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 ac_check_lib_save_LIBS=$LIBS
7321 cat >conftest.$ac_ext <<_ACEOF
7322 #line $LINENO "configure"
7323 #include "confdefs.h"
7325 /* Override any gcc2 internal prototype to avoid an error. */
7329 /* We use char because int might match the return type of a gcc2
7330 builtin and then its argument prototype would still apply. */
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -s conftest$ac_exeext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_lib_gc_GC_malloc=yes
7354 echo "$as_me: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 ac_cv_lib_gc_GC_malloc=no
7358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7359 LIBS=$ac_check_lib_save_LIBS
7361 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7362 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7363 if test $ac_cv_lib_gc_GC_malloc = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_LIBGC 1
7376 cat >>confdefs.h <<_ACEOF
7377 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7382 cat ports.all | uniq >ports
7384 cat ports.build | uniq >ports
7385 mv ports ports.build
7387 # Generating output files
7388 # ===========================================================================
7391 subdirs="$subdirs support/cpp2"
7395 subdirs="$subdirs packihx"
7399 subdirs="$subdirs sim/ucsim"
7401 # MLH: removed as the rules are already in Makefile.common
7404 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile as/mcs51/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile Makefile.common:Makefile.common.in"
7405 cat >confcache <<\_ACEOF
7406 # This file is a shell script that caches the results of configure
7407 # tests run on this system so they can be shared between configure
7408 # scripts and configure runs, see configure's option --config-cache.
7409 # It is not useful on other systems. If it contains results you don't
7410 # want to keep, you may remove or edit it.
7412 # config.status only pays attention to the cache file if you give it
7413 # the --recheck option to rerun configure.
7415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7421 # The following way of writing the cache mishandles newlines in values,
7422 # but we know of no workaround that is simple, portable, and efficient.
7423 # So, don't put newlines in cache variables' values.
7424 # Ultrix sh set writes to stderr and can't be redirected directly,
7425 # and sets the high bit in the cache file unless we assign to the vars.
7428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7430 # `set' does not quote correctly, so add quotes (double-quote
7431 # substitution turns \\\\ into \\, and sed turns \\ into \).
7434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7437 # `set' quotes correctly as required by POSIX, so do not add quotes.
7439 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7450 if cmp -s $cache_file confcache; then :; else
7451 if test -w $cache_file; then
7452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7453 cat confcache >$cache_file
7455 echo "not updating unwritable cache $cache_file"
7460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7461 # Let make expand exec_prefix.
7462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7466 # trailing colons and then remove the whole line if VPATH becomes empty
7467 # (actually we leave an empty line to preserve line numbers).
7468 if test "x$srcdir" = x.; then
7469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7470 s/:*\$(srcdir):*/:/;
7471 s/:*\${srcdir}:*/:/;
7473 s/^\([^=]*=[ ]*\):*/\1/;
7479 DEFS=-DHAVE_CONFIG_H
7483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7484 # 1. Remove the extension, and $U if already installed.
7485 ac_i=`echo "$ac_i" |
7486 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7488 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7489 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7493 LTLIBOBJS=$ac_ltlibobjs
7497 : ${CONFIG_STATUS=./config.status}
7498 ac_clean_files_save=$ac_clean_files
7499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7500 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7501 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7502 cat >$CONFIG_STATUS <<_ACEOF
7504 # Generated by $as_me.
7505 # Run this file to recreate the current configuration.
7506 # Compiler output produced by configure, useful for debugging
7507 # configure, is in config.log if it exists.
7510 SHELL=\${CONFIG_SHELL-$SHELL}
7513 cat >>$CONFIG_STATUS <<\_ACEOF
7514 ## --------------------- ##
7515 ## M4sh Initialization. ##
7516 ## --------------------- ##
7518 # Be Bourne compatible
7519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7522 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7523 # is contrary to our usage. Disable this feature.
7524 alias -g '${1+"$@"}'='"$@"'
7525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7529 # Support unset when possible.
7530 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7537 # Work around bugs in pre-3.0 UWIN ksh.
7538 $as_unset ENV MAIL MAILPATH
7544 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
7546 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7547 eval $as_var=C; export $as_var
7553 # Required to use basename.
7554 if expr a : '\(a\)' >/dev/null 2>&1; then
7560 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7561 as_basename=basename
7567 # Name of the executable.
7568 as_me=`$as_basename "$0" ||
7569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7570 X"$0" : 'X\(//\)$' \| \
7571 X"$0" : 'X\(/\)$' \| \
7572 . : '\(.\)' 2>/dev/null ||
7574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7575 /^X\/\(\/\/\)$/{ s//\1/; q; }
7576 /^X\/\(\/\).*/{ s//\1/; q; }
7580 # PATH needs CR, and LINENO needs CR and PATH.
7581 # Avoid depending upon Character Ranges.
7582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7585 as_cr_digits='0123456789'
7586 as_cr_alnum=$as_cr_Letters$as_cr_digits
7588 # The user is always right.
7589 if test "${PATH_SEPARATOR+set}" != set; then
7590 echo "#! /bin/sh" >conftest.sh
7591 echo "exit 0" >>conftest.sh
7592 chmod +x conftest.sh
7593 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
7604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7605 test "x$as_lineno_1" != "x$as_lineno_2" &&
7606 test "x$as_lineno_3" = "x$as_lineno_2" || {
7607 # Find who we are. Look in the path if we contain no path at all
7610 *[\\/]* ) as_myself=$0 ;;
7611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7621 # We did not find ourselves, most probably we were run as `sh COMMAND'
7622 # in which case we are not to be found in the path.
7623 if test "x$as_myself" = x; then
7626 if test ! -f "$as_myself"; then
7627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7629 { (exit 1); exit 1; }; }
7631 case $CONFIG_SHELL in
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7637 test -z "$as_dir" && as_dir=.
7638 for as_base in sh bash ksh sh5; do
7641 if ("$as_dir/$as_base" -c '
7644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7645 test "x$as_lineno_1" != "x$as_lineno_2" &&
7646 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7647 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7648 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7649 CONFIG_SHELL=$as_dir/$as_base
7651 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7660 # uniformly replaced by the line number. The first 'sed' inserts a
7661 # line-number line before each line; the second 'sed' does the real
7662 # work. The second script uses 'N' to pair each line-number line
7663 # with the numbered line, and appends trailing '-' during
7664 # substitution so that $LINENO is not a special case at line end.
7665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7667 sed '=' <$as_myself |
7672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7675 s,^['$as_cr_digits']*\n,,
7677 chmod +x $as_me.lineno ||
7678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7680 { (exit 1); exit 1; }; }
7682 # Don't try to exec as it changes $[0], causing all sort of problems
7683 # (the dirname of $[0] is not the place where we might find the
7684 # original and so on. Autoconf is especially sensible to this).
7686 # Exit status is that of the last command.
7691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7692 *c*,-n*) ECHO_N= ECHO_C='
7694 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7695 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7698 if expr a : '\(a\)' >/dev/null 2>&1; then
7704 rm -f conf$$ conf$$.exe conf$$.file
7706 if ln -s conf$$.file conf$$ 2>/dev/null; then
7707 # We could just check for DJGPP; but this test a) works b) is more generic
7708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7709 if test -f conf$$.exe; then
7710 # Don't use ln at all; we don't have any links
7715 elif ln conf$$.file conf$$ 2>/dev/null; then
7720 rm -f conf$$ conf$$.exe conf$$.file
7722 if mkdir -p . 2>/dev/null; then
7728 as_executable_p="test -f"
7730 # Sed expression to map a string onto a valid CPP name.
7731 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7733 # Sed expression to map a string onto a valid variable name.
7734 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7738 # We need space, tab and new line, in precisely that order.
7748 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7749 # report actual input values of CONFIG_FILES etc. instead of their
7750 # values after options handling. Logging --version etc. is OK.
7754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7755 ## Running $as_me. ##
7760 This file was extended by $as_me, which was
7761 generated by GNU Autoconf 2.54. Invocation command line was
7763 CONFIG_FILES = $CONFIG_FILES
7764 CONFIG_HEADERS = $CONFIG_HEADERS
7765 CONFIG_LINKS = $CONFIG_LINKS
7766 CONFIG_COMMANDS = $CONFIG_COMMANDS
7770 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7774 # Files that config.status was made for.
7775 if test -n "$ac_config_files"; then
7776 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7779 if test -n "$ac_config_headers"; then
7780 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7783 if test -n "$ac_config_links"; then
7784 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7787 if test -n "$ac_config_commands"; then
7788 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7791 cat >>$CONFIG_STATUS <<\_ACEOF
7794 \`$as_me' instantiates files from templates according to the
7795 current configuration.
7797 Usage: $0 [OPTIONS] [FILE]...
7799 -h, --help print this help, then exit
7800 -V, --version print version number, then exit
7801 -d, --debug don't remove temporary files
7802 --recheck update $as_me by reconfiguring in the same conditions
7803 --file=FILE[:TEMPLATE]
7804 instantiate the configuration file FILE
7805 --header=FILE[:TEMPLATE]
7806 instantiate the configuration header FILE
7808 Configuration files:
7811 Configuration headers:
7814 Report bugs to <bug-autoconf@gnu.org>."
7817 cat >>$CONFIG_STATUS <<_ACEOF
7820 configured by $0, generated by GNU Autoconf 2.54,
7821 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7823 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7824 Free Software Foundation, Inc.
7825 This config.status script is free software; the Free Software Foundation
7826 gives unlimited permission to copy, distribute and modify it."
7831 cat >>$CONFIG_STATUS <<\_ACEOF
7832 # If no file are specified by the user, then we need to provide default
7833 # value. By we need to know if files were specified by the user.
7839 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7840 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7848 *) # This is not an option, so the user has probably given explicit
7851 ac_need_defaults=false;;
7855 # Handling of the options.
7857 cat >>$CONFIG_STATUS <<_ACEOF
7858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7859 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7860 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7862 cat >>$CONFIG_STATUS <<\_ACEOF
7863 --version | --vers* | -V )
7864 echo "$ac_cs_version"; exit 0 ;;
7866 # Conflict between --help and --header
7867 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7868 Try \`$0 --help' for more information." >&5
7869 echo "$as_me: error: ambiguous option: $1
7870 Try \`$0 --help' for more information." >&2;}
7871 { (exit 1); exit 1; }; };;
7872 --help | --hel | -h )
7873 echo "$ac_cs_usage"; exit 0 ;;
7874 --debug | --d* | -d )
7876 --file | --fil | --fi | --f )
7878 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7879 ac_need_defaults=false;;
7880 --header | --heade | --head | --hea )
7882 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7883 ac_need_defaults=false;;
7886 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7887 Try \`$0 --help' for more information." >&5
7888 echo "$as_me: error: unrecognized option: $1
7889 Try \`$0 --help' for more information." >&2;}
7890 { (exit 1); exit 1; }; } ;;
7892 *) ac_config_targets="$ac_config_targets $1" ;;
7904 cat >>$CONFIG_STATUS <<\_ACEOF
7905 for ac_config_target in $ac_config_targets
7907 case "$ac_config_target" in
7908 # Handling of arguments.
7909 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7910 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7911 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7912 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7913 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7914 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7915 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7916 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7919 { (exit 1); exit 1; }; };;
7923 # If the user did not use the arguments to specify the items to instantiate,
7924 # then the envvar interface is used. Set only those that are not.
7925 # We use the long form for the default assignment because of an extremely
7926 # bizarre bug on SunOS 4.1.3.
7927 if $ac_need_defaults; then
7928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7932 # Create a temporary directory, and hook for its removal unless debugging.
7935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7936 trap '{ (exit 1); exit 1; }' 1 2 13 15
7939 # Create a (secure) tmp directory for tmp files.
7942 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7943 test -n "$tmp" && test -d "$tmp"
7946 tmp=$TMPDIR/cs$$-$RANDOM
7947 (umask 077 && mkdir $tmp)
7950 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7951 { (exit 1); exit 1; }
7956 cat >>$CONFIG_STATUS <<_ACEOF
7959 # CONFIG_FILES section.
7962 # No need to generate the scripts if there are no CONFIG_FILES.
7963 # This happens for instance when ./config.status config.h
7964 if test -n "\$CONFIG_FILES"; then
7965 # Protect against being on the right side of a sed subst in config.status.
7966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7968 s,@SHELL@,$SHELL,;t t
7969 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7970 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7971 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7972 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7973 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7974 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7975 s,@exec_prefix@,$exec_prefix,;t t
7976 s,@prefix@,$prefix,;t t
7977 s,@program_transform_name@,$program_transform_name,;t t
7978 s,@bindir@,$bindir,;t t
7979 s,@sbindir@,$sbindir,;t t
7980 s,@libexecdir@,$libexecdir,;t t
7981 s,@datadir@,$datadir,;t t
7982 s,@sysconfdir@,$sysconfdir,;t t
7983 s,@sharedstatedir@,$sharedstatedir,;t t
7984 s,@localstatedir@,$localstatedir,;t t
7985 s,@libdir@,$libdir,;t t
7986 s,@includedir@,$includedir,;t t
7987 s,@oldincludedir@,$oldincludedir,;t t
7988 s,@infodir@,$infodir,;t t
7989 s,@mandir@,$mandir,;t t
7990 s,@build_alias@,$build_alias,;t t
7991 s,@host_alias@,$host_alias,;t t
7992 s,@target_alias@,$target_alias,;t t
7994 s,@ECHO_C@,$ECHO_C,;t t
7995 s,@ECHO_N@,$ECHO_N,;t t
7996 s,@ECHO_T@,$ECHO_T,;t t
7999 s,@VERSION@,$VERSION,;t t
8000 s,@VERSIONHI@,$VERSIONHI,;t t
8001 s,@VERSIONLO@,$VERSIONLO,;t t
8002 s,@VERSIONP@,$VERSIONP,;t t
8004 s,@CFLAGS@,$CFLAGS,;t t
8005 s,@LDFLAGS@,$LDFLAGS,;t t
8006 s,@CPPFLAGS@,$CPPFLAGS,;t t
8007 s,@ac_ct_CC@,$ac_ct_CC,;t t
8008 s,@EXEEXT@,$EXEEXT,;t t
8009 s,@OBJEXT@,$OBJEXT,;t t
8011 s,@CXXFLAGS@,$CXXFLAGS,;t t
8012 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8014 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8015 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8016 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8017 s,@RANLIB@,$RANLIB,;t t
8018 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8020 s,@LEXLIB@,$LEXLIB,;t t
8021 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8023 s,@AUTOCONF@,$AUTOCONF,;t t
8024 s,@STRIP@,$STRIP,;t t
8027 s,@EGREP@,$EGREP,;t t
8028 s,@M_OR_MM@,$M_OR_MM,;t t
8029 s,@sdcc_datadir@,$sdcc_datadir,;t t
8030 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
8031 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
8032 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
8033 s,@subdirs@,$subdirs,;t t
8034 s,@LIBOBJS@,$LIBOBJS,;t t
8035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8040 cat >>$CONFIG_STATUS <<\_ACEOF
8041 # Split the substitutions into bite-sized pieces for seds with
8042 # small command number limits, like on Digital OSF/1 and HP-UX.
8044 ac_sed_frag=1 # Number of current file.
8045 ac_beg=1 # First line for current file.
8046 ac_end=$ac_max_sed_lines # Line after last line for current file.
8049 while $ac_more_lines; do
8050 if test $ac_beg -gt 1; then
8051 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8053 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8055 if test ! -s $tmp/subs.frag; then
8058 # The purpose of the label and of the branching condition is to
8059 # speed up the sed processing (if there are no `@' at all, there
8060 # is no need to browse any of the substitutions).
8061 # These are the two extra sed commands mentioned above.
8063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8064 if test -z "$ac_sed_cmds"; then
8065 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8067 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8069 ac_sed_frag=`expr $ac_sed_frag + 1`
8071 ac_end=`expr $ac_end + $ac_max_sed_lines`
8074 if test -z "$ac_sed_cmds"; then
8077 fi # test -n "$CONFIG_FILES"
8080 cat >>$CONFIG_STATUS <<\_ACEOF
8081 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8084 - | *:- | *:-:* ) # input from stdin
8086 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8088 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8090 * ) ac_file_in=$ac_file.in ;;
8093 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8094 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8096 X"$ac_file" : 'X\(//\)[^/]' \| \
8097 X"$ac_file" : 'X\(//\)$' \| \
8098 X"$ac_file" : 'X\(/\)' \| \
8099 . : '\(.\)' 2>/dev/null ||
8101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8103 /^X\(\/\/\)$/{ s//\1/; q; }
8104 /^X\(\/\).*/{ s//\1/; q; }
8106 { if $as_mkdir_p; then
8111 while test ! -d "$as_dir"; do
8112 as_dirs="$as_dir $as_dirs"
8113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8115 X"$as_dir" : 'X\(//\)[^/]' \| \
8116 X"$as_dir" : 'X\(//\)$' \| \
8117 X"$as_dir" : 'X\(/\)' \| \
8118 . : '\(.\)' 2>/dev/null ||
8120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8122 /^X\(\/\/\)$/{ s//\1/; q; }
8123 /^X\(\/\).*/{ s//\1/; q; }
8126 test ! -n "$as_dirs" || mkdir $as_dirs
8127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8129 { (exit 1); exit 1; }; }; }
8133 if test "$ac_dir" != .; then
8134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8135 # A "../" for each directory in $ac_dir_suffix.
8136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8138 ac_dir_suffix= ac_top_builddir=
8142 .) # No --srcdir option. We are building in place.
8144 if test -z "$ac_top_builddir"; then
8147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8149 [\\/]* | ?:[\\/]* ) # Absolute path.
8150 ac_srcdir=$srcdir$ac_dir_suffix;
8151 ac_top_srcdir=$srcdir ;;
8153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8156 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8158 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8159 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8160 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8161 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8166 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8169 if test x"$ac_file" != x-; then
8170 { echo "$as_me:$LINENO: creating $ac_file" >&5
8171 echo "$as_me: creating $ac_file" >&6;}
8174 # Let's still pretend it is `configure' which instantiates (i.e., don't
8175 # use $as_me), people would be surprised to read:
8176 # /* config.h. Generated by config.status. */
8177 if test x"$ac_file" = x-; then
8180 configure_input="$ac_file. "
8182 configure_input=$configure_input"Generated from `echo $ac_file_in |
8183 sed 's,.*/,,'` by configure."
8185 # First look for the input files in the build tree, otherwise in the
8187 ac_file_inputs=`IFS=:
8188 for f in $ac_file_in; do
8190 -) echo $tmp/stdin ;;
8192 # Absolute (can't be DOS-style, as IFS=:)
8193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8194 echo "$as_me: error: cannot find input file: $f" >&2;}
8195 { (exit 1); exit 1; }; }
8198 if test -f "$f"; then
8201 elif test -f "$srcdir/$f"; then
8206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8207 echo "$as_me: error: cannot find input file: $f" >&2;}
8208 { (exit 1); exit 1; }; }
8211 done` || { (exit 1); exit 1; }
8213 cat >>$CONFIG_STATUS <<_ACEOF
8217 cat >>$CONFIG_STATUS <<\_ACEOF
8219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8220 s,@configure_input@,$configure_input,;t t
8221 s,@srcdir@,$ac_srcdir,;t t
8222 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8223 s,@top_srcdir@,$ac_top_srcdir,;t t
8224 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8225 s,@builddir@,$ac_builddir,;t t
8226 s,@abs_builddir@,$ac_abs_builddir,;t t
8227 s,@top_builddir@,$ac_top_builddir,;t t
8228 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8229 s,@INSTALL@,$ac_INSTALL,;t t
8230 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8232 if test x"$ac_file" != x-; then
8233 mv $tmp/out $ac_file
8241 cat >>$CONFIG_STATUS <<\_ACEOF
8244 # CONFIG_HEADER section.
8247 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8248 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8250 # ac_d sets the value in "#define NAME VALUE" lines.
8251 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8252 ac_dB='[ ].*$,\1#\2'
8255 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8256 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8257 ac_uB='$,\1#\2define\3'
8261 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8264 - | *:- | *:-:* ) # input from stdin
8266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8270 * ) ac_file_in=$ac_file.in ;;
8273 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8274 echo "$as_me: creating $ac_file" >&6;}
8276 # First look for the input files in the build tree, otherwise in the
8278 ac_file_inputs=`IFS=:
8279 for f in $ac_file_in; do
8281 -) echo $tmp/stdin ;;
8283 # Absolute (can't be DOS-style, as IFS=:)
8284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8285 echo "$as_me: error: cannot find input file: $f" >&2;}
8286 { (exit 1); exit 1; }; }
8289 if test -f "$f"; then
8292 elif test -f "$srcdir/$f"; then
8297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8298 echo "$as_me: error: cannot find input file: $f" >&2;}
8299 { (exit 1); exit 1; }; }
8302 done` || { (exit 1); exit 1; }
8303 # Remove the trailing spaces.
8304 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8308 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8309 # `conftest.undefs', that substitutes the proper values into
8310 # config.h.in to produce config.h. The first handles `#define'
8311 # templates, and the second `#undef' templates.
8312 # And first: Protect against being on the right side of a sed subst in
8313 # config.status. Protect against being in an unquoted here document
8315 rm -f conftest.defines conftest.undefs
8316 # Using a here document instead of a string reduces the quoting nightmare.
8317 # Putting comments in sed scripts is not portable.
8319 # `end' is used to avoid that the second main sed command (meant for
8320 # 0-ary CPP macros) applies to n-ary macro definitions.
8321 # See the Autoconf documentation for `clear'.
8322 cat >confdef2sed.sed <<\_ACEOF
8327 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8329 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8332 # If some macros were called several times there might be several times
8333 # the same #defines, which is useless. Nevertheless, we may not want to
8334 # sort them, since we want the *last* AC-DEFINE to be honored.
8335 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8336 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8337 rm -f confdef2sed.sed
8339 # This sed command replaces #undef with comments. This is necessary, for
8340 # example, in the case of _POSIX_SOURCE, which is predefined and required
8341 # on some systems where configure will not decide to define it.
8342 cat >>conftest.undefs <<\_ACEOF
8343 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8346 # Break up conftest.defines because some shells have a limit on the size
8347 # of here documents, and old seds have small limits too (100 cmds).
8348 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8349 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8350 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8351 echo ' :' >>$CONFIG_STATUS
8353 while grep . conftest.defines >/dev/null
8355 # Write a limited-size here document to $tmp/defines.sed.
8356 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8357 # Speed up: don't consider the non `#define' lines.
8358 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8359 # Work around the forget-to-reset-the-flag bug.
8360 echo 't clr' >>$CONFIG_STATUS
8361 echo ': clr' >>$CONFIG_STATUS
8362 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8364 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8368 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8369 rm -f conftest.defines
8370 mv conftest.tail conftest.defines
8372 rm -f conftest.defines
8373 echo ' fi # grep' >>$CONFIG_STATUS
8374 echo >>$CONFIG_STATUS
8376 # Break up conftest.undefs because some shells have a limit on the size
8377 # of here documents, and old seds have small limits too (100 cmds).
8378 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8380 while grep . conftest.undefs >/dev/null
8382 # Write a limited-size here document to $tmp/undefs.sed.
8383 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8384 # Speed up: don't consider the non `#undef'
8385 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8386 # Work around the forget-to-reset-the-flag bug.
8387 echo 't clr' >>$CONFIG_STATUS
8388 echo ': clr' >>$CONFIG_STATUS
8389 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8391 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8395 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8396 rm -f conftest.undefs
8397 mv conftest.tail conftest.undefs
8399 rm -f conftest.undefs
8401 cat >>$CONFIG_STATUS <<\_ACEOF
8402 # Let's still pretend it is `configure' which instantiates (i.e., don't
8403 # use $as_me), people would be surprised to read:
8404 # /* config.h. Generated by config.status. */
8405 if test x"$ac_file" = x-; then
8406 echo "/* Generated by configure. */" >$tmp/config.h
8408 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8410 cat $tmp/in >>$tmp/config.h
8412 if test x"$ac_file" != x-; then
8413 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8414 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8415 echo "$as_me: $ac_file is unchanged" >&6;}
8417 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8419 X"$ac_file" : 'X\(//\)[^/]' \| \
8420 X"$ac_file" : 'X\(//\)$' \| \
8421 X"$ac_file" : 'X\(/\)' \| \
8422 . : '\(.\)' 2>/dev/null ||
8424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8426 /^X\(\/\/\)$/{ s//\1/; q; }
8427 /^X\(\/\).*/{ s//\1/; q; }
8429 { if $as_mkdir_p; then
8434 while test ! -d "$as_dir"; do
8435 as_dirs="$as_dir $as_dirs"
8436 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8438 X"$as_dir" : 'X\(//\)[^/]' \| \
8439 X"$as_dir" : 'X\(//\)$' \| \
8440 X"$as_dir" : 'X\(/\)' \| \
8441 . : '\(.\)' 2>/dev/null ||
8443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8445 /^X\(\/\/\)$/{ s//\1/; q; }
8446 /^X\(\/\).*/{ s//\1/; q; }
8449 test ! -n "$as_dirs" || mkdir $as_dirs
8450 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8451 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8452 { (exit 1); exit 1; }; }; }
8455 mv $tmp/config.h $ac_file
8464 cat >>$CONFIG_STATUS <<\_ACEOF
8466 { (exit 0); exit 0; }
8468 chmod +x $CONFIG_STATUS
8469 ac_clean_files=$ac_clean_files_save
8472 # configure is writing to config.log, and then calls config.status.
8473 # config.status does its own redirection, appending to config.log.
8474 # Unfortunately, on DOS this fails, as config.log is still kept open
8475 # by configure, so config.status won't be able to write to it; its
8476 # output is simply discarded. So we exec the FD to /dev/null,
8477 # effectively closing config.log, so it can be properly (re)opened and
8478 # appended to by config.status. When coming back to configure, we
8479 # need to make the FD available again.
8480 if test "$no_create" != yes; then
8483 $SHELL $CONFIG_STATUS || ac_cs_success=false
8485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8486 # would make configure fail if this is the last instruction.
8487 $ac_cs_success || { (exit 1); exit 1; }
8491 # CONFIG_SUBDIRS section.
8493 if test "$no_recursion" != yes; then
8495 # Remove --cache-file and --srcdir arguments so they do not pile up.
8496 ac_sub_configure_args=
8498 for ac_arg in $ac_configure_args; do
8499 if test -n "$ac_prev"; then
8504 -cache-file | --cache-file | --cache-fil | --cache-fi \
8505 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8506 ac_prev=cache_file ;;
8507 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8508 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8511 --config-cache | -C)
8513 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8515 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8517 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8519 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8521 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8525 # Always prepend --prefix to ensure using the same prefix
8526 # in subdir configurations.
8527 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8530 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8532 # Do not complain, so a configure script can configure whichever
8533 # parts of a large source tree are present.
8534 test -d $srcdir/$ac_dir || continue
8536 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8537 echo "$as_me: configuring in $ac_dir" >&6;}
8538 { if $as_mkdir_p; then
8543 while test ! -d "$as_dir"; do
8544 as_dirs="$as_dir $as_dirs"
8545 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8547 X"$as_dir" : 'X\(//\)[^/]' \| \
8548 X"$as_dir" : 'X\(//\)$' \| \
8549 X"$as_dir" : 'X\(/\)' \| \
8550 . : '\(.\)' 2>/dev/null ||
8552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8554 /^X\(\/\/\)$/{ s//\1/; q; }
8555 /^X\(\/\).*/{ s//\1/; q; }
8558 test ! -n "$as_dirs" || mkdir $as_dirs
8559 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8560 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8561 { (exit 1); exit 1; }; }; }
8565 if test "$ac_dir" != .; then
8566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8567 # A "../" for each directory in $ac_dir_suffix.
8568 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8570 ac_dir_suffix= ac_top_builddir=
8574 .) # No --srcdir option. We are building in place.
8576 if test -z "$ac_top_builddir"; then
8579 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8581 [\\/]* | ?:[\\/]* ) # Absolute path.
8582 ac_srcdir=$srcdir$ac_dir_suffix;
8583 ac_top_srcdir=$srcdir ;;
8585 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8586 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8588 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8590 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8591 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8592 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8593 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8598 # Check for guested configure; otherwise get Cygnus style configure.
8599 if test -f $ac_srcdir/configure.gnu; then
8600 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8601 elif test -f $ac_srcdir/configure; then
8602 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8603 elif test -f $ac_srcdir/configure.in; then
8604 ac_sub_configure=$ac_configure
8606 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8611 # The recursion is here.
8612 if test -n "$ac_sub_configure"; then
8613 # Make the cache file name correct relative to the subdirectory.
8615 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8617 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8620 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8621 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8622 # The eval makes quoting arguments work.
8623 eval $ac_sub_configure $ac_sub_configure_args \
8624 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8625 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8626 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8627 { (exit 1); exit 1; }; }
8635 # End of configure/configure.in