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 malloc.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 sys/isa_defs.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 sys/socket.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
4077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4078 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4079 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4080 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4086 #include "confdefs.h"
4087 #include <sys/types.h>
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 eval "$as_ac_Header=yes"
4113 echo "$as_me: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4115 eval "$as_ac_Header=no"
4117 rm -f conftest.$ac_objext conftest.$ac_ext
4119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4122 cat >>confdefs.h <<_ACEOF
4123 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4126 ac_header_dirent=$ac_hdr; break
4130 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4131 if test $ac_header_dirent = dirent.h; then
4132 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4133 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4134 if test "${ac_cv_search_opendir+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 ac_func_search_save_LIBS=$LIBS
4138 ac_cv_search_opendir=no
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line $LINENO "configure"
4141 #include "confdefs.h"
4143 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4158 rm -f conftest.$ac_objext conftest$ac_exeext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160 (eval $ac_link) 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -s conftest$ac_exeext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_search_opendir="none required"
4172 echo "$as_me: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176 if test "$ac_cv_search_opendir" = no; then
4177 for ac_lib in dir; do
4178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4179 cat >conftest.$ac_ext <<_ACEOF
4180 #line $LINENO "configure"
4181 #include "confdefs.h"
4183 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_search_opendir="-l$ac_lib"
4213 echo "$as_me: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4219 LIBS=$ac_func_search_save_LIBS
4221 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4222 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4223 if test "$ac_cv_search_opendir" != no; then
4224 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4229 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4231 if test "${ac_cv_search_opendir+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_func_search_save_LIBS=$LIBS
4235 ac_cv_search_opendir=no
4236 cat >conftest.$ac_ext <<_ACEOF
4237 #line $LINENO "configure"
4238 #include "confdefs.h"
4240 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -s conftest$ac_exeext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4267 ac_cv_search_opendir="none required"
4269 echo "$as_me: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4273 if test "$ac_cv_search_opendir" = no; then
4275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4276 cat >conftest.$ac_ext <<_ACEOF
4277 #line $LINENO "configure"
4278 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -s conftest$ac_exeext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_search_opendir="-l$ac_lib"
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4316 LIBS=$ac_func_search_save_LIBS
4318 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4319 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4320 if test "$ac_cv_search_opendir" != no; then
4321 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4328 # This must be after CPP
4330 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
4331 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
4332 if test "${s51_cv_fd+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 sdcc_cv_fd="unknown"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 #line $LINENO "configure"
4338 #include "confdefs.h"
4340 #include <sys/time.h>
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "yes" >/dev/null 2>&1; then
4347 sdcc_cv_fd="<sys/time.h>"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 #include "confdefs.h"
4355 #include <sys/types.h>
4360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361 $EGREP "yes" >/dev/null 2>&1; then
4362 sdcc_cv_fd="<sys/types.h>"
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 #include "confdefs.h"
4370 #include <sys/select.h>
4375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4376 $EGREP "yes" >/dev/null 2>&1; then
4377 sdcc_cv_fd="<sys/types.h>"
4382 echo "$as_me:$LINENO: result: $s51_cv_fd" >&5
4383 echo "${ECHO_T}$s51_cv_fd" >&6
4385 cat >>confdefs.h <<\_ACEOF
4386 #define FD_HEADER_OK 0
4389 if echo $sdcc_cv_fd|grep time >/dev/null 2>&1; then
4390 cat >>confdefs.h <<\_ACEOF
4391 #define FD_NEED_TIME_H 1
4394 cat >>confdefs.h <<\_ACEOF
4395 #define FD_HEADER_OK 1
4399 cat >>confdefs.h <<\_ACEOF
4400 #define FD_NEED_TIME_H 0
4404 if echo $sdcc_cv_fd|grep types >/dev/null 2>&1; then
4405 cat >>confdefs.h <<\_ACEOF
4406 #define FD_NEED_TYPES_H 1
4409 cat >>confdefs.h <<\_ACEOF
4410 #define FD_HEADER_OK 1
4414 cat >>confdefs.h <<\_ACEOF
4415 #define FD_NEED_TYPES_H 0
4419 if echo $sdcc_cv_fd|grep select >/dev/null 2>&1; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define FD_NEED_SELECT_H 1
4424 cat >>confdefs.h <<\_ACEOF
4425 #define FD_HEADER_OK 1
4429 cat >>confdefs.h <<\_ACEOF
4430 #define FD_NEED_SELECT_H 0
4435 cat >>confdefs.h <<_ACEOF
4436 #define HEADER_FD ${sdcc_cv_fd}
4441 # Checking for functions
4442 # ===========================================================================
4451 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
4453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4454 echo "$as_me:$LINENO: checking for $ac_func" >&5
4455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4456 if eval "test \"\${$as_ac_var+set}\" = set"; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func (); below. */
4465 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4477 /* The GNU C library defines this for functions which it implements
4478 to always fail with ENOSYS. Some functions are actually named
4479 something starting with __ and the normal name is an alias. */
4480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest$ac_exeext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 eval "$as_ac_var=yes"
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 eval "$as_ac_var=no"
4508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4512 if test `eval echo '${'$as_ac_var'}'` = yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4525 for ac_func in strchr memcpy vsnprintf snprintf vsprintf
4527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4528 echo "$as_me:$LINENO: checking for $ac_func" >&5
4529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4530 if eval "test \"\${$as_ac_var+set}\" = set"; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4536 /* System header to define __stub macros and hopefully few prototypes,
4537 which can conflict with char $ac_func (); below. */
4539 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4551 /* The GNU C library defines this for functions which it implements
4552 to always fail with ENOSYS. Some functions are actually named
4553 something starting with __ and the normal name is an alias. */
4554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4564 rm -f conftest.$ac_objext conftest$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_var=yes"
4578 echo "$as_me: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4580 eval "$as_ac_var=no"
4582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4586 if test `eval echo '${'$as_ac_var'}'` = yes; then
4587 cat >>confdefs.h <<_ACEOF
4588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4595 for ac_func in mkstemp
4597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_func" >&5
4599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_var+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 #include "confdefs.h"
4606 /* System header to define __stub macros and hopefully few prototypes,
4607 which can conflict with char $ac_func (); below. */
4609 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$as_ac_var=yes"
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 eval "$as_ac_var=no"
4652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4656 if test `eval echo '${'$as_ac_var'}'` = yes; then
4657 cat >>confdefs.h <<_ACEOF
4658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4665 for ac_func in fgets
4667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 echo "$as_me:$LINENO: checking for $ac_func" >&5
4669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4670 if eval "test \"\${$as_ac_var+set}\" = set"; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #line $LINENO "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char $ac_func (); below. */
4679 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -s conftest$ac_exeext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 eval "$as_ac_var=yes"
4718 echo "$as_me: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 eval "$as_ac_var=no"
4722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4726 if test `eval echo '${'$as_ac_var'}'` = yes; then
4727 cat >>confdefs.h <<_ACEOF
4728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735 for ac_func in yylex
4737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:$LINENO: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func (); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776 (eval $ac_link) 2>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_var=yes"
4788 echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 eval "$as_ac_var=no"
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4796 if test `eval echo '${'$as_ac_var'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4805 # check if -lsocket && -lxnet is required to compile socket stuff
4806 echo "$as_me:$LINENO: checking for library containing socket" >&5
4807 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4808 if test "${ac_cv_search_socket+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_func_search_save_LIBS=$LIBS
4812 ac_cv_search_socket=no
4813 cat >conftest.$ac_ext <<_ACEOF
4814 #line $LINENO "configure"
4815 #include "confdefs.h"
4817 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834 (eval $ac_link) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_search_socket="none required"
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4850 if test "$ac_cv_search_socket" = no; then
4851 for ac_lib in socket; do
4852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4857 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_search_socket="-l$ac_lib"
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4893 LIBS=$ac_func_search_save_LIBS
4895 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4896 echo "${ECHO_T}$ac_cv_search_socket" >&6
4897 if test "$ac_cv_search_socket" != no; then
4898 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4902 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
4903 echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6
4904 if test "${ac_cv_search_inet_addr+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_func_search_save_LIBS=$LIBS
4908 ac_cv_search_inet_addr=no
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4928 rm -f conftest.$ac_objext conftest$ac_exeext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4930 (eval $ac_link) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest$ac_exeext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_search_inet_addr="none required"
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4946 if test "$ac_cv_search_inet_addr" = no; then
4947 for ac_lib in nsl xnet; do
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 #include "confdefs.h"
4953 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_search_inet_addr="-l$ac_lib"
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_func_search_save_LIBS
4991 echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
4992 echo "${ECHO_T}$ac_cv_search_inet_addr" >&6
4993 if test "$ac_cv_search_inet_addr" != no; then
4994 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
5002 # DD_COPT macro checks if the compiler specified as the 1st parameter
5003 # supports option specified as the 2nd parameter
5004 # For example: DD_CPORT(CXX, fPIC)
5009 # Checking characteristics of compilers and other programs
5010 # --------------------------------------------------------
5011 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
5012 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
5013 if test "${sdcc_cv_MM+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 echo "#include <stdio.h>" >_test_.c
5018 $CPP -v -MM _test_.c 1>&5 2>&5
5019 if test "$?" = "0"; then
5026 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
5027 echo "${ECHO_T}$sdcc_cv_MM" >&6
5031 # This is the first time when CFLAGS are set/modified!!
5033 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
5034 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
5035 if test "${sdcc_cv_CCggdb+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 $CC -v -ggdb -c _test_.c 1>&5 2>&5
5043 if test "$?" = "0"; then
5044 sdcc_cv_CCggdb="yes"
5048 rm -f _test_.* a.out
5050 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
5051 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
5053 if test "$sdcc_cv_CCggdb" = "yes"; then
5058 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
5059 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
5060 if test "${sdcc_cv_CCpipe+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 $CC -v -pipe -c _test_.c 1>&5 2>&5
5068 if test "$?" = "0"; then
5069 sdcc_cv_CCpipe="yes"
5073 rm -f _test_.* a.out
5075 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
5076 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
5078 if test "$sdcc_cv_CCpipe" = "yes"; then
5079 CFLAGS="$CFLAGS -pipe"
5083 # Checks for typedefs, structures, and compiler characteristics.
5084 # ===========================================================================
5085 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5086 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5087 if test "${ac_cv_type_signal+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 #include "confdefs.h"
5093 #include <sys/types.h>
5099 extern "C" void (*signal (int, void (*)(int)))(int);
5101 void (*signal ()) ();
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_type_signal=void
5126 echo "$as_me: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5128 ac_cv_type_signal=int
5130 rm -f conftest.$ac_objext conftest.$ac_ext
5132 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5133 echo "${ECHO_T}$ac_cv_type_signal" >&6
5135 cat >>confdefs.h <<_ACEOF
5136 #define RETSIGTYPE $ac_cv_type_signal
5141 if test "$cross_compiling" = "no"; then
5142 echo "$as_me:$LINENO: checking for char" >&5
5143 echo $ECHO_N "checking for char... $ECHO_C" >&6
5144 if test "${ac_cv_type_char+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5149 #include "confdefs.h"
5150 $ac_includes_default
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5180 rm -f conftest.$ac_objext conftest.$ac_ext
5182 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5183 echo "${ECHO_T}$ac_cv_type_char" >&6
5185 echo "$as_me:$LINENO: checking size of char" >&5
5186 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5187 if test "${ac_cv_sizeof_char+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 if test "$ac_cv_type_char" = yes; then
5191 # The cast to unsigned long works around a bug in the HP C Compiler
5192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5194 # This bug is HP SR number 8606223364.
5195 if test "$cross_compiling" = yes; then
5196 # Depending upon the size, compute the lo and hi bounds.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 #include "confdefs.h"
5200 $ac_includes_default
5204 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5228 $ac_includes_default
5232 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_hi=$ac_mid; break
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 ac_lo=`expr $ac_mid + 1`
5256 if test $ac_lo -le $ac_mid; then
5260 ac_mid=`expr 2 '*' $ac_mid + 1`
5262 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 #include "confdefs.h"
5270 $ac_includes_default
5274 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 $ac_includes_default
5302 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_lo=$ac_mid; break
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_hi=`expr '(' $ac_mid ')' - 1`
5326 if test $ac_mid -le $ac_hi; then
5330 ac_mid=`expr 2 '*' $ac_mid`
5332 rm -f conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5339 rm -f conftest.$ac_objext conftest.$ac_ext
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 # Binary search between lo and hi bounds.
5343 while test "x$ac_lo" != "x$ac_hi"; do
5344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line $LINENO "configure"
5347 #include "confdefs.h"
5348 $ac_includes_default
5352 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 ac_lo=`expr '(' $ac_mid ')' + 1`
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5380 ?*) ac_cv_sizeof_char=$ac_lo;;
5381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
5382 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
5383 { (exit 1); exit 1; }; } ;;
5386 if test "$cross_compiling" = yes; then
5387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5388 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5389 { (exit 1); exit 1; }; }
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 #include "confdefs.h"
5394 $ac_includes_default
5395 long longval () { return (long) (sizeof (char)); }
5396 unsigned long ulongval () { return (long) (sizeof (char)); }
5403 FILE *f = fopen ("conftest.val", "w");
5406 if (((long) (sizeof (char))) < 0)
5408 long i = longval ();
5409 if (i != ((long) (sizeof (char))))
5411 fprintf (f, "%ld\n", i);
5415 unsigned long i = ulongval ();
5416 if (i != ((long) (sizeof (char))))
5418 fprintf (f, "%lu\n", i);
5420 exit (ferror (f) || fclose (f) != 0);
5426 rm -f conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_sizeof_char=`cat conftest.val`
5439 echo "$as_me: program exited with status $ac_status" >&5
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
5444 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
5445 { (exit 1); exit 1; }; }
5447 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5456 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5457 cat >>confdefs.h <<_ACEOF
5458 #define SIZEOF_CHAR $ac_cv_sizeof_char
5462 echo "$as_me:$LINENO: checking for short" >&5
5463 echo $ECHO_N "checking for short... $ECHO_C" >&6
5464 if test "${ac_cv_type_short+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5469 #include "confdefs.h"
5470 $ac_includes_default
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_type_short=yes
5496 echo "$as_me: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5503 echo "${ECHO_T}$ac_cv_type_short" >&6
5505 echo "$as_me:$LINENO: checking size of short" >&5
5506 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5507 if test "${ac_cv_sizeof_short+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test "$ac_cv_type_short" = yes; then
5511 # The cast to unsigned long works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 if test "$cross_compiling" = yes; then
5516 # Depending upon the size, compute the lo and hi bounds.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520 $ac_includes_default
5524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5545 cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 #include "confdefs.h"
5548 $ac_includes_default
5552 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 ac_hi=$ac_mid; break
5573 echo "$as_me: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 ac_lo=`expr $ac_mid + 1`
5576 if test $ac_lo -le $ac_mid; then
5580 ac_mid=`expr 2 '*' $ac_mid + 1`
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 #include "confdefs.h"
5590 $ac_includes_default
5594 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5601 rm -f conftest.$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 #include "confdefs.h"
5618 $ac_includes_default
5622 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_lo=$ac_mid; break
5643 echo "$as_me: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5645 ac_hi=`expr '(' $ac_mid ')' - 1`
5646 if test $ac_mid -le $ac_hi; then
5650 ac_mid=`expr 2 '*' $ac_mid`
5652 rm -f conftest.$ac_objext conftest.$ac_ext
5655 echo "$as_me: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5659 rm -f conftest.$ac_objext conftest.$ac_ext
5661 rm -f conftest.$ac_objext conftest.$ac_ext
5662 # Binary search between lo and hi bounds.
5663 while test "x$ac_lo" != "x$ac_hi"; do
5664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 #include "confdefs.h"
5668 $ac_includes_default
5672 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5693 echo "$as_me: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5695 ac_lo=`expr '(' $ac_mid ')' + 1`
5697 rm -f conftest.$ac_objext conftest.$ac_ext
5700 ?*) ac_cv_sizeof_short=$ac_lo;;
5701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
5702 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
5703 { (exit 1); exit 1; }; } ;;
5706 if test "$cross_compiling" = yes; then
5707 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5708 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5709 { (exit 1); exit 1; }; }
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line $LINENO "configure"
5713 #include "confdefs.h"
5714 $ac_includes_default
5715 long longval () { return (long) (sizeof (short)); }
5716 unsigned long ulongval () { return (long) (sizeof (short)); }
5723 FILE *f = fopen ("conftest.val", "w");
5726 if (((long) (sizeof (short))) < 0)
5728 long i = longval ();
5729 if (i != ((long) (sizeof (short))))
5731 fprintf (f, "%ld\n", i);
5735 unsigned long i = ulongval ();
5736 if (i != ((long) (sizeof (short))))
5738 fprintf (f, "%lu\n", i);
5740 exit (ferror (f) || fclose (f) != 0);
5746 rm -f conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_sizeof_short=`cat conftest.val`
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
5764 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
5765 { (exit 1); exit 1; }; }
5767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5772 ac_cv_sizeof_short=0
5775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5776 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_SHORT $ac_cv_sizeof_short
5782 echo "$as_me:$LINENO: checking for int" >&5
5783 echo $ECHO_N "checking for int... $ECHO_C" >&6
5784 if test "${ac_cv_type_int+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 #include "confdefs.h"
5790 $ac_includes_default
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5816 echo "$as_me: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5820 rm -f conftest.$ac_objext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5823 echo "${ECHO_T}$ac_cv_type_int" >&6
5825 echo "$as_me:$LINENO: checking size of int" >&5
5826 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5827 if test "${ac_cv_sizeof_int+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test "$ac_cv_type_int" = yes; then
5831 # The cast to unsigned long works around a bug in the HP C Compiler
5832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5834 # This bug is HP SR number 8606223364.
5835 if test "$cross_compiling" = yes; then
5836 # Depending upon the size, compute the lo and hi bounds.
5837 cat >conftest.$ac_ext <<_ACEOF
5838 #line $LINENO "configure"
5839 #include "confdefs.h"
5840 $ac_includes_default
5844 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5851 rm -f conftest.$ac_objext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5865 cat >conftest.$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 #include "confdefs.h"
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_hi=$ac_mid; break
5893 echo "$as_me: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 ac_lo=`expr $ac_mid + 1`
5896 if test $ac_lo -le $ac_mid; then
5900 ac_mid=`expr 2 '*' $ac_mid + 1`
5902 rm -f conftest.$ac_objext conftest.$ac_ext
5905 echo "$as_me: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 #include "confdefs.h"
5910 $ac_includes_default
5914 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5938 $ac_includes_default
5942 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5949 rm -f conftest.$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_lo=$ac_mid; break
5963 echo "$as_me: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 ac_hi=`expr '(' $ac_mid ')' - 1`
5966 if test $ac_mid -le $ac_hi; then
5970 ac_mid=`expr 2 '*' $ac_mid`
5972 rm -f conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5979 rm -f conftest.$ac_objext conftest.$ac_ext
5981 rm -f conftest.$ac_objext conftest.$ac_ext
5982 # Binary search between lo and hi bounds.
5983 while test "x$ac_lo" != "x$ac_hi"; do
5984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5985 cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5987 #include "confdefs.h"
5988 $ac_includes_default
5992 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6013 echo "$as_me: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6015 ac_lo=`expr '(' $ac_mid ')' + 1`
6017 rm -f conftest.$ac_objext conftest.$ac_ext
6020 ?*) ac_cv_sizeof_int=$ac_lo;;
6021 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6022 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6026 if test "$cross_compiling" = yes; then
6027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6028 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6029 { (exit 1); exit 1; }; }
6031 cat >conftest.$ac_ext <<_ACEOF
6032 #line $LINENO "configure"
6033 #include "confdefs.h"
6034 $ac_includes_default
6035 long longval () { return (long) (sizeof (int)); }
6036 unsigned long ulongval () { return (long) (sizeof (int)); }
6043 FILE *f = fopen ("conftest.val", "w");
6046 if (((long) (sizeof (int))) < 0)
6048 long i = longval ();
6049 if (i != ((long) (sizeof (int))))
6051 fprintf (f, "%ld\n", i);
6055 unsigned long i = ulongval ();
6056 if (i != ((long) (sizeof (int))))
6058 fprintf (f, "%lu\n", i);
6060 exit (ferror (f) || fclose (f) != 0);
6066 rm -f conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_sizeof_int=`cat conftest.val`
6079 echo "$as_me: program exited with status $ac_status" >&5
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6084 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6085 { (exit 1); exit 1; }; }
6087 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_INT $ac_cv_sizeof_int
6102 echo "$as_me:$LINENO: checking for long" >&5
6103 echo $ECHO_N "checking for long... $ECHO_C" >&6
6104 if test "${ac_cv_type_long+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 #include "confdefs.h"
6110 $ac_includes_default
6122 rm -f conftest.$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6140 rm -f conftest.$ac_objext conftest.$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6143 echo "${ECHO_T}$ac_cv_type_long" >&6
6145 echo "$as_me:$LINENO: checking size of long" >&5
6146 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6147 if test "${ac_cv_sizeof_long+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test "$ac_cv_type_long" = yes; then
6151 # The cast to unsigned long works around a bug in the HP C Compiler
6152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6154 # This bug is HP SR number 8606223364.
6155 if test "$cross_compiling" = yes; then
6156 # Depending upon the size, compute the lo and hi bounds.
6157 cat >conftest.$ac_ext <<_ACEOF
6158 #line $LINENO "configure"
6159 #include "confdefs.h"
6160 $ac_includes_default
6164 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6185 cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6187 #include "confdefs.h"
6188 $ac_includes_default
6192 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6199 rm -f conftest.$ac_objext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_hi=$ac_mid; break
6213 echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 ac_lo=`expr $ac_mid + 1`
6216 if test $ac_lo -le $ac_mid; then
6220 ac_mid=`expr 2 '*' $ac_mid + 1`
6222 rm -f conftest.$ac_objext conftest.$ac_ext
6225 echo "$as_me: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 #include "confdefs.h"
6230 $ac_includes_default
6234 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #line $LINENO "configure"
6257 #include "confdefs.h"
6258 $ac_includes_default
6262 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6269 rm -f conftest.$ac_objext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_lo=$ac_mid; break
6283 echo "$as_me: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 ac_hi=`expr '(' $ac_mid ')' - 1`
6286 if test $ac_mid -le $ac_hi; then
6290 ac_mid=`expr 2 '*' $ac_mid`
6292 rm -f conftest.$ac_objext conftest.$ac_ext
6295 echo "$as_me: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6299 rm -f conftest.$ac_objext conftest.$ac_ext
6301 rm -f conftest.$ac_objext conftest.$ac_ext
6302 # Binary search between lo and hi bounds.
6303 while test "x$ac_lo" != "x$ac_hi"; do
6304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6305 cat >conftest.$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6307 #include "confdefs.h"
6308 $ac_includes_default
6312 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 ac_lo=`expr '(' $ac_mid ')' + 1`
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6340 ?*) ac_cv_sizeof_long=$ac_lo;;
6341 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6342 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6343 { (exit 1); exit 1; }; } ;;
6346 if test "$cross_compiling" = yes; then
6347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6348 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6349 { (exit 1); exit 1; }; }
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6354 $ac_includes_default
6355 long longval () { return (long) (sizeof (long)); }
6356 unsigned long ulongval () { return (long) (sizeof (long)); }
6363 FILE *f = fopen ("conftest.val", "w");
6366 if (((long) (sizeof (long))) < 0)
6368 long i = longval ();
6369 if (i != ((long) (sizeof (long))))
6371 fprintf (f, "%ld\n", i);
6375 unsigned long i = ulongval ();
6376 if (i != ((long) (sizeof (long))))
6378 fprintf (f, "%lu\n", i);
6380 exit (ferror (f) || fclose (f) != 0);
6386 rm -f conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388 (eval $ac_link) 2>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_cv_sizeof_long=`cat conftest.val`
6399 echo "$as_me: program exited with status $ac_status" >&5
6400 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6404 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6405 { (exit 1); exit 1; }; }
6407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6416 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6417 cat >>confdefs.h <<_ACEOF
6418 #define SIZEOF_LONG $ac_cv_sizeof_long
6423 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
6425 ac_cv_sizeof_short=2
6436 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6440 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6444 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6448 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6455 echo "$as_me:$LINENO: checking type name for byte" >&5
6456 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
6457 TYPE_BYTE=`type_name 1`
6458 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6459 echo "${ECHO_T}$TYPE_BYTE" >&6
6460 echo "$as_me:$LINENO: checking type name for word" >&5
6461 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
6462 TYPE_WORD=`type_name 2`
6463 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6464 echo "${ECHO_T}$TYPE_WORD" >&6
6465 echo "$as_me:$LINENO: checking type name for dword" >&5
6466 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
6467 TYPE_DWORD=`type_name 4`
6468 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6469 echo "${ECHO_T}$TYPE_DWORD" >&6
6470 cat >>confdefs.h <<_ACEOF
6471 #define TYPE_BYTE $TYPE_BYTE
6474 cat >>confdefs.h <<_ACEOF
6475 #define TYPE_WORD $TYPE_WORD
6478 cat >>confdefs.h <<_ACEOF
6479 #define TYPE_DWORD $TYPE_DWORD
6483 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6484 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6485 if test "${ac_cv_c_bigendian+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 # See if sys/param.h defines the BYTE_ORDER macro.
6489 cat >conftest.$ac_ext <<_ACEOF
6490 #line $LINENO "configure"
6491 #include "confdefs.h"
6492 #include <sys/types.h>
6493 #include <sys/param.h>
6498 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 # It does; now see whether it defined to BIG_ENDIAN or not.
6519 cat >conftest.$ac_ext <<_ACEOF
6520 #line $LINENO "configure"
6521 #include "confdefs.h"
6522 #include <sys/types.h>
6523 #include <sys/param.h>
6528 #if BYTE_ORDER != BIG_ENDIAN
6536 rm -f conftest.$ac_objext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest.$ac_objext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 ac_cv_c_bigendian=yes
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 ac_cv_c_bigendian=no
6554 rm -f conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 # It does not; compile a test program.
6559 if test "$cross_compiling" = yes; then
6560 # try to guess the endianness by grepping values into an object file
6561 ac_cv_c_bigendian=unknown
6562 cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6566 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6567 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6568 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6569 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6570 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6574 _ascii (); _ebcdic ();
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6592 ac_cv_c_bigendian=yes
6594 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6595 if test "$ac_cv_c_bigendian" = unknown; then
6596 ac_cv_c_bigendian=no
6598 # finding both strings is unlikely to happen, but who knows?
6599 ac_cv_c_bigendian=unknown
6603 echo "$as_me: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 rm -f conftest.$ac_objext conftest.$ac_ext
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line $LINENO "configure"
6610 #include "confdefs.h"
6614 /* Are we little or big endian? From Harbison&Steele. */
6618 char c[sizeof (long)];
6621 exit (u.c[sizeof (long) - 1] == 1);
6624 rm -f conftest$ac_exeext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626 (eval $ac_link) 2>&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_c_bigendian=no
6637 echo "$as_me: program exited with status $ac_status" >&5
6638 echo "$as_me: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 ac_cv_c_bigendian=yes
6643 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6646 rm -f conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6649 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6650 case $ac_cv_c_bigendian in
6653 cat >>confdefs.h <<\_ACEOF
6654 #define WORDS_BIGENDIAN 1
6660 { { echo "$as_me:$LINENO: error: unknown endianness
6661 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6662 echo "$as_me: error: unknown endianness
6663 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6664 { (exit 1); exit 1; }; } ;;
6670 if test "${prefix}" = "NONE"; then
6675 sdcc_datadir=${datadir}/sdcc
6678 # For some unknown reason, putting this assignment in a subshell
6679 # like this causes the rvalue to be fully substituted. We need this
6680 # for the defines below to generate the right thing. We keep this
6681 # separate from the substituted sdcc_datadir because we want the
6682 # latter for makefiles.
6683 if test "${datadir}" = "\${prefix}/share"; then
6684 sdcc_datadir_tmp=${prefix}/share/sdcc
6686 sdcc_datadir_tmp=${datadir}/sdcc
6689 if test "${includedir}" = "\${prefix}/include"; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define STANDARD_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
6694 cat >>confdefs.h <<_ACEOF
6695 #define SDCC_INCLUDE_DIR "${sdcc_datadir_tmp}/include"
6699 cat >>confdefs.h <<_ACEOF
6700 #define STANDARD_INCLUDE_DIR "${includedir}"
6703 cat >>confdefs.h <<_ACEOF
6704 #define SDCC_INCLUDE_DIR "${includedir}"
6709 cat >>confdefs.h <<_ACEOF
6710 #define SDCC_LIB_DIR "${sdcc_datadir_tmp}/lib"
6713 cat >>confdefs.h <<_ACEOF
6714 #define STD_LIB "libsdcc"
6717 cat >>confdefs.h <<_ACEOF
6718 #define STD_INT_LIB "libint"
6721 cat >>confdefs.h <<_ACEOF
6722 #define STD_LONG_LIB "liblong"
6725 cat >>confdefs.h <<_ACEOF
6726 #define STD_FP_LIB "libfloat"
6729 cat >>confdefs.h <<_ACEOF
6730 #define STD_DS390_LIB "libds390"
6733 cat >>confdefs.h <<_ACEOF
6734 #define STD_xa51_LIB "xa51"
6738 cat >>confdefs.h <<_ACEOF
6739 #define PREFIX "${prefix}"
6742 cat >>confdefs.h <<_ACEOF
6743 #define DATADIR "${sdcc_datadir_tmp}"
6746 cat >>confdefs.h <<_ACEOF
6747 #define SRCDIR "${config_in}"
6753 # Now handle the port selection
6754 rm -f ports.all ports.build
6755 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6756 if test "${enable_mcs51_port+set}" = set; then
6757 enableval="$enable_mcs51_port"
6760 echo mcs51 >>ports.all
6761 if test "$enable_mcs51_port" = "no"; then
6762 cat >>confdefs.h <<_ACEOF
6763 #define OPT_DISABLE_MCS51 1
6767 echo mcs51 >>ports.build
6768 cat >>confdefs.h <<_ACEOF
6769 #define OPT_DISABLE_MCS51 0
6774 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6775 if test "${enable_gbz80_port+set}" = set; then
6776 enableval="$enable_gbz80_port"
6779 echo z80 >>ports.all
6780 if test "$enable_gbz80_port" = "no"; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define OPT_DISABLE_GBZ80 1
6786 echo z80 >>ports.build
6787 cat >>confdefs.h <<_ACEOF
6788 #define OPT_DISABLE_GBZ80 0
6793 # Check whether --enable-z80-port or --disable-z80-port was given.
6794 if test "${enable_z80_port+set}" = set; then
6795 enableval="$enable_z80_port"
6798 echo z80 >>ports.all
6799 if test "$enable_z80_port" = "no"; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define OPT_DISABLE_Z80 1
6805 echo z80 >>ports.build
6806 cat >>confdefs.h <<_ACEOF
6807 #define OPT_DISABLE_Z80 0
6812 # Check whether --enable-avr-port or --disable-avr-port was given.
6813 if test "${enable_avr_port+set}" = set; then
6814 enableval="$enable_avr_port"
6817 echo avr >>ports.all
6818 if test "$enable_avr_port" = "no"; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define OPT_DISABLE_AVR 1
6824 echo avr >>ports.build
6825 cat >>confdefs.h <<_ACEOF
6826 #define OPT_DISABLE_AVR 0
6831 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6832 if test "${enable_ds390_port+set}" = set; then
6833 enableval="$enable_ds390_port"
6836 echo ds390 >>ports.all
6837 if test "$enable_ds390_port" = "no"; then
6838 cat >>confdefs.h <<_ACEOF
6839 #define OPT_DISABLE_DS390 1
6842 cat >>confdefs.h <<_ACEOF
6843 #define OPT_DISABLE_TININative 1
6847 echo ds390 >>ports.build
6848 cat >>confdefs.h <<_ACEOF
6849 #define OPT_DISABLE_DS390 0
6852 cat >>confdefs.h <<_ACEOF
6853 #define OPT_DISABLE_TININative 0
6858 # Check whether --enable-pic-port or --disable-pic-port was given.
6859 if test "${enable_pic_port+set}" = set; then
6860 enableval="$enable_pic_port"
6863 echo pic >>ports.all
6864 if test "$enable_pic_port" = "no"; then
6865 cat >>confdefs.h <<_ACEOF
6866 #define OPT_DISABLE_PIC 1
6870 echo pic >>ports.build
6871 cat >>confdefs.h <<_ACEOF
6872 #define OPT_DISABLE_PIC 0
6877 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6878 if test "${enable_xa51_port+set}" = set; then
6879 enableval="$enable_xa51_port"
6882 echo xa51 >>ports.all
6883 if test "$enable_xa51_port" = "no"; then
6884 cat >>confdefs.h <<_ACEOF
6885 #define OPT_DISABLE_XA51 1
6889 echo xa51 >>ports.build
6890 cat >>confdefs.h <<_ACEOF
6891 #define OPT_DISABLE_XA51 0
6896 # Check whether --enable-ucsim or --disable-ucsim was given.
6897 if test "${enable_ucsim+set}" = set; then
6898 enableval="$enable_ucsim"
6901 OPT_ENABLE_UCSIM=$enable_ucsim
6904 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
6905 if test "${enable_device_lib_build+set}" = set; then
6906 enableval="$enable_device_lib_build"
6909 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
6912 # Check whether --enable-packihx or --disable-packihx was given.
6913 if test "${enable_packihx+set}" = set; then
6914 enableval="$enable_packihx"
6917 OPT_ENABLE_PACKIHX=$enable_packihx
6920 # Check whether --enable-libgc or --disable-libgc was given.
6921 if test "${enable_libgc+set}" = set; then
6922 enableval="$enable_libgc"
6925 if test "$enable_libgc" = "yes"; then
6927 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
6928 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6929 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_check_lib_save_LIBS=$LIBS
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6936 #include "confdefs.h"
6938 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_lib_gc_GC_malloc=yes
6967 echo "$as_me: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 ac_cv_lib_gc_GC_malloc=no
6971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_check_lib_save_LIBS
6974 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6975 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6976 if test $ac_cv_lib_gc_GC_malloc = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_LIBGC 1
6989 cat >>confdefs.h <<_ACEOF
6990 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6995 cat ports.all | uniq >ports
6997 cat ports.build | uniq >ports
6998 mv ports ports.build
7000 # Generating output files
7001 # ===========================================================================
7004 subdirs="$subdirs support/cpp2"
7008 subdirs="$subdirs packihx"
7012 subdirs="$subdirs sim/ucsim"
7014 # MLH: removed as the rules are already in Makefile.common
7017 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"
7018 cat >confcache <<\_ACEOF
7019 # This file is a shell script that caches the results of configure
7020 # tests run on this system so they can be shared between configure
7021 # scripts and configure runs, see configure's option --config-cache.
7022 # It is not useful on other systems. If it contains results you don't
7023 # want to keep, you may remove or edit it.
7025 # config.status only pays attention to the cache file if you give it
7026 # the --recheck option to rerun configure.
7028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7034 # The following way of writing the cache mishandles newlines in values,
7035 # but we know of no workaround that is simple, portable, and efficient.
7036 # So, don't put newlines in cache variables' values.
7037 # Ultrix sh set writes to stderr and can't be redirected directly,
7038 # and sets the high bit in the cache file unless we assign to the vars.
7041 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7043 # `set' does not quote correctly, so add quotes (double-quote
7044 # substitution turns \\\\ into \\, and sed turns \\ into \).
7047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7050 # `set' quotes correctly as required by POSIX, so do not add quotes.
7052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7061 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7063 if cmp -s $cache_file confcache; then :; else
7064 if test -w $cache_file; then
7065 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7066 cat confcache >$cache_file
7068 echo "not updating unwritable cache $cache_file"
7073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7074 # Let make expand exec_prefix.
7075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7077 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7078 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7079 # trailing colons and then remove the whole line if VPATH becomes empty
7080 # (actually we leave an empty line to preserve line numbers).
7081 if test "x$srcdir" = x.; then
7082 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7083 s/:*\$(srcdir):*/:/;
7084 s/:*\${srcdir}:*/:/;
7086 s/^\([^=]*=[ ]*\):*/\1/;
7092 DEFS=-DHAVE_CONFIG_H
7096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7097 # 1. Remove the extension, and $U if already installed.
7098 ac_i=`echo "$ac_i" |
7099 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7101 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7102 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7106 LTLIBOBJS=$ac_ltlibobjs
7110 : ${CONFIG_STATUS=./config.status}
7111 ac_clean_files_save=$ac_clean_files
7112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7113 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7114 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7115 cat >$CONFIG_STATUS <<_ACEOF
7117 # Generated by $as_me.
7118 # Run this file to recreate the current configuration.
7119 # Compiler output produced by configure, useful for debugging
7120 # configure, is in config.log if it exists.
7123 SHELL=\${CONFIG_SHELL-$SHELL}
7126 cat >>$CONFIG_STATUS <<\_ACEOF
7127 ## --------------------- ##
7128 ## M4sh Initialization. ##
7129 ## --------------------- ##
7131 # Be Bourne compatible
7132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7135 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7136 # is contrary to our usage. Disable this feature.
7137 alias -g '${1+"$@"}'='"$@"'
7138 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7142 # Support unset when possible.
7143 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7150 # Work around bugs in pre-3.0 UWIN ksh.
7151 $as_unset ENV MAIL MAILPATH
7157 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
7159 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7160 eval $as_var=C; export $as_var
7166 # Required to use basename.
7167 if expr a : '\(a\)' >/dev/null 2>&1; then
7173 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7174 as_basename=basename
7180 # Name of the executable.
7181 as_me=`$as_basename "$0" ||
7182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7183 X"$0" : 'X\(//\)$' \| \
7184 X"$0" : 'X\(/\)$' \| \
7185 . : '\(.\)' 2>/dev/null ||
7187 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7188 /^X\/\(\/\/\)$/{ s//\1/; q; }
7189 /^X\/\(\/\).*/{ s//\1/; q; }
7193 # PATH needs CR, and LINENO needs CR and PATH.
7194 # Avoid depending upon Character Ranges.
7195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7198 as_cr_digits='0123456789'
7199 as_cr_alnum=$as_cr_Letters$as_cr_digits
7201 # The user is always right.
7202 if test "${PATH_SEPARATOR+set}" != set; then
7203 echo "#! /bin/sh" >conftest.sh
7204 echo "exit 0" >>conftest.sh
7205 chmod +x conftest.sh
7206 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
7217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7218 test "x$as_lineno_1" != "x$as_lineno_2" &&
7219 test "x$as_lineno_3" = "x$as_lineno_2" || {
7220 # Find who we are. Look in the path if we contain no path at all
7223 *[\\/]* ) as_myself=$0 ;;
7224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7234 # We did not find ourselves, most probably we were run as `sh COMMAND'
7235 # in which case we are not to be found in the path.
7236 if test "x$as_myself" = x; then
7239 if test ! -f "$as_myself"; then
7240 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7241 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7242 { (exit 1); exit 1; }; }
7244 case $CONFIG_SHELL in
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7250 test -z "$as_dir" && as_dir=.
7251 for as_base in sh bash ksh sh5; do
7254 if ("$as_dir/$as_base" -c '
7257 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7258 test "x$as_lineno_1" != "x$as_lineno_2" &&
7259 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7260 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7261 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7262 CONFIG_SHELL=$as_dir/$as_base
7264 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7273 # uniformly replaced by the line number. The first 'sed' inserts a
7274 # line-number line before each line; the second 'sed' does the real
7275 # work. The second script uses 'N' to pair each line-number line
7276 # with the numbered line, and appends trailing '-' during
7277 # substitution so that $LINENO is not a special case at line end.
7278 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7279 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7280 sed '=' <$as_myself |
7285 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7288 s,^['$as_cr_digits']*\n,,
7290 chmod +x $as_me.lineno ||
7291 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7292 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7293 { (exit 1); exit 1; }; }
7295 # Don't try to exec as it changes $[0], causing all sort of problems
7296 # (the dirname of $[0] is not the place where we might find the
7297 # original and so on. Autoconf is especially sensible to this).
7299 # Exit status is that of the last command.
7304 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7305 *c*,-n*) ECHO_N= ECHO_C='
7307 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7308 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7311 if expr a : '\(a\)' >/dev/null 2>&1; then
7317 rm -f conf$$ conf$$.exe conf$$.file
7319 if ln -s conf$$.file conf$$ 2>/dev/null; then
7320 # We could just check for DJGPP; but this test a) works b) is more generic
7321 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7322 if test -f conf$$.exe; then
7323 # Don't use ln at all; we don't have any links
7328 elif ln conf$$.file conf$$ 2>/dev/null; then
7333 rm -f conf$$ conf$$.exe conf$$.file
7335 if mkdir -p . 2>/dev/null; then
7341 as_executable_p="test -f"
7343 # Sed expression to map a string onto a valid CPP name.
7344 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7346 # Sed expression to map a string onto a valid variable name.
7347 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7351 # We need space, tab and new line, in precisely that order.
7361 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7362 # report actual input values of CONFIG_FILES etc. instead of their
7363 # values after options handling. Logging --version etc. is OK.
7367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7368 ## Running $as_me. ##
7373 This file was extended by $as_me, which was
7374 generated by GNU Autoconf 2.54. Invocation command line was
7376 CONFIG_FILES = $CONFIG_FILES
7377 CONFIG_HEADERS = $CONFIG_HEADERS
7378 CONFIG_LINKS = $CONFIG_LINKS
7379 CONFIG_COMMANDS = $CONFIG_COMMANDS
7383 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7387 # Files that config.status was made for.
7388 if test -n "$ac_config_files"; then
7389 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7392 if test -n "$ac_config_headers"; then
7393 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7396 if test -n "$ac_config_links"; then
7397 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7400 if test -n "$ac_config_commands"; then
7401 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7404 cat >>$CONFIG_STATUS <<\_ACEOF
7407 \`$as_me' instantiates files from templates according to the
7408 current configuration.
7410 Usage: $0 [OPTIONS] [FILE]...
7412 -h, --help print this help, then exit
7413 -V, --version print version number, then exit
7414 -d, --debug don't remove temporary files
7415 --recheck update $as_me by reconfiguring in the same conditions
7416 --file=FILE[:TEMPLATE]
7417 instantiate the configuration file FILE
7418 --header=FILE[:TEMPLATE]
7419 instantiate the configuration header FILE
7421 Configuration files:
7424 Configuration headers:
7427 Report bugs to <bug-autoconf@gnu.org>."
7430 cat >>$CONFIG_STATUS <<_ACEOF
7433 configured by $0, generated by GNU Autoconf 2.54,
7434 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7436 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7437 Free Software Foundation, Inc.
7438 This config.status script is free software; the Free Software Foundation
7439 gives unlimited permission to copy, distribute and modify it."
7444 cat >>$CONFIG_STATUS <<\_ACEOF
7445 # If no file are specified by the user, then we need to provide default
7446 # value. By we need to know if files were specified by the user.
7452 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7453 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7461 *) # This is not an option, so the user has probably given explicit
7464 ac_need_defaults=false;;
7468 # Handling of the options.
7470 cat >>$CONFIG_STATUS <<_ACEOF
7471 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7472 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7473 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7475 cat >>$CONFIG_STATUS <<\_ACEOF
7476 --version | --vers* | -V )
7477 echo "$ac_cs_version"; exit 0 ;;
7479 # Conflict between --help and --header
7480 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7481 Try \`$0 --help' for more information." >&5
7482 echo "$as_me: error: ambiguous option: $1
7483 Try \`$0 --help' for more information." >&2;}
7484 { (exit 1); exit 1; }; };;
7485 --help | --hel | -h )
7486 echo "$ac_cs_usage"; exit 0 ;;
7487 --debug | --d* | -d )
7489 --file | --fil | --fi | --f )
7491 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7492 ac_need_defaults=false;;
7493 --header | --heade | --head | --hea )
7495 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7496 ac_need_defaults=false;;
7499 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7500 Try \`$0 --help' for more information." >&5
7501 echo "$as_me: error: unrecognized option: $1
7502 Try \`$0 --help' for more information." >&2;}
7503 { (exit 1); exit 1; }; } ;;
7505 *) ac_config_targets="$ac_config_targets $1" ;;
7517 cat >>$CONFIG_STATUS <<\_ACEOF
7518 for ac_config_target in $ac_config_targets
7520 case "$ac_config_target" in
7521 # Handling of arguments.
7522 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7523 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7524 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7525 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7526 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7527 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7528 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7529 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7530 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7531 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7532 { (exit 1); exit 1; }; };;
7536 # If the user did not use the arguments to specify the items to instantiate,
7537 # then the envvar interface is used. Set only those that are not.
7538 # We use the long form for the default assignment because of an extremely
7539 # bizarre bug on SunOS 4.1.3.
7540 if $ac_need_defaults; then
7541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7545 # Create a temporary directory, and hook for its removal unless debugging.
7548 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7549 trap '{ (exit 1); exit 1; }' 1 2 13 15
7552 # Create a (secure) tmp directory for tmp files.
7555 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7556 test -n "$tmp" && test -d "$tmp"
7559 tmp=$TMPDIR/cs$$-$RANDOM
7560 (umask 077 && mkdir $tmp)
7563 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7564 { (exit 1); exit 1; }
7569 cat >>$CONFIG_STATUS <<_ACEOF
7572 # CONFIG_FILES section.
7575 # No need to generate the scripts if there are no CONFIG_FILES.
7576 # This happens for instance when ./config.status config.h
7577 if test -n "\$CONFIG_FILES"; then
7578 # Protect against being on the right side of a sed subst in config.status.
7579 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7580 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7581 s,@SHELL@,$SHELL,;t t
7582 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7583 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7584 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7585 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7586 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7587 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7588 s,@exec_prefix@,$exec_prefix,;t t
7589 s,@prefix@,$prefix,;t t
7590 s,@program_transform_name@,$program_transform_name,;t t
7591 s,@bindir@,$bindir,;t t
7592 s,@sbindir@,$sbindir,;t t
7593 s,@libexecdir@,$libexecdir,;t t
7594 s,@datadir@,$datadir,;t t
7595 s,@sysconfdir@,$sysconfdir,;t t
7596 s,@sharedstatedir@,$sharedstatedir,;t t
7597 s,@localstatedir@,$localstatedir,;t t
7598 s,@libdir@,$libdir,;t t
7599 s,@includedir@,$includedir,;t t
7600 s,@oldincludedir@,$oldincludedir,;t t
7601 s,@infodir@,$infodir,;t t
7602 s,@mandir@,$mandir,;t t
7603 s,@build_alias@,$build_alias,;t t
7604 s,@host_alias@,$host_alias,;t t
7605 s,@target_alias@,$target_alias,;t t
7607 s,@ECHO_C@,$ECHO_C,;t t
7608 s,@ECHO_N@,$ECHO_N,;t t
7609 s,@ECHO_T@,$ECHO_T,;t t
7612 s,@VERSION@,$VERSION,;t t
7613 s,@VERSIONHI@,$VERSIONHI,;t t
7614 s,@VERSIONLO@,$VERSIONLO,;t t
7615 s,@VERSIONP@,$VERSIONP,;t t
7617 s,@CFLAGS@,$CFLAGS,;t t
7618 s,@LDFLAGS@,$LDFLAGS,;t t
7619 s,@CPPFLAGS@,$CPPFLAGS,;t t
7620 s,@ac_ct_CC@,$ac_ct_CC,;t t
7621 s,@EXEEXT@,$EXEEXT,;t t
7622 s,@OBJEXT@,$OBJEXT,;t t
7624 s,@CXXFLAGS@,$CXXFLAGS,;t t
7625 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7627 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7628 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7629 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7630 s,@RANLIB@,$RANLIB,;t t
7631 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7633 s,@LEXLIB@,$LEXLIB,;t t
7634 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7636 s,@AUTOCONF@,$AUTOCONF,;t t
7637 s,@STRIP@,$STRIP,;t t
7640 s,@EGREP@,$EGREP,;t t
7641 s,@M_OR_MM@,$M_OR_MM,;t t
7642 s,@sdcc_datadir@,$sdcc_datadir,;t t
7643 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7644 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7645 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7646 s,@subdirs@,$subdirs,;t t
7647 s,@LIBOBJS@,$LIBOBJS,;t t
7648 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7653 cat >>$CONFIG_STATUS <<\_ACEOF
7654 # Split the substitutions into bite-sized pieces for seds with
7655 # small command number limits, like on Digital OSF/1 and HP-UX.
7657 ac_sed_frag=1 # Number of current file.
7658 ac_beg=1 # First line for current file.
7659 ac_end=$ac_max_sed_lines # Line after last line for current file.
7662 while $ac_more_lines; do
7663 if test $ac_beg -gt 1; then
7664 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7666 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7668 if test ! -s $tmp/subs.frag; then
7671 # The purpose of the label and of the branching condition is to
7672 # speed up the sed processing (if there are no `@' at all, there
7673 # is no need to browse any of the substitutions).
7674 # These are the two extra sed commands mentioned above.
7676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7677 if test -z "$ac_sed_cmds"; then
7678 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7680 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7682 ac_sed_frag=`expr $ac_sed_frag + 1`
7684 ac_end=`expr $ac_end + $ac_max_sed_lines`
7687 if test -z "$ac_sed_cmds"; then
7690 fi # test -n "$CONFIG_FILES"
7693 cat >>$CONFIG_STATUS <<\_ACEOF
7694 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7697 - | *:- | *:-:* ) # input from stdin
7699 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7701 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7703 * ) ac_file_in=$ac_file.in ;;
7706 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7707 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7709 X"$ac_file" : 'X\(//\)[^/]' \| \
7710 X"$ac_file" : 'X\(//\)$' \| \
7711 X"$ac_file" : 'X\(/\)' \| \
7712 . : '\(.\)' 2>/dev/null ||
7714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7716 /^X\(\/\/\)$/{ s//\1/; q; }
7717 /^X\(\/\).*/{ s//\1/; q; }
7719 { if $as_mkdir_p; then
7724 while test ! -d "$as_dir"; do
7725 as_dirs="$as_dir $as_dirs"
7726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7728 X"$as_dir" : 'X\(//\)[^/]' \| \
7729 X"$as_dir" : 'X\(//\)$' \| \
7730 X"$as_dir" : 'X\(/\)' \| \
7731 . : '\(.\)' 2>/dev/null ||
7733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7735 /^X\(\/\/\)$/{ s//\1/; q; }
7736 /^X\(\/\).*/{ s//\1/; q; }
7739 test ! -n "$as_dirs" || mkdir $as_dirs
7740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7742 { (exit 1); exit 1; }; }; }
7746 if test "$ac_dir" != .; then
7747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7748 # A "../" for each directory in $ac_dir_suffix.
7749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7751 ac_dir_suffix= ac_top_builddir=
7755 .) # No --srcdir option. We are building in place.
7757 if test -z "$ac_top_builddir"; then
7760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7762 [\\/]* | ?:[\\/]* ) # Absolute path.
7763 ac_srcdir=$srcdir$ac_dir_suffix;
7764 ac_top_srcdir=$srcdir ;;
7766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7769 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7771 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7772 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7773 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7774 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7779 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7782 if test x"$ac_file" != x-; then
7783 { echo "$as_me:$LINENO: creating $ac_file" >&5
7784 echo "$as_me: creating $ac_file" >&6;}
7787 # Let's still pretend it is `configure' which instantiates (i.e., don't
7788 # use $as_me), people would be surprised to read:
7789 # /* config.h. Generated by config.status. */
7790 if test x"$ac_file" = x-; then
7793 configure_input="$ac_file. "
7795 configure_input=$configure_input"Generated from `echo $ac_file_in |
7796 sed 's,.*/,,'` by configure."
7798 # First look for the input files in the build tree, otherwise in the
7800 ac_file_inputs=`IFS=:
7801 for f in $ac_file_in; do
7803 -) echo $tmp/stdin ;;
7805 # Absolute (can't be DOS-style, as IFS=:)
7806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7807 echo "$as_me: error: cannot find input file: $f" >&2;}
7808 { (exit 1); exit 1; }; }
7811 if test -f "$f"; then
7814 elif test -f "$srcdir/$f"; then
7819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7820 echo "$as_me: error: cannot find input file: $f" >&2;}
7821 { (exit 1); exit 1; }; }
7824 done` || { (exit 1); exit 1; }
7826 cat >>$CONFIG_STATUS <<_ACEOF
7830 cat >>$CONFIG_STATUS <<\_ACEOF
7832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7833 s,@configure_input@,$configure_input,;t t
7834 s,@srcdir@,$ac_srcdir,;t t
7835 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7836 s,@top_srcdir@,$ac_top_srcdir,;t t
7837 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7838 s,@builddir@,$ac_builddir,;t t
7839 s,@abs_builddir@,$ac_abs_builddir,;t t
7840 s,@top_builddir@,$ac_top_builddir,;t t
7841 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7842 s,@INSTALL@,$ac_INSTALL,;t t
7843 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7845 if test x"$ac_file" != x-; then
7846 mv $tmp/out $ac_file
7854 cat >>$CONFIG_STATUS <<\_ACEOF
7857 # CONFIG_HEADER section.
7860 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7861 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7863 # ac_d sets the value in "#define NAME VALUE" lines.
7864 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7865 ac_dB='[ ].*$,\1#\2'
7868 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7869 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7870 ac_uB='$,\1#\2define\3'
7874 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7877 - | *:- | *:-:* ) # input from stdin
7879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7883 * ) ac_file_in=$ac_file.in ;;
7886 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7887 echo "$as_me: creating $ac_file" >&6;}
7889 # First look for the input files in the build tree, otherwise in the
7891 ac_file_inputs=`IFS=:
7892 for f in $ac_file_in; do
7894 -) echo $tmp/stdin ;;
7896 # Absolute (can't be DOS-style, as IFS=:)
7897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7898 echo "$as_me: error: cannot find input file: $f" >&2;}
7899 { (exit 1); exit 1; }; }
7902 if test -f "$f"; then
7905 elif test -f "$srcdir/$f"; then
7910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7911 echo "$as_me: error: cannot find input file: $f" >&2;}
7912 { (exit 1); exit 1; }; }
7915 done` || { (exit 1); exit 1; }
7916 # Remove the trailing spaces.
7917 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7921 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7922 # `conftest.undefs', that substitutes the proper values into
7923 # config.h.in to produce config.h. The first handles `#define'
7924 # templates, and the second `#undef' templates.
7925 # And first: Protect against being on the right side of a sed subst in
7926 # config.status. Protect against being in an unquoted here document
7928 rm -f conftest.defines conftest.undefs
7929 # Using a here document instead of a string reduces the quoting nightmare.
7930 # Putting comments in sed scripts is not portable.
7932 # `end' is used to avoid that the second main sed command (meant for
7933 # 0-ary CPP macros) applies to n-ary macro definitions.
7934 # See the Autoconf documentation for `clear'.
7935 cat >confdef2sed.sed <<\_ACEOF
7940 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7942 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7945 # If some macros were called several times there might be several times
7946 # the same #defines, which is useless. Nevertheless, we may not want to
7947 # sort them, since we want the *last* AC-DEFINE to be honored.
7948 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7949 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7950 rm -f confdef2sed.sed
7952 # This sed command replaces #undef with comments. This is necessary, for
7953 # example, in the case of _POSIX_SOURCE, which is predefined and required
7954 # on some systems where configure will not decide to define it.
7955 cat >>conftest.undefs <<\_ACEOF
7956 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7959 # Break up conftest.defines because some shells have a limit on the size
7960 # of here documents, and old seds have small limits too (100 cmds).
7961 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7962 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7963 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7964 echo ' :' >>$CONFIG_STATUS
7966 while grep . conftest.defines >/dev/null
7968 # Write a limited-size here document to $tmp/defines.sed.
7969 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7970 # Speed up: don't consider the non `#define' lines.
7971 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7972 # Work around the forget-to-reset-the-flag bug.
7973 echo 't clr' >>$CONFIG_STATUS
7974 echo ': clr' >>$CONFIG_STATUS
7975 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7977 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7981 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7982 rm -f conftest.defines
7983 mv conftest.tail conftest.defines
7985 rm -f conftest.defines
7986 echo ' fi # grep' >>$CONFIG_STATUS
7987 echo >>$CONFIG_STATUS
7989 # Break up conftest.undefs because some shells have a limit on the size
7990 # of here documents, and old seds have small limits too (100 cmds).
7991 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7993 while grep . conftest.undefs >/dev/null
7995 # Write a limited-size here document to $tmp/undefs.sed.
7996 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7997 # Speed up: don't consider the non `#undef'
7998 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7999 # Work around the forget-to-reset-the-flag bug.
8000 echo 't clr' >>$CONFIG_STATUS
8001 echo ': clr' >>$CONFIG_STATUS
8002 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8004 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8008 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8009 rm -f conftest.undefs
8010 mv conftest.tail conftest.undefs
8012 rm -f conftest.undefs
8014 cat >>$CONFIG_STATUS <<\_ACEOF
8015 # Let's still pretend it is `configure' which instantiates (i.e., don't
8016 # use $as_me), people would be surprised to read:
8017 # /* config.h. Generated by config.status. */
8018 if test x"$ac_file" = x-; then
8019 echo "/* Generated by configure. */" >$tmp/config.h
8021 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8023 cat $tmp/in >>$tmp/config.h
8025 if test x"$ac_file" != x-; then
8026 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8028 echo "$as_me: $ac_file is unchanged" >&6;}
8030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8032 X"$ac_file" : 'X\(//\)[^/]' \| \
8033 X"$ac_file" : 'X\(//\)$' \| \
8034 X"$ac_file" : 'X\(/\)' \| \
8035 . : '\(.\)' 2>/dev/null ||
8037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8039 /^X\(\/\/\)$/{ s//\1/; q; }
8040 /^X\(\/\).*/{ s//\1/; q; }
8042 { if $as_mkdir_p; then
8047 while test ! -d "$as_dir"; do
8048 as_dirs="$as_dir $as_dirs"
8049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8051 X"$as_dir" : 'X\(//\)[^/]' \| \
8052 X"$as_dir" : 'X\(//\)$' \| \
8053 X"$as_dir" : 'X\(/\)' \| \
8054 . : '\(.\)' 2>/dev/null ||
8056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8058 /^X\(\/\/\)$/{ s//\1/; q; }
8059 /^X\(\/\).*/{ s//\1/; q; }
8062 test ! -n "$as_dirs" || mkdir $as_dirs
8063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8065 { (exit 1); exit 1; }; }; }
8068 mv $tmp/config.h $ac_file
8077 cat >>$CONFIG_STATUS <<\_ACEOF
8079 { (exit 0); exit 0; }
8081 chmod +x $CONFIG_STATUS
8082 ac_clean_files=$ac_clean_files_save
8085 # configure is writing to config.log, and then calls config.status.
8086 # config.status does its own redirection, appending to config.log.
8087 # Unfortunately, on DOS this fails, as config.log is still kept open
8088 # by configure, so config.status won't be able to write to it; its
8089 # output is simply discarded. So we exec the FD to /dev/null,
8090 # effectively closing config.log, so it can be properly (re)opened and
8091 # appended to by config.status. When coming back to configure, we
8092 # need to make the FD available again.
8093 if test "$no_create" != yes; then
8096 $SHELL $CONFIG_STATUS || ac_cs_success=false
8098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8099 # would make configure fail if this is the last instruction.
8100 $ac_cs_success || { (exit 1); exit 1; }
8104 # CONFIG_SUBDIRS section.
8106 if test "$no_recursion" != yes; then
8108 # Remove --cache-file and --srcdir arguments so they do not pile up.
8109 ac_sub_configure_args=
8111 for ac_arg in $ac_configure_args; do
8112 if test -n "$ac_prev"; then
8117 -cache-file | --cache-file | --cache-fil | --cache-fi \
8118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8119 ac_prev=cache_file ;;
8120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8124 --config-cache | -C)
8126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8134 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8138 # Always prepend --prefix to ensure using the same prefix
8139 # in subdir configurations.
8140 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8143 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8145 # Do not complain, so a configure script can configure whichever
8146 # parts of a large source tree are present.
8147 test -d $srcdir/$ac_dir || continue
8149 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8150 echo "$as_me: configuring in $ac_dir" >&6;}
8151 { if $as_mkdir_p; then
8156 while test ! -d "$as_dir"; do
8157 as_dirs="$as_dir $as_dirs"
8158 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8160 X"$as_dir" : 'X\(//\)[^/]' \| \
8161 X"$as_dir" : 'X\(//\)$' \| \
8162 X"$as_dir" : 'X\(/\)' \| \
8163 . : '\(.\)' 2>/dev/null ||
8165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8167 /^X\(\/\/\)$/{ s//\1/; q; }
8168 /^X\(\/\).*/{ s//\1/; q; }
8171 test ! -n "$as_dirs" || mkdir $as_dirs
8172 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8173 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8174 { (exit 1); exit 1; }; }; }
8178 if test "$ac_dir" != .; then
8179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8180 # A "../" for each directory in $ac_dir_suffix.
8181 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8183 ac_dir_suffix= ac_top_builddir=
8187 .) # No --srcdir option. We are building in place.
8189 if test -z "$ac_top_builddir"; then
8192 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8194 [\\/]* | ?:[\\/]* ) # Absolute path.
8195 ac_srcdir=$srcdir$ac_dir_suffix;
8196 ac_top_srcdir=$srcdir ;;
8198 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8199 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8201 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8203 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8204 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8205 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8206 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8211 # Check for guested configure; otherwise get Cygnus style configure.
8212 if test -f $ac_srcdir/configure.gnu; then
8213 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8214 elif test -f $ac_srcdir/configure; then
8215 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8216 elif test -f $ac_srcdir/configure.in; then
8217 ac_sub_configure=$ac_configure
8219 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8220 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8224 # The recursion is here.
8225 if test -n "$ac_sub_configure"; then
8226 # Make the cache file name correct relative to the subdirectory.
8228 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8230 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8233 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8234 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8235 # The eval makes quoting arguments work.
8236 eval $ac_sub_configure $ac_sub_configure_args \
8237 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8238 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8239 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8240 { (exit 1); exit 1; }; }
8248 # End of configure/configure.in