2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
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_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'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CXX_set=${CXX+set}
773 ac_env_CXX_value=$CXX
774 ac_cv_env_CXX_set=${CXX+set}
775 ac_cv_env_CXX_value=$CXX
776 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_env_CXXFLAGS_value=$CXXFLAGS
778 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780 ac_env_CPP_set=${CPP+set}
781 ac_env_CPP_value=$CPP
782 ac_cv_env_CPP_set=${CPP+set}
783 ac_cv_env_CPP_value=$CPP
784 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
785 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
786 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
787 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
788 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
789 ac_env_include_dir_suffix_value=$include_dir_suffix
790 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
791 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
792 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
793 ac_env_lib_dir_suffix_value=$lib_dir_suffix
794 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
795 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
796 ac_env_docdir_set=${docdir+set}
797 ac_env_docdir_value=$docdir
798 ac_cv_env_docdir_set=${docdir+set}
799 ac_cv_env_docdir_value=$docdir
802 # Report the --help message.
804 if test "$ac_init_help" = "long"; then
805 # Omit some internal or obsolete options to make the list less imposing.
806 # This message is too long to be a string in the A/UX 3.1 sh.
808 \`configure' configures this package to adapt to many kinds of systems.
810 Usage: $0 [OPTION]... [VAR=VALUE]...
812 To assign environment variables (e.g., CC, CFLAGS...), specify them as
813 VAR=VALUE. See below for descriptions of some of the useful variables.
815 Defaults for the options are specified in brackets.
818 -h, --help display this help and exit
819 --help=short display options specific to this package
820 --help=recursive display the short help of all the included packages
821 -V, --version display version information and exit
822 -q, --quiet, --silent do not print \`checking...' messages
823 --cache-file=FILE cache test results in FILE [disabled]
824 -C, --config-cache alias for \`--cache-file=config.cache'
825 -n, --no-create do not create output files
826 --srcdir=DIR find the sources in DIR [configure dir or \`..']
831 Installation directories:
832 --prefix=PREFIX install architecture-independent files in PREFIX
834 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
837 By default, \`make install' will install all the files in
838 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
839 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
840 for instance \`--prefix=\$HOME'.
842 For better control, use the options below.
844 Fine tuning of the installation directories:
845 --bindir=DIR user executables [EPREFIX/bin]
846 --sbindir=DIR system admin executables [EPREFIX/sbin]
847 --libexecdir=DIR program executables [EPREFIX/libexec]
848 --datadir=DIR read-only architecture-independent data [PREFIX/share]
849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
852 --libdir=DIR object code libraries [EPREFIX/lib]
853 --includedir=DIR C header files [PREFIX/include]
854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
855 --infodir=DIR info documentation [PREFIX/info]
856 --mandir=DIR man documentation [PREFIX/man]
862 --program-prefix=PREFIX prepend PREFIX to installed program names
863 --program-suffix=SUFFIX append SUFFIX to installed program names
864 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
868 if test -n "$ac_init_help"; then
873 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
874 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
875 --disable-mcs51-port Excludes the Intel mcs51 port
876 --disable-gbz80-port Excludes the Gameboy gbz80 port
877 --disable-z80-port Excludes the z80 port
878 --disable-avr-port Excludes the AVR port
879 --disable-ds390-port Excludes the DS390 port
880 --disable-ds400-port Excludes the DS400 port
881 --disable-pic-port Excludes the PIC port
882 --disable-pic16-port Excludes the PIC port
883 --disable-xa51-port Excludes the XA51 port
884 --disable-hc08-port Excludes the HC08 port
885 --disable-ucsim Disables configuring and building of ucsim
886 --disable-device-lib-build
887 Disables automatically building device libraries
888 --disable-packihx Disables building packihx
889 --enable-libgc Use the Bohem memory allocator. Lower runtime
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CXX C++ compiler command
900 CXXFLAGS C++ compiler flags
902 sdccconf_h_dir_separator
903 needed in sdccconf.h: either "/" (default) or "\\"
905 appended to datadir to define SDCC's include directory
907 appended to datadir to define SDCC's library root directory
908 docdir documentation installation directory
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 .) ac_abs_builddir=$ac_builddir;;
950 .) ac_abs_builddir="$ac_dir";;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
952 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir="$ac_dir";;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
965 .) ac_abs_srcdir=$ac_srcdir;;
968 .) ac_abs_srcdir="$ac_dir";;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir="$ac_dir";;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.58. Invocation command line was
1029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1077 ac_must_keep_next=false
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106 -* ) ac_must_keep_next=true ;;
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close' the trap.
1124 trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1135 # The following way of writing the cache mishandles newlines in values,
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1158 for ac_var in $ac_subst_vars
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -n "$ac_subst_files"; then
1172 for ac_var in $ac_subst_files
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1180 if test -s confdefs.h; then
1187 sed "/^$/d" confdefs.h | sort
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208 # Predefined preprocessor variables.
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1270 # Check that the precious variables saved in the cache have kept the same
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1346 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1349 for ac_prog in gawk mawk nawk awk
1351 # Extract the first word of "$ac_prog", so it can be a program name with args.
1352 set dummy $ac_prog; ac_word=$2
1353 echo "$as_me:$LINENO: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_AWK+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 if test -n "$AWK"; then
1359 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368 ac_cv_prog_AWK="$ac_prog"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 if test -n "$AWK"; then
1379 echo "$as_me:$LINENO: result: $AWK" >&5
1380 echo "${ECHO_T}$AWK" >&6
1382 echo "$as_me:$LINENO: result: no" >&5
1383 echo "${ECHO_T}no" >&6
1386 test -n "$AWK" && break
1390 echo "$as_me:$LINENO: checking version of the package" >&5
1391 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1392 if test -f .version; then
1393 VERSION=`cat .version`
1394 elif test -f ../.version; then
1395 VERSION=`cat ../.version`
1399 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1400 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1401 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1403 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1404 echo "${ECHO_T}${VERSION}" >&6
1409 cat >>confdefs.h <<_ACEOF
1410 #define SDCC_VERSION_LO ${VERSIONLO}
1413 cat >>confdefs.h <<_ACEOF
1414 #define SDCC_VERSION_HI ${VERSIONHI}
1417 cat >>confdefs.h <<_ACEOF
1418 #define SDCC_VERSION_P ${VERSIONP}
1421 cat >>confdefs.h <<_ACEOF
1422 #define SDCC_VERSION_STR "${VERSION}"
1425 test "$program_prefix" != NONE &&
1426 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1427 # Use a double $ so make ignores it.
1428 test "$program_suffix" != NONE &&
1429 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1430 # Double any \ or $. echo might interpret backslashes.
1431 # By default was `s,x,x', remove it if useless.
1432 cat <<\_ACEOF >conftest.sed
1433 s/[\\$]/&&/g;s/;s,x,x,$//
1435 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1438 sdcc_cv_version=$VERSION
1439 sdcc_cv_versionhi=$VERSIONHI
1440 sdcc_cv_versionlo=$VERSIONLO
1441 sdcc_cv_versionp=$VERSIONP
1445 # ===========================================================================
1447 ac_cpp='$CPP $CPPFLAGS'
1448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451 if test -n "$ac_tool_prefix"; then
1452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1454 echo "$as_me:$LINENO: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 test -z "$as_dir" && as_dir=.
1467 for ac_exec_ext in '' $ac_executable_extensions; do
1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 if test -n "$CC"; then
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481 echo "${ECHO_T}$CC" >&6
1483 echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1488 if test -z "$ac_cv_prog_CC"; then
1490 # Extract the first word of "gcc", so it can be a program name with args.
1491 set dummy gcc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="gcc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517 if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519 echo "${ECHO_T}$ac_ct_CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1530 if test -z "$CC"; then
1531 if test -n "$ac_tool_prefix"; then
1532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1533 set dummy ${ac_tool_prefix}cc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 test -z "$as_dir" && as_dir=.
1547 for ac_exec_ext in '' $ac_executable_extensions; do
1548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549 ac_cv_prog_CC="${ac_tool_prefix}cc"
1550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561 echo "${ECHO_T}$CC" >&6
1563 echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1568 if test -z "$ac_cv_prog_CC"; then
1570 # Extract the first word of "cc", so it can be a program name with args.
1571 set dummy cc; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 if test -n "$ac_ct_CC"; then
1578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_ac_ct_CC="cc"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597 if test -n "$ac_ct_CC"; then
1598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599 echo "${ECHO_T}$ac_ct_CC" >&6
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1611 if test -z "$CC"; then
1612 # Extract the first word of "cc", so it can be a program name with args.
1613 set dummy cc; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1631 ac_prog_rejected=yes
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test $ac_prog_rejected = yes; then
1642 # We found a bogon in the path, so make sure we never use it.
1643 set dummy $ac_cv_prog_CC
1645 if test $# != 0; then
1646 # We chose a different compiler from the bogus one.
1647 # However, it has the same basename, so the bogon will be chosen
1648 # first if we set CC to just the basename; use the full file name.
1650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1656 if test -n "$CC"; then
1657 echo "$as_me:$LINENO: result: $CC" >&5
1658 echo "${ECHO_T}$CC" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$CC"; then
1666 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1704 test -n "$CC" && break
1707 if test -z "$CC"; then
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$ac_ct_CC"; then
1719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_CC="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738 if test -n "$ac_ct_CC"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1740 echo "${ECHO_T}$ac_ct_CC" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$ac_ct_CC" && break
1755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1756 See \`config.log' for more details." >&5
1757 echo "$as_me: error: no acceptable C compiler found in \$PATH
1758 See \`config.log' for more details." >&2;}
1759 { (exit 1); exit 1; }; }
1761 # Provide some information about the compiler.
1762 echo "$as_me:$LINENO:" \
1763 "checking for C compiler version" >&5
1764 ac_compiler=`set X $ac_compile; echo $2`
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1766 (eval $ac_compiler --version </dev/null >&5) 2>&5
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1771 (eval $ac_compiler -v </dev/null >&5) 2>&5
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1776 (eval $ac_compiler -V </dev/null >&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1781 cat >conftest.$ac_ext <<_ACEOF
1784 cat confdefs.h >>conftest.$ac_ext
1785 cat >>conftest.$ac_ext <<_ACEOF
1786 /* end confdefs.h. */
1796 ac_clean_files_save=$ac_clean_files
1797 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1798 # Try to create an executable without -o first, disregard a.out.
1799 # It will help us diagnose broken compilers, and finding out an intuition
1801 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1802 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1803 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1804 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1805 (eval $ac_link_default) 2>&5
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }; then
1809 # Find the output, starting from the most likely. This scheme is
1810 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1813 # Be careful to initialize this variable, since it used to be cached.
1814 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1816 # b.out is created by i960 compilers.
1817 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1819 test -f "$ac_file" || continue
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1824 # This is the source file.
1827 # We found the default executable, but exeext='' is most
1831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 # FIXME: I believe we export ac_cv_exeext for Libtool,
1833 # but it would be cool to find out if it's true. Does anybody
1834 # maintain Libtool? --akim.
1842 echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1846 See \`config.log' for more details." >&5
1847 echo "$as_me: error: C compiler cannot create executables
1848 See \`config.log' for more details." >&2;}
1849 { (exit 77); exit 77; }; }
1852 ac_exeext=$ac_cv_exeext
1853 echo "$as_me:$LINENO: result: $ac_file" >&5
1854 echo "${ECHO_T}$ac_file" >&6
1856 # Check the compiler produces executables we can run. If not, either
1857 # the compiler is broken, or we cross compile.
1858 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1859 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1860 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1861 # If not cross compiling, check that we can run a simple program.
1862 if test "$cross_compiling" != yes; then
1863 if { ac_try='./$ac_file'
1864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; }; then
1871 if test "$cross_compiling" = maybe; then
1874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1875 If you meant to cross compile, use \`--host'.
1876 See \`config.log' for more details." >&5
1877 echo "$as_me: error: cannot run C compiled programs.
1878 If you meant to cross compile, use \`--host'.
1879 See \`config.log' for more details." >&2;}
1880 { (exit 1); exit 1; }; }
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1888 ac_clean_files=$ac_clean_files_save
1889 # Check the compiler produces executables we can run. If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1893 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1894 echo "${ECHO_T}$cross_compiling" >&6
1896 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1899 (eval $ac_link) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1905 # work properly (i.e., refer to `conftest.exe'), while it won't with
1907 for ac_file in conftest.exe conftest conftest.*; do
1908 test -f "$ac_file" || continue
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1921 See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1925 rm -f conftest$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1927 echo "${ECHO_T}$ac_cv_exeext" >&6
1929 rm -f conftest.$ac_ext
1930 EXEEXT=$ac_cv_exeext
1932 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1933 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1934 if test "${ac_cv_objext+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 cat >conftest.$ac_ext <<_ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1952 rm -f conftest.o conftest.obj
1953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1954 (eval $ac_compile) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; then
1958 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1966 echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1972 See \`config.log' for more details." >&2;}
1973 { (exit 1); exit 1; }; }
1976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1978 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1979 echo "${ECHO_T}$ac_cv_objext" >&6
1980 OBJEXT=$ac_cv_objext
1982 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 cat >conftest.$ac_ext <<_ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
2005 rm -f conftest.$ac_objext
2006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2007 (eval $ac_compile) 2>conftest.er1
2009 grep -v '^ *+' conftest.er1 >conftest.err
2011 cat conftest.err >&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
2014 { ac_try='test -z "$ac_c_werror_flag"
2015 || test ! -s conftest.err'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; } &&
2021 { ac_try='test -s conftest.$ac_objext'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2038 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2039 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2040 GCC=`test $ac_compiler_gnu = yes && echo yes`
2041 ac_test_CFLAGS=${CFLAGS+set}
2042 ac_save_CFLAGS=$CFLAGS
2044 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2046 if test "${ac_cv_prog_cc_g+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 cat >conftest.$ac_ext <<_ACEOF
2052 cat confdefs.h >>conftest.$ac_ext
2053 cat >>conftest.$ac_ext <<_ACEOF
2054 /* end confdefs.h. */
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>conftest.er1
2068 grep -v '^ *+' conftest.er1 >conftest.err
2070 cat conftest.err >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -z "$ac_c_werror_flag"
2074 || test ! -s conftest.err'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2096 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2097 if test "$ac_test_CFLAGS" = set; then
2098 CFLAGS=$ac_save_CFLAGS
2099 elif test $ac_cv_prog_cc_g = yes; then
2100 if test "$GCC" = yes; then
2106 if test "$GCC" = yes; then
2112 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2113 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2114 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 ac_cv_prog_cc_stdc=no
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2127 #include <sys/types.h>
2128 #include <sys/stat.h>
2129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2130 struct buf { int x; };
2131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2132 static char *e (p, i)
2138 static char *f (char * (*g) (char **, int), char **p, ...)
2143 s = g (p, va_arg (v,int));
2148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2149 function prototypes and stuff, but not '\xHH' hex character constants.
2150 These don't provoke an error unfortunately, instead are silently treated
2151 as 'x'. The following induces an error, until -std1 is added to get
2152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2153 array size at least. It's necessary to write '\x00'==0 to get something
2154 that's true only with -std1. */
2155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2171 # Don't try gcc -ansi; that turns off useful extensions and
2172 # breaks some systems' header files.
2173 # AIX -qlanglvl=ansi
2174 # Ultrix and OSF/1 -std1
2175 # HP-UX 10.20 and later -Ae
2176 # HP-UX older versions -Aa -D_HPUX_SOURCE
2177 # SVR4 -Xc -D__EXTENSIONS__
2178 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 CC="$ac_save_CC $ac_arg"
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2185 grep -v '^ *+' conftest.er1 >conftest.err
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2210 rm -f conftest.err conftest.$ac_objext
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2217 case "x$ac_cv_prog_cc_stdc" in
2219 echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2227 # Some people use a C++ compiler to compile C. Since we use `exit',
2228 # in C++ we need to declare it. In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2240 grep -v '^ *+' conftest.er1 >conftest.err
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 for ac_declaration in \
2260 'extern "C" void std::exit (int) throw (); using std::exit;' \
2261 'extern "C" void std::exit (int); using std::exit;' \
2262 'extern "C" void exit (int) throw ();' \
2263 'extern "C" void exit (int);' \
2266 cat >conftest.$ac_ext <<_ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
2286 grep -v '^ *+' conftest.er1 >conftest.err
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2331 grep -v '^ *+' conftest.er1 >conftest.err
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 if test -n "$ac_declaration"; then
2359 echo '#ifdef __cplusplus' >>confdefs.h
2360 echo $ac_declaration >>confdefs.h
2361 echo '#endif' >>confdefs.h
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377 ac_cpp='$CXXCPP $CPPFLAGS'
2378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2381 if test -n "$ac_tool_prefix"; then
2382 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_CXX+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$CXX"; then
2392 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 if test -n "$CXX"; then
2412 echo "$as_me:$LINENO: result: $CXX" >&5
2413 echo "${ECHO_T}$CXX" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 test -n "$CXX" && break
2422 if test -z "$CXX"; then
2424 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$ac_ct_CXX"; then
2434 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_ac_ct_CXX="$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2453 if test -n "$ac_ct_CXX"; then
2454 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2455 echo "${ECHO_T}$ac_ct_CXX" >&6
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 test -n "$ac_ct_CXX" && break
2463 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2469 # Provide some information about the compiler.
2470 echo "$as_me:$LINENO:" \
2471 "checking for C++ compiler version" >&5
2472 ac_compiler=`set X $ac_compile; echo $2`
2473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2474 (eval $ac_compiler --version </dev/null >&5) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }
2478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2479 (eval $ac_compiler -v </dev/null >&5) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2484 (eval $ac_compiler -V </dev/null >&5) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2489 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2490 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2491 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_cxx_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2545 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2547 GXX=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CXXFLAGS=${CXXFLAGS+set}
2549 ac_save_CXXFLAGS=$CXXFLAGS
2551 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2552 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2553 if test "${ac_cv_prog_cxx_g+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2575 grep -v '^ *+' conftest.er1 >conftest.err
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_cxx_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_prog_cxx_g=yes
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2604 if test "$ac_test_CXXFLAGS" = set; then
2605 CXXFLAGS=$ac_save_CXXFLAGS
2606 elif test $ac_cv_prog_cxx_g = yes; then
2607 if test "$GXX" = yes; then
2613 if test "$GXX" = yes; then
2619 for ac_declaration in \
2621 'extern "C" void std::exit (int) throw (); using std::exit;' \
2622 'extern "C" void std::exit (int); using std::exit;' \
2623 'extern "C" void exit (int) throw ();' \
2624 'extern "C" void exit (int);' \
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_cxx_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_cxx_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 if test -n "$ac_declaration"; then
2720 echo '#ifdef __cplusplus' >>confdefs.h
2721 echo $ac_declaration >>confdefs.h
2722 echo '#endif' >>confdefs.h
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2738 # On Suns, sometimes $CPP names a directory.
2739 if test -n "$CPP" && test -d "$CPP"; then
2742 if test -z "$CPP"; then
2743 if test "${ac_cv_prog_CPP+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 # Double quotes because CPP needs to be expanded
2747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2750 for ac_c_preproc_warn_flag in '' yes
2752 # Use a header file that comes with gcc, so configuring glibc
2753 # with a fresh cross-compiler works.
2754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2755 # <limits.h> exists even on freestanding compilers.
2756 # On the NeXT, cc -E runs the code through the compiler's parser,
2757 # not just through cpp. "Syntax error" is here to catch this case.
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 # include <limits.h>
2767 # include <assert.h>
2771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2774 grep -v '^ *+' conftest.er1 >conftest.err
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } >/dev/null; then
2779 if test -s conftest.err; then
2780 ac_cpp_err=$ac_c_preproc_warn_flag
2781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2788 if test -z "$ac_cpp_err"; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 # Broken: fails on valid input.
2797 rm -f conftest.err conftest.$ac_ext
2799 # OK, works on sane cases. Now check whether non-existent headers
2800 # can be detected and how.
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 #include <ac_nonexistent.h>
2809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } >/dev/null; then
2817 if test -s conftest.err; then
2818 ac_cpp_err=$ac_c_preproc_warn_flag
2819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2826 if test -z "$ac_cpp_err"; then
2827 # Broken: success on invalid input.
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Passes both tests.
2837 rm -f conftest.err conftest.$ac_ext
2840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2841 rm -f conftest.err conftest.$ac_ext
2842 if $ac_preproc_ok; then
2854 echo "$as_me:$LINENO: result: $CPP" >&5
2855 echo "${ECHO_T}$CPP" >&6
2857 for ac_c_preproc_warn_flag in '' yes
2859 # Use a header file that comes with gcc, so configuring glibc
2860 # with a fresh cross-compiler works.
2861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862 # <limits.h> exists even on freestanding compilers.
2863 # On the NeXT, cc -E runs the code through the compiler's parser,
2864 # not just through cpp. "Syntax error" is here to catch this case.
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2872 # include <limits.h>
2874 # include <assert.h>
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_c_preproc_warn_flag
2888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2895 if test -z "$ac_cpp_err"; then
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 # Broken: fails on valid input.
2904 rm -f conftest.err conftest.$ac_ext
2906 # OK, works on sane cases. Now check whether non-existent headers
2907 # can be detected and how.
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <ac_nonexistent.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2934 # Broken: success on invalid input.
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Passes both tests.
2944 rm -f conftest.err conftest.$ac_ext
2947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2948 rm -f conftest.err conftest.$ac_ext
2949 if $ac_preproc_ok; then
2952 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2967 if test -f $ac_dir/install-sh; then
2969 ac_install_sh="$ac_aux_dir/install-sh -c"
2971 elif test -f $ac_dir/install.sh; then
2973 ac_install_sh="$ac_aux_dir/install.sh -c"
2975 elif test -f $ac_dir/shtool; then
2977 ac_install_sh="$ac_aux_dir/shtool install -c"
2981 if test -z "$ac_aux_dir"; then
2982 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2983 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2984 { (exit 1); exit 1; }; }
2986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2988 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2990 # Find a good install program. We prefer a C program (faster),
2991 # so one script is as good as another. But avoid the broken or
2992 # incompatible versions:
2993 # SysV /etc/install, /usr/sbin/install
2994 # SunOS /usr/etc/install
2995 # IRIX /sbin/install
2997 # AmigaOS /C/install, which installs bootblocks on floppy discs
2998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3001 # OS/2's system install, which has a completely different semantic
3002 # ./install, which can be erroneously created by make from ./install.sh.
3003 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3004 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3005 if test -z "$INSTALL"; then
3006 if test "${ac_cv_path_install+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 # Account for people who put trailing slashes in PATH elements.
3016 ./ | .// | /cC/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3048 if test "${ac_cv_path_install+set}" = set; then
3049 INSTALL=$ac_cv_path_install
3051 # As a last resort, use the slow shell script. We don't cache a
3052 # path for INSTALL within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the path is relative.
3055 INSTALL=$ac_install_sh
3058 echo "$as_me:$LINENO: result: $INSTALL" >&5
3059 echo "${ECHO_T}$INSTALL" >&6
3061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3062 # It thinks the first close brace ends the variable substitution.
3063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_RANLIB+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$RANLIB"; then
3078 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 RANLIB=$ac_cv_prog_RANLIB
3097 if test -n "$RANLIB"; then
3098 echo "$as_me:$LINENO: result: $RANLIB" >&5
3099 echo "${ECHO_T}$RANLIB" >&6
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3106 if test -z "$ac_cv_prog_RANLIB"; then
3107 ac_ct_RANLIB=$RANLIB
3108 # Extract the first word of "ranlib", so it can be a program name with args.
3109 set dummy ranlib; ac_word=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$ac_ct_RANLIB"; then
3116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_RANLIB="ranlib"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3136 if test -n "$ac_ct_RANLIB"; then
3137 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3138 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3144 RANLIB=$ac_ct_RANLIB
3146 RANLIB="$ac_cv_prog_RANLIB"
3150 for ac_prog in flex lex
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_prog_LEX+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$LEX"; then
3160 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_LEX="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test -n "$LEX"; then
3180 echo "$as_me:$LINENO: result: $LEX" >&5
3181 echo "${ECHO_T}$LEX" >&6
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 test -n "$LEX" && break
3189 test -n "$LEX" || LEX=":"
3191 if test -z "$LEXLIB"
3193 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3194 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3195 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_check_lib_save_LIBS=$LIBS
3200 cat >conftest.$ac_ext <<_ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -z "$ac_c_werror_flag"
3232 || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest$ac_exeext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_lib_fl_yywrap=yes
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 ac_cv_lib_fl_yywrap=no
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3253 LIBS=$ac_check_lib_save_LIBS
3255 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3256 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3257 if test $ac_cv_lib_fl_yywrap = yes; then
3260 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3261 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3262 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_check_lib_save_LIBS=$LIBS
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3274 /* Override any gcc2 internal prototype to avoid an error. */
3278 /* We use char because int might match the return type of a gcc2
3279 builtin and then its argument prototype would still apply. */
3289 rm -f conftest.$ac_objext conftest$ac_exeext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3291 (eval $ac_link) 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag"
3299 || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_lib_l_yywrap=yes
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 ac_cv_lib_l_yywrap=no
3318 rm -f conftest.err conftest.$ac_objext \
3319 conftest$ac_exeext conftest.$ac_ext
3320 LIBS=$ac_check_lib_save_LIBS
3322 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3323 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3324 if test $ac_cv_lib_l_yywrap = yes; then
3332 if test "x$LEX" != "x:"; then
3333 echo "$as_me:$LINENO: checking lex output file root" >&5
3334 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3335 if test "${ac_cv_prog_lex_root+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 # The minimal lex program is just a single line: %%. But some broken lexes
3339 # (Solaris, I think it was) want two %% lines, so accommodate them.
3340 cat >conftest.l <<_ACEOF
3344 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3345 (eval $LEX conftest.l) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349 if test -f lex.yy.c; then
3350 ac_cv_prog_lex_root=lex.yy
3351 elif test -f lexyy.c; then
3352 ac_cv_prog_lex_root=lexyy
3354 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3355 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3356 { (exit 1); exit 1; }; }
3359 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3360 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3362 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3364 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3365 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3366 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 # POSIX says lex can declare yytext either as a pointer or an array; the
3370 # default is implementation-dependent. Figure out which it is, since
3371 # not all implementations provide the %pointer and %array declarations.
3372 ac_cv_prog_lex_yytext_pointer=no
3373 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3375 LIBS="$LIBS $LEXLIB"
3376 cat >conftest.$ac_ext <<_ACEOF
3377 `cat $LEX_OUTPUT_ROOT.c`
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_prog_lex_yytext_pointer=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3407 rm -f conftest.err conftest.$ac_objext \
3408 conftest$ac_exeext conftest.$ac_ext
3410 rm -f "${LEX_OUTPUT_ROOT}.c"
3413 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3414 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3415 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3417 cat >>confdefs.h <<\_ACEOF
3418 #define YYTEXT_POINTER 1
3424 for ac_prog in 'bison -y' byacc
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_prog_YACC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 if test -n "$YACC"; then
3434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_YACC="$ac_prog"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 YACC=$ac_cv_prog_YACC
3453 if test -n "$YACC"; then
3454 echo "$as_me:$LINENO: result: $YACC" >&5
3455 echo "${ECHO_T}$YACC" >&6
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3461 test -n "$YACC" && break
3463 test -n "$YACC" || YACC="yacc"
3465 # Extract the first word of "autoconf", so it can be a program name with args.
3466 set dummy autoconf; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 if test -n "$AUTOCONF"; then
3473 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_AUTOCONF="autoconf"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3492 AUTOCONF=$ac_cv_prog_AUTOCONF
3493 if test -n "$AUTOCONF"; then
3494 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3495 echo "${ECHO_T}$AUTOCONF" >&6
3497 echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3501 # Extract the first word of "strip", so it can be a program name with args.
3502 set dummy strip; ac_word=$2
3503 echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505 if test "${ac_cv_prog_STRIP+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -n "$STRIP"; then
3509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_STRIP="strip"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3528 STRIP=$ac_cv_prog_STRIP
3529 if test -n "$STRIP"; then
3530 echo "$as_me:$LINENO: result: $STRIP" >&5
3531 echo "${ECHO_T}$STRIP" >&6
3533 echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3537 # Extract the first word of "as", so it can be a program name with args.
3538 set dummy as; ac_word=$2
3539 echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541 if test "${ac_cv_prog_AS+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -n "$AS"; then
3545 ac_cv_prog_AS="$AS" # Let the user override the test.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3565 if test -n "$AS"; then
3566 echo "$as_me:$LINENO: result: $AS" >&5
3567 echo "${ECHO_T}$AS" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 # Extract the first word of "cp", so it can be a program name with args.
3574 set dummy cp; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_prog_CP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test -n "$CP"; then
3581 ac_cv_prog_CP="$CP" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3601 if test -n "$CP"; then
3602 echo "$as_me:$LINENO: result: $CP" >&5
3603 echo "${ECHO_T}$CP" >&6
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3610 # Extract the first word of "lyx", so it can be a program name with args.
3611 set dummy lyx; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_LYX+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test -n "$LYX"; then
3618 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_LYX="lyx"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3638 if test -n "$LYX"; then
3639 echo "$as_me:$LINENO: result: $LYX" >&5
3640 echo "${ECHO_T}$LYX" >&6
3642 echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3646 # Extract the first word of "latex", so it can be a program name with args.
3647 set dummy latex; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_LATEX+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 if test -n "$LATEX"; then
3654 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_LATEX="latex"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3673 LATEX=$ac_cv_prog_LATEX
3674 if test -n "$LATEX"; then
3675 echo "$as_me:$LINENO: result: $LATEX" >&5
3676 echo "${ECHO_T}$LATEX" >&6
3678 echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 # Extract the first word of "latex2html", so it can be a program name with args.
3683 set dummy latex2html; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 if test -n "$LATEX2HTML"; then
3690 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_LATEX2HTML="latex2html"
3700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3709 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3710 if test -n "$LATEX2HTML"; then
3711 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3712 echo "${ECHO_T}$LATEX2HTML" >&6
3714 echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3718 # Extract the first word of "pdflatex", so it can be a program name with args.
3719 set dummy pdflatex; ac_word=$2
3720 echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test -n "$PDFLATEX"; then
3726 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_PDFLATEX="pdflatex"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3745 PDFLATEX=$ac_cv_prog_PDFLATEX
3746 if test -n "$PDFLATEX"; then
3747 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3748 echo "${ECHO_T}$PDFLATEX" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 # Extract the first word of "dvipdf", so it can be a program name with args.
3755 set dummy dvipdf; ac_word=$2
3756 echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test -n "$DVIPDF"; then
3762 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_DVIPDF="dvipdf"
3772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3781 DVIPDF=$ac_cv_prog_DVIPDF
3782 if test -n "$DVIPDF"; then
3783 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3784 echo "${ECHO_T}$DVIPDF" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3793 if test "$YACC" = ":"; then
3794 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3795 echo "$as_me: error: Cannot find required program bison." >&2;}
3796 { (exit 1); exit 1; }; }
3799 if test "$LEX" = ":"; then
3800 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3801 echo "$as_me: error: Cannot find required program lex." >&2;}
3802 { (exit 1); exit 1; }; }
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 # Checking for header files.
3815 # ===========================================================================
3817 echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3819 if test "${ac_cv_prog_egrep+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3823 then ac_cv_prog_egrep='grep -E'
3824 else ac_cv_prog_egrep='egrep'
3827 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3828 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3829 EGREP=$ac_cv_prog_egrep
3832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3834 if test "${ac_cv_header_stdc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_header_stdc=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_header_stdc=no
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 if test $ac_cv_header_stdc = yes; then
3888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "memchr" >/dev/null 2>&1; then
3902 ac_cv_header_stdc=no
3908 if test $ac_cv_header_stdc = yes; then
3909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "free" >/dev/null 2>&1; then
3923 ac_cv_header_stdc=no
3929 if test $ac_cv_header_stdc = yes; then
3930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931 if test "$cross_compiling" = yes; then
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3941 #if ((' ' & 0x0FF) == 0x020)
3942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3945 # define ISLOWER(c) \
3946 (('a' <= (c) && (c) <= 'i') \
3947 || ('j' <= (c) && (c) <= 'r') \
3948 || ('s' <= (c) && (c) <= 'z'))
3949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 for (i = 0; i < 256; i++)
3958 if (XOR (islower (i), ISLOWER (i))
3959 || toupper (i) != TOUPPER (i))
3964 rm -f conftest$ac_exeext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4027 rm -f conftest.$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 eval "$as_ac_Header=yes"
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 eval "$as_ac_Header=no"
4056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4071 for ac_header in sys/socket.h
4073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4075 echo "$as_me:$LINENO: checking for $ac_header" >&5
4076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4083 # Is the header compilable?
4084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 $ac_includes_default
4093 #include <$ac_header>
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_header_compiler=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_header_compiler=no
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4126 echo "${ECHO_T}$ac_header_compiler" >&6
4128 # Is the header present?
4129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <$ac_header>
4139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } >/dev/null; then
4147 if test -s conftest.err; then
4148 ac_cpp_err=$ac_c_preproc_warn_flag
4149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4156 if test -z "$ac_cpp_err"; then
4157 ac_header_preproc=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_header_preproc=no
4164 rm -f conftest.err conftest.$ac_ext
4165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4166 echo "${ECHO_T}$ac_header_preproc" >&6
4168 # So? What about this header?
4169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4175 ac_header_preproc=yes
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4192 ## ------------------------------------------ ##
4193 ## Report this to the AC_PACKAGE_NAME lists. ##
4194 ## ------------------------------------------ ##
4197 sed "s/^/$as_me: WARNING: /" >&2
4200 echo "$as_me:$LINENO: checking for $ac_header" >&5
4201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 eval "$as_ac_Header=\$ac_header_preproc"
4207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4212 cat >>confdefs.h <<_ACEOF
4213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 # Checking for functions
4223 # ===========================================================================
4225 for ac_func in strerror
4227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4228 echo "$as_me:$LINENO: checking for $ac_func" >&5
4229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4230 if eval "test \"\${$as_ac_var+set}\" = set"; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4241 #define $ac_func innocuous_$ac_func
4243 /* System header to define __stub macros and hopefully few prototypes,
4244 which can conflict with char $ac_func (); below.
4245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246 <limits.h> exists even on freestanding compilers. */
4249 # include <limits.h>
4251 # include <assert.h>
4256 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4264 /* The GNU C library defines this for functions which it implements
4265 to always fail with ENOSYS. Some functions are actually named
4266 something starting with __ and the normal name is an alias. */
4267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4270 char (*f) () = $ac_func;
4279 return f != $ac_func;
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 eval "$as_ac_var=yes"
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 eval "$as_ac_var=no"
4313 rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4318 if test `eval echo '${'$as_ac_var'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4330 for ac_func in vsnprintf snprintf vsprintf mkstemp
4332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4333 echo "$as_me:$LINENO: checking for $ac_func" >&5
4334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4335 if eval "test \"\${$as_ac_var+set}\" = set"; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4346 #define $ac_func innocuous_$ac_func
4348 /* System header to define __stub macros and hopefully few prototypes,
4349 which can conflict with char $ac_func (); below.
4350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 <limits.h> exists even on freestanding compilers. */
4354 # include <limits.h>
4356 # include <assert.h>
4361 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4369 /* The GNU C library defines this for functions which it implements
4370 to always fail with ENOSYS. Some functions are actually named
4371 something starting with __ and the normal name is an alias. */
4372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4375 char (*f) () = $ac_func;
4384 return f != $ac_func;
4389 rm -f conftest.$ac_objext conftest$ac_exeext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391 (eval $ac_link) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 eval "$as_ac_var=yes"
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 eval "$as_ac_var=no"
4418 rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4423 if test `eval echo '${'$as_ac_var'}'` = yes; then
4424 cat >>confdefs.h <<_ACEOF
4425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4434 # ===========================================================================
4436 # DD_COPT macro checks if the compiler specified as the 1st parameter
4437 # supports option specified as the 2nd parameter
4438 # For example: DD_CPORT(CXX, fPIC)
4442 # This macro expands DIR and assigns it to RET.
4443 # If DIR is NONE, then it's replaced by DEFAULT.
4445 # Based on AC_DEFINE_DIR
4449 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
4453 # adl_NORMALIZE_PATH
4455 # - empty paths are changed to '.'
4456 # - trailing slashes are removed
4457 # - repeated slashes are squeezed except a leading doubled slash '//'
4458 # (which might indicate a networked disk on some OS).
4461 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4462 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4463 # are turned into backslashes, otherwise they are all turned into slashes.
4465 # This makes processing of DOS filenames quite easier, because you can turn a
4466 # filename to the Unix notation, make your processing, and turn it back to
4467 # original notation.
4472 # adl_COMPUTE_RELATIVE_PATH
4474 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4475 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4476 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4477 # absolute filenames for this macro to success.
4483 ## The following helper macros are too fragile to be used out
4484 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4485 ## paths are normalized), that's why I'm keeping them in the same file.
4486 ## Still, some of them maybe worth to reuse.
4500 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4505 # Checking characteristics of compilers and other programs
4506 # ===========================================================================
4507 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4508 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4509 if test "${sdcc_cv_MM+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 echo "#include <stdio.h>" >_test_.c
4514 $CPP -v -MM _test_.c 1>&5 2>&5
4515 if test "$?" = "0"; then
4522 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4523 echo "${ECHO_T}$sdcc_cv_MM" >&6
4527 # This is the first time when CFLAGS are set/modified!!
4529 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4530 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4531 if test "${sdcc_cv_CCggdb+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4539 if test "$?" = "0"; then
4540 sdcc_cv_CCggdb="yes"
4544 rm -f _test_.* a.out
4546 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4547 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4549 if test "$sdcc_cv_CCggdb" = "yes"; then
4550 CFLAGS="-ggdb ${CFLAGS}"
4554 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4555 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4556 if test "${sdcc_cv_CCpipe+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 $CC -v -pipe -c _test_.c 1>&5 2>&5
4564 if test "$?" = "0"; then
4565 sdcc_cv_CCpipe="yes"
4569 rm -f _test_.* a.out
4571 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4572 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4574 if test "$sdcc_cv_CCpipe" = "yes"; then
4575 CFLAGS="-pipe $CFLAGS"
4579 # Checks for typedefs, structures, and compiler characteristics.
4580 # ===========================================================================
4581 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4582 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4583 if test "${ac_cv_type_signal+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4598 extern "C" void (*signal (int, void (*)(int)))(int);
4600 void (*signal ()) ();
4611 rm -f conftest.$ac_objext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -z "$ac_c_werror_flag"
4621 || test ! -s conftest.err'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_type_signal=void
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_cv_type_signal=int
4640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4643 echo "${ECHO_T}$ac_cv_type_signal" >&6
4645 cat >>confdefs.h <<_ACEOF
4646 #define RETSIGTYPE $ac_cv_type_signal
4651 echo "$as_me:$LINENO: checking for char" >&5
4652 echo $ECHO_N "checking for char... $ECHO_C" >&6
4653 if test "${ac_cv_type_char+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4706 echo "${ECHO_T}$ac_cv_type_char" >&6
4708 echo "$as_me:$LINENO: checking size of char" >&5
4709 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4710 if test "${ac_cv_sizeof_char+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test "$ac_cv_type_char" = yes; then
4714 # The cast to unsigned long works around a bug in the HP C Compiler
4715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4717 # This bug is HP SR number 8606223364.
4718 if test "$cross_compiling" = yes; then
4719 # Depending upon the size, compute the lo and hi bounds.
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4730 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 $ac_includes_default
4771 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_hi=$ac_mid; break
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 ac_lo=`expr $ac_mid + 1`
4806 if test $ac_lo -le $ac_mid; then
4810 ac_mid=`expr 2 '*' $ac_mid + 1`
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4828 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 cat >conftest.$ac_ext <<_ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 $ac_includes_default
4869 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4876 rm -f conftest.$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest.$ac_objext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_lo=$ac_mid; break
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 ac_hi=`expr '(' $ac_mid ')' - 1`
4904 if test $ac_mid -le $ac_hi; then
4908 ac_mid=`expr 2 '*' $ac_mid`
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 # Binary search between lo and hi bounds.
4922 while test "x$ac_lo" != "x$ac_hi"; do
4923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 $ac_includes_default
4934 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4941 rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 ac_lo=`expr '(' $ac_mid ')' + 1`
4970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ?*) ac_cv_sizeof_char=$ac_lo;;
4974 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4975 See \`config.log' for more details." >&5
4976 echo "$as_me: error: cannot compute sizeof (char), 77
4977 See \`config.log' for more details." >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 if test "$cross_compiling" = yes; then
4982 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4983 See \`config.log' for more details." >&5
4984 echo "$as_me: error: cannot run test program while cross compiling
4985 See \`config.log' for more details." >&2;}
4986 { (exit 1); exit 1; }; }
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4995 long longval () { return (long) (sizeof (char)); }
4996 unsigned long ulongval () { return (long) (sizeof (char)); }
5003 FILE *f = fopen ("conftest.val", "w");
5006 if (((long) (sizeof (char))) < 0)
5008 long i = longval ();
5009 if (i != ((long) (sizeof (char))))
5011 fprintf (f, "%ld\n", i);
5015 unsigned long i = ulongval ();
5016 if (i != ((long) (sizeof (char))))
5018 fprintf (f, "%lu\n", i);
5020 exit (ferror (f) || fclose (f) != 0);
5026 rm -f conftest$ac_exeext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5028 (eval $ac_link) 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_sizeof_char=`cat conftest.val`
5039 echo "$as_me: program exited with status $ac_status" >&5
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5045 See \`config.log' for more details." >&5
5046 echo "$as_me: error: cannot compute sizeof (char), 77
5047 See \`config.log' for more details." >&2;}
5048 { (exit 1); exit 1; }; }
5050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5059 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5060 cat >>confdefs.h <<_ACEOF
5061 #define SIZEOF_CHAR $ac_cv_sizeof_char
5065 echo "$as_me:$LINENO: checking for short" >&5
5066 echo $ECHO_N "checking for short... $ECHO_C" >&6
5067 if test "${ac_cv_type_short+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_type_short=yes
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5120 echo "${ECHO_T}$ac_cv_type_short" >&6
5122 echo "$as_me:$LINENO: checking size of short" >&5
5123 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5124 if test "${ac_cv_sizeof_short+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 if test "$ac_cv_type_short" = yes; then
5128 # The cast to unsigned long works around a bug in the HP C Compiler
5129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5131 # This bug is HP SR number 8606223364.
5132 if test "$cross_compiling" = yes; then
5133 # Depending upon the size, compute the lo and hi bounds.
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5144 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5175 cat >conftest.$ac_ext <<_ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5185 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -z "$ac_c_werror_flag"
5202 || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_hi=$ac_mid; break
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_lo=`expr $ac_mid + 1`
5220 if test $ac_lo -le $ac_mid; then
5224 ac_mid=`expr 2 '*' $ac_mid + 1`
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5242 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5283 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_lo=$ac_mid; break
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_hi=`expr '(' $ac_mid ')' - 1`
5318 if test $ac_mid -le $ac_hi; then
5322 ac_mid=`expr 2 '*' $ac_mid`
5324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335 # Binary search between lo and hi bounds.
5336 while test "x$ac_lo" != "x$ac_hi"; do
5337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 $ac_includes_default
5348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag"
5365 || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5382 ac_lo=`expr '(' $ac_mid ')' + 1`
5384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ?*) ac_cv_sizeof_short=$ac_lo;;
5388 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute sizeof (short), 77
5391 See \`config.log' for more details." >&2;}
5392 { (exit 1); exit 1; }; } ;;
5395 if test "$cross_compiling" = yes; then
5396 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5397 See \`config.log' for more details." >&5
5398 echo "$as_me: error: cannot run test program while cross compiling
5399 See \`config.log' for more details." >&2;}
5400 { (exit 1); exit 1; }; }
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 $ac_includes_default
5409 long longval () { return (long) (sizeof (short)); }
5410 unsigned long ulongval () { return (long) (sizeof (short)); }
5417 FILE *f = fopen ("conftest.val", "w");
5420 if (((long) (sizeof (short))) < 0)
5422 long i = longval ();
5423 if (i != ((long) (sizeof (short))))
5425 fprintf (f, "%ld\n", i);
5429 unsigned long i = ulongval ();
5430 if (i != ((long) (sizeof (short))))
5432 fprintf (f, "%lu\n", i);
5434 exit (ferror (f) || fclose (f) != 0);
5440 rm -f conftest$ac_exeext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5442 (eval $ac_link) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_cv_sizeof_short=`cat conftest.val`
5453 echo "$as_me: program exited with status $ac_status" >&5
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5459 See \`config.log' for more details." >&5
5460 echo "$as_me: error: cannot compute sizeof (short), 77
5461 See \`config.log' for more details." >&2;}
5462 { (exit 1); exit 1; }; }
5464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5469 ac_cv_sizeof_short=0
5472 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5473 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5474 cat >>confdefs.h <<_ACEOF
5475 #define SIZEOF_SHORT $ac_cv_sizeof_short
5479 echo "$as_me:$LINENO: checking for int" >&5
5480 echo $ECHO_N "checking for int... $ECHO_C" >&6
5481 if test "${ac_cv_type_int+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5534 echo "${ECHO_T}$ac_cv_type_int" >&6
5536 echo "$as_me:$LINENO: checking size of int" >&5
5537 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5538 if test "${ac_cv_sizeof_int+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 if test "$ac_cv_type_int" = yes; then
5542 # The cast to unsigned long works around a bug in the HP C Compiler
5543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5545 # This bug is HP SR number 8606223364.
5546 if test "$cross_compiling" = yes; then
5547 # Depending upon the size, compute the lo and hi bounds.
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 $ac_includes_default
5558 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -z "$ac_c_werror_flag"
5575 || test ! -s conftest.err'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5599 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_hi=$ac_mid; break
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_lo=`expr $ac_mid + 1`
5634 if test $ac_lo -le $ac_mid; then
5638 ac_mid=`expr 2 '*' $ac_mid + 1`
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5656 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5697 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_lo=$ac_mid; break
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_hi=`expr '(' $ac_mid ')' - 1`
5732 if test $ac_mid -le $ac_hi; then
5736 ac_mid=`expr 2 '*' $ac_mid`
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5749 # Binary search between lo and hi bounds.
5750 while test "x$ac_lo" != "x$ac_hi"; do
5751 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5762 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_lo=`expr '(' $ac_mid ')' + 1`
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ?*) ac_cv_sizeof_int=$ac_lo;;
5802 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5803 See \`config.log' for more details." >&5
5804 echo "$as_me: error: cannot compute sizeof (int), 77
5805 See \`config.log' for more details." >&2;}
5806 { (exit 1); exit 1; }; } ;;
5809 if test "$cross_compiling" = yes; then
5810 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5811 See \`config.log' for more details." >&5
5812 echo "$as_me: error: cannot run test program while cross compiling
5813 See \`config.log' for more details." >&2;}
5814 { (exit 1); exit 1; }; }
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 long longval () { return (long) (sizeof (int)); }
5824 unsigned long ulongval () { return (long) (sizeof (int)); }
5831 FILE *f = fopen ("conftest.val", "w");
5834 if (((long) (sizeof (int))) < 0)
5836 long i = longval ();
5837 if (i != ((long) (sizeof (int))))
5839 fprintf (f, "%ld\n", i);
5843 unsigned long i = ulongval ();
5844 if (i != ((long) (sizeof (int))))
5846 fprintf (f, "%lu\n", i);
5848 exit (ferror (f) || fclose (f) != 0);
5854 rm -f conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_sizeof_int=`cat conftest.val`
5867 echo "$as_me: program exited with status $ac_status" >&5
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5872 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5873 See \`config.log' for more details." >&5
5874 echo "$as_me: error: cannot compute sizeof (int), 77
5875 See \`config.log' for more details." >&2;}
5876 { (exit 1); exit 1; }; }
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5887 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5888 cat >>confdefs.h <<_ACEOF
5889 #define SIZEOF_INT $ac_cv_sizeof_int
5893 echo "$as_me:$LINENO: checking for long" >&5
5894 echo $ECHO_N "checking for long... $ECHO_C" >&6
5895 if test "${ac_cv_type_long+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 $ac_includes_default
5916 rm -f conftest.$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5948 echo "${ECHO_T}$ac_cv_type_long" >&6
5950 echo "$as_me:$LINENO: checking size of long" >&5
5951 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5952 if test "${ac_cv_sizeof_long+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 if test "$ac_cv_type_long" = yes; then
5956 # The cast to unsigned long works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 if test "$cross_compiling" = yes; then
5961 # Depending upon the size, compute the lo and hi bounds.
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5972 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag"
5989 || test ! -s conftest.err'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6013 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_hi=$ac_mid; break
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_lo=`expr $ac_mid + 1`
6048 if test $ac_lo -le $ac_mid; then
6052 ac_mid=`expr 2 '*' $ac_mid + 1`
6054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6070 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6111 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6118 rm -f conftest.$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_lo=$ac_mid; break
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 ac_hi=`expr '(' $ac_mid ')' - 1`
6146 if test $ac_mid -le $ac_hi; then
6150 ac_mid=`expr 2 '*' $ac_mid`
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163 # Binary search between lo and hi bounds.
6164 while test "x$ac_lo" != "x$ac_hi"; do
6165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6176 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_lo=`expr '(' $ac_mid ')' + 1`
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215 ?*) ac_cv_sizeof_long=$ac_lo;;
6216 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6217 See \`config.log' for more details." >&5
6218 echo "$as_me: error: cannot compute sizeof (long), 77
6219 See \`config.log' for more details." >&2;}
6220 { (exit 1); exit 1; }; } ;;
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6225 See \`config.log' for more details." >&5
6226 echo "$as_me: error: cannot run test program while cross compiling
6227 See \`config.log' for more details." >&2;}
6228 { (exit 1); exit 1; }; }
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 $ac_includes_default
6237 long longval () { return (long) (sizeof (long)); }
6238 unsigned long ulongval () { return (long) (sizeof (long)); }
6245 FILE *f = fopen ("conftest.val", "w");
6248 if (((long) (sizeof (long))) < 0)
6250 long i = longval ();
6251 if (i != ((long) (sizeof (long))))
6253 fprintf (f, "%ld\n", i);
6257 unsigned long i = ulongval ();
6258 if (i != ((long) (sizeof (long))))
6260 fprintf (f, "%lu\n", i);
6262 exit (ferror (f) || fclose (f) != 0);
6268 rm -f conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_cv_sizeof_long=`cat conftest.val`
6281 echo "$as_me: program exited with status $ac_status" >&5
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6287 See \`config.log' for more details." >&5
6288 echo "$as_me: error: cannot compute sizeof (long), 77
6289 See \`config.log' for more details." >&2;}
6290 { (exit 1); exit 1; }; }
6292 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6301 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6302 cat >>confdefs.h <<_ACEOF
6303 #define SIZEOF_LONG $ac_cv_sizeof_long
6310 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
6314 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
6318 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
6322 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
6329 echo "$as_me:$LINENO: checking type name for byte" >&5
6330 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
6331 TYPE_BYTE=`type_name 1`
6332 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
6333 echo "${ECHO_T}$TYPE_BYTE" >&6
6334 echo "$as_me:$LINENO: checking type name for word" >&5
6335 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
6336 TYPE_WORD=`type_name 2`
6337 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
6338 echo "${ECHO_T}$TYPE_WORD" >&6
6339 echo "$as_me:$LINENO: checking type name for dword" >&5
6340 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
6341 TYPE_DWORD=`type_name 4`
6342 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
6343 echo "${ECHO_T}$TYPE_DWORD" >&6
6344 cat >>confdefs.h <<_ACEOF
6345 #define TYPE_BYTE $TYPE_BYTE
6348 cat >>confdefs.h <<_ACEOF
6349 #define TYPE_WORD $TYPE_WORD
6352 cat >>confdefs.h <<_ACEOF
6353 #define TYPE_DWORD $TYPE_DWORD
6357 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6359 if test "${ac_cv_c_bigendian+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 # See if sys/param.h defines the BYTE_ORDER macro.
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <sys/types.h>
6370 #include <sys/param.h>
6375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 # It does; now see whether it defined to BIG_ENDIAN or not.
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <sys/types.h>
6413 #include <sys/param.h>
6418 #if BYTE_ORDER != BIG_ENDIAN
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_c_bigendian=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_c_bigendian=no
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 # It does not; compile a test program.
6461 if test "$cross_compiling" = yes; then
6462 # try to guess the endianness by grepping values into an object file
6463 ac_cv_c_bigendian=unknown
6464 cat >conftest.$ac_ext <<_ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6471 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6472 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6473 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6474 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6475 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6479 _ascii (); _ebcdic ();
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6507 ac_cv_c_bigendian=yes
6509 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6510 if test "$ac_cv_c_bigendian" = unknown; then
6511 ac_cv_c_bigendian=no
6513 # finding both strings is unlikely to happen, but who knows?
6514 ac_cv_c_bigendian=unknown
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6533 /* Are we little or big endian? From Harbison&Steele. */
6537 char c[sizeof (long)];
6540 exit (u.c[sizeof (long) - 1] == 1);
6543 rm -f conftest$ac_exeext
6544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545 (eval $ac_link) 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_c_bigendian=no
6556 echo "$as_me: program exited with status $ac_status" >&5
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_c_bigendian=yes
6563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6569 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6570 case $ac_cv_c_bigendian in
6573 cat >>confdefs.h <<\_ACEOF
6574 #define WORDS_BIGENDIAN 1
6580 { { echo "$as_me:$LINENO: error: unknown endianness
6581 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6582 echo "$as_me: error: unknown endianness
6583 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6584 { (exit 1); exit 1; }; } ;;
6588 # Set standard installation paths
6589 # ===========================================================================
6591 # In the Makefiles we need paths with '/' as directory separator, even if
6592 # crosscompiling for Win32.
6593 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
6594 # The variables in the Makefiles are replaced by AC_SUBST()
6596 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
6598 # The macros are expanded for the header.
6599 # The variables in the header are replaced by AC_*DEFINE*()
6600 # sdccconf_h_dir_separator contains a backslash.
6602 if test "${sdccconf_h_dir_separator}" = ""; then
6603 sdccconf_h_dir_separator="/"
6609 # include_dir_suffix:
6610 # *nix default: "sdcc/include"
6613 if test "${include_dir_suffix}" = ""; then
6614 include_dir_suffix="sdcc/include"
6619 # *nix default: "sdcc/lib"
6621 if test "${lib_dir_suffix}" = ""; then
6622 lib_dir_suffix="sdcc/lib"
6627 # *nix default: "${datadir}/sdcc/doc"
6629 if test "${docdir}" = ""; then
6630 docdir="\${datadir}"/sdcc/doc
6639 cat >>confdefs.h <<_ACEOF
6640 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6643 cat >>confdefs.h <<_ACEOF
6644 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6649 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6651 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6654 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6655 ac_expand=`eval echo $ac_expand`
6656 expanded_prefix=`eval echo $ac_expand`
6659 ac_ndu=$expanded_prefix
6661 # change empty paths to '.'
6663 # strip trailing slashes
6664 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6667 # squeze repeated slashes
6668 case $sdccconf_h_dir_separator in
6669 # if the path contains any backslashes, turn slashes into backslashes
6671 # Bernhard Held 2003-04-06
6672 # This was the original line. It doesn't:
6673 # - convert the first slash
6674 # - replace a slash with a double-backslash
6675 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6676 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6678 # if the path contains slashes, also turn backslashes into slashes
6679 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6681 cat >>confdefs.h <<_ACEOF
6682 #define PREFIX "${ac_ndu}"
6688 # default: "${prefix}"
6690 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6692 ac_expand=$exec_prefix
6693 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6694 ac_expand=`eval echo $ac_expand`
6695 expanded_exec_prefix=`eval echo $ac_expand`
6698 ac_ndu=$expanded_exec_prefix
6700 # change empty paths to '.'
6702 # strip trailing slashes
6703 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6706 # squeze repeated slashes
6707 case $sdccconf_h_dir_separator in
6708 # if the path contains any backslashes, turn slashes into backslashes
6710 # Bernhard Held 2003-04-06
6711 # This was the original line. It doesn't:
6712 # - convert the first slash
6713 # - replace a slash with a double-backslash
6714 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6715 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6717 # if the path contains slashes, also turn backslashes into slashes
6718 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6720 cat >>confdefs.h <<_ACEOF
6721 #define EXEC_PREFIX "${ac_ndu}"
6727 # default: "${exec_prefix}/bin"
6729 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6732 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6733 ac_expand=`eval echo $ac_expand`
6734 expanded_bindir=`eval echo $ac_expand`
6737 ac_ndu=$expanded_bindir
6739 # change empty paths to '.'
6741 # strip trailing slashes
6742 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6745 # squeze repeated slashes
6746 case $sdccconf_h_dir_separator in
6747 # if the path contains any backslashes, turn slashes into backslashes
6749 # Bernhard Held 2003-04-06
6750 # This was the original line. It doesn't:
6751 # - convert the first slash
6752 # - replace a slash with a double-backslash
6753 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6754 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6756 # if the path contains slashes, also turn backslashes into slashes
6757 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6759 cat >>confdefs.h <<_ACEOF
6760 #define BINDIR "${ac_ndu}"
6766 # default: "${prefix}/share"
6768 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6771 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6772 ac_expand=`eval echo $ac_expand`
6773 expanded_datadir=`eval echo $ac_expand`
6776 ac_ndu=$expanded_datadir
6778 # change empty paths to '.'
6780 # strip trailing slashes
6781 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6784 # squeze repeated slashes
6785 case $sdccconf_h_dir_separator in
6786 # if the path contains any backslashes, turn slashes into backslashes
6788 # Bernhard Held 2003-04-06
6789 # This was the original line. It doesn't:
6790 # - convert the first slash
6791 # - replace a slash with a double-backslash
6792 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6793 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6795 # if the path contains slashes, also turn backslashes into slashes
6796 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6798 cat >>confdefs.h <<_ACEOF
6799 #define DATADIR "${ac_ndu}"
6804 # include/lib suffix
6805 norm_inc_dir_suffix=${include_dir_suffix}
6806 case ":$norm_inc_dir_suffix:" in
6807 # change empty paths to '.'
6808 ::) norm_inc_dir_suffix='.' ;;
6809 # strip trailing slashes
6810 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6813 # squeze repeated slashes
6814 case $sdccconf_h_dir_separator in
6815 # if the path contains any backslashes, turn slashes into backslashes
6817 # Bernhard Held 2003-04-06
6818 # This was the original line. It doesn't:
6819 # - convert the first slash
6820 # - replace a slash with a double-backslash
6821 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6822 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6824 # if the path contains slashes, also turn backslashes into slashes
6825 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6827 cat >>confdefs.h <<_ACEOF
6828 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6831 norm_lib_dir_suffix=${lib_dir_suffix}
6832 case ":$norm_lib_dir_suffix:" in
6833 # change empty paths to '.'
6834 ::) norm_lib_dir_suffix='.' ;;
6835 # strip trailing slashes
6836 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6839 # squeze repeated slashes
6840 case $sdccconf_h_dir_separator in
6841 # if the path contains any backslashes, turn slashes into backslashes
6843 # Bernhard Held 2003-04-06
6844 # This was the original line. It doesn't:
6845 # - convert the first slash
6846 # - replace a slash with a double-backslash
6847 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6848 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6850 # if the path contains slashes, also turn backslashes into slashes
6851 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6853 cat >>confdefs.h <<_ACEOF
6854 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6859 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6860 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6861 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6862 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6863 _lcl_receval="$_lcl_from"
6864 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6865 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6867 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6868 _lcl_receval_old="$_lcl_receval"
6869 eval _lcl_receval="\"$_lcl_receval\""
6871 echo "$_lcl_receval")`
6872 _lcl_receval="$_lcl_to"
6873 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6874 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6876 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6877 _lcl_receval_old="$_lcl_receval"
6878 eval _lcl_receval="\"$_lcl_receval\""
6880 echo "$_lcl_receval")`
6881 _lcl_notation="$_lcl_from$_lcl_to"
6882 case ":$_lcl_from:" in
6883 # change empty paths to '.'
6884 ::) _lcl_from='.' ;;
6885 # strip trailing slashes
6886 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6889 # squeze repeated slashes
6891 # if the path contains any backslashes, turn slashes into backslashes
6893 # Bernhard Held 2003-04-06
6894 # This was the original line. It doesn't:
6895 # - convert the first slash
6896 # - replace a slash with a double-backslash
6897 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6898 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6900 # if the path contains slashes, also turn backslashes into slashes
6901 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6903 case ":$_lcl_to:" in
6904 # change empty paths to '.'
6906 # strip trailing slashes
6907 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6910 # squeze repeated slashes
6912 # if the path contains any backslashes, turn slashes into backslashes
6914 # Bernhard Held 2003-04-06
6915 # This was the original line. It doesn't:
6916 # - convert the first slash
6917 # - replace a slash with a double-backslash
6918 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6919 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6921 # if the path contains slashes, also turn backslashes into slashes
6922 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6924 _lcl_common_prefix=''
6925 _lcl_second_prefix_match=''
6926 while test "$_lcl_second_prefix_match" != 0; do
6927 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6928 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6929 if test "$_lcl_second_prefix_match" != 0; then
6930 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6931 _lcl_common_prefix="$_lcl_first_prefix"
6933 _lcl_second_prefix_match=0
6937 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6940 while test "$_lcl_tmp" != ''; do
6941 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6942 if test "$_lcl_first_suffix" != ''; then
6943 _lcl_first_suffix="$_lcl_tmp"
6944 _lcl_first_rel="../$_lcl_first_rel"
6947 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6948 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6949 case ":$_lcl_result_tmp:" in
6950 # change empty paths to '.'
6951 ::) _lcl_result_tmp='.' ;;
6952 # strip trailing slashes
6953 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6956 # squeze repeated slashes
6957 case "$_lcl_notation" in
6958 # if the path contains any backslashes, turn slashes into backslashes
6960 # Bernhard Held 2003-04-06
6961 # This was the original line. It doesn't:
6962 # - convert the first slash
6963 # - replace a slash with a double-backslash
6964 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6965 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6967 # if the path contains slashes, also turn backslashes into slashes
6968 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6970 eval $_lcl_result_var='$_lcl_result_tmp'
6972 case ":$bin2data_dir:" in
6973 # change empty paths to '.'
6974 ::) bin2data_dir='.' ;;
6975 # strip trailing slashes
6976 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6979 # squeze repeated slashes
6980 case $sdccconf_h_dir_separator in
6981 # if the path contains any backslashes, turn slashes into backslashes
6983 # Bernhard Held 2003-04-06
6984 # This was the original line. It doesn't:
6985 # - convert the first slash
6986 # - replace a slash with a double-backslash
6987 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6988 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6990 # if the path contains slashes, also turn backslashes into slashes
6991 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6993 cat >>confdefs.h <<_ACEOF
6994 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6998 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6999 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7000 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7001 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7002 _lcl_receval="$_lcl_from"
7003 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7004 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7006 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7007 _lcl_receval_old="$_lcl_receval"
7008 eval _lcl_receval="\"$_lcl_receval\""
7010 echo "$_lcl_receval")`
7011 _lcl_receval="$_lcl_to"
7012 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7013 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7015 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7016 _lcl_receval_old="$_lcl_receval"
7017 eval _lcl_receval="\"$_lcl_receval\""
7019 echo "$_lcl_receval")`
7020 _lcl_notation="$_lcl_from$_lcl_to"
7021 case ":$_lcl_from:" in
7022 # change empty paths to '.'
7023 ::) _lcl_from='.' ;;
7024 # strip trailing slashes
7025 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7028 # squeze repeated slashes
7030 # if the path contains any backslashes, turn slashes into backslashes
7032 # Bernhard Held 2003-04-06
7033 # This was the original line. It doesn't:
7034 # - convert the first slash
7035 # - replace a slash with a double-backslash
7036 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7037 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7039 # if the path contains slashes, also turn backslashes into slashes
7040 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7042 case ":$_lcl_to:" in
7043 # change empty paths to '.'
7045 # strip trailing slashes
7046 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7049 # squeze repeated slashes
7051 # if the path contains any backslashes, turn slashes into backslashes
7053 # Bernhard Held 2003-04-06
7054 # This was the original line. It doesn't:
7055 # - convert the first slash
7056 # - replace a slash with a double-backslash
7057 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7058 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7060 # if the path contains slashes, also turn backslashes into slashes
7061 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7063 _lcl_common_prefix=''
7064 _lcl_second_prefix_match=''
7065 while test "$_lcl_second_prefix_match" != 0; do
7066 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7067 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7068 if test "$_lcl_second_prefix_match" != 0; then
7069 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7070 _lcl_common_prefix="$_lcl_first_prefix"
7072 _lcl_second_prefix_match=0
7076 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7079 while test "$_lcl_tmp" != ''; do
7080 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7081 if test "$_lcl_first_suffix" != ''; then
7082 _lcl_first_suffix="$_lcl_tmp"
7083 _lcl_first_rel="../$_lcl_first_rel"
7086 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7087 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7088 case ":$_lcl_result_tmp:" in
7089 # change empty paths to '.'
7090 ::) _lcl_result_tmp='.' ;;
7091 # strip trailing slashes
7092 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7095 # squeze repeated slashes
7096 case "$_lcl_notation" in
7097 # if the path contains any backslashes, turn slashes into backslashes
7099 # Bernhard Held 2003-04-06
7100 # This was the original line. It doesn't:
7101 # - convert the first slash
7102 # - replace a slash with a double-backslash
7103 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7104 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7106 # if the path contains slashes, also turn backslashes into slashes
7107 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7109 eval $_lcl_result_var='$_lcl_result_tmp'
7111 case ":$prefix2bin_dir:" in
7112 # change empty paths to '.'
7113 ::) prefix2bin_dir='.' ;;
7114 # strip trailing slashes
7115 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
7118 # squeze repeated slashes
7119 case $sdccconf_h_dir_separator in
7120 # if the path contains any backslashes, turn slashes into backslashes
7122 # Bernhard Held 2003-04-06
7123 # This was the original line. It doesn't:
7124 # - convert the first slash
7125 # - replace a slash with a double-backslash
7126 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7127 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7129 # if the path contains slashes, also turn backslashes into slashes
7130 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7132 cat >>confdefs.h <<_ACEOF
7133 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
7137 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
7138 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
7139 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
7140 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
7141 _lcl_receval="$_lcl_from"
7142 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7143 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7145 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7146 _lcl_receval_old="$_lcl_receval"
7147 eval _lcl_receval="\"$_lcl_receval\""
7149 echo "$_lcl_receval")`
7150 _lcl_receval="$_lcl_to"
7151 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7152 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7154 while test "$_lcl_receval_old" != "$_lcl_receval"; do
7155 _lcl_receval_old="$_lcl_receval"
7156 eval _lcl_receval="\"$_lcl_receval\""
7158 echo "$_lcl_receval")`
7159 _lcl_notation="$_lcl_from$_lcl_to"
7160 case ":$_lcl_from:" in
7161 # change empty paths to '.'
7162 ::) _lcl_from='.' ;;
7163 # strip trailing slashes
7164 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
7167 # squeze repeated slashes
7169 # if the path contains any backslashes, turn slashes into backslashes
7171 # Bernhard Held 2003-04-06
7172 # This was the original line. It doesn't:
7173 # - convert the first slash
7174 # - replace a slash with a double-backslash
7175 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7176 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7178 # if the path contains slashes, also turn backslashes into slashes
7179 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7181 case ":$_lcl_to:" in
7182 # change empty paths to '.'
7184 # strip trailing slashes
7185 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
7188 # squeze repeated slashes
7190 # if the path contains any backslashes, turn slashes into backslashes
7192 # Bernhard Held 2003-04-06
7193 # This was the original line. It doesn't:
7194 # - convert the first slash
7195 # - replace a slash with a double-backslash
7196 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7197 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7199 # if the path contains slashes, also turn backslashes into slashes
7200 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7202 _lcl_common_prefix=''
7203 _lcl_second_prefix_match=''
7204 while test "$_lcl_second_prefix_match" != 0; do
7205 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
7206 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
7207 if test "$_lcl_second_prefix_match" != 0; then
7208 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
7209 _lcl_common_prefix="$_lcl_first_prefix"
7211 _lcl_second_prefix_match=0
7215 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
7218 while test "$_lcl_tmp" != ''; do
7219 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
7220 if test "$_lcl_first_suffix" != ''; then
7221 _lcl_first_suffix="$_lcl_tmp"
7222 _lcl_first_rel="../$_lcl_first_rel"
7225 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
7226 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
7227 case ":$_lcl_result_tmp:" in
7228 # change empty paths to '.'
7229 ::) _lcl_result_tmp='.' ;;
7230 # strip trailing slashes
7231 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
7234 # squeze repeated slashes
7235 case "$_lcl_notation" in
7236 # if the path contains any backslashes, turn slashes into backslashes
7238 # Bernhard Held 2003-04-06
7239 # This was the original line. It doesn't:
7240 # - convert the first slash
7241 # - replace a slash with a double-backslash
7242 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7243 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7245 # if the path contains slashes, also turn backslashes into slashes
7246 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7248 eval $_lcl_result_var='$_lcl_result_tmp'
7250 case ":$prefix2data_dir:" in
7251 # change empty paths to '.'
7252 ::) prefix2data_dir='.' ;;
7253 # strip trailing slashes
7254 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
7257 # squeze repeated slashes
7258 case $sdccconf_h_dir_separator in
7259 # if the path contains any backslashes, turn slashes into backslashes
7261 # Bernhard Held 2003-04-06
7262 # This was the original line. It doesn't:
7263 # - convert the first slash
7264 # - replace a slash with a double-backslash
7265 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
7266 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
7268 # if the path contains slashes, also turn backslashes into slashes
7269 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
7271 if test "${prefix2data_dir}" = "."; then
7272 # small optimization for Mingw32; otherwise Borut will complain ;-)
7273 cat >>confdefs.h <<_ACEOF
7274 #define PREFIX2DATA_DIR ""
7278 cat >>confdefs.h <<_ACEOF
7279 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
7285 cat >>confdefs.h <<_ACEOF
7286 #define STD_LIB "libsdcc"
7289 cat >>confdefs.h <<_ACEOF
7290 #define STD_INT_LIB "libint"
7293 cat >>confdefs.h <<_ACEOF
7294 #define STD_LONG_LIB "liblong"
7297 cat >>confdefs.h <<_ACEOF
7298 #define STD_FP_LIB "libfloat"
7301 cat >>confdefs.h <<_ACEOF
7302 #define STD_DS390_LIB "libds390"
7305 cat >>confdefs.h <<_ACEOF
7306 #define STD_DS400_LIB "libds400"
7309 cat >>confdefs.h <<_ACEOF
7310 #define STD_XA51_LIB "libxa51"
7314 # SDCC runtime environment variables
7315 sdcc_dir_name="SDCC_HOME"
7316 cat >>confdefs.h <<_ACEOF
7317 #define SDCC_DIR_NAME "${sdcc_dir_name}"
7321 sdcc_include_name="SDCC_INCLUDE"
7322 cat >>confdefs.h <<_ACEOF
7323 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
7327 sdcc_lib_name="SDCC_LIB"
7328 cat >>confdefs.h <<_ACEOF
7329 #define SDCC_LIB_NAME "${sdcc_lib_name}"
7333 # Now handle the port selection
7334 # ===========================================================================
7335 rm -f ports.all ports.build
7336 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
7337 if test "${enable_mcs51_port+set}" = set; then
7338 enableval="$enable_mcs51_port"
7341 echo mcs51 >>ports.all
7342 if test "$enable_mcs51_port" = "no"; then
7343 cat >>confdefs.h <<_ACEOF
7344 #define OPT_DISABLE_MCS51 1
7348 echo mcs51 >>ports.build
7349 cat >>confdefs.h <<_ACEOF
7350 #define OPT_DISABLE_MCS51 0
7355 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
7356 if test "${enable_gbz80_port+set}" = set; then
7357 enableval="$enable_gbz80_port"
7360 echo z80 >>ports.all
7361 if test "$enable_gbz80_port" = "no"; then
7362 cat >>confdefs.h <<_ACEOF
7363 #define OPT_DISABLE_GBZ80 1
7367 echo z80 >>ports.build
7368 cat >>confdefs.h <<_ACEOF
7369 #define OPT_DISABLE_GBZ80 0
7374 # Check whether --enable-z80-port or --disable-z80-port was given.
7375 if test "${enable_z80_port+set}" = set; then
7376 enableval="$enable_z80_port"
7379 echo z80 >>ports.all
7380 if test "$enable_z80_port" = "no"; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define OPT_DISABLE_Z80 1
7386 echo z80 >>ports.build
7387 cat >>confdefs.h <<_ACEOF
7388 #define OPT_DISABLE_Z80 0
7393 # Check whether --enable-avr-port or --disable-avr-port was given.
7394 if test "${enable_avr_port+set}" = set; then
7395 enableval="$enable_avr_port"
7398 echo avr >>ports.all
7399 if test "$enable_avr_port" = "no"; then
7400 cat >>confdefs.h <<_ACEOF
7401 #define OPT_DISABLE_AVR 1
7405 echo avr >>ports.build
7406 cat >>confdefs.h <<_ACEOF
7407 #define OPT_DISABLE_AVR 0
7412 # Check whether --enable-ds390-port or --disable-ds390-port was given.
7413 if test "${enable_ds390_port+set}" = set; then
7414 enableval="$enable_ds390_port"
7417 echo ds390 >>ports.all
7418 if test "$enable_ds390_port" = "no"; then
7419 cat >>confdefs.h <<_ACEOF
7420 #define OPT_DISABLE_DS390 1
7423 cat >>confdefs.h <<_ACEOF
7424 #define OPT_DISABLE_TININative 1
7428 echo ds390 >>ports.build
7429 cat >>confdefs.h <<_ACEOF
7430 #define OPT_DISABLE_DS390 0
7433 cat >>confdefs.h <<_ACEOF
7434 #define OPT_DISABLE_TININative 0
7439 # Check whether --enable-ds400-port or --disable-ds400-port was given.
7440 if test "${enable_ds400_port+set}" = set; then
7441 enableval="$enable_ds400_port"
7444 echo ds400 >>ports.all
7445 if test "$enable_ds400_port" = "no"; then
7446 cat >>confdefs.h <<_ACEOF
7447 #define OPT_DISABLE_DS400 1
7451 echo ds400 >>ports.build
7452 cat >>confdefs.h <<_ACEOF
7453 #define OPT_DISABLE_DS400 0
7458 # Check whether --enable-pic-port or --disable-pic-port was given.
7459 if test "${enable_pic_port+set}" = set; then
7460 enableval="$enable_pic_port"
7463 echo pic >>ports.all
7464 if test "$enable_pic_port" = "no"; then
7465 cat >>confdefs.h <<_ACEOF
7466 #define OPT_DISABLE_PIC 1
7470 echo pic >>ports.build
7471 cat >>confdefs.h <<_ACEOF
7472 #define OPT_DISABLE_PIC 0
7477 # Check whether --enable-pic16-port or --disable-pic16-port was given.
7478 if test "${enable_pic16_port+set}" = set; then
7479 enableval="$enable_pic16_port"
7482 echo pic16 >>ports.all
7483 if test "$enable_pic16_port" = "no"; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define OPT_DISABLE_PIC16 1
7489 echo pic16 >>ports.build
7490 cat >>confdefs.h <<_ACEOF
7491 #define OPT_DISABLE_PIC16 0
7496 # Check whether --enable-xa51-port or --disable-xa51-port was given.
7497 if test "${enable_xa51_port+set}" = set; then
7498 enableval="$enable_xa51_port"
7501 echo xa51 >>ports.all
7502 if test "$enable_xa51_port" = "no"; then
7503 cat >>confdefs.h <<_ACEOF
7504 #define OPT_DISABLE_XA51 1
7508 echo xa51 >>ports.build
7509 cat >>confdefs.h <<_ACEOF
7510 #define OPT_DISABLE_XA51 0
7515 # Check whether --enable-hc08-port or --disable-hc08-port was given.
7516 if test "${enable_hc08_port+set}" = set; then
7517 enableval="$enable_hc08_port"
7520 echo hc08 >>ports.all
7521 if test "$enable_hc08_port" = "no"; then
7522 cat >>confdefs.h <<_ACEOF
7523 #define OPT_DISABLE_HC08 1
7527 echo hc08 >>ports.build
7528 cat >>confdefs.h <<_ACEOF
7529 #define OPT_DISABLE_HC08 0
7534 # Check whether --enable-ucsim or --disable-ucsim was given.
7535 if test "${enable_ucsim+set}" = set; then
7536 enableval="$enable_ucsim"
7539 OPT_ENABLE_UCSIM=$enable_ucsim
7542 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
7543 if test "${enable_device_lib_build+set}" = set; then
7544 enableval="$enable_device_lib_build"
7547 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
7550 # Check whether --enable-packihx or --disable-packihx was given.
7551 if test "${enable_packihx+set}" = set; then
7552 enableval="$enable_packihx"
7555 OPT_ENABLE_PACKIHX=$enable_packihx
7558 # Check whether --enable-libgc or --disable-libgc was given.
7559 if test "${enable_libgc+set}" = set; then
7560 enableval="$enable_libgc"
7563 if test "$enable_libgc" = "yes"; then
7565 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7566 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7567 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 ac_check_lib_save_LIBS=$LIBS
7572 cat >conftest.$ac_ext <<_ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag"
7604 || test ! -s conftest.err'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest$ac_exeext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_cv_lib_gc_GC_malloc=yes
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_cv_lib_gc_GC_malloc=no
7623 rm -f conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7627 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7628 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7629 if test $ac_cv_lib_gc_GC_malloc = yes; then
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_LIBGC 1
7642 cat >>confdefs.h <<_ACEOF
7643 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7648 uniq ports.all ports
7650 uniq ports.build ports
7651 mv ports ports.build
7653 # Generating output files
7654 # ===========================================================================
7657 subdirs="$subdirs support/cpp2"
7661 subdirs="$subdirs packihx"
7665 subdirs="$subdirs sim/ucsim"
7667 #AC_CONFIG_SUBDIRS(device/lib/pic16)
7669 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"
7671 cat >confcache <<\_ACEOF
7672 # This file is a shell script that caches the results of configure
7673 # tests run on this system so they can be shared between configure
7674 # scripts and configure runs, see configure's option --config-cache.
7675 # It is not useful on other systems. If it contains results you don't
7676 # want to keep, you may remove or edit it.
7678 # config.status only pays attention to the cache file if you give it
7679 # the --recheck option to rerun configure.
7681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7687 # The following way of writing the cache mishandles newlines in values,
7688 # but we know of no workaround that is simple, portable, and efficient.
7689 # So, don't put newlines in cache variables' values.
7690 # Ultrix sh set writes to stderr and can't be redirected directly,
7691 # and sets the high bit in the cache file unless we assign to the vars.
7694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7696 # `set' does not quote correctly, so add quotes (double-quote
7697 # substitution turns \\\\ into \\, and sed turns \\ into \).
7700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7703 # `set' quotes correctly as required by POSIX, so do not add quotes.
7705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7717 if test -w $cache_file; then
7718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7719 cat confcache >$cache_file
7721 echo "not updating unwritable cache $cache_file"
7726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7727 # Let make expand exec_prefix.
7728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7732 # trailing colons and then remove the whole line if VPATH becomes empty
7733 # (actually we leave an empty line to preserve line numbers).
7734 if test "x$srcdir" = x.; then
7735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7736 s/:*\$(srcdir):*/:/;
7737 s/:*\${srcdir}:*/:/;
7739 s/^\([^=]*=[ ]*\):*/\1/;
7745 DEFS=-DHAVE_CONFIG_H
7749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7750 # 1. Remove the extension, and $U if already installed.
7751 ac_i=`echo "$ac_i" |
7752 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7754 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7755 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7759 LTLIBOBJS=$ac_ltlibobjs
7763 : ${CONFIG_STATUS=./config.status}
7764 ac_clean_files_save=$ac_clean_files
7765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7766 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7767 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7768 cat >$CONFIG_STATUS <<_ACEOF
7770 # Generated by $as_me.
7771 # Run this file to recreate the current configuration.
7772 # Compiler output produced by configure, useful for debugging
7773 # configure, is in config.log if it exists.
7778 SHELL=\${CONFIG_SHELL-$SHELL}
7781 cat >>$CONFIG_STATUS <<\_ACEOF
7782 ## --------------------- ##
7783 ## M4sh Initialization. ##
7784 ## --------------------- ##
7786 # Be Bourne compatible
7787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7790 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7791 # is contrary to our usage. Disable this feature.
7792 alias -g '${1+"$@"}'='"$@"'
7793 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7796 DUALCASE=1; export DUALCASE # for MKS sh
7798 # Support unset when possible.
7799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7806 # Work around bugs in pre-3.0 UWIN ksh.
7807 $as_unset ENV MAIL MAILPATH
7814 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7815 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7816 LC_TELEPHONE LC_TIME
7818 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7819 eval $as_var=C; export $as_var
7825 # Required to use basename.
7826 if expr a : '\(a\)' >/dev/null 2>&1; then
7832 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7833 as_basename=basename
7839 # Name of the executable.
7840 as_me=`$as_basename "$0" ||
7841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7842 X"$0" : 'X\(//\)$' \| \
7843 X"$0" : 'X\(/\)$' \| \
7844 . : '\(.\)' 2>/dev/null ||
7846 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7847 /^X\/\(\/\/\)$/{ s//\1/; q; }
7848 /^X\/\(\/\).*/{ s//\1/; q; }
7852 # PATH needs CR, and LINENO needs CR and PATH.
7853 # Avoid depending upon Character Ranges.
7854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7857 as_cr_digits='0123456789'
7858 as_cr_alnum=$as_cr_Letters$as_cr_digits
7860 # The user is always right.
7861 if test "${PATH_SEPARATOR+set}" != set; then
7862 echo "#! /bin/sh" >conf$$.sh
7863 echo "exit 0" >>conf$$.sh
7865 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7876 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7877 test "x$as_lineno_1" != "x$as_lineno_2" &&
7878 test "x$as_lineno_3" = "x$as_lineno_2" || {
7879 # Find who we are. Look in the path if we contain no path at all
7882 *[\\/]* ) as_myself=$0 ;;
7883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 test -z "$as_dir" && as_dir=.
7888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7893 # We did not find ourselves, most probably we were run as `sh COMMAND'
7894 # in which case we are not to be found in the path.
7895 if test "x$as_myself" = x; then
7898 if test ! -f "$as_myself"; then
7899 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7900 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7901 { (exit 1); exit 1; }; }
7903 case $CONFIG_SHELL in
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7909 test -z "$as_dir" && as_dir=.
7910 for as_base in sh bash ksh sh5; do
7913 if ("$as_dir/$as_base" -c '
7916 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7917 test "x$as_lineno_1" != "x$as_lineno_2" &&
7918 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7919 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7920 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7921 CONFIG_SHELL=$as_dir/$as_base
7923 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7931 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7932 # uniformly replaced by the line number. The first 'sed' inserts a
7933 # line-number line before each line; the second 'sed' does the real
7934 # work. The second script uses 'N' to pair each line-number line
7935 # with the numbered line, and appends trailing '-' during
7936 # substitution so that $LINENO is not a special case at line end.
7937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7938 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7939 sed '=' <$as_myself |
7944 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7947 s,^['$as_cr_digits']*\n,,
7949 chmod +x $as_me.lineno ||
7950 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7951 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7952 { (exit 1); exit 1; }; }
7954 # Don't try to exec as it changes $[0], causing all sort of problems
7955 # (the dirname of $[0] is not the place where we might find the
7956 # original and so on. Autoconf is especially sensible to this).
7958 # Exit status is that of the last command.
7963 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7964 *c*,-n*) ECHO_N= ECHO_C='
7966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7970 if expr a : '\(a\)' >/dev/null 2>&1; then
7976 rm -f conf$$ conf$$.exe conf$$.file
7978 if ln -s conf$$.file conf$$ 2>/dev/null; then
7979 # We could just check for DJGPP; but this test a) works b) is more generic
7980 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7981 if test -f conf$$.exe; then
7982 # Don't use ln at all; we don't have any links
7987 elif ln conf$$.file conf$$ 2>/dev/null; then
7992 rm -f conf$$ conf$$.exe conf$$.file
7994 if mkdir -p . 2>/dev/null; then
7997 test -d ./-p && rmdir ./-p
8001 as_executable_p="test -f"
8003 # Sed expression to map a string onto a valid CPP name.
8004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8006 # Sed expression to map a string onto a valid variable name.
8007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8011 # We need space, tab and new line, in precisely that order.
8021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8022 # report actual input values of CONFIG_FILES etc. instead of their
8023 # values after options handling. Logging --version etc. is OK.
8027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8028 ## Running $as_me. ##
8033 This file was extended by $as_me, which was
8034 generated by GNU Autoconf 2.58. Invocation command line was
8036 CONFIG_FILES = $CONFIG_FILES
8037 CONFIG_HEADERS = $CONFIG_HEADERS
8038 CONFIG_LINKS = $CONFIG_LINKS
8039 CONFIG_COMMANDS = $CONFIG_COMMANDS
8043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8047 # Files that config.status was made for.
8048 if test -n "$ac_config_files"; then
8049 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8052 if test -n "$ac_config_headers"; then
8053 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8056 if test -n "$ac_config_links"; then
8057 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8060 if test -n "$ac_config_commands"; then
8061 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8064 cat >>$CONFIG_STATUS <<\_ACEOF
8067 \`$as_me' instantiates files from templates according to the
8068 current configuration.
8070 Usage: $0 [OPTIONS] [FILE]...
8072 -h, --help print this help, then exit
8073 -V, --version print version number, then exit
8074 -q, --quiet do not print progress messages
8075 -d, --debug don't remove temporary files
8076 --recheck update $as_me by reconfiguring in the same conditions
8077 --file=FILE[:TEMPLATE]
8078 instantiate the configuration file FILE
8079 --header=FILE[:TEMPLATE]
8080 instantiate the configuration header FILE
8082 Configuration files:
8085 Configuration headers:
8088 Report bugs to <bug-autoconf@gnu.org>."
8091 cat >>$CONFIG_STATUS <<_ACEOF
8094 configured by $0, generated by GNU Autoconf 2.58,
8095 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8097 Copyright (C) 2003 Free Software Foundation, Inc.
8098 This config.status script is free software; the Free Software Foundation
8099 gives unlimited permission to copy, distribute and modify it."
8104 cat >>$CONFIG_STATUS <<\_ACEOF
8105 # If no file are specified by the user, then we need to provide default
8106 # value. By we need to know if files were specified by the user.
8112 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8113 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8121 *) # This is not an option, so the user has probably given explicit
8124 ac_need_defaults=false;;
8128 # Handling of the options.
8130 cat >>$CONFIG_STATUS <<\_ACEOF
8131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8133 --version | --vers* | -V )
8134 echo "$ac_cs_version"; exit 0 ;;
8136 # Conflict between --help and --header
8137 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8138 Try \`$0 --help' for more information." >&5
8139 echo "$as_me: error: ambiguous option: $1
8140 Try \`$0 --help' for more information." >&2;}
8141 { (exit 1); exit 1; }; };;
8142 --help | --hel | -h )
8143 echo "$ac_cs_usage"; exit 0 ;;
8144 --debug | --d* | -d )
8146 --file | --fil | --fi | --f )
8148 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8149 ac_need_defaults=false;;
8150 --header | --heade | --head | --hea )
8152 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8153 ac_need_defaults=false;;
8154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8159 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8160 Try \`$0 --help' for more information." >&5
8161 echo "$as_me: error: unrecognized option: $1
8162 Try \`$0 --help' for more information." >&2;}
8163 { (exit 1); exit 1; }; } ;;
8165 *) ac_config_targets="$ac_config_targets $1" ;;
8171 ac_configure_extra_args=
8173 if $ac_cs_silent; then
8175 ac_configure_extra_args="$ac_configure_extra_args --silent"
8179 cat >>$CONFIG_STATUS <<_ACEOF
8180 if \$ac_cs_recheck; then
8181 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8182 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8191 cat >>$CONFIG_STATUS <<\_ACEOF
8192 for ac_config_target in $ac_config_targets
8194 case "$ac_config_target" in
8195 # Handling of arguments.
8196 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
8197 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8198 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
8199 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
8200 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
8201 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
8202 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
8203 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
8204 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
8205 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8206 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8207 { (exit 1); exit 1; }; };;
8211 # If the user did not use the arguments to specify the items to instantiate,
8212 # then the envvar interface is used. Set only those that are not.
8213 # We use the long form for the default assignment because of an extremely
8214 # bizarre bug on SunOS 4.1.3.
8215 if $ac_need_defaults; then
8216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8220 # Have a temporary directory for convenience. Make it in the build tree
8221 # simply because there is no reason to put it here, and in addition,
8222 # creating and moving files from /tmp can sometimes cause problems.
8223 # Create a temporary directory, and hook for its removal unless debugging.
8226 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8227 trap '{ (exit 1); exit 1; }' 1 2 13 15
8230 # Create a (secure) tmp directory for tmp files.
8233 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8234 test -n "$tmp" && test -d "$tmp"
8237 tmp=./confstat$$-$RANDOM
8238 (umask 077 && mkdir $tmp)
8241 echo "$me: cannot create a temporary directory in ." >&2
8242 { (exit 1); exit 1; }
8247 cat >>$CONFIG_STATUS <<_ACEOF
8250 # CONFIG_FILES section.
8253 # No need to generate the scripts if there are no CONFIG_FILES.
8254 # This happens for instance when ./config.status config.h
8255 if test -n "\$CONFIG_FILES"; then
8256 # Protect against being on the right side of a sed subst in config.status.
8257 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8258 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8259 s,@SHELL@,$SHELL,;t t
8260 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8261 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8262 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8263 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8264 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8265 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8266 s,@exec_prefix@,$exec_prefix,;t t
8267 s,@prefix@,$prefix,;t t
8268 s,@program_transform_name@,$program_transform_name,;t t
8269 s,@bindir@,$bindir,;t t
8270 s,@sbindir@,$sbindir,;t t
8271 s,@libexecdir@,$libexecdir,;t t
8272 s,@datadir@,$datadir,;t t
8273 s,@sysconfdir@,$sysconfdir,;t t
8274 s,@sharedstatedir@,$sharedstatedir,;t t
8275 s,@localstatedir@,$localstatedir,;t t
8276 s,@libdir@,$libdir,;t t
8277 s,@includedir@,$includedir,;t t
8278 s,@oldincludedir@,$oldincludedir,;t t
8279 s,@infodir@,$infodir,;t t
8280 s,@mandir@,$mandir,;t t
8281 s,@build_alias@,$build_alias,;t t
8282 s,@host_alias@,$host_alias,;t t
8283 s,@target_alias@,$target_alias,;t t
8285 s,@ECHO_C@,$ECHO_C,;t t
8286 s,@ECHO_N@,$ECHO_N,;t t
8287 s,@ECHO_T@,$ECHO_T,;t t
8290 s,@VERSION@,$VERSION,;t t
8291 s,@VERSIONHI@,$VERSIONHI,;t t
8292 s,@VERSIONLO@,$VERSIONLO,;t t
8293 s,@VERSIONP@,$VERSIONP,;t t
8295 s,@CFLAGS@,$CFLAGS,;t t
8296 s,@LDFLAGS@,$LDFLAGS,;t t
8297 s,@CPPFLAGS@,$CPPFLAGS,;t t
8298 s,@ac_ct_CC@,$ac_ct_CC,;t t
8299 s,@EXEEXT@,$EXEEXT,;t t
8300 s,@OBJEXT@,$OBJEXT,;t t
8302 s,@CXXFLAGS@,$CXXFLAGS,;t t
8303 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8305 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8306 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8307 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8308 s,@RANLIB@,$RANLIB,;t t
8309 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8311 s,@LEXLIB@,$LEXLIB,;t t
8312 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8314 s,@AUTOCONF@,$AUTOCONF,;t t
8315 s,@STRIP@,$STRIP,;t t
8319 s,@LATEX@,$LATEX,;t t
8320 s,@LATEX2HTML@,$LATEX2HTML,;t t
8321 s,@PDFLATEX@,$PDFLATEX,;t t
8322 s,@DVIPDF@,$DVIPDF,;t t
8323 s,@EGREP@,$EGREP,;t t
8324 s,@M_OR_MM@,$M_OR_MM,;t t
8325 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8326 s,@include_dir_suffix@,$include_dir_suffix,;t t
8327 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8328 s,@docdir@,$docdir,;t t
8329 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
8330 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
8331 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
8332 s,@subdirs@,$subdirs,;t t
8333 s,@LIBOBJS@,$LIBOBJS,;t t
8334 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8339 cat >>$CONFIG_STATUS <<\_ACEOF
8340 # Split the substitutions into bite-sized pieces for seds with
8341 # small command number limits, like on Digital OSF/1 and HP-UX.
8343 ac_sed_frag=1 # Number of current file.
8344 ac_beg=1 # First line for current file.
8345 ac_end=$ac_max_sed_lines # Line after last line for current file.
8348 while $ac_more_lines; do
8349 if test $ac_beg -gt 1; then
8350 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8352 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8354 if test ! -s $tmp/subs.frag; then
8357 # The purpose of the label and of the branching condition is to
8358 # speed up the sed processing (if there are no `@' at all, there
8359 # is no need to browse any of the substitutions).
8360 # These are the two extra sed commands mentioned above.
8362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8363 if test -z "$ac_sed_cmds"; then
8364 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8366 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8368 ac_sed_frag=`expr $ac_sed_frag + 1`
8370 ac_end=`expr $ac_end + $ac_max_sed_lines`
8373 if test -z "$ac_sed_cmds"; then
8376 fi # test -n "$CONFIG_FILES"
8379 cat >>$CONFIG_STATUS <<\_ACEOF
8380 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8383 - | *:- | *:-:* ) # input from stdin
8385 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8387 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8389 * ) ac_file_in=$ac_file.in ;;
8392 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8393 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8395 X"$ac_file" : 'X\(//\)[^/]' \| \
8396 X"$ac_file" : 'X\(//\)$' \| \
8397 X"$ac_file" : 'X\(/\)' \| \
8398 . : '\(.\)' 2>/dev/null ||
8400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8402 /^X\(\/\/\)$/{ s//\1/; q; }
8403 /^X\(\/\).*/{ s//\1/; q; }
8405 { if $as_mkdir_p; then
8410 while test ! -d "$as_dir"; do
8411 as_dirs="$as_dir $as_dirs"
8412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$as_dir" : 'X\(//\)[^/]' \| \
8415 X"$as_dir" : 'X\(//\)$' \| \
8416 X"$as_dir" : 'X\(/\)' \| \
8417 . : '\(.\)' 2>/dev/null ||
8419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8421 /^X\(\/\/\)$/{ s//\1/; q; }
8422 /^X\(\/\).*/{ s//\1/; q; }
8425 test ! -n "$as_dirs" || mkdir $as_dirs
8426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8428 { (exit 1); exit 1; }; }; }
8432 if test "$ac_dir" != .; then
8433 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8434 # A "../" for each directory in $ac_dir_suffix.
8435 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8437 ac_dir_suffix= ac_top_builddir=
8441 .) # No --srcdir option. We are building in place.
8443 if test -z "$ac_top_builddir"; then
8446 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8448 [\\/]* | ?:[\\/]* ) # Absolute path.
8449 ac_srcdir=$srcdir$ac_dir_suffix;
8450 ac_top_srcdir=$srcdir ;;
8452 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8453 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8456 .) ac_abs_builddir=$ac_builddir;;
8458 case $ac_builddir in
8459 .) ac_abs_builddir="$ac_dir";;
8460 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
8461 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
8465 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8467 case ${ac_top_builddir}. in
8468 .) ac_abs_top_builddir="$ac_dir";;
8469 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8470 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
8474 .) ac_abs_srcdir=$ac_srcdir;;
8477 .) ac_abs_srcdir="$ac_dir";;
8478 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8479 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
8483 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8485 case $ac_top_srcdir in
8486 .) ac_abs_top_srcdir="$ac_dir";;
8487 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8488 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
8494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8495 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8498 if test x"$ac_file" != x-; then
8499 { echo "$as_me:$LINENO: creating $ac_file" >&5
8500 echo "$as_me: creating $ac_file" >&6;}
8503 # Let's still pretend it is `configure' which instantiates (i.e., don't
8504 # use $as_me), people would be surprised to read:
8505 # /* config.h. Generated by config.status. */
8506 if test x"$ac_file" = x-; then
8509 configure_input="$ac_file. "
8511 configure_input=$configure_input"Generated from `echo $ac_file_in |
8512 sed 's,.*/,,'` by configure."
8514 # First look for the input files in the build tree, otherwise in the
8516 ac_file_inputs=`IFS=:
8517 for f in $ac_file_in; do
8519 -) echo $tmp/stdin ;;
8521 # Absolute (can't be DOS-style, as IFS=:)
8522 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8523 echo "$as_me: error: cannot find input file: $f" >&2;}
8524 { (exit 1); exit 1; }; }
8527 if test -f "$f"; then
8530 elif test -f "$srcdir/$f"; then
8535 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8536 echo "$as_me: error: cannot find input file: $f" >&2;}
8537 { (exit 1); exit 1; }; }
8540 done` || { (exit 1); exit 1; }
8542 cat >>$CONFIG_STATUS <<_ACEOF
8546 cat >>$CONFIG_STATUS <<\_ACEOF
8548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8549 s,@configure_input@,$configure_input,;t t
8550 s,@srcdir@,$ac_srcdir,;t t
8551 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8552 s,@top_srcdir@,$ac_top_srcdir,;t t
8553 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8554 s,@builddir@,$ac_builddir,;t t
8555 s,@abs_builddir@,$ac_abs_builddir,;t t
8556 s,@top_builddir@,$ac_top_builddir,;t t
8557 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8558 s,@INSTALL@,$ac_INSTALL,;t t
8559 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8561 if test x"$ac_file" != x-; then
8562 mv $tmp/out $ac_file
8570 cat >>$CONFIG_STATUS <<\_ACEOF
8573 # CONFIG_HEADER section.
8576 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8577 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8579 # ac_d sets the value in "#define NAME VALUE" lines.
8580 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8581 ac_dB='[ ].*$,\1#\2'
8584 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8585 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8586 ac_uB='$,\1#\2define\3'
8590 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8593 - | *:- | *:-:* ) # input from stdin
8595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8599 * ) ac_file_in=$ac_file.in ;;
8602 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8603 echo "$as_me: creating $ac_file" >&6;}
8605 # First look for the input files in the build tree, otherwise in the
8607 ac_file_inputs=`IFS=:
8608 for f in $ac_file_in; do
8610 -) echo $tmp/stdin ;;
8612 # Absolute (can't be DOS-style, as IFS=:)
8613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8614 echo "$as_me: error: cannot find input file: $f" >&2;}
8615 { (exit 1); exit 1; }; }
8616 # Do quote $f, to prevent DOS paths from being IFS'd.
8619 if test -f "$f"; then
8622 elif test -f "$srcdir/$f"; then
8627 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8628 echo "$as_me: error: cannot find input file: $f" >&2;}
8629 { (exit 1); exit 1; }; }
8632 done` || { (exit 1); exit 1; }
8633 # Remove the trailing spaces.
8634 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8638 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8639 # `conftest.undefs', that substitutes the proper values into
8640 # config.h.in to produce config.h. The first handles `#define'
8641 # templates, and the second `#undef' templates.
8642 # And first: Protect against being on the right side of a sed subst in
8643 # config.status. Protect against being in an unquoted here document
8645 rm -f conftest.defines conftest.undefs
8646 # Using a here document instead of a string reduces the quoting nightmare.
8647 # Putting comments in sed scripts is not portable.
8649 # `end' is used to avoid that the second main sed command (meant for
8650 # 0-ary CPP macros) applies to n-ary macro definitions.
8651 # See the Autoconf documentation for `clear'.
8652 cat >confdef2sed.sed <<\_ACEOF
8657 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8659 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8662 # If some macros were called several times there might be several times
8663 # the same #defines, which is useless. Nevertheless, we may not want to
8664 # sort them, since we want the *last* AC-DEFINE to be honored.
8665 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8666 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8667 rm -f confdef2sed.sed
8669 # This sed command replaces #undef with comments. This is necessary, for
8670 # example, in the case of _POSIX_SOURCE, which is predefined and required
8671 # on some systems where configure will not decide to define it.
8672 cat >>conftest.undefs <<\_ACEOF
8673 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8676 # Break up conftest.defines because some shells have a limit on the size
8677 # of here documents, and old seds have small limits too (100 cmds).
8678 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8679 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8680 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8681 echo ' :' >>$CONFIG_STATUS
8683 while grep . conftest.defines >/dev/null
8685 # Write a limited-size here document to $tmp/defines.sed.
8686 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8687 # Speed up: don't consider the non `#define' lines.
8688 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8689 # Work around the forget-to-reset-the-flag bug.
8690 echo 't clr' >>$CONFIG_STATUS
8691 echo ': clr' >>$CONFIG_STATUS
8692 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8694 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8698 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8699 rm -f conftest.defines
8700 mv conftest.tail conftest.defines
8702 rm -f conftest.defines
8703 echo ' fi # grep' >>$CONFIG_STATUS
8704 echo >>$CONFIG_STATUS
8706 # Break up conftest.undefs because some shells have a limit on the size
8707 # of here documents, and old seds have small limits too (100 cmds).
8708 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8710 while grep . conftest.undefs >/dev/null
8712 # Write a limited-size here document to $tmp/undefs.sed.
8713 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8714 # Speed up: don't consider the non `#undef'
8715 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8716 # Work around the forget-to-reset-the-flag bug.
8717 echo 't clr' >>$CONFIG_STATUS
8718 echo ': clr' >>$CONFIG_STATUS
8719 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8721 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8725 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8726 rm -f conftest.undefs
8727 mv conftest.tail conftest.undefs
8729 rm -f conftest.undefs
8731 cat >>$CONFIG_STATUS <<\_ACEOF
8732 # Let's still pretend it is `configure' which instantiates (i.e., don't
8733 # use $as_me), people would be surprised to read:
8734 # /* config.h. Generated by config.status. */
8735 if test x"$ac_file" = x-; then
8736 echo "/* Generated by configure. */" >$tmp/config.h
8738 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8740 cat $tmp/in >>$tmp/config.h
8742 if test x"$ac_file" != x-; then
8743 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8744 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8745 echo "$as_me: $ac_file is unchanged" >&6;}
8747 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8749 X"$ac_file" : 'X\(//\)[^/]' \| \
8750 X"$ac_file" : 'X\(//\)$' \| \
8751 X"$ac_file" : 'X\(/\)' \| \
8752 . : '\(.\)' 2>/dev/null ||
8754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8756 /^X\(\/\/\)$/{ s//\1/; q; }
8757 /^X\(\/\).*/{ s//\1/; q; }
8759 { if $as_mkdir_p; then
8764 while test ! -d "$as_dir"; do
8765 as_dirs="$as_dir $as_dirs"
8766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8768 X"$as_dir" : 'X\(//\)[^/]' \| \
8769 X"$as_dir" : 'X\(//\)$' \| \
8770 X"$as_dir" : 'X\(/\)' \| \
8771 . : '\(.\)' 2>/dev/null ||
8773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8775 /^X\(\/\/\)$/{ s//\1/; q; }
8776 /^X\(\/\).*/{ s//\1/; q; }
8779 test ! -n "$as_dirs" || mkdir $as_dirs
8780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8782 { (exit 1); exit 1; }; }; }
8785 mv $tmp/config.h $ac_file
8794 cat >>$CONFIG_STATUS <<\_ACEOF
8796 { (exit 0); exit 0; }
8798 chmod +x $CONFIG_STATUS
8799 ac_clean_files=$ac_clean_files_save
8802 # configure is writing to config.log, and then calls config.status.
8803 # config.status does its own redirection, appending to config.log.
8804 # Unfortunately, on DOS this fails, as config.log is still kept open
8805 # by configure, so config.status won't be able to write to it; its
8806 # output is simply discarded. So we exec the FD to /dev/null,
8807 # effectively closing config.log, so it can be properly (re)opened and
8808 # appended to by config.status. When coming back to configure, we
8809 # need to make the FD available again.
8810 if test "$no_create" != yes; then
8812 ac_config_status_args=
8813 test "$silent" = yes &&
8814 ac_config_status_args="$ac_config_status_args --quiet"
8816 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8818 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8819 # would make configure fail if this is the last instruction.
8820 $ac_cs_success || { (exit 1); exit 1; }
8824 # CONFIG_SUBDIRS section.
8826 if test "$no_recursion" != yes; then
8828 # Remove --cache-file and --srcdir arguments so they do not pile up.
8829 ac_sub_configure_args=
8831 for ac_arg in $ac_configure_args; do
8832 if test -n "$ac_prev"; then
8837 -cache-file | --cache-file | --cache-fil | --cache-fi \
8838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8839 ac_prev=cache_file ;;
8840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8844 --config-cache | -C)
8846 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8848 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8854 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8858 # Always prepend --prefix to ensure using the same prefix
8859 # in subdir configurations.
8860 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8863 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8865 # Do not complain, so a configure script can configure whichever
8866 # parts of a large source tree are present.
8867 test -d $srcdir/$ac_dir || continue
8869 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8870 echo "$as_me: configuring in $ac_dir" >&6;}
8871 { if $as_mkdir_p; then
8876 while test ! -d "$as_dir"; do
8877 as_dirs="$as_dir $as_dirs"
8878 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8880 X"$as_dir" : 'X\(//\)[^/]' \| \
8881 X"$as_dir" : 'X\(//\)$' \| \
8882 X"$as_dir" : 'X\(/\)' \| \
8883 . : '\(.\)' 2>/dev/null ||
8885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8887 /^X\(\/\/\)$/{ s//\1/; q; }
8888 /^X\(\/\).*/{ s//\1/; q; }
8891 test ! -n "$as_dirs" || mkdir $as_dirs
8892 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8893 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8894 { (exit 1); exit 1; }; }; }
8898 if test "$ac_dir" != .; then
8899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8900 # A "../" for each directory in $ac_dir_suffix.
8901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8903 ac_dir_suffix= ac_top_builddir=
8907 .) # No --srcdir option. We are building in place.
8909 if test -z "$ac_top_builddir"; then
8912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8914 [\\/]* | ?:[\\/]* ) # Absolute path.
8915 ac_srcdir=$srcdir$ac_dir_suffix;
8916 ac_top_srcdir=$srcdir ;;
8918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8922 .) ac_abs_builddir=$ac_builddir;;
8924 case $ac_builddir in
8925 .) ac_abs_builddir="$ac_dir";;
8926 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
8927 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
8931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8933 case ${ac_top_builddir}. in
8934 .) ac_abs_top_builddir="$ac_dir";;
8935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8936 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
8940 .) ac_abs_srcdir=$ac_srcdir;;
8943 .) ac_abs_srcdir="$ac_dir";;
8944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8945 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
8949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8951 case $ac_top_srcdir in
8952 .) ac_abs_top_srcdir="$ac_dir";;
8953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8954 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
8961 # Check for guested configure; otherwise get Cygnus style configure.
8962 if test -f $ac_srcdir/configure.gnu; then
8963 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8964 elif test -f $ac_srcdir/configure; then
8965 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8966 elif test -f $ac_srcdir/configure.in; then
8967 ac_sub_configure=$ac_configure
8969 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8974 # The recursion is here.
8975 if test -n "$ac_sub_configure"; then
8976 # Make the cache file name correct relative to the subdirectory.
8978 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8980 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8983 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8984 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8985 # The eval makes quoting arguments work.
8986 eval $ac_sub_configure $ac_sub_configure_args \
8987 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8988 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8989 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8990 { (exit 1); exit 1; }; }
8998 # End of configure/configure.in