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 LYX LATEX LATEX2HTML PDFLATEX DVIPDF 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
864 Disables automatically building device libraries
865 --disable-packihx Disables building packihx
866 --enable-libgc Use the Bohem memory allocator. Lower runtime
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CXX C++ compiler command
877 CXXFLAGS C++ compiler flags
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 ac_dir_suffix= ac_top_builddir=
902 .) # No --srcdir option. We are building in place.
904 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
918 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
919 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
920 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
921 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924 # Check for guested configure; otherwise get Cygnus style configure.
925 if test -f $ac_srcdir/configure.gnu; then
927 $SHELL $ac_srcdir/configure.gnu --help=recursive
928 elif test -f $ac_srcdir/configure; then
930 $SHELL $ac_srcdir/configure --help=recursive
931 elif test -f $ac_srcdir/configure.ac ||
932 test -f $ac_srcdir/configure.in; then
936 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942 test -n "$ac_init_help" && exit 0
943 if $ac_init_version; then
946 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
947 Free Software Foundation, Inc.
948 This configure script is free software; the Free Software Foundation
949 gives unlimited permission to copy, distribute and modify it.
955 This file contains any messages produced by compilers while
956 running configure, to aid debugging if configure makes a mistake.
958 It was created by $as_me, which was
959 generated by GNU Autoconf 2.54. Invocation command line was
970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
982 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
993 test -z "$as_dir" && as_dir=.
1009 # Keep a trace of the command line.
1010 # Strip out --no-create and --no-recursion so they do not pile up.
1011 # Also quote any args containing shell meta-characters.
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n ) continue ;;
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1026 # Get rid of the leading space.
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log. We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036 # Save into config.log some information that might help in debugging.
1041 ## ---------------- ##
1042 ## Cache variables. ##
1043 ## ---------------- ##
1046 # The following way of writing the cache mishandles newlines in values,
1049 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1052 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064 ## ----------------- ##
1065 ## Output variables. ##
1066 ## ----------------- ##
1069 for ac_var in $ac_subst_vars
1071 eval ac_val=$`echo $ac_var`
1072 echo "$ac_var='"'"'$ac_val'"'"'"
1076 if test -n "$ac_subst_files"; then
1083 for ac_var in $ac_subst_files
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1091 if test -s confdefs.h; then
1098 sed "/^$/d" confdefs.h | sort
1101 test "$ac_signal" != 0 &&
1102 echo "$as_me: caught signal $ac_signal"
1103 echo "$as_me: exit $exit_status"
1105 rm -f core core.* *.core &&
1106 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1109 for ac_signal in 1 2 13 15; do
1110 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1115 rm -rf conftest* confdefs.h
1116 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1119 # Predefined preprocessor variables.
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 # Let the site file select an alternate cache file if it wants to.
1147 # Prefer explicitly selected file to automatically selected ones.
1148 if test -z "$CONFIG_SITE"; then
1149 if test "x$prefix" != xNONE; then
1150 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1152 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1155 for ac_site_file in $CONFIG_SITE; do
1156 if test -r "$ac_site_file"; then
1157 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158 echo "$as_me: loading site script $ac_site_file" >&6;}
1159 sed 's/^/| /' "$ac_site_file" >&5
1164 if test -r "$cache_file"; then
1165 # Some versions of bash will fail to source /dev/null (special
1166 # files actually), so we avoid doing that.
1167 if test -f "$cache_file"; then
1168 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169 echo "$as_me: loading cache $cache_file" >&6;}
1171 [\\/]* | ?:[\\/]* ) . $cache_file;;
1172 *) . ./$cache_file;;
1176 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177 echo "$as_me: creating cache $cache_file" >&6;}
1181 # Check that the precious variables saved in the cache have kept the same
1183 ac_cache_corrupted=false
1184 for ac_var in `(set) 2>&1 |
1185 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187 eval ac_new_set=\$ac_env_${ac_var}_set
1188 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189 eval ac_new_val="\$ac_env_${ac_var}_value"
1190 case $ac_old_set,$ac_new_set in
1192 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194 ac_cache_corrupted=: ;;
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1201 if test "x$ac_old_val" != "x$ac_new_val"; then
1202 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1205 echo "$as_me: former value: $ac_old_val" >&2;}
1206 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1207 echo "$as_me: current value: $ac_new_val" >&2;}
1208 ac_cache_corrupted=:
1211 # Pass precious variables to config.status.
1212 if test "$ac_new_set" = set; then
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 *) ac_arg=$ac_var=$ac_new_val ;;
1218 case " $ac_configure_args " in
1219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1220 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224 if $ac_cache_corrupted; then
1225 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229 { (exit 1); exit 1; }; }
1233 ac_cpp='$CPP $CPPFLAGS'
1234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1260 for ac_prog in gawk mawk nawk awk
1262 # Extract the first word of "$ac_prog", so it can be a program name with args.
1263 set dummy $ac_prog; ac_word=$2
1264 echo "$as_me:$LINENO: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_AWK+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 if test -n "$AWK"; then
1270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1276 test -z "$as_dir" && as_dir=.
1277 for ac_exec_ext in '' $ac_executable_extensions; do
1278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1279 ac_cv_prog_AWK="$ac_prog"
1280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1289 if test -n "$AWK"; then
1290 echo "$as_me:$LINENO: result: $AWK" >&5
1291 echo "${ECHO_T}$AWK" >&6
1293 echo "$as_me:$LINENO: result: no" >&5
1294 echo "${ECHO_T}no" >&6
1297 test -n "$AWK" && break
1301 echo "$as_me:$LINENO: checking version of the package" >&5
1302 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1303 if test -f .version; then
1304 VERSION=`cat .version`
1305 elif test -f ../.version; then
1306 VERSION=`cat ../.version`
1310 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1311 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1312 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1313 # Assume no special extension
1314 EXEEXT=`echo $EXEEXT`
1316 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1317 echo "${ECHO_T}${VERSION}" >&6
1322 cat >>confdefs.h <<_ACEOF
1323 #define SDCC_VERSION_LO ${VERSIONLO}
1326 cat >>confdefs.h <<_ACEOF
1327 #define SDCC_VERSION_HI ${VERSIONHI}
1330 cat >>confdefs.h <<_ACEOF
1331 #define SDCC_VERSION_P ${VERSIONP}
1334 cat >>confdefs.h <<_ACEOF
1335 #define SDCC_VERSION_STR "${VERSION}"
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF >conftest.sed
1346 s/[\\$]/&&/g;s/;s,x,x,$//
1348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1351 sdcc_cv_version=$VERSION
1352 sdcc_cv_versionhi=$VERSIONHI
1353 sdcc_cv_versionlo=$VERSIONLO
1354 sdcc_cv_versionp=$VERSIONP
1358 # ===========================================================================
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1367 echo "$as_me:$LINENO: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1379 test -z "$as_dir" && as_dir=.
1380 for ac_exec_ext in '' $ac_executable_extensions; do
1381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392 if test -n "$CC"; then
1393 echo "$as_me:$LINENO: result: $CC" >&5
1394 echo "${ECHO_T}$CC" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1401 if test -z "$ac_cv_prog_CC"; then
1403 # Extract the first word of "gcc", so it can be a program name with args.
1404 set dummy gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$ac_ct_CC"; then
1411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_ac_ct_CC="gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1430 if test -n "$ac_ct_CC"; then
1431 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1432 echo "${ECHO_T}$ac_ct_CC" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1443 if test -z "$CC"; then
1444 if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1446 set dummy ${ac_tool_prefix}cc; ac_word=$2
1447 echo "$as_me:$LINENO: checking for $ac_word" >&5
1448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1449 if test "${ac_cv_prog_CC+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 if test -n "$CC"; then
1453 ac_cv_prog_CC="$CC" # Let the user override the test.
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_prog_CC="${ac_tool_prefix}cc"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 if test -n "$CC"; then
1473 echo "$as_me:$LINENO: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1481 if test -z "$ac_cv_prog_CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_ac_ct_CC="cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510 if test -n "$ac_ct_CC"; then
1511 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1512 echo "${ECHO_T}$ac_ct_CC" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1524 if test -z "$CC"; then
1525 # Extract the first word of "cc", so it can be a program name with args.
1526 set dummy cc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1544 ac_prog_rejected=yes
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test $ac_prog_rejected = yes; then
1555 # We found a bogon in the path, so make sure we never use it.
1556 set dummy $ac_cv_prog_CC
1558 if test $# != 0; then
1559 # We chose a different compiler from the bogus one.
1560 # However, it has the same basename, so the bogon will be chosen
1561 # first if we set CC to just the basename; use the full file name.
1563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1569 if test -n "$CC"; then
1570 echo "$as_me:$LINENO: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1578 if test -z "$CC"; then
1579 if test -n "$ac_tool_prefix"; then
1582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$CC"; then
1590 ac_cv_prog_CC="$CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 if test -n "$CC"; then
1610 echo "$as_me:$LINENO: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$CC" && break
1620 if test -z "$CC"; then
1624 # Extract the first word of "$ac_prog", so it can be a program name with args.
1625 set dummy $ac_prog; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_ac_ct_CC="$ac_prog"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1659 test -n "$ac_ct_CC" && break
1668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1669 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1670 { (exit 1); exit 1; }; }
1672 # Provide some information about the compiler.
1673 echo "$as_me:$LINENO:" \
1674 "checking for C compiler version" >&5
1675 ac_compiler=`set X $ac_compile; echo $2`
1676 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1677 (eval $ac_compiler --version </dev/null >&5) 2>&5
1679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680 (exit $ac_status); }
1681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1682 (eval $ac_compiler -v </dev/null >&5) 2>&5
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }
1686 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1687 (eval $ac_compiler -V </dev/null >&5) 2>&5
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }
1692 cat >conftest.$ac_ext <<_ACEOF
1693 #line $LINENO "configure"
1694 #include "confdefs.h"
1704 ac_clean_files_save=$ac_clean_files
1705 ac_clean_files="$ac_clean_files a.out a.exe"
1706 # Try to create an executable without -o first, disregard a.out.
1707 # It will help us diagnose broken compilers, and finding out an intuition
1709 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1710 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1711 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1712 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1713 (eval $ac_link_default) 2>&5
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }; then
1717 # Find the output, starting from the most likely. This scheme is
1718 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1721 # Be careful to initialize this variable, since it used to be cached.
1722 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1724 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1725 test -f "$ac_file" || continue
1727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728 a.out ) # We found the default executable, but exeext='' is most
1731 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1732 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1739 echo "$as_me: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1742 check \`config.log' for details." >&5
1743 echo "$as_me: error: C compiler cannot create executables
1744 check \`config.log' for details." >&2;}
1745 { (exit 77); exit 77; }; }
1748 ac_exeext=$ac_cv_exeext
1749 echo "$as_me:$LINENO: result: $ac_file" >&5
1750 echo "${ECHO_T}$ac_file" >&6
1752 # Check the compiler produces executables we can run. If not, either
1753 # the compiler is broken, or we cross compile.
1754 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1755 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1756 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1757 # If not cross compiling, check that we can run a simple program.
1758 if test "$cross_compiling" != yes; then
1759 if { ac_try='./$ac_file'
1760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; }; then
1767 if test "$cross_compiling" = maybe; then
1770 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1771 If you meant to cross compile, use \`--host'." >&5
1772 echo "$as_me: error: cannot run C compiled programs.
1773 If you meant to cross compile, use \`--host'." >&2;}
1774 { (exit 1); exit 1; }; }
1778 echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1781 rm -f a.out a.exe conftest$ac_cv_exeext
1782 ac_clean_files=$ac_clean_files_save
1783 # Check the compiler produces executables we can run. If not, either
1784 # the compiler is broken, or we cross compile.
1785 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1786 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1787 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1788 echo "${ECHO_T}$cross_compiling" >&6
1790 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1791 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1793 (eval $ac_link) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1798 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1799 # work properly (i.e., refer to `conftest.exe'), while it won't with
1801 for ac_file in conftest.exe conftest conftest.*; do
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1813 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1814 { (exit 1); exit 1; }; }
1817 rm -f conftest$ac_cv_exeext
1818 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1819 echo "${ECHO_T}$ac_cv_exeext" >&6
1821 rm -f conftest.$ac_ext
1822 EXEEXT=$ac_cv_exeext
1824 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1825 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1826 if test "${ac_cv_objext+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 cat >conftest.$ac_ext <<_ACEOF
1830 #line $LINENO "configure"
1831 #include "confdefs.h"
1841 rm -f conftest.o conftest.obj
1842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843 (eval $ac_compile) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; then
1847 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1850 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1855 echo "$as_me: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1858 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1859 { (exit 1); exit 1; }; }
1862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1864 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1865 echo "${ECHO_T}$ac_cv_objext" >&6
1866 OBJEXT=$ac_cv_objext
1868 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1869 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1870 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 cat >conftest.$ac_ext <<_ACEOF
1874 #line $LINENO "configure"
1875 #include "confdefs.h"
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1902 echo "$as_me: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1906 rm -f conftest.$ac_objext conftest.$ac_ext
1907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1912 GCC=`test $ac_compiler_gnu = yes && echo yes`
1913 ac_test_CFLAGS=${CFLAGS+set}
1914 ac_save_CFLAGS=$CFLAGS
1916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1918 if test "${ac_cv_prog_cc_g+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.$ac_ext <<_ACEOF
1922 #line $LINENO "configure"
1923 #include "confdefs.h"
1933 rm -f conftest.$ac_objext
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); } &&
1939 { ac_try='test -s conftest.$ac_objext'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; }; then
1947 echo "$as_me: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1951 rm -f conftest.$ac_objext conftest.$ac_ext
1953 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1954 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1955 if test "$ac_test_CFLAGS" = set; then
1956 CFLAGS=$ac_save_CFLAGS
1957 elif test $ac_cv_prog_cc_g = yes; then
1958 if test "$GCC" = yes; then
1964 if test "$GCC" = yes; then
1970 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1971 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 ac_cv_prog_cc_stdc=no
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1982 #include <sys/types.h>
1983 #include <sys/stat.h>
1984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1985 struct buf { int x; };
1986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1987 static char *e (p, i)
1993 static char *f (char * (*g) (char **, int), char **p, ...)
1998 s = g (p, va_arg (v,int));
2002 int test (int i, double x);
2003 struct s1 {int (*f) (int a);};
2004 struct s2 {int (*f) (double a);};
2005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2016 # Don't try gcc -ansi; that turns off useful extensions and
2017 # breaks some systems' header files.
2018 # AIX -qlanglvl=ansi
2019 # Ultrix and OSF/1 -std1
2020 # HP-UX 10.20 and later -Ae
2021 # HP-UX older versions -Aa -D_HPUX_SOURCE
2022 # SVR4 -Xc -D__EXTENSIONS__
2023 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2025 CC="$ac_save_CC $ac_arg"
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2038 ac_cv_prog_cc_stdc=$ac_arg
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 rm -f conftest.$ac_objext
2046 rm -f conftest.$ac_ext conftest.$ac_objext
2051 case "x$ac_cv_prog_cc_stdc" in
2053 echo "$as_me:$LINENO: result: none needed" >&5
2054 echo "${ECHO_T}none needed" >&6 ;;
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2058 CC="$CC $ac_cv_prog_cc_stdc" ;;
2061 # Some people use a C++ compiler to compile C. Since we use `exit',
2062 # in C++ we need to declare it. In case someone uses the same compiler
2063 # for both compiling C and C++ we need to have the C++ compiler decide
2064 # the declaration of exit, since it's the most demanding environment.
2065 cat >conftest.$ac_ext <<_ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2082 for ac_declaration in \
2084 '#include <stdlib.h>' \
2085 'extern "C" void std::exit (int) throw (); using std::exit;' \
2086 'extern "C" void std::exit (int); using std::exit;' \
2087 'extern "C" void exit (int) throw ();' \
2088 'extern "C" void exit (int);' \
2091 cat >conftest.$ac_ext <<_ACEOF
2092 #line $LINENO "configure"
2093 #include "confdefs.h"
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line $LINENO "configure"
2125 #include "confdefs.h"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 rm -f conftest.$ac_objext conftest.$ac_ext
2155 if test -n "$ac_declaration"; then
2156 echo '#ifdef __cplusplus' >>confdefs.h
2157 echo $ac_declaration >>confdefs.h
2158 echo '#endif' >>confdefs.h
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 rm -f conftest.$ac_objext conftest.$ac_ext
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 ac_cpp='$CXXCPP $CPPFLAGS'
2174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2177 if test -n "$ac_tool_prefix"; then
2178 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CXX+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$CXX"; then
2188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CXX"; then
2208 echo "$as_me:$LINENO: result: $CXX" >&5
2209 echo "${ECHO_T}$CXX" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$CXX" && break
2218 if test -z "$CXX"; then
2220 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$ac_ct_CXX"; then
2230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_ac_ct_CXX="$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2249 if test -n "$ac_ct_CXX"; then
2250 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2251 echo "${ECHO_T}$ac_ct_CXX" >&6
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257 test -n "$ac_ct_CXX" && break
2259 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2265 # Provide some information about the compiler.
2266 echo "$as_me:$LINENO:" \
2267 "checking for C++ compiler version" >&5
2268 ac_compiler=`set X $ac_compile; echo $2`
2269 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2270 (eval $ac_compiler --version </dev/null >&5) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2275 (eval $ac_compiler -v </dev/null >&5) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2280 (eval $ac_compiler -V </dev/null >&5) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2285 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2286 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2287 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2327 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2329 GXX=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CXXFLAGS=${CXXFLAGS+set}
2331 ac_save_CXXFLAGS=$CXXFLAGS
2333 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2334 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cxx_g+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cxx_g=yes
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2371 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2372 if test "$ac_test_CXXFLAGS" = set; then
2373 CXXFLAGS=$ac_save_CXXFLAGS
2374 elif test $ac_cv_prog_cxx_g = yes; then
2375 if test "$GXX" = yes; then
2381 if test "$GXX" = yes; then
2387 for ac_declaration in \
2389 '#include <stdlib.h>' \
2390 'extern "C" void std::exit (int) throw (); using std::exit;' \
2391 'extern "C" void std::exit (int); using std::exit;' \
2392 'extern "C" void exit (int) throw ();' \
2393 'extern "C" void exit (int);' \
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line $LINENO "configure"
2398 #include "confdefs.h"
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2460 if test -n "$ac_declaration"; then
2461 echo '#ifdef __cplusplus' >>confdefs.h
2462 echo $ac_declaration >>confdefs.h
2463 echo '#endif' >>confdefs.h
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2478 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2479 # On Suns, sometimes $CPP names a directory.
2480 if test -n "$CPP" && test -d "$CPP"; then
2483 if test -z "$CPP"; then
2484 if test "${ac_cv_prog_CPP+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 # Double quotes because CPP needs to be expanded
2488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2491 for ac_c_preproc_warn_flag in '' yes
2493 # Use a header file that comes with gcc, so configuring glibc
2494 # with a fresh cross-compiler works.
2495 # On the NeXT, cc -E runs the code through the compiler's parser,
2496 # not just through cpp. "Syntax error" is here to catch this case.
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #line $LINENO "configure"
2499 #include "confdefs.h"
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2506 grep -v '^ *+' conftest.er1 >conftest.err
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } >/dev/null; then
2511 if test -s conftest.err; then
2512 ac_cpp_err=$ac_c_preproc_warn_flag
2519 if test -z "$ac_cpp_err"; then
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 # Broken: fails on valid input.
2527 rm -f conftest.err conftest.$ac_ext
2529 # OK, works on sane cases. Now check whether non-existent headers
2530 # can be detected and how.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 #include "confdefs.h"
2534 #include <ac_nonexistent.h>
2536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } >/dev/null; then
2544 if test -s conftest.err; then
2545 ac_cpp_err=$ac_c_preproc_warn_flag
2552 if test -z "$ac_cpp_err"; then
2553 # Broken: success on invalid input.
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 # Passes both tests.
2562 rm -f conftest.err conftest.$ac_ext
2565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2566 rm -f conftest.err conftest.$ac_ext
2567 if $ac_preproc_ok; then
2579 echo "$as_me:$LINENO: result: $CPP" >&5
2580 echo "${ECHO_T}$CPP" >&6
2582 for ac_c_preproc_warn_flag in '' yes
2584 # Use a header file that comes with gcc, so configuring glibc
2585 # with a fresh cross-compiler works.
2586 # On the NeXT, cc -E runs the code through the compiler's parser,
2587 # not just through cpp. "Syntax error" is here to catch this case.
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2590 #include "confdefs.h"
2594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } >/dev/null; then
2602 if test -s conftest.err; then
2603 ac_cpp_err=$ac_c_preproc_warn_flag
2610 if test -z "$ac_cpp_err"; then
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 # Broken: fails on valid input.
2618 rm -f conftest.err conftest.$ac_ext
2620 # OK, works on sane cases. Now check whether non-existent headers
2621 # can be detected and how.
2622 cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 #include "confdefs.h"
2625 #include <ac_nonexistent.h>
2627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1 >conftest.err
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } >/dev/null; then
2635 if test -s conftest.err; then
2636 ac_cpp_err=$ac_c_preproc_warn_flag
2643 if test -z "$ac_cpp_err"; then
2644 # Broken: success on invalid input.
2647 echo "$as_me: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 # Passes both tests.
2653 rm -f conftest.err conftest.$ac_ext
2656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2657 rm -f conftest.err conftest.$ac_ext
2658 if $ac_preproc_ok; then
2661 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2663 { (exit 1); exit 1; }; }
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2674 if test -f $ac_dir/install-sh; then
2676 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 elif test -f $ac_dir/install.sh; then
2680 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 elif test -f $ac_dir/shtool; then
2684 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 if test -z "$ac_aux_dir"; then
2689 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2690 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2691 { (exit 1); exit 1; }; }
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2695 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2697 # Find a good install program. We prefer a C program (faster),
2698 # so one script is as good as another. But avoid the broken or
2699 # incompatible versions:
2700 # SysV /etc/install, /usr/sbin/install
2701 # SunOS /usr/etc/install
2702 # IRIX /sbin/install
2704 # AmigaOS /C/install, which installs bootblocks on floppy discs
2705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2708 # ./install, which can be erroneously created by make from ./install.sh.
2709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2711 if test -z "$INSTALL"; then
2712 if test "${ac_cv_path_install+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 # Account for people who put trailing slashes in PATH elements.
2722 ./ | .// | /cC/* | \
2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2753 if test "${ac_cv_path_install+set}" = set; then
2754 INSTALL=$ac_cv_path_install
2756 # As a last resort, use the slow shell script. We don't cache a
2757 # path for INSTALL within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the path is relative.
2760 INSTALL=$ac_install_sh
2763 echo "$as_me:$LINENO: result: $INSTALL" >&5
2764 echo "${ECHO_T}$INSTALL" >&6
2766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767 # It thinks the first close brace ends the variable substitution.
2768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_RANLIB+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$RANLIB"; then
2783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 RANLIB=$ac_cv_prog_RANLIB
2802 if test -n "$RANLIB"; then
2803 echo "$as_me:$LINENO: result: $RANLIB" >&5
2804 echo "${ECHO_T}$RANLIB" >&6
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2811 if test -z "$ac_cv_prog_RANLIB"; then
2812 ac_ct_RANLIB=$RANLIB
2813 # Extract the first word of "ranlib", so it can be a program name with args.
2814 set dummy ranlib; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$ac_ct_RANLIB"; then
2821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_RANLIB="ranlib"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2840 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2841 if test -n "$ac_ct_RANLIB"; then
2842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2843 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2849 RANLIB=$ac_ct_RANLIB
2851 RANLIB="$ac_cv_prog_RANLIB"
2855 for ac_prog in flex lex
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_prog_LEX+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$LEX"; then
2865 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_LEX="$ac_prog"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$LEX"; then
2885 echo "$as_me:$LINENO: result: $LEX" >&5
2886 echo "${ECHO_T}$LEX" >&6
2888 echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2892 test -n "$LEX" && break
2894 test -n "$LEX" || LEX=":"
2896 if test -z "$LEXLIB"
2898 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2899 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2900 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 ac_check_lib_save_LIBS=$LIBS
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2909 /* Override any gcc2 internal prototype to avoid an error. */
2913 /* We use char because int might match the return type of a gcc2
2914 builtin and then its argument prototype would still apply. */
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_lib_fl_yywrap=yes
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_fl_yywrap=no
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2945 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2946 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2947 if test $ac_cv_lib_fl_yywrap = yes; then
2950 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2951 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2952 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 ac_check_lib_save_LIBS=$LIBS
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line $LINENO "configure"
2959 #include "confdefs.h"
2961 /* Override any gcc2 internal prototype to avoid an error. */
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_cv_lib_l_yywrap=yes
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_lib_l_yywrap=no
2994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995 LIBS=$ac_check_lib_save_LIBS
2997 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2998 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2999 if test $ac_cv_lib_l_yywrap = yes; then
3007 if test "x$LEX" != "x:"; then
3008 echo "$as_me:$LINENO: checking lex output file root" >&5
3009 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3010 if test "${ac_cv_prog_lex_root+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 # The minimal lex program is just a single line: %%. But some broken lexes
3014 # (Solaris, I think it was) want two %% lines, so accommodate them.
3015 cat >conftest.l <<_ACEOF
3019 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3020 (eval $LEX conftest.l) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }
3024 if test -f lex.yy.c; then
3025 ac_cv_prog_lex_root=lex.yy
3026 elif test -f lexyy.c; then
3027 ac_cv_prog_lex_root=lexyy
3029 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3030 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3031 { (exit 1); exit 1; }; }
3034 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3035 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3037 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3039 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3040 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3041 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 # POSIX says lex can declare yytext either as a pointer or an array; the
3045 # default is implementation-dependent. Figure out which it is, since
3046 # not all implementations provide the %pointer and %array declarations.
3047 ac_cv_prog_lex_yytext_pointer=no
3048 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3050 LIBS="$LIBS $LEXLIB"
3051 cat >conftest.$ac_ext <<_ACEOF
3052 `cat $LEX_OUTPUT_ROOT.c`
3054 rm -f conftest.$ac_objext conftest$ac_exeext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -s conftest$ac_exeext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_prog_lex_yytext_pointer=yes
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073 rm -f "${LEX_OUTPUT_ROOT}.c"
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3077 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3078 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3080 cat >>confdefs.h <<\_ACEOF
3081 #define YYTEXT_POINTER 1
3087 for ac_prog in 'bison -y' byacc
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_YACC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 if test -n "$YACC"; then
3097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_YACC="$ac_prog"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 YACC=$ac_cv_prog_YACC
3116 if test -n "$YACC"; then
3117 echo "$as_me:$LINENO: result: $YACC" >&5
3118 echo "${ECHO_T}$YACC" >&6
3120 echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3124 test -n "$YACC" && break
3126 test -n "$YACC" || YACC="yacc"
3128 # Extract the first word of "autoconf", so it can be a program name with args.
3129 set dummy autoconf; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 if test -n "$AUTOCONF"; then
3136 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_AUTOCONF="autoconf"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3155 AUTOCONF=$ac_cv_prog_AUTOCONF
3156 if test -n "$AUTOCONF"; then
3157 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3158 echo "${ECHO_T}$AUTOCONF" >&6
3160 echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3164 # Extract the first word of "strip", so it can be a program name with args.
3165 set dummy strip; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_STRIP+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$STRIP"; then
3172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_STRIP="strip"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3191 STRIP=$ac_cv_prog_STRIP
3192 if test -n "$STRIP"; then
3193 echo "$as_me:$LINENO: result: $STRIP" >&5
3194 echo "${ECHO_T}$STRIP" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 # Extract the first word of "as", so it can be a program name with args.
3201 set dummy as; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_AS+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$AS"; then
3208 ac_cv_prog_AS="$AS" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3228 if test -n "$AS"; then
3229 echo "$as_me:$LINENO: result: $AS" >&5
3230 echo "${ECHO_T}$AS" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 # Extract the first word of "cp", so it can be a program name with args.
3237 set dummy cp; ac_word=$2
3238 echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240 if test "${ac_cv_prog_CP+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 if test -n "$CP"; then
3244 ac_cv_prog_CP="$CP" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3264 if test -n "$CP"; then
3265 echo "$as_me:$LINENO: result: $CP" >&5
3266 echo "${ECHO_T}$CP" >&6
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3273 # Extract the first word of "lyx", so it can be a program name with args.
3274 set dummy lyx; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_LYX+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$LYX"; then
3281 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_LYX="lyx"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3301 if test -n "$LYX"; then
3302 echo "$as_me:$LINENO: result: $LYX" >&5
3303 echo "${ECHO_T}$LYX" >&6
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3309 # Extract the first word of "latex", so it can be a program name with args.
3310 set dummy latex; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_LATEX+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$LATEX"; then
3317 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_LATEX="latex"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3336 LATEX=$ac_cv_prog_LATEX
3337 if test -n "$LATEX"; then
3338 echo "$as_me:$LINENO: result: $LATEX" >&5
3339 echo "${ECHO_T}$LATEX" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 # Extract the first word of "latex2html", so it can be a program name with args.
3346 set dummy latex2html; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 if test -n "$LATEX2HTML"; then
3353 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_LATEX2HTML="latex2html"
3363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3372 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3373 if test -n "$LATEX2HTML"; then
3374 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3375 echo "${ECHO_T}$LATEX2HTML" >&6
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3381 # Extract the first word of "pdflatex", so it can be a program name with args.
3382 set dummy pdflatex; ac_word=$2
3383 echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$PDFLATEX"; then
3389 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_PDFLATEX="pdflatex"
3399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3408 PDFLATEX=$ac_cv_prog_PDFLATEX
3409 if test -n "$PDFLATEX"; then
3410 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3411 echo "${ECHO_T}$PDFLATEX" >&6
3413 echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3417 # Extract the first word of "dvipdf", so it can be a program name with args.
3418 set dummy dvipdf; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$DVIPDF"; then
3425 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_DVIPDF="dvipdf"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3444 DVIPDF=$ac_cv_prog_DVIPDF
3445 if test -n "$DVIPDF"; then
3446 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3447 echo "${ECHO_T}$DVIPDF" >&6
3449 echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3456 if test "$YACC" = ":"; then
3457 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3458 echo "$as_me: error: Cannot find required program bison." >&2;}
3459 { (exit 1); exit 1; }; }
3462 if test "$LEX" = ":"; then
3463 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3464 echo "$as_me: error: Cannot find required program lex." >&2;}
3465 { (exit 1); exit 1; }; }
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 # Checking for header files.
3478 # ===========================================================================
3480 echo "$as_me:$LINENO: checking for egrep" >&5
3481 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3482 if test "${ac_cv_prog_egrep+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3486 then ac_cv_prog_egrep='grep -E'
3487 else ac_cv_prog_egrep='egrep'
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3491 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3492 EGREP=$ac_cv_prog_egrep
3495 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3497 if test "${ac_cv_header_stdc+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null; then
3517 if test -s conftest.err; then
3518 ac_cpp_err=$ac_c_preproc_warn_flag
3525 if test -z "$ac_cpp_err"; then
3526 ac_cv_header_stdc=yes
3528 echo "$as_me: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 ac_cv_header_stdc=no
3532 rm -f conftest.err conftest.$ac_ext
3534 if test $ac_cv_header_stdc = yes; then
3535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 #include "confdefs.h"
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 $EGREP "memchr" >/dev/null 2>&1; then
3546 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3561 $EGREP "free" >/dev/null 2>&1; then
3564 ac_cv_header_stdc=no
3570 if test $ac_cv_header_stdc = yes; then
3571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3572 if test "$cross_compiling" = yes; then
3575 cat >conftest.$ac_ext <<_ACEOF
3576 #line $LINENO "configure"
3577 #include "confdefs.h"
3579 #if ((' ' & 0x0FF) == 0x020)
3580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3583 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3584 || ('j' <= (c) && (c) <= 'r') \
3585 || ('s' <= (c) && (c) <= 'z'))
3586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3594 for (i = 0; i < 256; i++)
3595 if (XOR (islower (i), ISLOWER (i))
3596 || toupper (i) != TOUPPER (i))
3601 rm -f conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3614 echo "$as_me: program exited with status $ac_status" >&5
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 ac_cv_header_stdc=no
3620 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3624 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3625 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3626 if test $ac_cv_header_stdc = yes; then
3628 cat >>confdefs.h <<\_ACEOF
3629 #define STDC_HEADERS 1
3634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3645 inttypes.h stdint.h unistd.h
3647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3648 echo "$as_me:$LINENO: checking for $ac_header" >&5
3649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 #include "confdefs.h"
3656 $ac_includes_default
3658 #include <$ac_header>
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 eval "$as_ac_Header=yes"
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 eval "$as_ac_Header=no"
3678 rm -f conftest.$ac_objext conftest.$ac_ext
3680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3683 cat >>confdefs.h <<_ACEOF
3684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3693 for ac_header in sys/socket.h
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo "$as_me:$LINENO: checking for $ac_header" >&5
3698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3705 # Is the header compilable?
3706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3712 #include <$ac_header>
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_header_compiler=yes
3728 echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 ac_header_compiler=no
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3734 echo "${ECHO_T}$ac_header_compiler" >&6
3736 # Is the header present?
3737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3742 #include <$ac_header>
3744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null; then
3752 if test -s conftest.err; then
3753 ac_cpp_err=$ac_c_preproc_warn_flag
3760 if test -z "$ac_cpp_err"; then
3761 ac_header_preproc=yes
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_header_preproc=no
3767 rm -f conftest.err conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3769 echo "${ECHO_T}$ac_header_preproc" >&6
3771 # So? What about this header?
3772 case $ac_header_compiler:$ac_header_preproc in
3774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 eval "$as_ac_Header=$ac_header_preproc"
3793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3798 cat >>confdefs.h <<_ACEOF
3799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3808 # Checking for functions
3809 # ===========================================================================
3811 for ac_func in strerror
3813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3814 echo "$as_me:$LINENO: checking for $ac_func" >&5
3815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_var+set}\" = set"; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3820 #line $LINENO "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823 which can conflict with char $ac_func (); below. */
3825 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3837 /* The GNU C library defines this for functions which it implements
3838 to always fail with ENOSYS. Some functions are actually named
3839 something starting with __ and the normal name is an alias. */
3840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -s conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 eval "$as_ac_var=yes"
3864 echo "$as_me: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 eval "$as_ac_var=no"
3868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3872 if test `eval echo '${'$as_ac_var'}'` = yes; then
3873 cat >>confdefs.h <<_ACEOF
3874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3884 for ac_func in vsnprintf snprintf vsprintf mkstemp
3886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3887 echo "$as_me:$LINENO: checking for $ac_func" >&5
3888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_var+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char $ac_func (); below. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 eval "$as_ac_var=yes"
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 eval "$as_ac_var=no"
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3945 if test `eval echo '${'$as_ac_var'}'` = yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3956 # ===========================================================================
3958 # DD_COPT macro checks if the compiler specified as the 1st parameter
3959 # supports option specified as the 2nd parameter
3960 # For example: DD_CPORT(CXX, fPIC)
3964 # This macro _AC_DEFINEs VARNAME to the expansion of the DIR variable,
3965 # taking care of fixing up ${prefix} and such.
3967 # Note that the 3 argument form is only supported with autoconf 2.13
3968 # and later (i.e. only where _AC_DEFINE supports 3 arguments).
3972 # AC_DEFINE_DIR(DATADIR, datadir)
3973 # AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
3978 # Checking characteristics of compilers and other programs
3979 # ===========================================================================
3980 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3981 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3982 if test "${sdcc_cv_MM+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 echo "#include <stdio.h>" >_test_.c
3987 $CPP -v -MM _test_.c 1>&5 2>&5
3988 if test "$?" = "0"; then
3995 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3996 echo "${ECHO_T}$sdcc_cv_MM" >&6
4000 # This is the first time when CFLAGS are set/modified!!
4002 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4003 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4004 if test "${sdcc_cv_CCggdb+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4012 if test "$?" = "0"; then
4013 sdcc_cv_CCggdb="yes"
4017 rm -f _test_.* a.out
4019 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4020 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4022 if test "$sdcc_cv_CCggdb" = "yes"; then
4027 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4028 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4029 if test "${sdcc_cv_CCpipe+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 $CC -v -pipe -c _test_.c 1>&5 2>&5
4037 if test "$?" = "0"; then
4038 sdcc_cv_CCpipe="yes"
4042 rm -f _test_.* a.out
4044 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4045 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4047 if test "$sdcc_cv_CCpipe" = "yes"; then
4048 CFLAGS="$CFLAGS -pipe"
4051 # Checks for typedefs, structures, and compiler characteristics.
4052 # ===========================================================================
4053 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4054 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4055 if test "${ac_cv_type_signal+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4059 #line $LINENO "configure"
4060 #include "confdefs.h"
4061 #include <sys/types.h>
4067 extern "C" void (*signal (int, void (*)(int)))(int);
4069 void (*signal ()) ();
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_type_signal=void
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 ac_cv_type_signal=int
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4100 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4101 echo "${ECHO_T}$ac_cv_type_signal" >&6
4103 cat >>confdefs.h <<_ACEOF
4104 #define RETSIGTYPE $ac_cv_type_signal
4109 echo "$as_me:$LINENO: checking for char" >&5
4110 echo $ECHO_N "checking for char... $ECHO_C" >&6
4111 if test "${ac_cv_type_char+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4116 #include "confdefs.h"
4117 $ac_includes_default
4129 rm -f conftest.$ac_objext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4143 echo "$as_me: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4147 rm -f conftest.$ac_objext conftest.$ac_ext
4149 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4150 echo "${ECHO_T}$ac_cv_type_char" >&6
4152 echo "$as_me:$LINENO: checking size of char" >&5
4153 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4154 if test "${ac_cv_sizeof_char+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test "$ac_cv_type_char" = yes; then
4158 # The cast to unsigned long works around a bug in the HP C Compiler
4159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4161 # This bug is HP SR number 8606223364.
4162 if test "$cross_compiling" = yes; then
4163 # Depending upon the size, compute the lo and hi bounds.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4166 #include "confdefs.h"
4167 $ac_includes_default
4171 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195 $ac_includes_default
4199 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_hi=$ac_mid; break
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 ac_lo=`expr $ac_mid + 1`
4223 if test $ac_lo -le $ac_mid; then
4227 ac_mid=`expr 2 '*' $ac_mid + 1`
4229 rm -f conftest.$ac_objext conftest.$ac_ext
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4236 #include "confdefs.h"
4237 $ac_includes_default
4241 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -s conftest.$ac_objext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4262 cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 #include "confdefs.h"
4265 $ac_includes_default
4269 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4276 rm -f conftest.$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278 (eval $ac_compile) 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_lo=$ac_mid; break
4290 echo "$as_me: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4292 ac_hi=`expr '(' $ac_mid ')' - 1`
4293 if test $ac_mid -le $ac_hi; then
4297 ac_mid=`expr 2 '*' $ac_mid`
4299 rm -f conftest.$ac_objext conftest.$ac_ext
4302 echo "$as_me: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4306 rm -f conftest.$ac_objext conftest.$ac_ext
4308 rm -f conftest.$ac_objext conftest.$ac_ext
4309 # Binary search between lo and hi bounds.
4310 while test "x$ac_lo" != "x$ac_hi"; do
4311 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4312 cat >conftest.$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4314 #include "confdefs.h"
4315 $ac_includes_default
4319 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 ac_lo=`expr '(' $ac_mid ')' + 1`
4344 rm -f conftest.$ac_objext conftest.$ac_ext
4347 ?*) ac_cv_sizeof_char=$ac_lo;;
4348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4349 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4350 { (exit 1); exit 1; }; } ;;
4353 if test "$cross_compiling" = yes; then
4354 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4355 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4356 { (exit 1); exit 1; }; }
4358 cat >conftest.$ac_ext <<_ACEOF
4359 #line $LINENO "configure"
4360 #include "confdefs.h"
4361 $ac_includes_default
4362 long longval () { return (long) (sizeof (char)); }
4363 unsigned long ulongval () { return (long) (sizeof (char)); }
4370 FILE *f = fopen ("conftest.val", "w");
4373 if (((long) (sizeof (char))) < 0)
4375 long i = longval ();
4376 if (i != ((long) (sizeof (char))))
4378 fprintf (f, "%ld\n", i);
4382 unsigned long i = ulongval ();
4383 if (i != ((long) (sizeof (char))))
4385 fprintf (f, "%lu\n", i);
4387 exit (ferror (f) || fclose (f) != 0);
4393 rm -f conftest$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_sizeof_char=`cat conftest.val`
4406 echo "$as_me: program exited with status $ac_status" >&5
4407 echo "$as_me: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4411 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4412 { (exit 1); exit 1; }; }
4414 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4423 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4424 cat >>confdefs.h <<_ACEOF
4425 #define SIZEOF_CHAR $ac_cv_sizeof_char
4429 echo "$as_me:$LINENO: checking for short" >&5
4430 echo $ECHO_N "checking for short... $ECHO_C" >&6
4431 if test "${ac_cv_type_short+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 cat >conftest.$ac_ext <<_ACEOF
4435 #line $LINENO "configure"
4436 #include "confdefs.h"
4437 $ac_includes_default
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_type_short=yes
4463 echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4470 echo "${ECHO_T}$ac_cv_type_short" >&6
4472 echo "$as_me:$LINENO: checking size of short" >&5
4473 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4474 if test "${ac_cv_sizeof_short+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test "$ac_cv_type_short" = yes; then
4478 # The cast to unsigned long works around a bug in the HP C Compiler
4479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4481 # This bug is HP SR number 8606223364.
4482 if test "$cross_compiling" = yes; then
4483 # Depending upon the size, compute the lo and hi bounds.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 #include "confdefs.h"
4487 $ac_includes_default
4491 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 #include "confdefs.h"
4515 $ac_includes_default
4519 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_hi=$ac_mid; break
4540 echo "$as_me: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4542 ac_lo=`expr $ac_mid + 1`
4543 if test $ac_lo -le $ac_mid; then
4547 ac_mid=`expr 2 '*' $ac_mid + 1`
4549 rm -f conftest.$ac_objext conftest.$ac_ext
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557 $ac_includes_default
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 #include "confdefs.h"
4585 $ac_includes_default
4589 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_lo=$ac_mid; break
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 ac_hi=`expr '(' $ac_mid ')' - 1`
4613 if test $ac_mid -le $ac_hi; then
4617 ac_mid=`expr 2 '*' $ac_mid`
4619 rm -f conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4626 rm -f conftest.$ac_objext conftest.$ac_ext
4628 rm -f conftest.$ac_objext conftest.$ac_ext
4629 # Binary search between lo and hi bounds.
4630 while test "x$ac_lo" != "x$ac_hi"; do
4631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4632 cat >conftest.$ac_ext <<_ACEOF
4633 #line $LINENO "configure"
4634 #include "confdefs.h"
4635 $ac_includes_default
4639 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4660 echo "$as_me: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 ac_lo=`expr '(' $ac_mid ')' + 1`
4664 rm -f conftest.$ac_objext conftest.$ac_ext
4667 ?*) ac_cv_sizeof_short=$ac_lo;;
4668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4669 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4673 if test "$cross_compiling" = yes; then
4674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4675 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4676 { (exit 1); exit 1; }; }
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4680 #include "confdefs.h"
4681 $ac_includes_default
4682 long longval () { return (long) (sizeof (short)); }
4683 unsigned long ulongval () { return (long) (sizeof (short)); }
4690 FILE *f = fopen ("conftest.val", "w");
4693 if (((long) (sizeof (short))) < 0)
4695 long i = longval ();
4696 if (i != ((long) (sizeof (short))))
4698 fprintf (f, "%ld\n", i);
4702 unsigned long i = ulongval ();
4703 if (i != ((long) (sizeof (short))))
4705 fprintf (f, "%lu\n", i);
4707 exit (ferror (f) || fclose (f) != 0);
4713 rm -f conftest$ac_exeext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715 (eval $ac_link) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_sizeof_short=`cat conftest.val`
4726 echo "$as_me: program exited with status $ac_status" >&5
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4731 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4732 { (exit 1); exit 1; }; }
4734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4739 ac_cv_sizeof_short=0
4742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4743 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4744 cat >>confdefs.h <<_ACEOF
4745 #define SIZEOF_SHORT $ac_cv_sizeof_short
4749 echo "$as_me:$LINENO: checking for int" >&5
4750 echo $ECHO_N "checking for int... $ECHO_C" >&6
4751 if test "${ac_cv_type_int+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 #include "confdefs.h"
4757 $ac_includes_default
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4783 echo "$as_me: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4790 echo "${ECHO_T}$ac_cv_type_int" >&6
4792 echo "$as_me:$LINENO: checking size of int" >&5
4793 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4794 if test "${ac_cv_sizeof_int+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test "$ac_cv_type_int" = yes; then
4798 # The cast to unsigned long works around a bug in the HP C Compiler
4799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4801 # This bug is HP SR number 8606223364.
4802 if test "$cross_compiling" = yes; then
4803 # Depending upon the size, compute the lo and hi bounds.
4804 cat >conftest.$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4807 $ac_includes_default
4811 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line $LINENO "configure"
4834 #include "confdefs.h"
4835 $ac_includes_default
4839 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_hi=$ac_mid; break
4860 echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ac_lo=`expr $ac_mid + 1`
4863 if test $ac_lo -le $ac_mid; then
4867 ac_mid=`expr 2 '*' $ac_mid + 1`
4869 rm -f conftest.$ac_objext conftest.$ac_ext
4872 echo "$as_me: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line $LINENO "configure"
4876 #include "confdefs.h"
4877 $ac_includes_default
4881 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 #include "confdefs.h"
4905 $ac_includes_default
4909 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_lo=$ac_mid; break
4930 echo "$as_me: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4932 ac_hi=`expr '(' $ac_mid ')' - 1`
4933 if test $ac_mid -le $ac_hi; then
4937 ac_mid=`expr 2 '*' $ac_mid`
4939 rm -f conftest.$ac_objext conftest.$ac_ext
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4946 rm -f conftest.$ac_objext conftest.$ac_ext
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4949 # Binary search between lo and hi bounds.
4950 while test "x$ac_lo" != "x$ac_hi"; do
4951 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 #include "confdefs.h"
4955 $ac_includes_default
4959 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4980 echo "$as_me: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4982 ac_lo=`expr '(' $ac_mid ')' + 1`
4984 rm -f conftest.$ac_objext conftest.$ac_ext
4987 ?*) ac_cv_sizeof_int=$ac_lo;;
4988 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4989 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4993 if test "$cross_compiling" = yes; then
4994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4995 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4996 { (exit 1); exit 1; }; }
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 #include "confdefs.h"
5001 $ac_includes_default
5002 long longval () { return (long) (sizeof (int)); }
5003 unsigned long ulongval () { return (long) (sizeof (int)); }
5010 FILE *f = fopen ("conftest.val", "w");
5013 if (((long) (sizeof (int))) < 0)
5015 long i = longval ();
5016 if (i != ((long) (sizeof (int))))
5018 fprintf (f, "%ld\n", i);
5022 unsigned long i = ulongval ();
5023 if (i != ((long) (sizeof (int))))
5025 fprintf (f, "%lu\n", i);
5027 exit (ferror (f) || fclose (f) != 0);
5033 rm -f conftest$ac_exeext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035 (eval $ac_link) 2>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_sizeof_int=`cat conftest.val`
5046 echo "$as_me: program exited with status $ac_status" >&5
5047 echo "$as_me: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5051 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5052 { (exit 1); exit 1; }; }
5054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5063 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5064 cat >>confdefs.h <<_ACEOF
5065 #define SIZEOF_INT $ac_cv_sizeof_int
5069 echo "$as_me:$LINENO: checking for long" >&5
5070 echo $ECHO_N "checking for long... $ECHO_C" >&6
5071 if test "${ac_cv_type_long+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077 $ac_includes_default
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5110 echo "${ECHO_T}$ac_cv_type_long" >&6
5112 echo "$as_me:$LINENO: checking size of long" >&5
5113 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5114 if test "${ac_cv_sizeof_long+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 if test "$ac_cv_type_long" = yes; then
5118 # The cast to unsigned long works around a bug in the HP C Compiler
5119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5121 # This bug is HP SR number 8606223364.
5122 if test "$cross_compiling" = yes; then
5123 # Depending upon the size, compute the lo and hi bounds.
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5127 $ac_includes_default
5131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5154 #include "confdefs.h"
5155 $ac_includes_default
5159 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5166 rm -f conftest.$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -s conftest.$ac_objext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5178 ac_hi=$ac_mid; break
5180 echo "$as_me: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 ac_lo=`expr $ac_mid + 1`
5183 if test $ac_lo -le $ac_mid; then
5187 ac_mid=`expr 2 '*' $ac_mid + 1`
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197 $ac_includes_default
5201 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 #include "confdefs.h"
5225 $ac_includes_default
5229 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_lo=$ac_mid; break
5250 echo "$as_me: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5252 ac_hi=`expr '(' $ac_mid ')' - 1`
5253 if test $ac_mid -le $ac_hi; then
5257 ac_mid=`expr 2 '*' $ac_mid`
5259 rm -f conftest.$ac_objext conftest.$ac_ext
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5266 rm -f conftest.$ac_objext conftest.$ac_ext
5268 rm -f conftest.$ac_objext conftest.$ac_ext
5269 # Binary search between lo and hi bounds.
5270 while test "x$ac_lo" != "x$ac_hi"; do
5271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5272 cat >conftest.$ac_ext <<_ACEOF
5273 #line $LINENO "configure"
5274 #include "confdefs.h"
5275 $ac_includes_default
5279 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5300 echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_lo=`expr '(' $ac_mid ')' + 1`
5304 rm -f conftest.$ac_objext conftest.$ac_ext
5307 ?*) ac_cv_sizeof_long=$ac_lo;;
5308 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5309 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5310 { (exit 1); exit 1; }; } ;;
5313 if test "$cross_compiling" = yes; then
5314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5315 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5316 { (exit 1); exit 1; }; }
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 #include "confdefs.h"
5321 $ac_includes_default
5322 long longval () { return (long) (sizeof (long)); }
5323 unsigned long ulongval () { return (long) (sizeof (long)); }
5330 FILE *f = fopen ("conftest.val", "w");
5333 if (((long) (sizeof (long))) < 0)
5335 long i = longval ();
5336 if (i != ((long) (sizeof (long))))
5338 fprintf (f, "%ld\n", i);
5342 unsigned long i = ulongval ();
5343 if (i != ((long) (sizeof (long))))
5345 fprintf (f, "%lu\n", i);
5347 exit (ferror (f) || fclose (f) != 0);
5353 rm -f conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 ac_cv_sizeof_long=`cat conftest.val`
5366 echo "$as_me: program exited with status $ac_status" >&5
5367 echo "$as_me: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5371 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5372 { (exit 1); exit 1; }; }
5374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5382 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5383 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5384 cat >>confdefs.h <<_ACEOF
5385 #define SIZEOF_LONG $ac_cv_sizeof_long
5392 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5396 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5400 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5404 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5411 echo "$as_me:$LINENO: checking type name for byte" >&5
5412 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5413 TYPE_BYTE=`type_name 1`
5414 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5415 echo "${ECHO_T}$TYPE_BYTE" >&6
5416 echo "$as_me:$LINENO: checking type name for word" >&5
5417 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5418 TYPE_WORD=`type_name 2`
5419 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5420 echo "${ECHO_T}$TYPE_WORD" >&6
5421 echo "$as_me:$LINENO: checking type name for dword" >&5
5422 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5423 TYPE_DWORD=`type_name 4`
5424 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5425 echo "${ECHO_T}$TYPE_DWORD" >&6
5426 cat >>confdefs.h <<_ACEOF
5427 #define TYPE_BYTE $TYPE_BYTE
5430 cat >>confdefs.h <<_ACEOF
5431 #define TYPE_WORD $TYPE_WORD
5434 cat >>confdefs.h <<_ACEOF
5435 #define TYPE_DWORD $TYPE_DWORD
5439 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5440 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5441 if test "${ac_cv_c_bigendian+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 # See if sys/param.h defines the BYTE_ORDER macro.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 #include "confdefs.h"
5448 #include <sys/types.h>
5449 #include <sys/param.h>
5454 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 # It does; now see whether it defined to BIG_ENDIAN or not.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 #include "confdefs.h"
5478 #include <sys/types.h>
5479 #include <sys/param.h>
5484 #if BYTE_ORDER != BIG_ENDIAN
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 ac_cv_c_bigendian=yes
5506 echo "$as_me: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 ac_cv_c_bigendian=no
5510 rm -f conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 # It does not; compile a test program.
5515 if test "$cross_compiling" = yes; then
5516 # try to guess the endianness by grepping values into an object file
5517 ac_cv_c_bigendian=unknown
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5522 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5523 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5524 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5525 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5526 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5530 _ascii (); _ebcdic ();
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5548 ac_cv_c_bigendian=yes
5550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5551 if test "$ac_cv_c_bigendian" = unknown; then
5552 ac_cv_c_bigendian=no
5554 # finding both strings is unlikely to happen, but who knows?
5555 ac_cv_c_bigendian=unknown
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 rm -f conftest.$ac_objext conftest.$ac_ext
5564 cat >conftest.$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5566 #include "confdefs.h"
5570 /* Are we little or big endian? From Harbison&Steele. */
5574 char c[sizeof (long)];
5577 exit (u.c[sizeof (long) - 1] == 1);
5580 rm -f conftest$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_cv_c_bigendian=no
5593 echo "$as_me: program exited with status $ac_status" >&5
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5597 ac_cv_c_bigendian=yes
5599 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5602 rm -f conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5605 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5606 case $ac_cv_c_bigendian in
5609 cat >>confdefs.h <<\_ACEOF
5610 #define WORDS_BIGENDIAN 1
5616 { { echo "$as_me:$LINENO: error: unknown endianness
5617 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5618 echo "$as_me: error: unknown endianness
5619 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5624 # Set standard installation paths
5625 # ===========================================================================
5635 echo "$as_me:$LINENO: checking host mingw32" >&5
5636 echo $ECHO_N "checking host mingw32... $ECHO_C" >&6
5637 echo "$as_me:$LINENO: result: $MINGW32_HOST" >&5
5638 echo "${ECHO_T}$MINGW32_HOST" >&6
5640 # prefix: *nix default is "NONE"
5641 # prefix: mingw32 default is "/sdcc"
5642 if test "$prefix" = NONE; then
5643 if test "$MINGW32_HOST" = "no"; then
5650 # datadir: *nix default is "${prefix}/share"
5651 if test "$datadir" = "\${prefix}/share"; then
5652 if test "$MINGW32_HOST" = "no"; then
5653 datadir="\${prefix}/share/sdcc"
5655 # mingw32 default is "/sdcc"
5656 elif test "$datadir" = "/sdcc"; then
5657 if test "$MINGW32_HOST" = "yes"; then
5658 datadir="\${prefix}"
5663 cat >>confdefs.h <<_ACEOF
5664 #define STD_LIB "libsdcc"
5667 cat >>confdefs.h <<_ACEOF
5668 #define STD_INT_LIB "libint"
5671 cat >>confdefs.h <<_ACEOF
5672 #define STD_LONG_LIB "liblong"
5675 cat >>confdefs.h <<_ACEOF
5676 #define STD_FP_LIB "libfloat"
5679 cat >>confdefs.h <<_ACEOF
5680 #define STD_DS390_LIB "libds390"
5683 cat >>confdefs.h <<_ACEOF
5684 #define STD_xa51_LIB "xa51"
5689 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5691 ac_define_dir=`eval echo $"${prefix}"`
5692 ac_define_dir=`eval echo $ac_define_dir`
5693 cat >>confdefs.h <<_ACEOF
5694 #define PREFIX "$ac_define_dir"
5699 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5701 ac_define_dir=`eval echo $"$datadir"`
5702 ac_define_dir=`eval echo $ac_define_dir`
5703 cat >>confdefs.h <<_ACEOF
5704 #define DATADIR "$ac_define_dir"
5711 bin_dir_suffix="bin"
5713 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5715 ac_define_dir=`eval echo $"${bin_dir_suffix}"`
5716 ac_define_dir=`eval echo $ac_define_dir`
5717 cat >>confdefs.h <<_ACEOF
5718 #define BIN_DIR_SUFFIX "$ac_define_dir"
5723 if test "$MINGW32_HOST" = "no"; then
5724 search_suffix="share/sdcc"
5729 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5731 ac_define_dir=`eval echo $"${search_suffix}"`
5732 ac_define_dir=`eval echo $ac_define_dir`
5733 cat >>confdefs.h <<_ACEOF
5734 #define SEARCH_SUFFIX "$ac_define_dir"
5739 include_dir_suffix="include"
5741 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5743 ac_define_dir=`eval echo $"${include_dir_suffix}"`
5744 ac_define_dir=`eval echo $ac_define_dir`
5745 cat >>confdefs.h <<_ACEOF
5746 #define INCLUDE_DIR_SUFFIX "$ac_define_dir"
5751 lib_dir_suffix="lib"
5752 cat >>confdefs.h <<_ACEOF
5753 #define LIB_DIR_SUFFIX "${lib_dir_suffix}"
5758 # sdcc_datadir is still used in [device,lib]/Makefile
5759 sdcc_datadir=${datadir}
5762 # SDCC_[INCLUDE,LIB]_DIR is still used in SDCCmain.c
5763 if test "${includedir}" = "\${prefix}/include"; then
5764 includedir="${datadir}/include"
5767 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5769 ac_define_dir=`eval echo $"${includedir}"`
5770 ac_define_dir=`eval echo $ac_define_dir`
5771 cat >>confdefs.h <<_ACEOF
5772 #define SDCC_INCLUDE_DIR "$ac_define_dir"
5777 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5779 ac_define_dir=`eval echo $"${datadir}/lib"`
5780 ac_define_dir=`eval echo $ac_define_dir`
5781 cat >>confdefs.h <<_ACEOF
5782 #define SDCC_LIB_DIR "$ac_define_dir"
5788 # environment variables
5789 sdcc_dir_name="SDCC_HOME"
5791 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5793 ac_define_dir=`eval echo $"${sdcc_dir_name}"`
5794 ac_define_dir=`eval echo $ac_define_dir`
5795 cat >>confdefs.h <<_ACEOF
5796 #define SDCC_DIR_NAME "$ac_define_dir"
5800 sdcc_include_name="SDCC_INCLUDE"
5802 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5804 ac_define_dir=`eval echo $"${sdcc_include_name}"`
5805 ac_define_dir=`eval echo $ac_define_dir`
5806 cat >>confdefs.h <<_ACEOF
5807 #define SDCC_INCLUDE_NAME "$ac_define_dir"
5811 sdcc_lib_name="SDCC_LIB"
5813 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5815 ac_define_dir=`eval echo $"${sdcc_lib_name}"`
5816 ac_define_dir=`eval echo $ac_define_dir`
5817 cat >>confdefs.h <<_ACEOF
5818 #define SDCC_LIB_NAME "$ac_define_dir"
5823 # Now handle the port selection
5824 # ===========================================================================
5825 rm -f ports.all ports.build
5826 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
5827 if test "${enable_mcs51_port+set}" = set; then
5828 enableval="$enable_mcs51_port"
5831 echo mcs51 >>ports.all
5832 if test "$enable_mcs51_port" = "no"; then
5833 cat >>confdefs.h <<_ACEOF
5834 #define OPT_DISABLE_MCS51 1
5838 echo mcs51 >>ports.build
5839 cat >>confdefs.h <<_ACEOF
5840 #define OPT_DISABLE_MCS51 0
5845 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
5846 if test "${enable_gbz80_port+set}" = set; then
5847 enableval="$enable_gbz80_port"
5850 echo z80 >>ports.all
5851 if test "$enable_gbz80_port" = "no"; then
5852 cat >>confdefs.h <<_ACEOF
5853 #define OPT_DISABLE_GBZ80 1
5857 echo z80 >>ports.build
5858 cat >>confdefs.h <<_ACEOF
5859 #define OPT_DISABLE_GBZ80 0
5864 # Check whether --enable-z80-port or --disable-z80-port was given.
5865 if test "${enable_z80_port+set}" = set; then
5866 enableval="$enable_z80_port"
5869 echo z80 >>ports.all
5870 if test "$enable_z80_port" = "no"; then
5871 cat >>confdefs.h <<_ACEOF
5872 #define OPT_DISABLE_Z80 1
5876 echo z80 >>ports.build
5877 cat >>confdefs.h <<_ACEOF
5878 #define OPT_DISABLE_Z80 0
5883 # Check whether --enable-avr-port or --disable-avr-port was given.
5884 if test "${enable_avr_port+set}" = set; then
5885 enableval="$enable_avr_port"
5888 echo avr >>ports.all
5889 if test "$enable_avr_port" = "no"; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define OPT_DISABLE_AVR 1
5895 echo avr >>ports.build
5896 cat >>confdefs.h <<_ACEOF
5897 #define OPT_DISABLE_AVR 0
5902 # Check whether --enable-ds390-port or --disable-ds390-port was given.
5903 if test "${enable_ds390_port+set}" = set; then
5904 enableval="$enable_ds390_port"
5907 echo ds390 >>ports.all
5908 if test "$enable_ds390_port" = "no"; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define OPT_DISABLE_DS390 1
5913 cat >>confdefs.h <<_ACEOF
5914 #define OPT_DISABLE_TININative 1
5918 echo ds390 >>ports.build
5919 cat >>confdefs.h <<_ACEOF
5920 #define OPT_DISABLE_DS390 0
5923 cat >>confdefs.h <<_ACEOF
5924 #define OPT_DISABLE_TININative 0
5929 # Check whether --enable-pic-port or --disable-pic-port was given.
5930 if test "${enable_pic_port+set}" = set; then
5931 enableval="$enable_pic_port"
5934 echo pic >>ports.all
5935 if test "$enable_pic_port" = "no"; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define OPT_DISABLE_PIC 1
5941 echo pic >>ports.build
5942 cat >>confdefs.h <<_ACEOF
5943 #define OPT_DISABLE_PIC 0
5948 # Check whether --enable-xa51-port or --disable-xa51-port was given.
5949 if test "${enable_xa51_port+set}" = set; then
5950 enableval="$enable_xa51_port"
5953 echo xa51 >>ports.all
5954 if test "$enable_xa51_port" = "no"; then
5955 cat >>confdefs.h <<_ACEOF
5956 #define OPT_DISABLE_XA51 1
5960 echo xa51 >>ports.build
5961 cat >>confdefs.h <<_ACEOF
5962 #define OPT_DISABLE_XA51 0
5967 # Check whether --enable-ucsim or --disable-ucsim was given.
5968 if test "${enable_ucsim+set}" = set; then
5969 enableval="$enable_ucsim"
5972 OPT_ENABLE_UCSIM=$enable_ucsim
5975 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
5976 if test "${enable_device_lib_build+set}" = set; then
5977 enableval="$enable_device_lib_build"
5980 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
5983 # Check whether --enable-packihx or --disable-packihx was given.
5984 if test "${enable_packihx+set}" = set; then
5985 enableval="$enable_packihx"
5988 OPT_ENABLE_PACKIHX=$enable_packihx
5991 # Check whether --enable-libgc or --disable-libgc was given.
5992 if test "${enable_libgc+set}" = set; then
5993 enableval="$enable_libgc"
5996 if test "$enable_libgc" = "yes"; then
5998 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
5999 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6000 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_check_lib_save_LIBS=$LIBS
6005 cat >conftest.$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6007 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -s conftest$ac_exeext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 ac_cv_lib_gc_GC_malloc=yes
6038 echo "$as_me: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6040 ac_cv_lib_gc_GC_malloc=no
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6045 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6046 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6047 if test $ac_cv_lib_gc_GC_malloc = yes; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_LIBGC 1
6060 cat >>confdefs.h <<_ACEOF
6061 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6066 cat ports.all | uniq >ports
6068 cat ports.build | uniq >ports
6069 mv ports ports.build
6071 # Generating output files
6072 # ===========================================================================
6075 subdirs="$subdirs support/cpp2"
6079 subdirs="$subdirs packihx"
6083 subdirs="$subdirs sim/ucsim"
6085 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"
6087 cat >confcache <<\_ACEOF
6088 # This file is a shell script that caches the results of configure
6089 # tests run on this system so they can be shared between configure
6090 # scripts and configure runs, see configure's option --config-cache.
6091 # It is not useful on other systems. If it contains results you don't
6092 # want to keep, you may remove or edit it.
6094 # config.status only pays attention to the cache file if you give it
6095 # the --recheck option to rerun configure.
6097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6103 # The following way of writing the cache mishandles newlines in values,
6104 # but we know of no workaround that is simple, portable, and efficient.
6105 # So, don't put newlines in cache variables' values.
6106 # Ultrix sh set writes to stderr and can't be redirected directly,
6107 # and sets the high bit in the cache file unless we assign to the vars.
6110 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6112 # `set' does not quote correctly, so add quotes (double-quote
6113 # substitution turns \\\\ into \\, and sed turns \\ into \).
6116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6119 # `set' quotes correctly as required by POSIX, so do not add quotes.
6121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6130 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6132 if cmp -s $cache_file confcache; then :; else
6133 if test -w $cache_file; then
6134 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6135 cat confcache >$cache_file
6137 echo "not updating unwritable cache $cache_file"
6142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6143 # Let make expand exec_prefix.
6144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6148 # trailing colons and then remove the whole line if VPATH becomes empty
6149 # (actually we leave an empty line to preserve line numbers).
6150 if test "x$srcdir" = x.; then
6151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6152 s/:*\$(srcdir):*/:/;
6153 s/:*\${srcdir}:*/:/;
6155 s/^\([^=]*=[ ]*\):*/\1/;
6161 DEFS=-DHAVE_CONFIG_H
6165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6166 # 1. Remove the extension, and $U if already installed.
6167 ac_i=`echo "$ac_i" |
6168 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6170 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6171 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6175 LTLIBOBJS=$ac_ltlibobjs
6179 : ${CONFIG_STATUS=./config.status}
6180 ac_clean_files_save=$ac_clean_files
6181 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6182 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6183 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6184 cat >$CONFIG_STATUS <<_ACEOF
6186 # Generated by $as_me.
6187 # Run this file to recreate the current configuration.
6188 # Compiler output produced by configure, useful for debugging
6189 # configure, is in config.log if it exists.
6192 SHELL=\${CONFIG_SHELL-$SHELL}
6195 cat >>$CONFIG_STATUS <<\_ACEOF
6196 ## --------------------- ##
6197 ## M4sh Initialization. ##
6198 ## --------------------- ##
6200 # Be Bourne compatible
6201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6204 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6205 # is contrary to our usage. Disable this feature.
6206 alias -g '${1+"$@"}'='"$@"'
6207 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6211 # Support unset when possible.
6212 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6219 # Work around bugs in pre-3.0 UWIN ksh.
6220 $as_unset ENV MAIL MAILPATH
6226 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6228 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6229 eval $as_var=C; export $as_var
6235 # Required to use basename.
6236 if expr a : '\(a\)' >/dev/null 2>&1; then
6242 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6243 as_basename=basename
6249 # Name of the executable.
6250 as_me=`$as_basename "$0" ||
6251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6252 X"$0" : 'X\(//\)$' \| \
6253 X"$0" : 'X\(/\)$' \| \
6254 . : '\(.\)' 2>/dev/null ||
6256 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6257 /^X\/\(\/\/\)$/{ s//\1/; q; }
6258 /^X\/\(\/\).*/{ s//\1/; q; }
6262 # PATH needs CR, and LINENO needs CR and PATH.
6263 # Avoid depending upon Character Ranges.
6264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6267 as_cr_digits='0123456789'
6268 as_cr_alnum=$as_cr_Letters$as_cr_digits
6270 # The user is always right.
6271 if test "${PATH_SEPARATOR+set}" != set; then
6272 echo "#! /bin/sh" >conftest.sh
6273 echo "exit 0" >>conftest.sh
6274 chmod +x conftest.sh
6275 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6287 test "x$as_lineno_1" != "x$as_lineno_2" &&
6288 test "x$as_lineno_3" = "x$as_lineno_2" || {
6289 # Find who we are. Look in the path if we contain no path at all
6292 *[\\/]* ) as_myself=$0 ;;
6293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6303 # We did not find ourselves, most probably we were run as `sh COMMAND'
6304 # in which case we are not to be found in the path.
6305 if test "x$as_myself" = x; then
6308 if test ! -f "$as_myself"; then
6309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6311 { (exit 1); exit 1; }; }
6313 case $CONFIG_SHELL in
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6319 test -z "$as_dir" && as_dir=.
6320 for as_base in sh bash ksh sh5; do
6323 if ("$as_dir/$as_base" -c '
6326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6327 test "x$as_lineno_1" != "x$as_lineno_2" &&
6328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6329 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6330 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6331 CONFIG_SHELL=$as_dir/$as_base
6333 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6342 # uniformly replaced by the line number. The first 'sed' inserts a
6343 # line-number line before each line; the second 'sed' does the real
6344 # work. The second script uses 'N' to pair each line-number line
6345 # with the numbered line, and appends trailing '-' during
6346 # substitution so that $LINENO is not a special case at line end.
6347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6348 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6349 sed '=' <$as_myself |
6354 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6357 s,^['$as_cr_digits']*\n,,
6359 chmod +x $as_me.lineno ||
6360 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6361 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6362 { (exit 1); exit 1; }; }
6364 # Don't try to exec as it changes $[0], causing all sort of problems
6365 # (the dirname of $[0] is not the place where we might find the
6366 # original and so on. Autoconf is especially sensible to this).
6368 # Exit status is that of the last command.
6373 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6374 *c*,-n*) ECHO_N= ECHO_C='
6376 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6377 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6380 if expr a : '\(a\)' >/dev/null 2>&1; then
6386 rm -f conf$$ conf$$.exe conf$$.file
6388 if ln -s conf$$.file conf$$ 2>/dev/null; then
6389 # We could just check for DJGPP; but this test a) works b) is more generic
6390 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6391 if test -f conf$$.exe; then
6392 # Don't use ln at all; we don't have any links
6397 elif ln conf$$.file conf$$ 2>/dev/null; then
6402 rm -f conf$$ conf$$.exe conf$$.file
6404 if mkdir -p . 2>/dev/null; then
6410 as_executable_p="test -f"
6412 # Sed expression to map a string onto a valid CPP name.
6413 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6415 # Sed expression to map a string onto a valid variable name.
6416 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6420 # We need space, tab and new line, in precisely that order.
6430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6431 # report actual input values of CONFIG_FILES etc. instead of their
6432 # values after options handling. Logging --version etc. is OK.
6436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6437 ## Running $as_me. ##
6442 This file was extended by $as_me, which was
6443 generated by GNU Autoconf 2.54. Invocation command line was
6445 CONFIG_FILES = $CONFIG_FILES
6446 CONFIG_HEADERS = $CONFIG_HEADERS
6447 CONFIG_LINKS = $CONFIG_LINKS
6448 CONFIG_COMMANDS = $CONFIG_COMMANDS
6452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6456 # Files that config.status was made for.
6457 if test -n "$ac_config_files"; then
6458 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6461 if test -n "$ac_config_headers"; then
6462 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6465 if test -n "$ac_config_links"; then
6466 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6469 if test -n "$ac_config_commands"; then
6470 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6473 cat >>$CONFIG_STATUS <<\_ACEOF
6476 \`$as_me' instantiates files from templates according to the
6477 current configuration.
6479 Usage: $0 [OPTIONS] [FILE]...
6481 -h, --help print this help, then exit
6482 -V, --version print version number, then exit
6483 -d, --debug don't remove temporary files
6484 --recheck update $as_me by reconfiguring in the same conditions
6485 --file=FILE[:TEMPLATE]
6486 instantiate the configuration file FILE
6487 --header=FILE[:TEMPLATE]
6488 instantiate the configuration header FILE
6490 Configuration files:
6493 Configuration headers:
6496 Report bugs to <bug-autoconf@gnu.org>."
6499 cat >>$CONFIG_STATUS <<_ACEOF
6502 configured by $0, generated by GNU Autoconf 2.54,
6503 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6505 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6506 Free Software Foundation, Inc.
6507 This config.status script is free software; the Free Software Foundation
6508 gives unlimited permission to copy, distribute and modify it."
6513 cat >>$CONFIG_STATUS <<\_ACEOF
6514 # If no file are specified by the user, then we need to provide default
6515 # value. By we need to know if files were specified by the user.
6521 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6522 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6530 *) # This is not an option, so the user has probably given explicit
6533 ac_need_defaults=false;;
6537 # Handling of the options.
6539 cat >>$CONFIG_STATUS <<_ACEOF
6540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6541 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6542 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6545 --version | --vers* | -V )
6546 echo "$ac_cs_version"; exit 0 ;;
6548 # Conflict between --help and --header
6549 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6550 Try \`$0 --help' for more information." >&5
6551 echo "$as_me: error: ambiguous option: $1
6552 Try \`$0 --help' for more information." >&2;}
6553 { (exit 1); exit 1; }; };;
6554 --help | --hel | -h )
6555 echo "$ac_cs_usage"; exit 0 ;;
6556 --debug | --d* | -d )
6558 --file | --fil | --fi | --f )
6560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6561 ac_need_defaults=false;;
6562 --header | --heade | --head | --hea )
6564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6565 ac_need_defaults=false;;
6568 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6569 Try \`$0 --help' for more information." >&5
6570 echo "$as_me: error: unrecognized option: $1
6571 Try \`$0 --help' for more information." >&2;}
6572 { (exit 1); exit 1; }; } ;;
6574 *) ac_config_targets="$ac_config_targets $1" ;;
6586 cat >>$CONFIG_STATUS <<\_ACEOF
6587 for ac_config_target in $ac_config_targets
6589 case "$ac_config_target" in
6590 # Handling of arguments.
6591 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
6592 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6593 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
6594 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
6595 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
6596 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
6597 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
6598 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
6599 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6601 { (exit 1); exit 1; }; };;
6605 # If the user did not use the arguments to specify the items to instantiate,
6606 # then the envvar interface is used. Set only those that are not.
6607 # We use the long form for the default assignment because of an extremely
6608 # bizarre bug on SunOS 4.1.3.
6609 if $ac_need_defaults; then
6610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6614 # Create a temporary directory, and hook for its removal unless debugging.
6617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6618 trap '{ (exit 1); exit 1; }' 1 2 13 15
6621 # Create a (secure) tmp directory for tmp files.
6624 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6625 test -n "$tmp" && test -d "$tmp"
6628 tmp=$TMPDIR/cs$$-$RANDOM
6629 (umask 077 && mkdir $tmp)
6632 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6633 { (exit 1); exit 1; }
6638 cat >>$CONFIG_STATUS <<_ACEOF
6641 # CONFIG_FILES section.
6644 # No need to generate the scripts if there are no CONFIG_FILES.
6645 # This happens for instance when ./config.status config.h
6646 if test -n "\$CONFIG_FILES"; then
6647 # Protect against being on the right side of a sed subst in config.status.
6648 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6649 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6650 s,@SHELL@,$SHELL,;t t
6651 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6652 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6653 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6654 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6655 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6656 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6657 s,@exec_prefix@,$exec_prefix,;t t
6658 s,@prefix@,$prefix,;t t
6659 s,@program_transform_name@,$program_transform_name,;t t
6660 s,@bindir@,$bindir,;t t
6661 s,@sbindir@,$sbindir,;t t
6662 s,@libexecdir@,$libexecdir,;t t
6663 s,@datadir@,$datadir,;t t
6664 s,@sysconfdir@,$sysconfdir,;t t
6665 s,@sharedstatedir@,$sharedstatedir,;t t
6666 s,@localstatedir@,$localstatedir,;t t
6667 s,@libdir@,$libdir,;t t
6668 s,@includedir@,$includedir,;t t
6669 s,@oldincludedir@,$oldincludedir,;t t
6670 s,@infodir@,$infodir,;t t
6671 s,@mandir@,$mandir,;t t
6672 s,@build_alias@,$build_alias,;t t
6673 s,@host_alias@,$host_alias,;t t
6674 s,@target_alias@,$target_alias,;t t
6676 s,@ECHO_C@,$ECHO_C,;t t
6677 s,@ECHO_N@,$ECHO_N,;t t
6678 s,@ECHO_T@,$ECHO_T,;t t
6681 s,@VERSION@,$VERSION,;t t
6682 s,@VERSIONHI@,$VERSIONHI,;t t
6683 s,@VERSIONLO@,$VERSIONLO,;t t
6684 s,@VERSIONP@,$VERSIONP,;t t
6686 s,@CFLAGS@,$CFLAGS,;t t
6687 s,@LDFLAGS@,$LDFLAGS,;t t
6688 s,@CPPFLAGS@,$CPPFLAGS,;t t
6689 s,@ac_ct_CC@,$ac_ct_CC,;t t
6690 s,@EXEEXT@,$EXEEXT,;t t
6691 s,@OBJEXT@,$OBJEXT,;t t
6693 s,@CXXFLAGS@,$CXXFLAGS,;t t
6694 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6696 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6697 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6698 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6699 s,@RANLIB@,$RANLIB,;t t
6700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6702 s,@LEXLIB@,$LEXLIB,;t t
6703 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6705 s,@AUTOCONF@,$AUTOCONF,;t t
6706 s,@STRIP@,$STRIP,;t t
6710 s,@LATEX@,$LATEX,;t t
6711 s,@LATEX2HTML@,$LATEX2HTML,;t t
6712 s,@PDFLATEX@,$PDFLATEX,;t t
6713 s,@DVIPDF@,$DVIPDF,;t t
6714 s,@EGREP@,$EGREP,;t t
6715 s,@M_OR_MM@,$M_OR_MM,;t t
6716 s,@sdcc_datadir@,$sdcc_datadir,;t t
6717 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
6718 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
6719 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
6720 s,@subdirs@,$subdirs,;t t
6721 s,@LIBOBJS@,$LIBOBJS,;t t
6722 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6727 cat >>$CONFIG_STATUS <<\_ACEOF
6728 # Split the substitutions into bite-sized pieces for seds with
6729 # small command number limits, like on Digital OSF/1 and HP-UX.
6731 ac_sed_frag=1 # Number of current file.
6732 ac_beg=1 # First line for current file.
6733 ac_end=$ac_max_sed_lines # Line after last line for current file.
6736 while $ac_more_lines; do
6737 if test $ac_beg -gt 1; then
6738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6742 if test ! -s $tmp/subs.frag; then
6745 # The purpose of the label and of the branching condition is to
6746 # speed up the sed processing (if there are no `@' at all, there
6747 # is no need to browse any of the substitutions).
6748 # These are the two extra sed commands mentioned above.
6750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6751 if test -z "$ac_sed_cmds"; then
6752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6756 ac_sed_frag=`expr $ac_sed_frag + 1`
6758 ac_end=`expr $ac_end + $ac_max_sed_lines`
6761 if test -z "$ac_sed_cmds"; then
6764 fi # test -n "$CONFIG_FILES"
6767 cat >>$CONFIG_STATUS <<\_ACEOF
6768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6771 - | *:- | *:-:* ) # input from stdin
6773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6777 * ) ac_file_in=$ac_file.in ;;
6780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783 X"$ac_file" : 'X\(//\)[^/]' \| \
6784 X"$ac_file" : 'X\(//\)$' \| \
6785 X"$ac_file" : 'X\(/\)' \| \
6786 . : '\(.\)' 2>/dev/null ||
6788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6790 /^X\(\/\/\)$/{ s//\1/; q; }
6791 /^X\(\/\).*/{ s//\1/; q; }
6793 { if $as_mkdir_p; then
6798 while test ! -d "$as_dir"; do
6799 as_dirs="$as_dir $as_dirs"
6800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6802 X"$as_dir" : 'X\(//\)[^/]' \| \
6803 X"$as_dir" : 'X\(//\)$' \| \
6804 X"$as_dir" : 'X\(/\)' \| \
6805 . : '\(.\)' 2>/dev/null ||
6807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6809 /^X\(\/\/\)$/{ s//\1/; q; }
6810 /^X\(\/\).*/{ s//\1/; q; }
6813 test ! -n "$as_dirs" || mkdir $as_dirs
6814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6816 { (exit 1); exit 1; }; }; }
6820 if test "$ac_dir" != .; then
6821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6822 # A "../" for each directory in $ac_dir_suffix.
6823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6825 ac_dir_suffix= ac_top_builddir=
6829 .) # No --srcdir option. We are building in place.
6831 if test -z "$ac_top_builddir"; then
6834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6836 [\\/]* | ?:[\\/]* ) # Absolute path.
6837 ac_srcdir=$srcdir$ac_dir_suffix;
6838 ac_top_srcdir=$srcdir ;;
6840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6843 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6845 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6846 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6847 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6848 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6853 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6856 if test x"$ac_file" != x-; then
6857 { echo "$as_me:$LINENO: creating $ac_file" >&5
6858 echo "$as_me: creating $ac_file" >&6;}
6861 # Let's still pretend it is `configure' which instantiates (i.e., don't
6862 # use $as_me), people would be surprised to read:
6863 # /* config.h. Generated by config.status. */
6864 if test x"$ac_file" = x-; then
6867 configure_input="$ac_file. "
6869 configure_input=$configure_input"Generated from `echo $ac_file_in |
6870 sed 's,.*/,,'` by configure."
6872 # First look for the input files in the build tree, otherwise in the
6874 ac_file_inputs=`IFS=:
6875 for f in $ac_file_in; do
6877 -) echo $tmp/stdin ;;
6879 # Absolute (can't be DOS-style, as IFS=:)
6880 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6881 echo "$as_me: error: cannot find input file: $f" >&2;}
6882 { (exit 1); exit 1; }; }
6885 if test -f "$f"; then
6888 elif test -f "$srcdir/$f"; then
6893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6894 echo "$as_me: error: cannot find input file: $f" >&2;}
6895 { (exit 1); exit 1; }; }
6898 done` || { (exit 1); exit 1; }
6900 cat >>$CONFIG_STATUS <<_ACEOF
6904 cat >>$CONFIG_STATUS <<\_ACEOF
6906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6907 s,@configure_input@,$configure_input,;t t
6908 s,@srcdir@,$ac_srcdir,;t t
6909 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6910 s,@top_srcdir@,$ac_top_srcdir,;t t
6911 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6912 s,@builddir@,$ac_builddir,;t t
6913 s,@abs_builddir@,$ac_abs_builddir,;t t
6914 s,@top_builddir@,$ac_top_builddir,;t t
6915 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6916 s,@INSTALL@,$ac_INSTALL,;t t
6917 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6919 if test x"$ac_file" != x-; then
6920 mv $tmp/out $ac_file
6928 cat >>$CONFIG_STATUS <<\_ACEOF
6931 # CONFIG_HEADER section.
6934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6937 # ac_d sets the value in "#define NAME VALUE" lines.
6938 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6939 ac_dB='[ ].*$,\1#\2'
6942 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6943 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6944 ac_uB='$,\1#\2define\3'
6948 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6951 - | *:- | *:-:* ) # input from stdin
6953 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6955 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6957 * ) ac_file_in=$ac_file.in ;;
6960 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6961 echo "$as_me: creating $ac_file" >&6;}
6963 # First look for the input files in the build tree, otherwise in the
6965 ac_file_inputs=`IFS=:
6966 for f in $ac_file_in; do
6968 -) echo $tmp/stdin ;;
6970 # Absolute (can't be DOS-style, as IFS=:)
6971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6972 echo "$as_me: error: cannot find input file: $f" >&2;}
6973 { (exit 1); exit 1; }; }
6976 if test -f "$f"; then
6979 elif test -f "$srcdir/$f"; then
6984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6985 echo "$as_me: error: cannot find input file: $f" >&2;}
6986 { (exit 1); exit 1; }; }
6989 done` || { (exit 1); exit 1; }
6990 # Remove the trailing spaces.
6991 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6995 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6996 # `conftest.undefs', that substitutes the proper values into
6997 # config.h.in to produce config.h. The first handles `#define'
6998 # templates, and the second `#undef' templates.
6999 # And first: Protect against being on the right side of a sed subst in
7000 # config.status. Protect against being in an unquoted here document
7002 rm -f conftest.defines conftest.undefs
7003 # Using a here document instead of a string reduces the quoting nightmare.
7004 # Putting comments in sed scripts is not portable.
7006 # `end' is used to avoid that the second main sed command (meant for
7007 # 0-ary CPP macros) applies to n-ary macro definitions.
7008 # See the Autoconf documentation for `clear'.
7009 cat >confdef2sed.sed <<\_ACEOF
7014 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7016 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7019 # If some macros were called several times there might be several times
7020 # the same #defines, which is useless. Nevertheless, we may not want to
7021 # sort them, since we want the *last* AC-DEFINE to be honored.
7022 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7023 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7024 rm -f confdef2sed.sed
7026 # This sed command replaces #undef with comments. This is necessary, for
7027 # example, in the case of _POSIX_SOURCE, which is predefined and required
7028 # on some systems where configure will not decide to define it.
7029 cat >>conftest.undefs <<\_ACEOF
7030 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7033 # Break up conftest.defines because some shells have a limit on the size
7034 # of here documents, and old seds have small limits too (100 cmds).
7035 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7036 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7037 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7038 echo ' :' >>$CONFIG_STATUS
7040 while grep . conftest.defines >/dev/null
7042 # Write a limited-size here document to $tmp/defines.sed.
7043 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7044 # Speed up: don't consider the non `#define' lines.
7045 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7046 # Work around the forget-to-reset-the-flag bug.
7047 echo 't clr' >>$CONFIG_STATUS
7048 echo ': clr' >>$CONFIG_STATUS
7049 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7051 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7055 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7056 rm -f conftest.defines
7057 mv conftest.tail conftest.defines
7059 rm -f conftest.defines
7060 echo ' fi # grep' >>$CONFIG_STATUS
7061 echo >>$CONFIG_STATUS
7063 # Break up conftest.undefs because some shells have a limit on the size
7064 # of here documents, and old seds have small limits too (100 cmds).
7065 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7067 while grep . conftest.undefs >/dev/null
7069 # Write a limited-size here document to $tmp/undefs.sed.
7070 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7071 # Speed up: don't consider the non `#undef'
7072 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7073 # Work around the forget-to-reset-the-flag bug.
7074 echo 't clr' >>$CONFIG_STATUS
7075 echo ': clr' >>$CONFIG_STATUS
7076 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7078 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7082 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7083 rm -f conftest.undefs
7084 mv conftest.tail conftest.undefs
7086 rm -f conftest.undefs
7088 cat >>$CONFIG_STATUS <<\_ACEOF
7089 # Let's still pretend it is `configure' which instantiates (i.e., don't
7090 # use $as_me), people would be surprised to read:
7091 # /* config.h. Generated by config.status. */
7092 if test x"$ac_file" = x-; then
7093 echo "/* Generated by configure. */" >$tmp/config.h
7095 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7097 cat $tmp/in >>$tmp/config.h
7099 if test x"$ac_file" != x-; then
7100 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7101 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7102 echo "$as_me: $ac_file is unchanged" >&6;}
7104 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7106 X"$ac_file" : 'X\(//\)[^/]' \| \
7107 X"$ac_file" : 'X\(//\)$' \| \
7108 X"$ac_file" : 'X\(/\)' \| \
7109 . : '\(.\)' 2>/dev/null ||
7111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7113 /^X\(\/\/\)$/{ s//\1/; q; }
7114 /^X\(\/\).*/{ s//\1/; q; }
7116 { if $as_mkdir_p; then
7121 while test ! -d "$as_dir"; do
7122 as_dirs="$as_dir $as_dirs"
7123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7125 X"$as_dir" : 'X\(//\)[^/]' \| \
7126 X"$as_dir" : 'X\(//\)$' \| \
7127 X"$as_dir" : 'X\(/\)' \| \
7128 . : '\(.\)' 2>/dev/null ||
7130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7132 /^X\(\/\/\)$/{ s//\1/; q; }
7133 /^X\(\/\).*/{ s//\1/; q; }
7136 test ! -n "$as_dirs" || mkdir $as_dirs
7137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7139 { (exit 1); exit 1; }; }; }
7142 mv $tmp/config.h $ac_file
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7153 { (exit 0); exit 0; }
7155 chmod +x $CONFIG_STATUS
7156 ac_clean_files=$ac_clean_files_save
7159 # configure is writing to config.log, and then calls config.status.
7160 # config.status does its own redirection, appending to config.log.
7161 # Unfortunately, on DOS this fails, as config.log is still kept open
7162 # by configure, so config.status won't be able to write to it; its
7163 # output is simply discarded. So we exec the FD to /dev/null,
7164 # effectively closing config.log, so it can be properly (re)opened and
7165 # appended to by config.status. When coming back to configure, we
7166 # need to make the FD available again.
7167 if test "$no_create" != yes; then
7170 $SHELL $CONFIG_STATUS || ac_cs_success=false
7172 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7173 # would make configure fail if this is the last instruction.
7174 $ac_cs_success || { (exit 1); exit 1; }
7178 # CONFIG_SUBDIRS section.
7180 if test "$no_recursion" != yes; then
7182 # Remove --cache-file and --srcdir arguments so they do not pile up.
7183 ac_sub_configure_args=
7185 for ac_arg in $ac_configure_args; do
7186 if test -n "$ac_prev"; then
7191 -cache-file | --cache-file | --cache-fil | --cache-fi \
7192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7193 ac_prev=cache_file ;;
7194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7198 --config-cache | -C)
7200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7208 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7212 # Always prepend --prefix to ensure using the same prefix
7213 # in subdir configurations.
7214 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7217 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7219 # Do not complain, so a configure script can configure whichever
7220 # parts of a large source tree are present.
7221 test -d $srcdir/$ac_dir || continue
7223 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7224 echo "$as_me: configuring in $ac_dir" >&6;}
7225 { if $as_mkdir_p; then
7230 while test ! -d "$as_dir"; do
7231 as_dirs="$as_dir $as_dirs"
7232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7234 X"$as_dir" : 'X\(//\)[^/]' \| \
7235 X"$as_dir" : 'X\(//\)$' \| \
7236 X"$as_dir" : 'X\(/\)' \| \
7237 . : '\(.\)' 2>/dev/null ||
7239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7241 /^X\(\/\/\)$/{ s//\1/; q; }
7242 /^X\(\/\).*/{ s//\1/; q; }
7245 test ! -n "$as_dirs" || mkdir $as_dirs
7246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7248 { (exit 1); exit 1; }; }; }
7252 if test "$ac_dir" != .; then
7253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7254 # A "../" for each directory in $ac_dir_suffix.
7255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7257 ac_dir_suffix= ac_top_builddir=
7261 .) # No --srcdir option. We are building in place.
7263 if test -z "$ac_top_builddir"; then
7266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7268 [\\/]* | ?:[\\/]* ) # Absolute path.
7269 ac_srcdir=$srcdir$ac_dir_suffix;
7270 ac_top_srcdir=$srcdir ;;
7272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7275 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7277 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7278 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7279 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7280 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7285 # Check for guested configure; otherwise get Cygnus style configure.
7286 if test -f $ac_srcdir/configure.gnu; then
7287 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7288 elif test -f $ac_srcdir/configure; then
7289 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7290 elif test -f $ac_srcdir/configure.in; then
7291 ac_sub_configure=$ac_configure
7293 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7294 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7298 # The recursion is here.
7299 if test -n "$ac_sub_configure"; then
7300 # Make the cache file name correct relative to the subdirectory.
7302 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7304 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7307 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7308 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7309 # The eval makes quoting arguments work.
7310 eval $ac_sub_configure $ac_sub_configure_args \
7311 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7312 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7313 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7314 { (exit 1); exit 1; }; }
7322 # End of configure/configure.in