2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subdirs_all="$ac_subdirs_all support/cpp2"
313 ac_subdirs_all="$ac_subdirs_all packihx"
314 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
315 ac_subdirs_all="$ac_subdirs_all device/lib/pic16"
316 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 sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CXX_set=${CXX+set}
774 ac_env_CXX_value=$CXX
775 ac_cv_env_CXX_set=${CXX+set}
776 ac_cv_env_CXX_value=$CXX
777 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_env_CXXFLAGS_value=$CXXFLAGS
779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781 ac_env_CPP_set=${CPP+set}
782 ac_env_CPP_value=$CPP
783 ac_cv_env_CPP_set=${CPP+set}
784 ac_cv_env_CPP_value=$CPP
785 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
786 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
787 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
788 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
789 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
790 ac_env_include_dir_suffix_value=$include_dir_suffix
791 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
792 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
793 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
794 ac_env_lib_dir_suffix_value=$lib_dir_suffix
795 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
796 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
797 ac_env_docdir_set=${docdir+set}
798 ac_env_docdir_value=$docdir
799 ac_cv_env_docdir_set=${docdir+set}
800 ac_cv_env_docdir_value=$docdir
803 # Report the --help message.
805 if test "$ac_init_help" = "long"; then
806 # Omit some internal or obsolete options to make the list less imposing.
807 # This message is too long to be a string in the A/UX 3.1 sh.
809 \`configure' configures this package to adapt to many kinds of systems.
811 Usage: $0 [OPTION]... [VAR=VALUE]...
813 To assign environment variables (e.g., CC, CFLAGS...), specify them as
814 VAR=VALUE. See below for descriptions of some of the useful variables.
816 Defaults for the options are specified in brackets.
819 -h, --help display this help and exit
820 --help=short display options specific to this package
821 --help=recursive display the short help of all the included packages
822 -V, --version display version information and exit
823 -q, --quiet, --silent do not print \`checking...' messages
824 --cache-file=FILE cache test results in FILE [disabled]
825 -C, --config-cache alias for \`--cache-file=config.cache'
826 -n, --no-create do not create output files
827 --srcdir=DIR find the sources in DIR [configure dir or \`..']
832 Installation directories:
833 --prefix=PREFIX install architecture-independent files in PREFIX
835 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
838 By default, \`make install' will install all the files in
839 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
840 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
841 for instance \`--prefix=\$HOME'.
843 For better control, use the options below.
845 Fine tuning of the installation directories:
846 --bindir=DIR user executables [EPREFIX/bin]
847 --sbindir=DIR system admin executables [EPREFIX/sbin]
848 --libexecdir=DIR program executables [EPREFIX/libexec]
849 --datadir=DIR read-only architecture-independent data [PREFIX/share]
850 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
851 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
852 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
853 --libdir=DIR object code libraries [EPREFIX/lib]
854 --includedir=DIR C header files [PREFIX/include]
855 --oldincludedir=DIR C header files for non-gcc [/usr/include]
856 --infodir=DIR info documentation [PREFIX/info]
857 --mandir=DIR man documentation [PREFIX/man]
863 --program-prefix=PREFIX prepend PREFIX to installed program names
864 --program-suffix=SUFFIX append SUFFIX to installed program names
865 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
869 if test -n "$ac_init_help"; then
874 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876 --disable-mcs51-port Excludes the Intel mcs51 port
877 --disable-gbz80-port Excludes the Gameboy gbz80 port
878 --disable-z80-port Excludes the z80 port
879 --disable-avr-port Excludes the AVR port
880 --disable-ds390-port Excludes the DS390 port
881 --disable-ds400-port Excludes the DS400 port
882 --disable-pic-port Excludes the PIC port
883 --disable-pic16-port Excludes the PIC port
884 --disable-xa51-port Excludes the XA51 port
885 --disable-hc08-port Excludes the HC08 port
886 --disable-ucsim Disables configuring and building of ucsim
887 --disable-device-lib-build
888 Disables automatically building device libraries
889 --disable-packihx Disables building packihx
890 --enable-libgc Use the Bohem memory allocator. Lower runtime
893 Some influential environment variables:
894 CC C compiler command
895 CFLAGS C compiler flags
896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
897 nonstandard directory <lib dir>
898 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
899 headers in a nonstandard directory <include dir>
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
903 sdccconf_h_dir_separator
904 needed in sdccconf.h: either "/" (default) or "\\"
906 appended to datadir to define SDCC's include directory
908 appended to datadir to define SDCC's library root directory
909 docdir documentation installation directory
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 gives unlimited permission to copy, distribute and modify it.
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1021 It was created by $as_me, which was
1022 generated by GNU Autoconf 2.59. Invocation command line was
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_must_keep_next=false
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 -* ) ac_must_keep_next=true ;;
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log. We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1139 # The following way of writing the cache mishandles newlines in values,
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1162 for ac_var in $ac_subst_vars
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -n "$ac_subst_files"; then
1176 for ac_var in $ac_subst_files
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1184 if test -s confdefs.h; then
1191 sed "/^$/d" confdefs.h | sort
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 # Predefined preprocessor variables.
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 for ac_site_file in $CONFIG_SITE; do
1249 if test -r "$ac_site_file"; then
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
1257 if test -r "$cache_file"; then
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1274 # Check that the precious variables saved in the cache have kept the same
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
1283 case $ac_old_set,$ac_new_set in
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298 echo "$as_me: former value: $ac_old_val" >&2;}
1299 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300 echo "$as_me: current value: $ac_new_val" >&2;}
1301 ac_cache_corrupted=:
1304 # Pass precious variables to config.status.
1305 if test "$ac_new_set" = set; then
1307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309 *) ac_arg=$ac_var=$ac_new_val ;;
1311 case " $ac_configure_args " in
1312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1313 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 if $ac_cache_corrupted; then
1318 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322 { (exit 1); exit 1; }; }
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1353 for ac_prog in gawk mawk nawk awk
1355 # Extract the first word of "$ac_prog", so it can be a program name with args.
1356 set dummy $ac_prog; ac_word=$2
1357 echo "$as_me:$LINENO: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_AWK+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$AWK"; then
1363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_AWK="$ac_prog"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 if test -n "$AWK"; then
1383 echo "$as_me:$LINENO: result: $AWK" >&5
1384 echo "${ECHO_T}$AWK" >&6
1386 echo "$as_me:$LINENO: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1390 test -n "$AWK" && break
1394 echo "$as_me:$LINENO: checking version of the package" >&5
1395 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1396 if test -f .version; then
1397 VERSION=`cat .version`
1398 elif test -f ../.version; then
1399 VERSION=`cat ../.version`
1403 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1404 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1405 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1407 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1408 echo "${ECHO_T}${VERSION}" >&6
1413 cat >>confdefs.h <<_ACEOF
1414 #define SDCC_VERSION_LO ${VERSIONLO}
1417 cat >>confdefs.h <<_ACEOF
1418 #define SDCC_VERSION_HI ${VERSIONHI}
1421 cat >>confdefs.h <<_ACEOF
1422 #define SDCC_VERSION_P ${VERSIONP}
1425 cat >>confdefs.h <<_ACEOF
1426 #define SDCC_VERSION_STR "${VERSION}"
1429 test "$program_prefix" != NONE &&
1430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1431 # Use a double $ so make ignores it.
1432 test "$program_suffix" != NONE &&
1433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1434 # Double any \ or $. echo might interpret backslashes.
1435 # By default was `s,x,x', remove it if useless.
1436 cat <<\_ACEOF >conftest.sed
1437 s/[\\$]/&&/g;s/;s,x,x,$//
1439 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1442 sdcc_cv_version=$VERSION
1443 sdcc_cv_versionhi=$VERSIONHI
1444 sdcc_cv_versionlo=$VERSIONLO
1445 sdcc_cv_versionp=$VERSIONP
1449 # ===========================================================================
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1492 if test -z "$ac_cv_prog_CC"; then
1494 # Extract the first word of "gcc", so it can be a program name with args.
1495 set dummy gcc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="gcc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1534 if test -z "$CC"; then
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}cc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1572 if test -z "$ac_cv_prog_CC"; then
1574 # Extract the first word of "cc", so it can be a program name with args.
1575 set dummy cc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="cc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1635 ac_prog_rejected=yes
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test $ac_prog_rejected = yes; then
1646 # We found a bogon in the path, so make sure we never use it.
1647 set dummy $ac_cv_prog_CC
1649 if test $# != 0; then
1650 # We chose a different compiler from the bogus one.
1651 # However, it has the same basename, so the bogon will be chosen
1652 # first if we set CC to just the basename; use the full file name.
1654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 if test -n "$CC"; then
1701 echo "$as_me:$LINENO: result: $CC" >&5
1702 echo "${ECHO_T}$CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 test -n "$CC" && break
1711 if test -z "$CC"; then
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1750 test -n "$ac_ct_CC" && break
1759 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: no acceptable C compiler found in \$PATH
1762 See \`config.log' for more details." >&2;}
1763 { (exit 1); exit 1; }; }
1765 # Provide some information about the compiler.
1766 echo "$as_me:$LINENO:" \
1767 "checking for C compiler version" >&5
1768 ac_compiler=`set X $ac_compile; echo $2`
1769 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1770 (eval $ac_compiler --version </dev/null >&5) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1775 (eval $ac_compiler -v </dev/null >&5) 2>&5
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1780 (eval $ac_compiler -V </dev/null >&5) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1785 cat >conftest.$ac_ext <<_ACEOF
1788 cat confdefs.h >>conftest.$ac_ext
1789 cat >>conftest.$ac_ext <<_ACEOF
1790 /* end confdefs.h. */
1800 ac_clean_files_save=$ac_clean_files
1801 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1802 # Try to create an executable without -o first, disregard a.out.
1803 # It will help us diagnose broken compilers, and finding out an intuition
1805 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1806 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1807 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1808 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1809 (eval $ac_link_default) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 # Find the output, starting from the most likely. This scheme is
1814 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1817 # Be careful to initialize this variable, since it used to be cached.
1818 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1820 # b.out is created by i960 compilers.
1821 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1823 test -f "$ac_file" || continue
1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1828 # This is the source file.
1831 # We found the default executable, but exeext='' is most
1835 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 # FIXME: I believe we export ac_cv_exeext for Libtool,
1837 # but it would be cool to find out if it's true. Does anybody
1838 # maintain Libtool? --akim.
1846 echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: C compiler cannot create executables
1852 See \`config.log' for more details." >&2;}
1853 { (exit 77); exit 77; }; }
1856 ac_exeext=$ac_cv_exeext
1857 echo "$as_me:$LINENO: result: $ac_file" >&5
1858 echo "${ECHO_T}$ac_file" >&6
1860 # Check the compiler produces executables we can run. If not, either
1861 # the compiler is broken, or we cross compile.
1862 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1863 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1864 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1865 # If not cross compiling, check that we can run a simple program.
1866 if test "$cross_compiling" != yes; then
1867 if { ac_try='./$ac_file'
1868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; }; then
1875 if test "$cross_compiling" = maybe; then
1878 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: cannot run C compiled programs.
1882 If you meant to cross compile, use \`--host'.
1883 See \`config.log' for more details." >&2;}
1884 { (exit 1); exit 1; }; }
1888 echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6
1891 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1892 ac_clean_files=$ac_clean_files_save
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1896 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1897 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1898 echo "${ECHO_T}$cross_compiling" >&6
1900 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1901 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1903 (eval $ac_link) 2>&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }; then
1907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1908 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1909 # work properly (i.e., refer to `conftest.exe'), while it won't with
1911 for ac_file in conftest.exe conftest conftest.*; do
1912 test -f "$ac_file" || continue
1914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1929 rm -f conftest$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1931 echo "${ECHO_T}$ac_cv_exeext" >&6
1933 rm -f conftest.$ac_ext
1934 EXEEXT=$ac_cv_exeext
1936 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1938 if test "${ac_cv_objext+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 cat >conftest.$ac_ext <<_ACEOF
1944 cat confdefs.h >>conftest.$ac_ext
1945 cat >>conftest.$ac_ext <<_ACEOF
1946 /* end confdefs.h. */
1956 rm -f conftest.o conftest.obj
1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; then
1962 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1965 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970 echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 cat >conftest.$ac_ext <<_ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2013 grep -v '^ *+' conftest.er1 >conftest.err
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2044 GCC=`test $ac_compiler_gnu = yes && echo yes`
2045 ac_test_CFLAGS=${CFLAGS+set}
2046 ac_save_CFLAGS=$CFLAGS
2048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2050 if test "${ac_cv_prog_cc_g+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >conftest.$ac_ext <<_ACEOF
2056 cat confdefs.h >>conftest.$ac_ext
2057 cat >>conftest.$ac_ext <<_ACEOF
2058 /* end confdefs.h. */
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2072 grep -v '^ *+' conftest.er1 >conftest.err
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2101 if test "$ac_test_CFLAGS" = set; then
2102 CFLAGS=$ac_save_CFLAGS
2103 elif test $ac_cv_prog_cc_g = yes; then
2104 if test "$GCC" = yes; then
2110 if test "$GCC" = yes; then
2116 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2117 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 ac_cv_prog_cc_stdc=no
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2147 s = g (p, va_arg (v,int));
2152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2153 function prototypes and stuff, but not '\xHH' hex character constants.
2154 These don't provoke an error unfortunately, instead are silently treated
2155 as 'x'. The following induces an error, until -std1 is added to get
2156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2157 array size at least. It's necessary to write '\x00'==0 to get something
2158 that's true only with -std1. */
2159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX -qlanglvl=ansi
2178 # Ultrix and OSF/1 -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions -Aa -D_HPUX_SOURCE
2181 # SVR4 -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2184 CC="$ac_save_CC $ac_arg"
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>conftest.er1
2189 grep -v '^ *+' conftest.er1 >conftest.err
2191 cat conftest.err >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); } &&
2194 { ac_try='test -z "$ac_c_werror_flag"
2195 || test ! -s conftest.err'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 ac_cv_prog_cc_stdc=$ac_arg
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.err conftest.$ac_objext
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2221 case "x$ac_cv_prog_cc_stdc" in
2223 echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228 CC="$CC $ac_cv_prog_cc_stdc" ;;
2231 # Some people use a C++ compiler to compile C. Since we use `exit',
2232 # in C++ we need to declare it. In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 for ac_declaration in \
2264 'extern "C" void std::exit (int) throw (); using std::exit;' \
2265 'extern "C" void std::exit (int); using std::exit;' \
2266 'extern "C" void exit (int) throw ();' \
2267 'extern "C" void exit (int);' \
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 cat >conftest.$ac_ext <<_ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CXX"; then
2396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CXX"; then
2416 echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 test -n "$CXX" && break
2426 if test -z "$CXX"; then
2428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2430 # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CXX"; then
2438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$ac_ct_CXX" && break
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475 "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478 (eval $ac_compiler --version </dev/null >&5) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483 (eval $ac_compiler -v </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488 (eval $ac_compiler -V </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_cxx_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2549 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2551 GXX=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CXXFLAGS=${CXXFLAGS+set}
2553 ac_save_CXXFLAGS=$CXXFLAGS
2555 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2557 if test "${ac_cv_prog_cxx_g+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2579 grep -v '^ *+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_cxx_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 ac_cv_prog_cxx_g=yes
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2608 if test "$ac_test_CXXFLAGS" = set; then
2609 CXXFLAGS=$ac_save_CXXFLAGS
2610 elif test $ac_cv_prog_cxx_g = yes; then
2611 if test "$GXX" = yes; then
2617 if test "$GXX" = yes; then
2623 for ac_declaration in \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_cxx_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_cxx_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2742 # On Suns, sometimes $CPP names a directory.
2743 if test -n "$CPP" && test -d "$CPP"; then
2746 if test -z "$CPP"; then
2747 if test "${ac_cv_prog_CPP+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 # Double quotes because CPP needs to be expanded
2751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2754 for ac_c_preproc_warn_flag in '' yes
2756 # Use a header file that comes with gcc, so configuring glibc
2757 # with a fresh cross-compiler works.
2758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2759 # <limits.h> exists even on freestanding compilers.
2760 # On the NeXT, cc -E runs the code through the compiler's parser,
2761 # not just through cpp. "Syntax error" is here to catch this case.
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2769 # include <limits.h>
2771 # include <assert.h>
2775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } >/dev/null; then
2783 if test -s conftest.err; then
2784 ac_cpp_err=$ac_c_preproc_warn_flag
2785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2792 if test -z "$ac_cpp_err"; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2798 # Broken: fails on valid input.
2801 rm -f conftest.err conftest.$ac_ext
2803 # OK, works on sane cases. Now check whether non-existent headers
2804 # can be detected and how.
2805 cat >conftest.$ac_ext <<_ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h. */
2811 #include <ac_nonexistent.h>
2813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2830 if test -z "$ac_cpp_err"; then
2831 # Broken: success on invalid input.
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 # Passes both tests.
2841 rm -f conftest.err conftest.$ac_ext
2844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2845 rm -f conftest.err conftest.$ac_ext
2846 if $ac_preproc_ok; then
2858 echo "$as_me:$LINENO: result: $CPP" >&5
2859 echo "${ECHO_T}$CPP" >&6
2861 for ac_c_preproc_warn_flag in '' yes
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
2865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2866 # <limits.h> exists even on freestanding compilers.
2867 # On the NeXT, cc -E runs the code through the compiler's parser,
2868 # not just through cpp. "Syntax error" is here to catch this case.
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2876 # include <limits.h>
2878 # include <assert.h>
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null; then
2890 if test -s conftest.err; then
2891 ac_cpp_err=$ac_c_preproc_warn_flag
2892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2899 if test -z "$ac_cpp_err"; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 # Broken: fails on valid input.
2908 rm -f conftest.err conftest.$ac_ext
2910 # OK, works on sane cases. Now check whether non-existent headers
2911 # can be detected and how.
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918 #include <ac_nonexistent.h>
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2937 if test -z "$ac_cpp_err"; then
2938 # Broken: success on invalid input.
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 # Passes both tests.
2948 rm -f conftest.err conftest.$ac_ext
2951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2952 rm -f conftest.err conftest.$ac_ext
2953 if $ac_preproc_ok; then
2956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2959 See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2971 if test -f $ac_dir/install-sh; then
2973 ac_install_sh="$ac_aux_dir/install-sh -c"
2975 elif test -f $ac_dir/install.sh; then
2977 ac_install_sh="$ac_aux_dir/install.sh -c"
2979 elif test -f $ac_dir/shtool; then
2981 ac_install_sh="$ac_aux_dir/shtool install -c"
2985 if test -z "$ac_aux_dir"; then
2986 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2987 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2988 { (exit 1); exit 1; }; }
2990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2992 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2994 # Find a good install program. We prefer a C program (faster),
2995 # so one script is as good as another. But avoid the broken or
2996 # incompatible versions:
2997 # SysV /etc/install, /usr/sbin/install
2998 # SunOS /usr/etc/install
2999 # IRIX /sbin/install
3001 # AmigaOS /C/install, which installs bootblocks on floppy discs
3002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3005 # OS/2's system install, which has a completely different semantic
3006 # ./install, which can be erroneously created by make from ./install.sh.
3007 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3008 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3009 if test -z "$INSTALL"; then
3010 if test "${ac_cv_path_install+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 # Account for people who put trailing slashes in PATH elements.
3020 ./ | .// | /cC/* | \
3021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3022 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3028 for ac_prog in ginstall scoinst install; do
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3031 if test $ac_prog = install &&
3032 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # AIX install. It has an incompatible calling convention.
3035 elif test $ac_prog = install &&
3036 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3037 # program-specific install script used by HP pwplus--don't use.
3040 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL=$ac_cv_path_install
3055 # As a last resort, use the slow shell script. We don't cache a
3056 # path for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the path is relative.
3059 INSTALL=$ac_install_sh
3062 echo "$as_me:$LINENO: result: $INSTALL" >&5
3063 echo "${ECHO_T}$INSTALL" >&6
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_RANLIB+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$RANLIB"; then
3082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 RANLIB=$ac_cv_prog_RANLIB
3101 if test -n "$RANLIB"; then
3102 echo "$as_me:$LINENO: result: $RANLIB" >&5
3103 echo "${ECHO_T}$RANLIB" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3110 if test -z "$ac_cv_prog_RANLIB"; then
3111 ac_ct_RANLIB=$RANLIB
3112 # Extract the first word of "ranlib", so it can be a program name with args.
3113 set dummy ranlib; ac_word=$2
3114 echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 if test -n "$ac_ct_RANLIB"; then
3120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_RANLIB="ranlib"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3140 if test -n "$ac_ct_RANLIB"; then
3141 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3142 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3144 echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3148 RANLIB=$ac_ct_RANLIB
3150 RANLIB="$ac_cv_prog_RANLIB"
3154 for ac_prog in flex lex
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 echo "$as_me:$LINENO: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_LEX+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$LEX"; then
3164 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_LEX="$ac_prog"
3174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$LEX"; then
3184 echo "$as_me:$LINENO: result: $LEX" >&5
3185 echo "${ECHO_T}$LEX" >&6
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3191 test -n "$LEX" && break
3193 test -n "$LEX" || LEX=":"
3195 if test -z "$LEXLIB"
3197 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3198 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3199 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 ac_check_lib_save_LIBS=$LIBS
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3211 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3226 rm -f conftest.$ac_objext conftest$ac_exeext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228 (eval $ac_link) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag"
3236 || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest$ac_exeext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_lib_fl_yywrap=yes
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_cv_lib_fl_yywrap=no
3255 rm -f conftest.err conftest.$ac_objext \
3256 conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3260 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3261 if test $ac_cv_lib_fl_yywrap = yes; then
3264 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3265 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3266 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 ac_check_lib_save_LIBS=$LIBS
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3278 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_l_yywrap=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cv_lib_l_yywrap=no
3322 rm -f conftest.err conftest.$ac_objext \
3323 conftest$ac_exeext conftest.$ac_ext
3324 LIBS=$ac_check_lib_save_LIBS
3326 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3327 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3328 if test $ac_cv_lib_l_yywrap = yes; then
3336 if test "x$LEX" != "x:"; then
3337 echo "$as_me:$LINENO: checking lex output file root" >&5
3338 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3339 if test "${ac_cv_prog_lex_root+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 # The minimal lex program is just a single line: %%. But some broken lexes
3343 # (Solaris, I think it was) want two %% lines, so accommodate them.
3344 cat >conftest.l <<_ACEOF
3348 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3349 (eval $LEX conftest.l) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 if test -f lex.yy.c; then
3354 ac_cv_prog_lex_root=lex.yy
3355 elif test -f lexyy.c; then
3356 ac_cv_prog_lex_root=lexyy
3358 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3359 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3360 { (exit 1); exit 1; }; }
3363 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3364 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3366 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3368 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3369 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3370 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 # POSIX says lex can declare yytext either as a pointer or an array; the
3374 # default is implementation-dependent. Figure out which it is, since
3375 # not all implementations provide the %pointer and %array declarations.
3376 ac_cv_prog_lex_yytext_pointer=no
3377 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3379 LIBS="$LIBS $LEXLIB"
3380 cat >conftest.$ac_ext <<_ACEOF
3381 `cat $LEX_OUTPUT_ROOT.c`
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest$ac_exeext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_cv_prog_lex_yytext_pointer=yes
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f conftest.err conftest.$ac_objext \
3412 conftest$ac_exeext conftest.$ac_ext
3414 rm -f "${LEX_OUTPUT_ROOT}.c"
3417 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3418 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3419 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3421 cat >>confdefs.h <<\_ACEOF
3422 #define YYTEXT_POINTER 1
3428 for ac_prog in 'bison -y' byacc
3430 # Extract the first word of "$ac_prog", so it can be a program name with args.
3431 set dummy $ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_YACC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$YACC"; then
3438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_YACC="$ac_prog"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 YACC=$ac_cv_prog_YACC
3457 if test -n "$YACC"; then
3458 echo "$as_me:$LINENO: result: $YACC" >&5
3459 echo "${ECHO_T}$YACC" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 test -n "$YACC" && break
3467 test -n "$YACC" || YACC="yacc"
3469 # Extract the first word of "autoconf", so it can be a program name with args.
3470 set dummy autoconf; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$AUTOCONF"; then
3477 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_AUTOCONF="autoconf"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3496 AUTOCONF=$ac_cv_prog_AUTOCONF
3497 if test -n "$AUTOCONF"; then
3498 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3499 echo "${ECHO_T}$AUTOCONF" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 # Extract the first word of "strip", so it can be a program name with args.
3506 set dummy strip; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_prog_STRIP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_STRIP="strip"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3532 STRIP=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 echo "$as_me:$LINENO: result: $STRIP" >&5
3535 echo "${ECHO_T}$STRIP" >&6
3537 echo "$as_me:$LINENO: result: no" >&5
3538 echo "${ECHO_T}no" >&6
3541 # Extract the first word of "as", so it can be a program name with args.
3542 set dummy as; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_AS+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$AS"; then
3549 ac_cv_prog_AS="$AS" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3569 if test -n "$AS"; then
3570 echo "$as_me:$LINENO: result: $AS" >&5
3571 echo "${ECHO_T}$AS" >&6
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3577 # Extract the first word of "cp", so it can be a program name with args.
3578 set dummy cp; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_CP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$CP"; then
3585 ac_cv_prog_CP="$CP" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3605 if test -n "$CP"; then
3606 echo "$as_me:$LINENO: result: $CP" >&5
3607 echo "${ECHO_T}$CP" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "lyx", so it can be a program name with args.
3615 set dummy lyx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_LYX+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -n "$LYX"; then
3622 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_LYX="lyx"
3632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3642 if test -n "$LYX"; then
3643 echo "$as_me:$LINENO: result: $LYX" >&5
3644 echo "${ECHO_T}$LYX" >&6
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3650 # Extract the first word of "latex", so it can be a program name with args.
3651 set dummy latex; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_LATEX+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test -n "$LATEX"; then
3658 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_LATEX="latex"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3677 LATEX=$ac_cv_prog_LATEX
3678 if test -n "$LATEX"; then
3679 echo "$as_me:$LINENO: result: $LATEX" >&5
3680 echo "${ECHO_T}$LATEX" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3686 # Extract the first word of "latex2html", so it can be a program name with args.
3687 set dummy latex2html; ac_word=$2
3688 echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 if test -n "$LATEX2HTML"; then
3694 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_LATEX2HTML="latex2html"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3713 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3714 if test -n "$LATEX2HTML"; then
3715 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3716 echo "${ECHO_T}$LATEX2HTML" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3722 # Extract the first word of "pdflatex", so it can be a program name with args.
3723 set dummy pdflatex; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$PDFLATEX"; then
3730 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_PDFLATEX="pdflatex"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3749 PDFLATEX=$ac_cv_prog_PDFLATEX
3750 if test -n "$PDFLATEX"; then
3751 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3752 echo "${ECHO_T}$PDFLATEX" >&6
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 # Extract the first word of "dvipdf", so it can be a program name with args.
3759 set dummy dvipdf; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 if test -n "$DVIPDF"; then
3766 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_DVIPDF="dvipdf"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3785 DVIPDF=$ac_cv_prog_DVIPDF
3786 if test -n "$DVIPDF"; then
3787 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3788 echo "${ECHO_T}$DVIPDF" >&6
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3797 if test "$YACC" = ":"; then
3798 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3799 echo "$as_me: error: Cannot find required program bison." >&2;}
3800 { (exit 1); exit 1; }; }
3803 if test "$LEX" = ":"; then
3804 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3805 echo "$as_me: error: Cannot find required program lex." >&2;}
3806 { (exit 1); exit 1; }; }
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 # Checking for header files.
3819 # ===========================================================================
3821 echo "$as_me:$LINENO: checking for egrep" >&5
3822 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3823 if test "${ac_cv_prog_egrep+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3827 then ac_cv_prog_egrep='grep -E'
3828 else ac_cv_prog_egrep='egrep'
3831 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3832 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3833 EGREP=$ac_cv_prog_egrep
3836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3838 if test "${ac_cv_header_stdc+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_header_stdc=yes
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ac_cv_header_stdc=no
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 if test $ac_cv_header_stdc = yes; then
3892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "memchr" >/dev/null 2>&1; then
3906 ac_cv_header_stdc=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 # define ISLOWER(c) \
3950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
3963 || toupper (i) != TOUPPER (i))
3968 rm -f conftest$ac_exeext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970 (eval $ac_link) 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_stdc=no
3988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 $ac_includes_default
4029 #include <$ac_header>
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_Header=yes"
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 eval "$as_ac_Header=no"
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4065 cat >>confdefs.h <<_ACEOF
4066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4075 for ac_header in sys/socket.h
4077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo "$as_me:$LINENO: checking for $ac_header" >&5
4080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4087 # Is the header compilable?
4088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 $ac_includes_default
4097 #include <$ac_header>
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_header_compiler=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 ac_header_compiler=no
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4130 echo "${ECHO_T}$ac_header_compiler" >&6
4132 # Is the header present?
4133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <$ac_header>
4143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } >/dev/null; then
4151 if test -s conftest.err; then
4152 ac_cpp_err=$ac_c_preproc_warn_flag
4153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160 if test -z "$ac_cpp_err"; then
4161 ac_header_preproc=yes
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_header_preproc=no
4168 rm -f conftest.err conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4170 echo "${ECHO_T}$ac_header_preproc" >&6
4172 # So? What about this header?
4173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4179 ac_header_preproc=yes
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4196 ## ------------------------------------------ ##
4197 ## Report this to the AC_PACKAGE_NAME lists. ##
4198 ## ------------------------------------------ ##
4201 sed "s/^/$as_me: WARNING: /" >&2
4204 echo "$as_me:$LINENO: checking for $ac_header" >&5
4205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 eval "$as_ac_Header=\$ac_header_preproc"
4211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4216 cat >>confdefs.h <<_ACEOF
4217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226 # Checking for functions
4227 # ===========================================================================
4229 for ac_func in strerror
4231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4232 echo "$as_me:$LINENO: checking for $ac_func" >&5
4233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4234 if eval "test \"\${$as_ac_var+set}\" = set"; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 cat >conftest.$ac_ext <<_ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4245 #define $ac_func innocuous_$ac_func
4247 /* System header to define __stub macros and hopefully few prototypes,
4248 which can conflict with char $ac_func (); below.
4249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 <limits.h> exists even on freestanding compilers. */
4253 # include <limits.h>
4255 # include <assert.h>
4260 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4274 char (*f) () = $ac_func;
4283 return f != $ac_func;
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest$ac_exeext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 eval "$as_ac_var=yes"
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 eval "$as_ac_var=no"
4317 rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4322 if test `eval echo '${'$as_ac_var'}'` = yes; then
4323 cat >>confdefs.h <<_ACEOF
4324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4334 for ac_func in vsnprintf snprintf vsprintf mkstemp
4336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4337 echo "$as_me:$LINENO: checking for $ac_func" >&5
4338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4339 if eval "test \"\${$as_ac_var+set}\" = set"; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4350 #define $ac_func innocuous_$ac_func
4352 /* System header to define __stub macros and hopefully few prototypes,
4353 which can conflict with char $ac_func (); below.
4354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355 <limits.h> exists even on freestanding compilers. */
4358 # include <limits.h>
4360 # include <assert.h>
4365 /* Override any gcc2 internal prototype to avoid an error. */
4370 /* We use char because int might match the return type of a gcc2
4371 builtin and then its argument prototype would still apply. */
4373 /* The GNU C library defines this for functions which it implements
4374 to always fail with ENOSYS. Some functions are actually named
4375 something starting with __ and the normal name is an alias. */
4376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 char (*f) () = $ac_func;
4388 return f != $ac_func;
4393 rm -f conftest.$ac_objext conftest$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest$ac_exeext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 eval "$as_ac_var=yes"
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 eval "$as_ac_var=no"
4422 rm -f conftest.err conftest.$ac_objext \
4423 conftest$ac_exeext conftest.$ac_ext
4425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4427 if test `eval echo '${'$as_ac_var'}'` = yes; then
4428 cat >>confdefs.h <<_ACEOF
4429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4438 # ===========================================================================
4440 # DD_COPT macro checks if the compiler specified as the 1st parameter
4441 # supports option specified as the 2nd parameter
4442 # For example: DD_CPORT(CXX, fPIC)
4446 # This macro expands DIR and assigns it to RET.
4447 # If DIR is NONE, then it's replaced by DEFAULT.
4449 # Based on AC_DEFINE_DIR
4453 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4457 # adl_NORMALIZE_PATH
4459 # - empty paths are changed to '.'
4460 # - trailing slashes are removed
4461 # - repeated slashes are squeezed except a leading doubled slash '//'
4462 # (which might indicate a networked disk on some OS).
4465 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4466 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4467 # are turned into backslashes, otherwise they are all turned into slashes.
4469 # This makes processing of DOS filenames quite easier, because you can turn a
4470 # filename to the Unix notation, make your processing, and turn it back to
4471 # original notation.
4476 # adl_COMPUTE_RELATIVE_PATH
4478 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4479 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4480 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4481 # absolute filenames for this macro to success.
4487 ## The following helper macros are too fragile to be used out
4488 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4489 ## paths are normalized), that's why I'm keeping them in the same file.
4490 ## Still, some of them maybe worth to reuse.
4504 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4509 # Checking characteristics of compilers and other programs
4510 # ===========================================================================
4511 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4512 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4513 if test "${sdcc_cv_MM+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 echo "#include <stdio.h>" >_test_.c
4518 $CPP -v -MM _test_.c 1>&5 2>&5
4519 if test "$?" = "0"; then
4526 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4527 echo "${ECHO_T}$sdcc_cv_MM" >&6
4531 # This is the first time when CFLAGS are set/modified!!
4533 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4534 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4535 if test "${sdcc_cv_CCggdb+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4543 if test "$?" = "0"; then
4544 sdcc_cv_CCggdb="yes"
4548 rm -f _test_.* a.out
4550 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4551 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4553 if test "$sdcc_cv_CCggdb" = "yes"; then
4554 CFLAGS="-ggdb ${CFLAGS}"
4558 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4559 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4560 if test "${sdcc_cv_CCpipe+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 $CC -v -pipe -c _test_.c 1>&5 2>&5
4568 if test "$?" = "0"; then
4569 sdcc_cv_CCpipe="yes"
4573 rm -f _test_.* a.out
4575 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4576 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4578 if test "$sdcc_cv_CCpipe" = "yes"; then
4579 CFLAGS="-pipe $CFLAGS"
4583 # Checks for typedefs, structures, and compiler characteristics.
4584 # ===========================================================================
4585 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4586 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4587 if test "${ac_cv_type_signal+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <sys/types.h>
4602 extern "C" void (*signal (int, void (*)(int)))(int);
4604 void (*signal ()) ();
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_type_signal=void
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_cv_type_signal=int
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4647 echo "${ECHO_T}$ac_cv_type_signal" >&6
4649 cat >>confdefs.h <<_ACEOF
4650 #define RETSIGTYPE $ac_cv_type_signal
4655 echo "$as_me:$LINENO: checking for char" >&5
4656 echo $ECHO_N "checking for char... $ECHO_C" >&6
4657 if test "${ac_cv_type_char+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_c_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4710 echo "${ECHO_T}$ac_cv_type_char" >&6
4712 echo "$as_me:$LINENO: checking size of char" >&5
4713 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4714 if test "${ac_cv_sizeof_char+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 if test "$ac_cv_type_char" = yes; then
4718 # The cast to unsigned long works around a bug in the HP C Compiler
4719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4721 # This bug is HP SR number 8606223364.
4722 if test "$cross_compiling" = yes; then
4723 # Depending upon the size, compute the lo and hi bounds.
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4734 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4741 rm -f conftest.$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 $ac_includes_default
4775 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_hi=$ac_mid; break
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_lo=`expr $ac_mid + 1`
4810 if test $ac_lo -le $ac_mid; then
4814 ac_mid=`expr 2 '*' $ac_mid + 1`
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 cat >conftest.$ac_ext <<_ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 $ac_includes_default
4832 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_includes_default
4873 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_lo=$ac_mid; break
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_hi=`expr '(' $ac_mid ')' - 1`
4908 if test $ac_mid -le $ac_hi; then
4912 ac_mid=`expr 2 '*' $ac_mid`
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 # Binary search between lo and hi bounds.
4926 while test "x$ac_lo" != "x$ac_hi"; do
4927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4938 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 ac_lo=`expr '(' $ac_mid ')' + 1`
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977 ?*) ac_cv_sizeof_char=$ac_lo;;
4978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4979 See \`config.log' for more details." >&5
4980 echo "$as_me: error: cannot compute sizeof (char), 77
4981 See \`config.log' for more details." >&2;}
4982 { (exit 1); exit 1; }; } ;;
4985 if test "$cross_compiling" = yes; then
4986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4987 See \`config.log' for more details." >&5
4988 echo "$as_me: error: cannot run test program while cross compiling
4989 See \`config.log' for more details." >&2;}
4990 { (exit 1); exit 1; }; }
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999 long longval () { return (long) (sizeof (char)); }
5000 unsigned long ulongval () { return (long) (sizeof (char)); }
5007 FILE *f = fopen ("conftest.val", "w");
5010 if (((long) (sizeof (char))) < 0)
5012 long i = longval ();
5013 if (i != ((long) (sizeof (char))))
5015 fprintf (f, "%ld\n", i);
5019 unsigned long i = ulongval ();
5020 if (i != ((long) (sizeof (char))))
5022 fprintf (f, "%lu\n", i);
5024 exit (ferror (f) || fclose (f) != 0);
5030 rm -f conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_cv_sizeof_char=`cat conftest.val`
5043 echo "$as_me: program exited with status $ac_status" >&5
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: cannot compute sizeof (char), 77
5051 See \`config.log' for more details." >&2;}
5052 { (exit 1); exit 1; }; }
5054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5063 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5064 cat >>confdefs.h <<_ACEOF
5065 #define SIZEOF_CHAR $ac_cv_sizeof_char
5069 echo "$as_me:$LINENO: checking for short" >&5
5070 echo $ECHO_N "checking for short... $ECHO_C" >&6
5071 if test "${ac_cv_type_short+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest.$ac_objext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_type_short=yes
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5124 echo "${ECHO_T}$ac_cv_type_short" >&6
5126 echo "$as_me:$LINENO: checking size of short" >&5
5127 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5128 if test "${ac_cv_sizeof_short+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 if test "$ac_cv_type_short" = yes; then
5132 # The cast to unsigned long works around a bug in the HP C Compiler
5133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5135 # This bug is HP SR number 8606223364.
5136 if test "$cross_compiling" = yes; then
5137 # Depending upon the size, compute the lo and hi bounds.
5138 cat >conftest.$ac_ext <<_ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5148 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_includes_default
5189 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_hi=$ac_mid; break
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_lo=`expr $ac_mid + 1`
5224 if test $ac_lo -le $ac_mid; then
5228 ac_mid=`expr 2 '*' $ac_mid + 1`
5230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5246 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5253 rm -f conftest.$ac_objext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5255 (eval $ac_compile) 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag"
5263 || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 $ac_includes_default
5287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_lo=$ac_mid; break
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 ac_hi=`expr '(' $ac_mid ')' - 1`
5322 if test $ac_mid -le $ac_hi; then
5326 ac_mid=`expr 2 '*' $ac_mid`
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5339 # Binary search between lo and hi bounds.
5340 while test "x$ac_lo" != "x$ac_hi"; do
5341 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5342 cat >conftest.$ac_ext <<_ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 $ac_includes_default
5352 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_lo=`expr '(' $ac_mid ')' + 1`
5388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ?*) ac_cv_sizeof_short=$ac_lo;;
5392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5393 See \`config.log' for more details." >&5
5394 echo "$as_me: error: cannot compute sizeof (short), 77
5395 See \`config.log' for more details." >&2;}
5396 { (exit 1); exit 1; }; } ;;
5399 if test "$cross_compiling" = yes; then
5400 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5401 See \`config.log' for more details." >&5
5402 echo "$as_me: error: cannot run test program while cross compiling
5403 See \`config.log' for more details." >&2;}
5404 { (exit 1); exit 1; }; }
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5413 long longval () { return (long) (sizeof (short)); }
5414 unsigned long ulongval () { return (long) (sizeof (short)); }
5421 FILE *f = fopen ("conftest.val", "w");
5424 if (((long) (sizeof (short))) < 0)
5426 long i = longval ();
5427 if (i != ((long) (sizeof (short))))
5429 fprintf (f, "%ld\n", i);
5433 unsigned long i = ulongval ();
5434 if (i != ((long) (sizeof (short))))
5436 fprintf (f, "%lu\n", i);
5438 exit (ferror (f) || fclose (f) != 0);
5444 rm -f conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_sizeof_short=`cat conftest.val`
5457 echo "$as_me: program exited with status $ac_status" >&5
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5462 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5463 See \`config.log' for more details." >&5
5464 echo "$as_me: error: cannot compute sizeof (short), 77
5465 See \`config.log' for more details." >&2;}
5466 { (exit 1); exit 1; }; }
5468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5473 ac_cv_sizeof_short=0
5476 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5477 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5478 cat >>confdefs.h <<_ACEOF
5479 #define SIZEOF_SHORT $ac_cv_sizeof_short
5483 echo "$as_me:$LINENO: checking for int" >&5
5484 echo $ECHO_N "checking for int... $ECHO_C" >&6
5485 if test "${ac_cv_type_int+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag"
5516 || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5538 echo "${ECHO_T}$ac_cv_type_int" >&6
5540 echo "$as_me:$LINENO: checking size of int" >&5
5541 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5542 if test "${ac_cv_sizeof_int+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 if test "$ac_cv_type_int" = yes; then
5546 # The cast to unsigned long works around a bug in the HP C Compiler
5547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5549 # This bug is HP SR number 8606223364.
5550 if test "$cross_compiling" = yes; then
5551 # Depending upon the size, compute the lo and hi bounds.
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5562 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5569 rm -f conftest.$ac_objext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_hi=$ac_mid; break
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 ac_lo=`expr $ac_mid + 1`
5638 if test $ac_lo -le $ac_mid; then
5642 ac_mid=`expr 2 '*' $ac_mid + 1`
5644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5660 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 $ac_includes_default
5701 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_lo=$ac_mid; break
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5735 ac_hi=`expr '(' $ac_mid ')' - 1`
5736 if test $ac_mid -le $ac_hi; then
5740 ac_mid=`expr 2 '*' $ac_mid`
5742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753 # Binary search between lo and hi bounds.
5754 while test "x$ac_lo" != "x$ac_hi"; do
5755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 $ac_includes_default
5766 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag"
5783 || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_lo=`expr '(' $ac_mid ')' + 1`
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 ?*) ac_cv_sizeof_int=$ac_lo;;
5806 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5807 See \`config.log' for more details." >&5
5808 echo "$as_me: error: cannot compute sizeof (int), 77
5809 See \`config.log' for more details." >&2;}
5810 { (exit 1); exit 1; }; } ;;
5813 if test "$cross_compiling" = yes; then
5814 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5815 See \`config.log' for more details." >&5
5816 echo "$as_me: error: cannot run test program while cross compiling
5817 See \`config.log' for more details." >&2;}
5818 { (exit 1); exit 1; }; }
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 $ac_includes_default
5827 long longval () { return (long) (sizeof (int)); }
5828 unsigned long ulongval () { return (long) (sizeof (int)); }
5835 FILE *f = fopen ("conftest.val", "w");
5838 if (((long) (sizeof (int))) < 0)
5840 long i = longval ();
5841 if (i != ((long) (sizeof (int))))
5843 fprintf (f, "%ld\n", i);
5847 unsigned long i = ulongval ();
5848 if (i != ((long) (sizeof (int))))
5850 fprintf (f, "%lu\n", i);
5852 exit (ferror (f) || fclose (f) != 0);
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_sizeof_int=`cat conftest.val`
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5877 See \`config.log' for more details." >&5
5878 echo "$as_me: error: cannot compute sizeof (int), 77
5879 See \`config.log' for more details." >&2;}
5880 { (exit 1); exit 1; }; }
5882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5891 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF_INT $ac_cv_sizeof_int
5897 echo "$as_me:$LINENO: checking for long" >&5
5898 echo $ECHO_N "checking for long... $ECHO_C" >&6
5899 if test "${ac_cv_type_long+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5952 echo "${ECHO_T}$ac_cv_type_long" >&6
5954 echo "$as_me:$LINENO: checking size of long" >&5
5955 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5956 if test "${ac_cv_sizeof_long+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test "$ac_cv_type_long" = yes; then
5960 # The cast to unsigned long works around a bug in the HP C Compiler
5961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5963 # This bug is HP SR number 8606223364.
5964 if test "$cross_compiling" = yes; then
5965 # Depending upon the size, compute the lo and hi bounds.
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 $ac_includes_default
6017 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_hi=$ac_mid; break
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6051 ac_lo=`expr $ac_mid + 1`
6052 if test $ac_lo -le $ac_mid; then
6056 ac_mid=`expr 2 '*' $ac_mid + 1`
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6074 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag"
6091 || test ! -s conftest.err'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; } &&
6097 { ac_try='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 $ac_includes_default
6115 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6122 rm -f conftest.$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_lo=$ac_mid; break
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_hi=`expr '(' $ac_mid ')' - 1`
6150 if test $ac_mid -le $ac_hi; then
6154 ac_mid=`expr 2 '*' $ac_mid`
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 # Binary search between lo and hi bounds.
6168 while test "x$ac_lo" != "x$ac_hi"; do
6169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 $ac_includes_default
6180 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6187 rm -f conftest.$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ac_lo=`expr '(' $ac_mid ')' + 1`
6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ?*) ac_cv_sizeof_long=$ac_lo;;
6220 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: cannot compute sizeof (long), 77
6223 See \`config.log' for more details." >&2;}
6224 { (exit 1); exit 1; }; } ;;
6227 if test "$cross_compiling" = yes; then
6228 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6229 See \`config.log' for more details." >&5
6230 echo "$as_me: error: cannot run test program while cross compiling
6231 See \`config.log' for more details." >&2;}
6232 { (exit 1); exit 1; }; }
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 long longval () { return (long) (sizeof (long)); }
6242 unsigned long ulongval () { return (long) (sizeof (long)); }
6249 FILE *f = fopen ("conftest.val", "w");
6252 if (((long) (sizeof (long))) < 0)
6254 long i = longval ();
6255 if (i != ((long) (sizeof (long))))
6257 fprintf (f, "%ld\n", i);
6261 unsigned long i = ulongval ();
6262 if (i != ((long) (sizeof (long))))
6264 fprintf (f, "%lu\n", i);
6266 exit (ferror (f) || fclose (f) != 0);
6272 rm -f conftest$ac_exeext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_sizeof_long=`cat conftest.val`
6285 echo "$as_me: program exited with status $ac_status" >&5
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6291 See \`config.log' for more details." >&5
6292 echo "$as_me: error: cannot compute sizeof (long), 77
6293 See \`config.log' for more details." >&2;}
6294 { (exit 1); exit 1; }; }
6296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6305 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6306 cat >>confdefs.h <<_ACEOF
6307 #define SIZEOF_LONG $ac_cv_sizeof_long
6314 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6318 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6322 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6326 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6333 echo "$as_me:$LINENO: checking type name for byte" >&5
6334 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
6335 TYPE_BYTE=`type_name 1`
6336 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6337 echo "${ECHO_T}$TYPE_BYTE" >&6
6338 echo "$as_me:$LINENO: checking type name for word" >&5
6339 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
6340 TYPE_WORD=`type_name 2`
6341 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6342 echo "${ECHO_T}$TYPE_WORD" >&6
6343 echo "$as_me:$LINENO: checking type name for dword" >&5
6344 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
6345 TYPE_DWORD=`type_name 4`
6346 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6347 echo "${ECHO_T}$TYPE_DWORD" >&6
6348 cat >>confdefs.h <<_ACEOF
6349 #define TYPE_BYTE $TYPE_BYTE
6352 cat >>confdefs.h <<_ACEOF
6353 #define TYPE_WORD $TYPE_WORD
6356 cat >>confdefs.h <<_ACEOF
6357 #define TYPE_DWORD $TYPE_DWORD
6361 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6362 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6363 if test "${ac_cv_c_bigendian+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 # See if sys/param.h defines the BYTE_ORDER macro.
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <sys/param.h>
6379 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 # It does; now see whether it defined to BIG_ENDIAN or not.
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <sys/types.h>
6417 #include <sys/param.h>
6422 #if BYTE_ORDER != BIG_ENDIAN
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_cv_c_bigendian=yes
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 ac_cv_c_bigendian=no
6459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 # It does not; compile a test program.
6465 if test "$cross_compiling" = yes; then
6466 # try to guess the endianness by grepping values into an object file
6467 ac_cv_c_bigendian=unknown
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6475 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6476 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6477 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6478 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6479 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6483 _ascii (); _ebcdic ();
6488 rm -f conftest.$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6511 ac_cv_c_bigendian=yes
6513 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6514 if test "$ac_cv_c_bigendian" = unknown; then
6515 ac_cv_c_bigendian=no
6517 # finding both strings is unlikely to happen, but who knows?
6518 ac_cv_c_bigendian=unknown
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6537 /* Are we little or big endian? From Harbison&Steele. */
6541 char c[sizeof (long)];
6544 exit (u.c[sizeof (long) - 1] == 1);
6547 rm -f conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_c_bigendian=no
6560 echo "$as_me: program exited with status $ac_status" >&5
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_cv_c_bigendian=yes
6567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6574 case $ac_cv_c_bigendian in
6577 cat >>confdefs.h <<\_ACEOF
6578 #define WORDS_BIGENDIAN 1
6584 { { echo "$as_me:$LINENO: error: unknown endianness
6585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6586 echo "$as_me: error: unknown endianness
6587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6588 { (exit 1); exit 1; }; } ;;
6592 # Set standard installation paths
6593 # ===========================================================================
6595 # In the Makefiles we need paths with '/' as directory separator, even if
6596 # crosscompiling for Win32.
6597 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6598 # The variables in the Makefiles are replaced by AC_SUBST()
6600 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6602 # The macros are expanded for the header.
6603 # The variables in the header are replaced by AC_*DEFINE*()
6604 # sdccconf_h_dir_separator contains a backslash.
6606 if test "${sdccconf_h_dir_separator}" = ""; then
6607 sdccconf_h_dir_separator="/"
6613 # include_dir_suffix:
6614 # *nix default: "sdcc/include"
6617 if test "${include_dir_suffix}" = ""; then
6618 include_dir_suffix="sdcc/include"
6623 # *nix default: "sdcc/lib"
6625 if test "${lib_dir_suffix}" = ""; then
6626 lib_dir_suffix="sdcc/lib"
6631 # *nix default: "${datadir}/sdcc/doc"
6633 if test "${docdir}" = ""; then
6634 docdir="\${datadir}"/sdcc/doc
6643 cat >>confdefs.h <<_ACEOF
6644 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6647 cat >>confdefs.h <<_ACEOF
6648 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6653 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6655 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6658 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6659 ac_expand=`eval echo $ac_expand`
6660 expanded_prefix=`eval echo $ac_expand`
6663 ac_ndu=$expanded_prefix
6665 # change empty paths to '.'
6667 # strip trailing slashes
6668 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6671 # squeze repeated slashes
6672 case $sdccconf_h_dir_separator in
6673 # if the path contains any backslashes, turn slashes into backslashes
6675 # Bernhard Held 2003-04-06
6676 # This was the original line. It doesn't:
6677 # - convert the first slash
6678 # - replace a slash with a double-backslash
6679 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6680 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6682 # if the path contains slashes, also turn backslashes into slashes
6683 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6685 cat >>confdefs.h <<_ACEOF
6686 #define PREFIX "${ac_ndu}"
6692 # default: "${prefix}"
6694 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6696 ac_expand=$exec_prefix
6697 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6698 ac_expand=`eval echo $ac_expand`
6699 expanded_exec_prefix=`eval echo $ac_expand`
6702 ac_ndu=$expanded_exec_prefix
6704 # change empty paths to '.'
6706 # strip trailing slashes
6707 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6710 # squeze repeated slashes
6711 case $sdccconf_h_dir_separator in
6712 # if the path contains any backslashes, turn slashes into backslashes
6714 # Bernhard Held 2003-04-06
6715 # This was the original line. It doesn't:
6716 # - convert the first slash
6717 # - replace a slash with a double-backslash
6718 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6719 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6721 # if the path contains slashes, also turn backslashes into slashes
6722 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6724 cat >>confdefs.h <<_ACEOF
6725 #define EXEC_PREFIX "${ac_ndu}"
6731 # default: "${exec_prefix}/bin"
6733 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6736 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6737 ac_expand=`eval echo $ac_expand`
6738 expanded_bindir=`eval echo $ac_expand`
6741 ac_ndu=$expanded_bindir
6743 # change empty paths to '.'
6745 # strip trailing slashes
6746 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6749 # squeze repeated slashes
6750 case $sdccconf_h_dir_separator in
6751 # if the path contains any backslashes, turn slashes into backslashes
6753 # Bernhard Held 2003-04-06
6754 # This was the original line. It doesn't:
6755 # - convert the first slash
6756 # - replace a slash with a double-backslash
6757 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6758 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6760 # if the path contains slashes, also turn backslashes into slashes
6761 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6763 cat >>confdefs.h <<_ACEOF
6764 #define BINDIR "${ac_ndu}"
6770 # default: "${prefix}/share"
6772 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6775 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6776 ac_expand=`eval echo $ac_expand`
6777 expanded_datadir=`eval echo $ac_expand`
6780 ac_ndu=$expanded_datadir
6782 # change empty paths to '.'
6784 # strip trailing slashes
6785 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6788 # squeze repeated slashes
6789 case $sdccconf_h_dir_separator in
6790 # if the path contains any backslashes, turn slashes into backslashes
6792 # Bernhard Held 2003-04-06
6793 # This was the original line. It doesn't:
6794 # - convert the first slash
6795 # - replace a slash with a double-backslash
6796 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6797 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6799 # if the path contains slashes, also turn backslashes into slashes
6800 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6802 cat >>confdefs.h <<_ACEOF
6803 #define DATADIR "${ac_ndu}"
6808 # include/lib suffix
6809 norm_inc_dir_suffix=${include_dir_suffix}
6810 case ":$norm_inc_dir_suffix:" in
6811 # change empty paths to '.'
6812 ::) norm_inc_dir_suffix='.' ;;
6813 # strip trailing slashes
6814 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6817 # squeze repeated slashes
6818 case $sdccconf_h_dir_separator in
6819 # if the path contains any backslashes, turn slashes into backslashes
6821 # Bernhard Held 2003-04-06
6822 # This was the original line. It doesn't:
6823 # - convert the first slash
6824 # - replace a slash with a double-backslash
6825 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6826 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6828 # if the path contains slashes, also turn backslashes into slashes
6829 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6831 cat >>confdefs.h <<_ACEOF
6832 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6835 norm_lib_dir_suffix=${lib_dir_suffix}
6836 case ":$norm_lib_dir_suffix:" in
6837 # change empty paths to '.'
6838 ::) norm_lib_dir_suffix='.' ;;
6839 # strip trailing slashes
6840 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6843 # squeze repeated slashes
6844 case $sdccconf_h_dir_separator in
6845 # if the path contains any backslashes, turn slashes into backslashes
6847 # Bernhard Held 2003-04-06
6848 # This was the original line. It doesn't:
6849 # - convert the first slash
6850 # - replace a slash with a double-backslash
6851 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6852 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6854 # if the path contains slashes, also turn backslashes into slashes
6855 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6857 cat >>confdefs.h <<_ACEOF
6858 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6863 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6864 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6865 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6866 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6867 _lcl_receval="$_lcl_from"
6868 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6869 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6871 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6872 _lcl_receval_old="$_lcl_receval"
6873 eval _lcl_receval="\"$_lcl_receval\""
6875 echo "$_lcl_receval")`
6876 _lcl_receval="$_lcl_to"
6877 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6878 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6880 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6881 _lcl_receval_old="$_lcl_receval"
6882 eval _lcl_receval="\"$_lcl_receval\""
6884 echo "$_lcl_receval")`
6885 _lcl_notation="$_lcl_from$_lcl_to"
6886 case ":$_lcl_from:" in
6887 # change empty paths to '.'
6888 ::) _lcl_from='.' ;;
6889 # strip trailing slashes
6890 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6893 # squeze repeated slashes
6895 # if the path contains any backslashes, turn slashes into backslashes
6897 # Bernhard Held 2003-04-06
6898 # This was the original line. It doesn't:
6899 # - convert the first slash
6900 # - replace a slash with a double-backslash
6901 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6902 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6904 # if the path contains slashes, also turn backslashes into slashes
6905 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6907 case ":$_lcl_to:" in
6908 # change empty paths to '.'
6910 # strip trailing slashes
6911 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6914 # squeze repeated slashes
6916 # if the path contains any backslashes, turn slashes into backslashes
6918 # Bernhard Held 2003-04-06
6919 # This was the original line. It doesn't:
6920 # - convert the first slash
6921 # - replace a slash with a double-backslash
6922 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6923 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6925 # if the path contains slashes, also turn backslashes into slashes
6926 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6928 _lcl_common_prefix=''
6929 _lcl_second_prefix_match=''
6930 while test "$_lcl_second_prefix_match" != 0; do
6931 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6932 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6933 if test "$_lcl_second_prefix_match" != 0; then
6934 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6935 _lcl_common_prefix="$_lcl_first_prefix"
6937 _lcl_second_prefix_match=0
6941 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6944 while test "$_lcl_tmp" != ''; do
6945 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6946 if test "$_lcl_first_suffix" != ''; then
6947 _lcl_first_suffix="$_lcl_tmp"
6948 _lcl_first_rel="../$_lcl_first_rel"
6951 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6952 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6953 case ":$_lcl_result_tmp:" in
6954 # change empty paths to '.'
6955 ::) _lcl_result_tmp='.' ;;
6956 # strip trailing slashes
6957 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6960 # squeze repeated slashes
6961 case "$_lcl_notation" in
6962 # if the path contains any backslashes, turn slashes into backslashes
6964 # Bernhard Held 2003-04-06
6965 # This was the original line. It doesn't:
6966 # - convert the first slash
6967 # - replace a slash with a double-backslash
6968 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6969 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6971 # if the path contains slashes, also turn backslashes into slashes
6972 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6974 eval $_lcl_result_var='$_lcl_result_tmp'
6976 case ":$bin2data_dir:" in
6977 # change empty paths to '.'
6978 ::) bin2data_dir='.' ;;
6979 # strip trailing slashes
6980 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6983 # squeze repeated slashes
6984 case $sdccconf_h_dir_separator in
6985 # if the path contains any backslashes, turn slashes into backslashes
6987 # Bernhard Held 2003-04-06
6988 # This was the original line. It doesn't:
6989 # - convert the first slash
6990 # - replace a slash with a double-backslash
6991 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6992 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6994 # if the path contains slashes, also turn backslashes into slashes
6995 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6997 cat >>confdefs.h <<_ACEOF
6998 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
7002 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
7003 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7004 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7005 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7006 _lcl_receval="$_lcl_from"
7007 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7008 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7010 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7011 _lcl_receval_old="$_lcl_receval"
7012 eval _lcl_receval="\"$_lcl_receval\""
7014 echo "$_lcl_receval")`
7015 _lcl_receval="$_lcl_to"
7016 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7017 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7019 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7020 _lcl_receval_old="$_lcl_receval"
7021 eval _lcl_receval="\"$_lcl_receval\""
7023 echo "$_lcl_receval")`
7024 _lcl_notation="$_lcl_from$_lcl_to"
7025 case ":$_lcl_from:" in
7026 # change empty paths to '.'
7027 ::) _lcl_from='.' ;;
7028 # strip trailing slashes
7029 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7032 # squeze repeated slashes
7034 # if the path contains any backslashes, turn slashes into backslashes
7036 # Bernhard Held 2003-04-06
7037 # This was the original line. It doesn't:
7038 # - convert the first slash
7039 # - replace a slash with a double-backslash
7040 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7041 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7043 # if the path contains slashes, also turn backslashes into slashes
7044 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7046 case ":$_lcl_to:" in
7047 # change empty paths to '.'
7049 # strip trailing slashes
7050 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7053 # squeze repeated slashes
7055 # if the path contains any backslashes, turn slashes into backslashes
7057 # Bernhard Held 2003-04-06
7058 # This was the original line. It doesn't:
7059 # - convert the first slash
7060 # - replace a slash with a double-backslash
7061 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7062 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7064 # if the path contains slashes, also turn backslashes into slashes
7065 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7067 _lcl_common_prefix=''
7068 _lcl_second_prefix_match=''
7069 while test "$_lcl_second_prefix_match" != 0; do
7070 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7071 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7072 if test "$_lcl_second_prefix_match" != 0; then
7073 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7074 _lcl_common_prefix="$_lcl_first_prefix"
7076 _lcl_second_prefix_match=0
7080 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7083 while test "$_lcl_tmp" != ''; do
7084 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7085 if test "$_lcl_first_suffix" != ''; then
7086 _lcl_first_suffix="$_lcl_tmp"
7087 _lcl_first_rel="../$_lcl_first_rel"
7090 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7091 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7092 case ":$_lcl_result_tmp:" in
7093 # change empty paths to '.'
7094 ::) _lcl_result_tmp='.' ;;
7095 # strip trailing slashes
7096 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7099 # squeze repeated slashes
7100 case "$_lcl_notation" in
7101 # if the path contains any backslashes, turn slashes into backslashes
7103 # Bernhard Held 2003-04-06
7104 # This was the original line. It doesn't:
7105 # - convert the first slash
7106 # - replace a slash with a double-backslash
7107 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7108 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7110 # if the path contains slashes, also turn backslashes into slashes
7111 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7113 eval $_lcl_result_var='$_lcl_result_tmp'
7115 case ":$prefix2bin_dir:" in
7116 # change empty paths to '.'
7117 ::) prefix2bin_dir='.' ;;
7118 # strip trailing slashes
7119 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7122 # squeze repeated slashes
7123 case $sdccconf_h_dir_separator in
7124 # if the path contains any backslashes, turn slashes into backslashes
7126 # Bernhard Held 2003-04-06
7127 # This was the original line. It doesn't:
7128 # - convert the first slash
7129 # - replace a slash with a double-backslash
7130 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7131 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7133 # if the path contains slashes, also turn backslashes into slashes
7134 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7136 cat >>confdefs.h <<_ACEOF
7137 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
7141 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
7142 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7143 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7144 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7145 _lcl_receval="$_lcl_from"
7146 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7147 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7149 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7150 _lcl_receval_old="$_lcl_receval"
7151 eval _lcl_receval="\"$_lcl_receval\""
7153 echo "$_lcl_receval")`
7154 _lcl_receval="$_lcl_to"
7155 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7156 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7158 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7159 _lcl_receval_old="$_lcl_receval"
7160 eval _lcl_receval="\"$_lcl_receval\""
7162 echo "$_lcl_receval")`
7163 _lcl_notation="$_lcl_from$_lcl_to"
7164 case ":$_lcl_from:" in
7165 # change empty paths to '.'
7166 ::) _lcl_from='.' ;;
7167 # strip trailing slashes
7168 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7171 # squeze repeated slashes
7173 # if the path contains any backslashes, turn slashes into backslashes
7175 # Bernhard Held 2003-04-06
7176 # This was the original line. It doesn't:
7177 # - convert the first slash
7178 # - replace a slash with a double-backslash
7179 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7180 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7182 # if the path contains slashes, also turn backslashes into slashes
7183 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7185 case ":$_lcl_to:" in
7186 # change empty paths to '.'
7188 # strip trailing slashes
7189 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7192 # squeze repeated slashes
7194 # if the path contains any backslashes, turn slashes into backslashes
7196 # Bernhard Held 2003-04-06
7197 # This was the original line. It doesn't:
7198 # - convert the first slash
7199 # - replace a slash with a double-backslash
7200 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7201 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7203 # if the path contains slashes, also turn backslashes into slashes
7204 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7206 _lcl_common_prefix=''
7207 _lcl_second_prefix_match=''
7208 while test "$_lcl_second_prefix_match" != 0; do
7209 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7210 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7211 if test "$_lcl_second_prefix_match" != 0; then
7212 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7213 _lcl_common_prefix="$_lcl_first_prefix"
7215 _lcl_second_prefix_match=0
7219 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7222 while test "$_lcl_tmp" != ''; do
7223 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7224 if test "$_lcl_first_suffix" != ''; then
7225 _lcl_first_suffix="$_lcl_tmp"
7226 _lcl_first_rel="../$_lcl_first_rel"
7229 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7230 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7231 case ":$_lcl_result_tmp:" in
7232 # change empty paths to '.'
7233 ::) _lcl_result_tmp='.' ;;
7234 # strip trailing slashes
7235 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7238 # squeze repeated slashes
7239 case "$_lcl_notation" in
7240 # if the path contains any backslashes, turn slashes into backslashes
7242 # Bernhard Held 2003-04-06
7243 # This was the original line. It doesn't:
7244 # - convert the first slash
7245 # - replace a slash with a double-backslash
7246 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7247 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7249 # if the path contains slashes, also turn backslashes into slashes
7250 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7252 eval $_lcl_result_var='$_lcl_result_tmp'
7254 case ":$prefix2data_dir:" in
7255 # change empty paths to '.'
7256 ::) prefix2data_dir='.' ;;
7257 # strip trailing slashes
7258 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7261 # squeze repeated slashes
7262 case $sdccconf_h_dir_separator in
7263 # if the path contains any backslashes, turn slashes into backslashes
7265 # Bernhard Held 2003-04-06
7266 # This was the original line. It doesn't:
7267 # - convert the first slash
7268 # - replace a slash with a double-backslash
7269 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7270 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7272 # if the path contains slashes, also turn backslashes into slashes
7273 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7275 if test "${prefix2data_dir}" = "."; then
7276 # small optimization for Mingw32; otherwise Borut will complain ;-)
7277 cat >>confdefs.h <<_ACEOF
7278 #define PREFIX2DATA_DIR ""
7282 cat >>confdefs.h <<_ACEOF
7283 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
7289 cat >>confdefs.h <<_ACEOF
7290 #define STD_LIB "libsdcc"
7293 cat >>confdefs.h <<_ACEOF
7294 #define STD_INT_LIB "libint"
7297 cat >>confdefs.h <<_ACEOF
7298 #define STD_LONG_LIB "liblong"
7301 cat >>confdefs.h <<_ACEOF
7302 #define STD_FP_LIB "libfloat"
7305 cat >>confdefs.h <<_ACEOF
7306 #define STD_DS390_LIB "libds390"
7309 cat >>confdefs.h <<_ACEOF
7310 #define STD_DS400_LIB "libds400"
7313 cat >>confdefs.h <<_ACEOF
7314 #define STD_XA51_LIB "libxa51"
7318 # SDCC runtime environment variables
7319 sdcc_dir_name="SDCC_HOME"
7320 cat >>confdefs.h <<_ACEOF
7321 #define SDCC_DIR_NAME "${sdcc_dir_name}"
7325 sdcc_include_name="SDCC_INCLUDE"
7326 cat >>confdefs.h <<_ACEOF
7327 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
7331 sdcc_lib_name="SDCC_LIB"
7332 cat >>confdefs.h <<_ACEOF
7333 #define SDCC_LIB_NAME "${sdcc_lib_name}"
7337 # Now handle the port selection
7338 # ===========================================================================
7339 rm -f ports.all ports.build
7340 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
7341 if test "${enable_mcs51_port+set}" = set; then
7342 enableval="$enable_mcs51_port"
7345 echo mcs51 >>ports.all
7346 if test "$enable_mcs51_port" = "no"; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define OPT_DISABLE_MCS51 1
7352 echo mcs51 >>ports.build
7353 cat >>confdefs.h <<_ACEOF
7354 #define OPT_DISABLE_MCS51 0
7359 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
7360 if test "${enable_gbz80_port+set}" = set; then
7361 enableval="$enable_gbz80_port"
7364 echo z80 >>ports.all
7365 if test "$enable_gbz80_port" = "no"; then
7366 cat >>confdefs.h <<_ACEOF
7367 #define OPT_DISABLE_GBZ80 1
7371 echo z80 >>ports.build
7372 cat >>confdefs.h <<_ACEOF
7373 #define OPT_DISABLE_GBZ80 0
7378 # Check whether --enable-z80-port or --disable-z80-port was given.
7379 if test "${enable_z80_port+set}" = set; then
7380 enableval="$enable_z80_port"
7383 echo z80 >>ports.all
7384 if test "$enable_z80_port" = "no"; then
7385 cat >>confdefs.h <<_ACEOF
7386 #define OPT_DISABLE_Z80 1
7390 echo z80 >>ports.build
7391 cat >>confdefs.h <<_ACEOF
7392 #define OPT_DISABLE_Z80 0
7397 # Check whether --enable-avr-port or --disable-avr-port was given.
7398 if test "${enable_avr_port+set}" = set; then
7399 enableval="$enable_avr_port"
7402 echo avr >>ports.all
7403 if test "$enable_avr_port" = "no"; then
7404 cat >>confdefs.h <<_ACEOF
7405 #define OPT_DISABLE_AVR 1
7409 echo avr >>ports.build
7410 cat >>confdefs.h <<_ACEOF
7411 #define OPT_DISABLE_AVR 0
7416 # Check whether --enable-ds390-port or --disable-ds390-port was given.
7417 if test "${enable_ds390_port+set}" = set; then
7418 enableval="$enable_ds390_port"
7421 echo ds390 >>ports.all
7422 if test "$enable_ds390_port" = "no"; then
7423 cat >>confdefs.h <<_ACEOF
7424 #define OPT_DISABLE_DS390 1
7427 cat >>confdefs.h <<_ACEOF
7428 #define OPT_DISABLE_TININative 1
7432 echo ds390 >>ports.build
7433 cat >>confdefs.h <<_ACEOF
7434 #define OPT_DISABLE_DS390 0
7437 cat >>confdefs.h <<_ACEOF
7438 #define OPT_DISABLE_TININative 0
7443 # Check whether --enable-ds400-port or --disable-ds400-port was given.
7444 if test "${enable_ds400_port+set}" = set; then
7445 enableval="$enable_ds400_port"
7448 echo ds400 >>ports.all
7449 if test "$enable_ds400_port" = "no"; then
7450 cat >>confdefs.h <<_ACEOF
7451 #define OPT_DISABLE_DS400 1
7455 echo ds400 >>ports.build
7456 cat >>confdefs.h <<_ACEOF
7457 #define OPT_DISABLE_DS400 0
7462 # Check whether --enable-pic-port or --disable-pic-port was given.
7463 if test "${enable_pic_port+set}" = set; then
7464 enableval="$enable_pic_port"
7467 echo pic >>ports.all
7468 if test "$enable_pic_port" = "no"; then
7469 cat >>confdefs.h <<_ACEOF
7470 #define OPT_DISABLE_PIC 1
7474 echo pic >>ports.build
7475 cat >>confdefs.h <<_ACEOF
7476 #define OPT_DISABLE_PIC 0
7481 # Check whether --enable-pic16-port or --disable-pic16-port was given.
7482 if test "${enable_pic16_port+set}" = set; then
7483 enableval="$enable_pic16_port"
7486 echo pic16 >>ports.all
7487 if test "$enable_pic16_port" = "no"; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define OPT_DISABLE_PIC16 1
7493 echo pic16 >>ports.build
7494 cat >>confdefs.h <<_ACEOF
7495 #define OPT_DISABLE_PIC16 0
7500 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7501 if test "${enable_xa51_port+set}" = set; then
7502 enableval="$enable_xa51_port"
7505 echo xa51 >>ports.all
7506 if test "$enable_xa51_port" = "no"; then
7507 cat >>confdefs.h <<_ACEOF
7508 #define OPT_DISABLE_XA51 1
7512 echo xa51 >>ports.build
7513 cat >>confdefs.h <<_ACEOF
7514 #define OPT_DISABLE_XA51 0
7519 # Check whether --enable-hc08-port or --disable-hc08-port was given.
7520 if test "${enable_hc08_port+set}" = set; then
7521 enableval="$enable_hc08_port"
7524 echo hc08 >>ports.all
7525 if test "$enable_hc08_port" = "no"; then
7526 cat >>confdefs.h <<_ACEOF
7527 #define OPT_DISABLE_HC08 1
7531 echo hc08 >>ports.build
7532 cat >>confdefs.h <<_ACEOF
7533 #define OPT_DISABLE_HC08 0
7538 # Check whether --enable-ucsim or --disable-ucsim was given.
7539 if test "${enable_ucsim+set}" = set; then
7540 enableval="$enable_ucsim"
7543 OPT_ENABLE_UCSIM=$enable_ucsim
7546 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7547 if test "${enable_device_lib_build+set}" = set; then
7548 enableval="$enable_device_lib_build"
7551 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7554 # Check whether --enable-packihx or --disable-packihx was given.
7555 if test "${enable_packihx+set}" = set; then
7556 enableval="$enable_packihx"
7559 OPT_ENABLE_PACKIHX=$enable_packihx
7562 # Check whether --enable-libgc or --disable-libgc was given.
7563 if test "${enable_libgc+set}" = set; then
7564 enableval="$enable_libgc"
7567 if test "$enable_libgc" = "yes"; then
7569 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7570 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7571 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_check_lib_save_LIBS=$LIBS
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7583 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600 (eval $ac_link) 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } &&
7607 { ac_try='test -z "$ac_c_werror_flag"
7608 || test ! -s conftest.err'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; } &&
7614 { ac_try='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_lib_gc_GC_malloc=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_cv_lib_gc_GC_malloc=no
7627 rm -f conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7631 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7632 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7633 if test $ac_cv_lib_gc_GC_malloc = yes; then
7634 cat >>confdefs.h <<_ACEOF
7635 #define HAVE_LIBGC 1
7646 cat >>confdefs.h <<_ACEOF
7647 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7652 uniq ports.all ports
7654 uniq ports.build ports
7655 mv ports ports.build
7657 # Generating output files
7658 # ===========================================================================
7661 subdirs="$subdirs support/cpp2"
7665 subdirs="$subdirs packihx"
7669 subdirs="$subdirs sim/ucsim"
7673 subdirs="$subdirs device/lib/pic16"
7676 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile as/mcs51/Makefile as/hc08/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile Makefile.common:Makefile.common.in"
7678 cat >confcache <<\_ACEOF
7679 # This file is a shell script that caches the results of configure
7680 # tests run on this system so they can be shared between configure
7681 # scripts and configure runs, see configure's option --config-cache.
7682 # It is not useful on other systems. If it contains results you don't
7683 # want to keep, you may remove or edit it.
7685 # config.status only pays attention to the cache file if you give it
7686 # the --recheck option to rerun configure.
7688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7694 # The following way of writing the cache mishandles newlines in values,
7695 # but we know of no workaround that is simple, portable, and efficient.
7696 # So, don't put newlines in cache variables' values.
7697 # Ultrix sh set writes to stderr and can't be redirected directly,
7698 # and sets the high bit in the cache file unless we assign to the vars.
7701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7703 # `set' does not quote correctly, so add quotes (double-quote
7704 # substitution turns \\\\ into \\, and sed turns \\ into \).
7707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7710 # `set' quotes correctly as required by POSIX, so do not add quotes.
7712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7723 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7724 if test -w $cache_file; then
7725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7726 cat confcache >$cache_file
7728 echo "not updating unwritable cache $cache_file"
7733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7734 # Let make expand exec_prefix.
7735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7739 # trailing colons and then remove the whole line if VPATH becomes empty
7740 # (actually we leave an empty line to preserve line numbers).
7741 if test "x$srcdir" = x.; then
7742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7743 s/:*\$(srcdir):*/:/;
7744 s/:*\${srcdir}:*/:/;
7746 s/^\([^=]*=[ ]*\):*/\1/;
7752 DEFS=-DHAVE_CONFIG_H
7756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7757 # 1. Remove the extension, and $U if already installed.
7758 ac_i=`echo "$ac_i" |
7759 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7761 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7762 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7766 LTLIBOBJS=$ac_ltlibobjs
7770 : ${CONFIG_STATUS=./config.status}
7771 ac_clean_files_save=$ac_clean_files
7772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7773 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7774 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7775 cat >$CONFIG_STATUS <<_ACEOF
7777 # Generated by $as_me.
7778 # Run this file to recreate the current configuration.
7779 # Compiler output produced by configure, useful for debugging
7780 # configure, is in config.log if it exists.
7785 SHELL=\${CONFIG_SHELL-$SHELL}
7788 cat >>$CONFIG_STATUS <<\_ACEOF
7789 ## --------------------- ##
7790 ## M4sh Initialization. ##
7791 ## --------------------- ##
7793 # Be Bourne compatible
7794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7797 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7798 # is contrary to our usage. Disable this feature.
7799 alias -g '${1+"$@"}'='"$@"'
7800 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7803 DUALCASE=1; export DUALCASE # for MKS sh
7805 # Support unset when possible.
7806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7813 # Work around bugs in pre-3.0 UWIN ksh.
7814 $as_unset ENV MAIL MAILPATH
7821 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7822 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7823 LC_TELEPHONE LC_TIME
7825 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7826 eval $as_var=C; export $as_var
7832 # Required to use basename.
7833 if expr a : '\(a\)' >/dev/null 2>&1; then
7839 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7840 as_basename=basename
7846 # Name of the executable.
7847 as_me=`$as_basename "$0" ||
7848 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7849 X"$0" : 'X\(//\)$' \| \
7850 X"$0" : 'X\(/\)$' \| \
7851 . : '\(.\)' 2>/dev/null ||
7853 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7854 /^X\/\(\/\/\)$/{ s//\1/; q; }
7855 /^X\/\(\/\).*/{ s//\1/; q; }
7859 # PATH needs CR, and LINENO needs CR and PATH.
7860 # Avoid depending upon Character Ranges.
7861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7864 as_cr_digits='0123456789'
7865 as_cr_alnum=$as_cr_Letters$as_cr_digits
7867 # The user is always right.
7868 if test "${PATH_SEPARATOR+set}" != set; then
7869 echo "#! /bin/sh" >conf$$.sh
7870 echo "exit 0" >>conf$$.sh
7872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7883 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7884 test "x$as_lineno_1" != "x$as_lineno_2" &&
7885 test "x$as_lineno_3" = "x$as_lineno_2" || {
7886 # Find who we are. Look in the path if we contain no path at all
7889 *[\\/]* ) as_myself=$0 ;;
7890 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir=.
7895 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7900 # We did not find ourselves, most probably we were run as `sh COMMAND'
7901 # in which case we are not to be found in the path.
7902 if test "x$as_myself" = x; then
7905 if test ! -f "$as_myself"; then
7906 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7907 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7908 { (exit 1); exit 1; }; }
7910 case $CONFIG_SHELL in
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7916 test -z "$as_dir" && as_dir=.
7917 for as_base in sh bash ksh sh5; do
7920 if ("$as_dir/$as_base" -c '
7923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7924 test "x$as_lineno_1" != "x$as_lineno_2" &&
7925 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7926 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7927 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7928 CONFIG_SHELL=$as_dir/$as_base
7930 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7939 # uniformly replaced by the line number. The first 'sed' inserts a
7940 # line-number line before each line; the second 'sed' does the real
7941 # work. The second script uses 'N' to pair each line-number line
7942 # with the numbered line, and appends trailing '-' during
7943 # substitution so that $LINENO is not a special case at line end.
7944 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7945 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7946 sed '=' <$as_myself |
7951 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7954 s,^['$as_cr_digits']*\n,,
7956 chmod +x $as_me.lineno ||
7957 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7958 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7959 { (exit 1); exit 1; }; }
7961 # Don't try to exec as it changes $[0], causing all sort of problems
7962 # (the dirname of $[0] is not the place where we might find the
7963 # original and so on. Autoconf is especially sensible to this).
7965 # Exit status is that of the last command.
7970 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7971 *c*,-n*) ECHO_N= ECHO_C='
7973 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7974 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7977 if expr a : '\(a\)' >/dev/null 2>&1; then
7983 rm -f conf$$ conf$$.exe conf$$.file
7985 if ln -s conf$$.file conf$$ 2>/dev/null; then
7986 # We could just check for DJGPP; but this test a) works b) is more generic
7987 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7988 if test -f conf$$.exe; then
7989 # Don't use ln at all; we don't have any links
7994 elif ln conf$$.file conf$$ 2>/dev/null; then
7999 rm -f conf$$ conf$$.exe conf$$.file
8001 if mkdir -p . 2>/dev/null; then
8004 test -d ./-p && rmdir ./-p
8008 as_executable_p="test -f"
8010 # Sed expression to map a string onto a valid CPP name.
8011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8013 # Sed expression to map a string onto a valid variable name.
8014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8018 # We need space, tab and new line, in precisely that order.
8028 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8029 # report actual input values of CONFIG_FILES etc. instead of their
8030 # values after options handling. Logging --version etc. is OK.
8034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8035 ## Running $as_me. ##
8040 This file was extended by $as_me, which was
8041 generated by GNU Autoconf 2.59. Invocation command line was
8043 CONFIG_FILES = $CONFIG_FILES
8044 CONFIG_HEADERS = $CONFIG_HEADERS
8045 CONFIG_LINKS = $CONFIG_LINKS
8046 CONFIG_COMMANDS = $CONFIG_COMMANDS
8050 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8054 # Files that config.status was made for.
8055 if test -n "$ac_config_files"; then
8056 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8059 if test -n "$ac_config_headers"; then
8060 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8063 if test -n "$ac_config_links"; then
8064 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8067 if test -n "$ac_config_commands"; then
8068 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8071 cat >>$CONFIG_STATUS <<\_ACEOF
8074 \`$as_me' instantiates files from templates according to the
8075 current configuration.
8077 Usage: $0 [OPTIONS] [FILE]...
8079 -h, --help print this help, then exit
8080 -V, --version print version number, then exit
8081 -q, --quiet do not print progress messages
8082 -d, --debug don't remove temporary files
8083 --recheck update $as_me by reconfiguring in the same conditions
8084 --file=FILE[:TEMPLATE]
8085 instantiate the configuration file FILE
8086 --header=FILE[:TEMPLATE]
8087 instantiate the configuration header FILE
8089 Configuration files:
8092 Configuration headers:
8095 Report bugs to <bug-autoconf@gnu.org>."
8098 cat >>$CONFIG_STATUS <<_ACEOF
8101 configured by $0, generated by GNU Autoconf 2.59,
8102 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8104 Copyright (C) 2003 Free Software Foundation, Inc.
8105 This config.status script is free software; the Free Software Foundation
8106 gives unlimited permission to copy, distribute and modify it."
8111 cat >>$CONFIG_STATUS <<\_ACEOF
8112 # If no file are specified by the user, then we need to provide default
8113 # value. By we need to know if files were specified by the user.
8119 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8120 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8128 *) # This is not an option, so the user has probably given explicit
8131 ac_need_defaults=false;;
8135 # Handling of the options.
8137 cat >>$CONFIG_STATUS <<\_ACEOF
8138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8140 --version | --vers* | -V )
8141 echo "$ac_cs_version"; exit 0 ;;
8143 # Conflict between --help and --header
8144 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8145 Try \`$0 --help' for more information." >&5
8146 echo "$as_me: error: ambiguous option: $1
8147 Try \`$0 --help' for more information." >&2;}
8148 { (exit 1); exit 1; }; };;
8149 --help | --hel | -h )
8150 echo "$ac_cs_usage"; exit 0 ;;
8151 --debug | --d* | -d )
8153 --file | --fil | --fi | --f )
8155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8156 ac_need_defaults=false;;
8157 --header | --heade | --head | --hea )
8159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8160 ac_need_defaults=false;;
8161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8166 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8167 Try \`$0 --help' for more information." >&5
8168 echo "$as_me: error: unrecognized option: $1
8169 Try \`$0 --help' for more information." >&2;}
8170 { (exit 1); exit 1; }; } ;;
8172 *) ac_config_targets="$ac_config_targets $1" ;;
8178 ac_configure_extra_args=
8180 if $ac_cs_silent; then
8182 ac_configure_extra_args="$ac_configure_extra_args --silent"
8186 cat >>$CONFIG_STATUS <<_ACEOF
8187 if \$ac_cs_recheck; then
8188 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8189 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8198 cat >>$CONFIG_STATUS <<\_ACEOF
8199 for ac_config_target in $ac_config_targets
8201 case "$ac_config_target" in
8202 # Handling of arguments.
8203 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8204 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8205 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8206 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8207 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8208 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8209 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
8210 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8211 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8212 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8213 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8214 { (exit 1); exit 1; }; };;
8218 # If the user did not use the arguments to specify the items to instantiate,
8219 # then the envvar interface is used. Set only those that are not.
8220 # We use the long form for the default assignment because of an extremely
8221 # bizarre bug on SunOS 4.1.3.
8222 if $ac_need_defaults; then
8223 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8224 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8227 # Have a temporary directory for convenience. Make it in the build tree
8228 # simply because there is no reason to put it here, and in addition,
8229 # creating and moving files from /tmp can sometimes cause problems.
8230 # Create a temporary directory, and hook for its removal unless debugging.
8233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8234 trap '{ (exit 1); exit 1; }' 1 2 13 15
8237 # Create a (secure) tmp directory for tmp files.
8240 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8241 test -n "$tmp" && test -d "$tmp"
8244 tmp=./confstat$$-$RANDOM
8245 (umask 077 && mkdir $tmp)
8248 echo "$me: cannot create a temporary directory in ." >&2
8249 { (exit 1); exit 1; }
8254 cat >>$CONFIG_STATUS <<_ACEOF
8257 # CONFIG_FILES section.
8260 # No need to generate the scripts if there are no CONFIG_FILES.
8261 # This happens for instance when ./config.status config.h
8262 if test -n "\$CONFIG_FILES"; then
8263 # Protect against being on the right side of a sed subst in config.status.
8264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8266 s,@SHELL@,$SHELL,;t t
8267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8273 s,@exec_prefix@,$exec_prefix,;t t
8274 s,@prefix@,$prefix,;t t
8275 s,@program_transform_name@,$program_transform_name,;t t
8276 s,@bindir@,$bindir,;t t
8277 s,@sbindir@,$sbindir,;t t
8278 s,@libexecdir@,$libexecdir,;t t
8279 s,@datadir@,$datadir,;t t
8280 s,@sysconfdir@,$sysconfdir,;t t
8281 s,@sharedstatedir@,$sharedstatedir,;t t
8282 s,@localstatedir@,$localstatedir,;t t
8283 s,@libdir@,$libdir,;t t
8284 s,@includedir@,$includedir,;t t
8285 s,@oldincludedir@,$oldincludedir,;t t
8286 s,@infodir@,$infodir,;t t
8287 s,@mandir@,$mandir,;t t
8288 s,@build_alias@,$build_alias,;t t
8289 s,@host_alias@,$host_alias,;t t
8290 s,@target_alias@,$target_alias,;t t
8292 s,@ECHO_C@,$ECHO_C,;t t
8293 s,@ECHO_N@,$ECHO_N,;t t
8294 s,@ECHO_T@,$ECHO_T,;t t
8297 s,@VERSION@,$VERSION,;t t
8298 s,@VERSIONHI@,$VERSIONHI,;t t
8299 s,@VERSIONLO@,$VERSIONLO,;t t
8300 s,@VERSIONP@,$VERSIONP,;t t
8302 s,@CFLAGS@,$CFLAGS,;t t
8303 s,@LDFLAGS@,$LDFLAGS,;t t
8304 s,@CPPFLAGS@,$CPPFLAGS,;t t
8305 s,@ac_ct_CC@,$ac_ct_CC,;t t
8306 s,@EXEEXT@,$EXEEXT,;t t
8307 s,@OBJEXT@,$OBJEXT,;t t
8309 s,@CXXFLAGS@,$CXXFLAGS,;t t
8310 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8312 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8313 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8314 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8315 s,@RANLIB@,$RANLIB,;t t
8316 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8318 s,@LEXLIB@,$LEXLIB,;t t
8319 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8321 s,@AUTOCONF@,$AUTOCONF,;t t
8322 s,@STRIP@,$STRIP,;t t
8326 s,@LATEX@,$LATEX,;t t
8327 s,@LATEX2HTML@,$LATEX2HTML,;t t
8328 s,@PDFLATEX@,$PDFLATEX,;t t
8329 s,@DVIPDF@,$DVIPDF,;t t
8330 s,@EGREP@,$EGREP,;t t
8331 s,@M_OR_MM@,$M_OR_MM,;t t
8332 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8333 s,@include_dir_suffix@,$include_dir_suffix,;t t
8334 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8335 s,@docdir@,$docdir,;t t
8336 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
8337 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
8338 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
8339 s,@subdirs@,$subdirs,;t t
8340 s,@LIBOBJS@,$LIBOBJS,;t t
8341 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8346 cat >>$CONFIG_STATUS <<\_ACEOF
8347 # Split the substitutions into bite-sized pieces for seds with
8348 # small command number limits, like on Digital OSF/1 and HP-UX.
8350 ac_sed_frag=1 # Number of current file.
8351 ac_beg=1 # First line for current file.
8352 ac_end=$ac_max_sed_lines # Line after last line for current file.
8355 while $ac_more_lines; do
8356 if test $ac_beg -gt 1; then
8357 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8359 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8361 if test ! -s $tmp/subs.frag; then
8364 # The purpose of the label and of the branching condition is to
8365 # speed up the sed processing (if there are no `@' at all, there
8366 # is no need to browse any of the substitutions).
8367 # These are the two extra sed commands mentioned above.
8369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8370 if test -z "$ac_sed_cmds"; then
8371 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8373 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8375 ac_sed_frag=`expr $ac_sed_frag + 1`
8377 ac_end=`expr $ac_end + $ac_max_sed_lines`
8380 if test -z "$ac_sed_cmds"; then
8383 fi # test -n "$CONFIG_FILES"
8386 cat >>$CONFIG_STATUS <<\_ACEOF
8387 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8390 - | *:- | *:-:* ) # input from stdin
8392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8396 * ) ac_file_in=$ac_file.in ;;
8399 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8402 X"$ac_file" : 'X\(//\)[^/]' \| \
8403 X"$ac_file" : 'X\(//\)$' \| \
8404 X"$ac_file" : 'X\(/\)' \| \
8405 . : '\(.\)' 2>/dev/null ||
8407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8409 /^X\(\/\/\)$/{ s//\1/; q; }
8410 /^X\(\/\).*/{ s//\1/; q; }
8412 { if $as_mkdir_p; then
8417 while test ! -d "$as_dir"; do
8418 as_dirs="$as_dir $as_dirs"
8419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8421 X"$as_dir" : 'X\(//\)[^/]' \| \
8422 X"$as_dir" : 'X\(//\)$' \| \
8423 X"$as_dir" : 'X\(/\)' \| \
8424 . : '\(.\)' 2>/dev/null ||
8426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8428 /^X\(\/\/\)$/{ s//\1/; q; }
8429 /^X\(\/\).*/{ s//\1/; q; }
8432 test ! -n "$as_dirs" || mkdir $as_dirs
8433 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8434 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8435 { (exit 1); exit 1; }; }; }
8439 if test "$ac_dir" != .; then
8440 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8441 # A "../" for each directory in $ac_dir_suffix.
8442 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8444 ac_dir_suffix= ac_top_builddir=
8448 .) # No --srcdir option. We are building in place.
8450 if test -z "$ac_top_builddir"; then
8453 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8455 [\\/]* | ?:[\\/]* ) # Absolute path.
8456 ac_srcdir=$srcdir$ac_dir_suffix;
8457 ac_top_srcdir=$srcdir ;;
8459 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8460 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8463 # Do not use `cd foo && pwd` to compute absolute paths, because
8464 # the directories may not exist.
8466 .) ac_abs_builddir="$ac_dir";;
8469 .) ac_abs_builddir=`pwd`;;
8470 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8471 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8474 case $ac_abs_builddir in
8475 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8477 case ${ac_top_builddir}. in
8478 .) ac_abs_top_builddir=$ac_abs_builddir;;
8479 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8480 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8483 case $ac_abs_builddir in
8484 .) ac_abs_srcdir=$ac_srcdir;;
8487 .) ac_abs_srcdir=$ac_abs_builddir;;
8488 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8489 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8492 case $ac_abs_builddir in
8493 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8495 case $ac_top_srcdir in
8496 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8497 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8498 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8505 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8508 if test x"$ac_file" != x-; then
8509 { echo "$as_me:$LINENO: creating $ac_file" >&5
8510 echo "$as_me: creating $ac_file" >&6;}
8513 # Let's still pretend it is `configure' which instantiates (i.e., don't
8514 # use $as_me), people would be surprised to read:
8515 # /* config.h. Generated by config.status. */
8516 if test x"$ac_file" = x-; then
8519 configure_input="$ac_file. "
8521 configure_input=$configure_input"Generated from `echo $ac_file_in |
8522 sed 's,.*/,,'` by configure."
8524 # First look for the input files in the build tree, otherwise in the
8526 ac_file_inputs=`IFS=:
8527 for f in $ac_file_in; do
8529 -) echo $tmp/stdin ;;
8531 # Absolute (can't be DOS-style, as IFS=:)
8532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8533 echo "$as_me: error: cannot find input file: $f" >&2;}
8534 { (exit 1); exit 1; }; }
8537 if test -f "$f"; then
8540 elif test -f "$srcdir/$f"; then
8545 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8546 echo "$as_me: error: cannot find input file: $f" >&2;}
8547 { (exit 1); exit 1; }; }
8550 done` || { (exit 1); exit 1; }
8552 cat >>$CONFIG_STATUS <<_ACEOF
8556 cat >>$CONFIG_STATUS <<\_ACEOF
8558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8559 s,@configure_input@,$configure_input,;t t
8560 s,@srcdir@,$ac_srcdir,;t t
8561 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8562 s,@top_srcdir@,$ac_top_srcdir,;t t
8563 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8564 s,@builddir@,$ac_builddir,;t t
8565 s,@abs_builddir@,$ac_abs_builddir,;t t
8566 s,@top_builddir@,$ac_top_builddir,;t t
8567 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8568 s,@INSTALL@,$ac_INSTALL,;t t
8569 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8571 if test x"$ac_file" != x-; then
8572 mv $tmp/out $ac_file
8580 cat >>$CONFIG_STATUS <<\_ACEOF
8583 # CONFIG_HEADER section.
8586 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8587 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8589 # ac_d sets the value in "#define NAME VALUE" lines.
8590 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8591 ac_dB='[ ].*$,\1#\2'
8594 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8595 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8596 ac_uB='$,\1#\2define\3'
8600 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8603 - | *:- | *:-:* ) # input from stdin
8605 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8607 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8609 * ) ac_file_in=$ac_file.in ;;
8612 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8613 echo "$as_me: creating $ac_file" >&6;}
8615 # First look for the input files in the build tree, otherwise in the
8617 ac_file_inputs=`IFS=:
8618 for f in $ac_file_in; do
8620 -) echo $tmp/stdin ;;
8622 # Absolute (can't be DOS-style, as IFS=:)
8623 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8624 echo "$as_me: error: cannot find input file: $f" >&2;}
8625 { (exit 1); exit 1; }; }
8626 # Do quote $f, to prevent DOS paths from being IFS'd.
8629 if test -f "$f"; then
8632 elif test -f "$srcdir/$f"; then
8637 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8638 echo "$as_me: error: cannot find input file: $f" >&2;}
8639 { (exit 1); exit 1; }; }
8642 done` || { (exit 1); exit 1; }
8643 # Remove the trailing spaces.
8644 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8648 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8649 # `conftest.undefs', that substitutes the proper values into
8650 # config.h.in to produce config.h. The first handles `#define'
8651 # templates, and the second `#undef' templates.
8652 # And first: Protect against being on the right side of a sed subst in
8653 # config.status. Protect against being in an unquoted here document
8655 rm -f conftest.defines conftest.undefs
8656 # Using a here document instead of a string reduces the quoting nightmare.
8657 # Putting comments in sed scripts is not portable.
8659 # `end' is used to avoid that the second main sed command (meant for
8660 # 0-ary CPP macros) applies to n-ary macro definitions.
8661 # See the Autoconf documentation for `clear'.
8662 cat >confdef2sed.sed <<\_ACEOF
8667 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8669 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8672 # If some macros were called several times there might be several times
8673 # the same #defines, which is useless. Nevertheless, we may not want to
8674 # sort them, since we want the *last* AC-DEFINE to be honored.
8675 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8676 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8677 rm -f confdef2sed.sed
8679 # This sed command replaces #undef with comments. This is necessary, for
8680 # example, in the case of _POSIX_SOURCE, which is predefined and required
8681 # on some systems where configure will not decide to define it.
8682 cat >>conftest.undefs <<\_ACEOF
8683 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8686 # Break up conftest.defines because some shells have a limit on the size
8687 # of here documents, and old seds have small limits too (100 cmds).
8688 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8689 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8690 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8691 echo ' :' >>$CONFIG_STATUS
8693 while grep . conftest.defines >/dev/null
8695 # Write a limited-size here document to $tmp/defines.sed.
8696 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8697 # Speed up: don't consider the non `#define' lines.
8698 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8699 # Work around the forget-to-reset-the-flag bug.
8700 echo 't clr' >>$CONFIG_STATUS
8701 echo ': clr' >>$CONFIG_STATUS
8702 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8704 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8708 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8709 rm -f conftest.defines
8710 mv conftest.tail conftest.defines
8712 rm -f conftest.defines
8713 echo ' fi # grep' >>$CONFIG_STATUS
8714 echo >>$CONFIG_STATUS
8716 # Break up conftest.undefs because some shells have a limit on the size
8717 # of here documents, and old seds have small limits too (100 cmds).
8718 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8720 while grep . conftest.undefs >/dev/null
8722 # Write a limited-size here document to $tmp/undefs.sed.
8723 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8724 # Speed up: don't consider the non `#undef'
8725 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8726 # Work around the forget-to-reset-the-flag bug.
8727 echo 't clr' >>$CONFIG_STATUS
8728 echo ': clr' >>$CONFIG_STATUS
8729 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8731 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8735 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8736 rm -f conftest.undefs
8737 mv conftest.tail conftest.undefs
8739 rm -f conftest.undefs
8741 cat >>$CONFIG_STATUS <<\_ACEOF
8742 # Let's still pretend it is `configure' which instantiates (i.e., don't
8743 # use $as_me), people would be surprised to read:
8744 # /* config.h. Generated by config.status. */
8745 if test x"$ac_file" = x-; then
8746 echo "/* Generated by configure. */" >$tmp/config.h
8748 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8750 cat $tmp/in >>$tmp/config.h
8752 if test x"$ac_file" != x-; then
8753 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8754 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8755 echo "$as_me: $ac_file is unchanged" >&6;}
8757 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8759 X"$ac_file" : 'X\(//\)[^/]' \| \
8760 X"$ac_file" : 'X\(//\)$' \| \
8761 X"$ac_file" : 'X\(/\)' \| \
8762 . : '\(.\)' 2>/dev/null ||
8764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8766 /^X\(\/\/\)$/{ s//\1/; q; }
8767 /^X\(\/\).*/{ s//\1/; q; }
8769 { if $as_mkdir_p; then
8774 while test ! -d "$as_dir"; do
8775 as_dirs="$as_dir $as_dirs"
8776 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8778 X"$as_dir" : 'X\(//\)[^/]' \| \
8779 X"$as_dir" : 'X\(//\)$' \| \
8780 X"$as_dir" : 'X\(/\)' \| \
8781 . : '\(.\)' 2>/dev/null ||
8783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8785 /^X\(\/\/\)$/{ s//\1/; q; }
8786 /^X\(\/\).*/{ s//\1/; q; }
8789 test ! -n "$as_dirs" || mkdir $as_dirs
8790 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8791 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8792 { (exit 1); exit 1; }; }; }
8795 mv $tmp/config.h $ac_file
8804 cat >>$CONFIG_STATUS <<\_ACEOF
8806 { (exit 0); exit 0; }
8808 chmod +x $CONFIG_STATUS
8809 ac_clean_files=$ac_clean_files_save
8812 # configure is writing to config.log, and then calls config.status.
8813 # config.status does its own redirection, appending to config.log.
8814 # Unfortunately, on DOS this fails, as config.log is still kept open
8815 # by configure, so config.status won't be able to write to it; its
8816 # output is simply discarded. So we exec the FD to /dev/null,
8817 # effectively closing config.log, so it can be properly (re)opened and
8818 # appended to by config.status. When coming back to configure, we
8819 # need to make the FD available again.
8820 if test "$no_create" != yes; then
8822 ac_config_status_args=
8823 test "$silent" = yes &&
8824 ac_config_status_args="$ac_config_status_args --quiet"
8826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8829 # would make configure fail if this is the last instruction.
8830 $ac_cs_success || { (exit 1); exit 1; }
8834 # CONFIG_SUBDIRS section.
8836 if test "$no_recursion" != yes; then
8838 # Remove --cache-file and --srcdir arguments so they do not pile up.
8839 ac_sub_configure_args=
8841 for ac_arg in $ac_configure_args; do
8842 if test -n "$ac_prev"; then
8847 -cache-file | --cache-file | --cache-fil | --cache-fi \
8848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8849 ac_prev=cache_file ;;
8850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8854 --config-cache | -C)
8856 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8858 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8860 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8862 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8864 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8868 # Always prepend --prefix to ensure using the same prefix
8869 # in subdir configurations.
8870 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8873 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8875 # Do not complain, so a configure script can configure whichever
8876 # parts of a large source tree are present.
8877 test -d $srcdir/$ac_dir || continue
8879 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8880 echo "$as_me: configuring in $ac_dir" >&6;}
8881 { if $as_mkdir_p; then
8886 while test ! -d "$as_dir"; do
8887 as_dirs="$as_dir $as_dirs"
8888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8890 X"$as_dir" : 'X\(//\)[^/]' \| \
8891 X"$as_dir" : 'X\(//\)$' \| \
8892 X"$as_dir" : 'X\(/\)' \| \
8893 . : '\(.\)' 2>/dev/null ||
8895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8897 /^X\(\/\/\)$/{ s//\1/; q; }
8898 /^X\(\/\).*/{ s//\1/; q; }
8901 test ! -n "$as_dirs" || mkdir $as_dirs
8902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8904 { (exit 1); exit 1; }; }; }
8908 if test "$ac_dir" != .; then
8909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8910 # A "../" for each directory in $ac_dir_suffix.
8911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8913 ac_dir_suffix= ac_top_builddir=
8917 .) # No --srcdir option. We are building in place.
8919 if test -z "$ac_top_builddir"; then
8922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8924 [\\/]* | ?:[\\/]* ) # Absolute path.
8925 ac_srcdir=$srcdir$ac_dir_suffix;
8926 ac_top_srcdir=$srcdir ;;
8928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8932 # Do not use `cd foo && pwd` to compute absolute paths, because
8933 # the directories may not exist.
8935 .) ac_abs_builddir="$ac_dir";;
8938 .) ac_abs_builddir=`pwd`;;
8939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8943 case $ac_abs_builddir in
8944 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8946 case ${ac_top_builddir}. in
8947 .) ac_abs_top_builddir=$ac_abs_builddir;;
8948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8952 case $ac_abs_builddir in
8953 .) ac_abs_srcdir=$ac_srcdir;;
8956 .) ac_abs_srcdir=$ac_abs_builddir;;
8957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8961 case $ac_abs_builddir in
8962 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8964 case $ac_top_srcdir in
8965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8974 # Check for guested configure; otherwise get Cygnus style configure.
8975 if test -f $ac_srcdir/configure.gnu; then
8976 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8977 elif test -f $ac_srcdir/configure; then
8978 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8979 elif test -f $ac_srcdir/configure.in; then
8980 ac_sub_configure=$ac_configure
8982 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8987 # The recursion is here.
8988 if test -n "$ac_sub_configure"; then
8989 # Make the cache file name correct relative to the subdirectory.
8991 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8993 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8996 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8997 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8998 # The eval makes quoting arguments work.
8999 eval $ac_sub_configure $ac_sub_configure_args \
9000 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9001 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9002 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9003 { (exit 1); exit 1; }; }
9011 # End of configure/configure.in