2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
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 support/packihx"
314 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
315 ac_subdirs_all="$ac_subdirs_all debugger/mcs51"
316 ac_subdirs_all="$ac_subdirs_all device/lib/pic"
317 ac_subdirs_all="$ac_subdirs_all device/lib/pic16"
318 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 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP M_OR_MM EGREP sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_DISABLE_MCS51 OPT_DISABLE_GBZ80 OPT_DISABLE_Z80 OPT_DISABLE_AVR OPT_DISABLE_DS390 OPT_DISABLE_DS400 OPT_DISABLE_PIC OPT_DISABLE_PIC16 OPT_DISABLE_XA51 OPT_DISABLE_HC08 OPT_DISABLE_UCSIM OPT_DISABLE_DEVICE_LIB OPT_DISABLE_PACKIHX OPT_DISABLE_SDCPP OPT_DISABLE_SDCDB OPT_ENABLE_DOC LYX LATEX2HTML PDFLATEX PDFOPT MAKEINDEX OPT_ENABLE_LIBGC subdirs LIBOBJS LTLIBOBJS'
321 # Initialize some variables set by options.
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name=s,x,x,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
393 cache_file=config.cache ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir=$ac_optarg ;;
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he | -h)
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
460 -libdir | --libdir | --libdi | --libd)
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 # Obsolete; use --without-fp.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 sbindir=$ac_optarg ;;
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 sharedstatedir=$ac_optarg ;;
564 -site | --site | --sit)
566 -site=* | --site=* | --sit=*)
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 -version | --version | --versio | --versi | --vers | -V)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
667 eval ac_val=$`echo $ac_var`
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
708 test "$silent" = yes && exec 6>/dev/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
780 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
781 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
782 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
783 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
784 ac_env_include_dir_suffix_value=$include_dir_suffix
785 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
786 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
787 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
788 ac_env_lib_dir_suffix_value=$lib_dir_suffix
789 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
790 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
791 ac_env_docdir_set=${docdir+set}
792 ac_env_docdir_value=$docdir
793 ac_cv_env_docdir_set=${docdir+set}
794 ac_cv_env_docdir_value=$docdir
797 # Report the --help message.
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
803 \`configure' configures this package to adapt to many kinds of systems.
805 Usage: $0 [OPTION]... [VAR=VALUE]...
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
810 Defaults for the options are specified in brackets.
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
837 For better control, use the options below.
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
857 --program-prefix=PREFIX prepend PREFIX to installed program names
858 --program-suffix=SUFFIX append SUFFIX to installed program names
859 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
863 if test -n "$ac_init_help"; then
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --disable-mcs51-port Excludes the Intel mcs51 port
871 --disable-gbz80-port Excludes the Gameboy gbz80 port
872 --disable-z80-port Excludes the z80 port
873 --disable-avr-port Excludes the AVR port
874 --disable-ds390-port Excludes the DS390 port
875 --disable-ds400-port Excludes the DS400 port
876 --disable-pic-port Excludes the PIC port
877 --disable-pic16-port Excludes the PIC16 port
878 --disable-xa51-port Excludes the XA51 port
879 --disable-hc08-port Excludes the HC08 port
880 --disable-ucsim Disables configuring and building of ucsim
881 --disable-device-lib Disables building device libraries
882 --disable-packihx Disables building packihx
883 --disable-sdcpp Disables building sdcpp
884 --disable-sdcdb Disables building sdcdb
885 --enable-doc Enables building the documentation
886 --enable-libgc Use the Bohem memory allocator. Lower runtime
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
897 sdccconf_h_dir_separator
898 needed in sdccconf.h: either "/" (default) or "\\"
900 appended to datadir to define SDCC's include directory
902 appended to datadir to define SDCC's library root directory
903 docdir documentation installation directory
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
945 .) ac_abs_builddir="$ac_dir";;
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1075 ac_must_keep_next=false
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 -* ) ac_must_keep_next=true ;;
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1133 # The following way of writing the cache mishandles newlines in values,
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1156 for ac_var in $ac_subst_vars
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -n "$ac_subst_files"; then
1170 for ac_var in $ac_subst_files
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1178 if test -s confdefs.h; then
1185 sed "/^$/d" confdefs.h | sort
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 # Predefined preprocessor variables.
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1268 # Check that the precious variables saved in the cache have kept the same
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292 echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294 echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1347 for ac_prog in gawk mawk nawk awk
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_AWK+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 if test -n "$AWK"; then
1357 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_AWK="$ac_prog"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 if test -n "$AWK"; then
1377 echo "$as_me:$LINENO: result: $AWK" >&5
1378 echo "${ECHO_T}$AWK" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1384 test -n "$AWK" && break
1388 echo "$as_me:$LINENO: checking version of the package" >&5
1389 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1390 if test -f ${srcdir}/.version; then
1391 VERSION=`cat ${srcdir}/.version`
1392 elif test -f ../.version; then
1393 VERSION=`cat ../.version`
1397 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1398 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1399 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1401 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1402 echo "${ECHO_T}${VERSION}" >&6
1407 cat >>confdefs.h <<_ACEOF
1408 #define SDCC_VERSION_LO ${VERSIONLO}
1411 cat >>confdefs.h <<_ACEOF
1412 #define SDCC_VERSION_HI ${VERSIONHI}
1415 cat >>confdefs.h <<_ACEOF
1416 #define SDCC_VERSION_P ${VERSIONP}
1419 cat >>confdefs.h <<_ACEOF
1420 #define SDCC_VERSION_STR "${VERSION}"
1423 test "$program_prefix" != NONE &&
1424 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1425 # Use a double $ so make ignores it.
1426 test "$program_suffix" != NONE &&
1427 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1428 # Double any \ or $. echo might interpret backslashes.
1429 # By default was `s,x,x', remove it if useless.
1430 cat <<\_ACEOF >conftest.sed
1431 s/[\\$]/&&/g;s/;s,x,x,$//
1433 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1436 sdcc_cv_version=$VERSION
1437 sdcc_cv_versionhi=$VERSIONHI
1438 sdcc_cv_versionlo=$VERSIONLO
1439 sdcc_cv_versionp=$VERSIONP
1443 # ===========================================================================
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1449 if test -n "$ac_tool_prefix"; then
1450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1452 echo "$as_me:$LINENO: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 test -z "$as_dir" && as_dir=.
1465 for ac_exec_ext in '' $ac_executable_extensions; do
1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 if test -n "$CC"; then
1478 echo "$as_me:$LINENO: result: $CC" >&5
1479 echo "${ECHO_T}$CC" >&6
1481 echo "$as_me:$LINENO: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1486 if test -z "$ac_cv_prog_CC"; then
1488 # Extract the first word of "gcc", so it can be a program name with args.
1489 set dummy gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$ac_ct_CC"; then
1496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_ac_ct_CC="gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1515 if test -n "$ac_ct_CC"; then
1516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1517 echo "${ECHO_T}$ac_ct_CC" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1528 if test -z "$CC"; then
1529 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1531 set dummy ${ac_tool_prefix}cc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="${ac_tool_prefix}cc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1566 if test -z "$ac_cv_prog_CC"; then
1568 # Extract the first word of "cc", so it can be a program name with args.
1569 set dummy cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1609 if test -z "$CC"; then
1610 # Extract the first word of "cc", so it can be a program name with args.
1611 set dummy cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1629 ac_prog_rejected=yes
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 if test $ac_prog_rejected = yes; then
1640 # We found a bogon in the path, so make sure we never use it.
1641 set dummy $ac_cv_prog_CC
1643 if test $# != 0; then
1644 # We chose a different compiler from the bogus one.
1645 # However, it has the same basename, so the bogon will be chosen
1646 # first if we set CC to just the basename; use the full file name.
1648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1654 if test -n "$CC"; then
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$CC"; then
1664 if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 if test -n "$CC"; then
1695 echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1702 test -n "$CC" && break
1705 if test -z "$CC"; then
1709 # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="$ac_prog"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 test -n "$ac_ct_CC" && break
1753 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1754 See \`config.log' for more details." >&5
1755 echo "$as_me: error: no acceptable C compiler found in \$PATH
1756 See \`config.log' for more details." >&2;}
1757 { (exit 1); exit 1; }; }
1759 # Provide some information about the compiler.
1760 echo "$as_me:$LINENO:" \
1761 "checking for C compiler version" >&5
1762 ac_compiler=`set X $ac_compile; echo $2`
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1764 (eval $ac_compiler --version </dev/null >&5) 2>&5
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1769 (eval $ac_compiler -v </dev/null >&5) 2>&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1774 (eval $ac_compiler -V </dev/null >&5) 2>&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }
1779 cat >conftest.$ac_ext <<_ACEOF
1782 cat confdefs.h >>conftest.$ac_ext
1783 cat >>conftest.$ac_ext <<_ACEOF
1784 /* end confdefs.h. */
1794 ac_clean_files_save=$ac_clean_files
1795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1796 # Try to create an executable without -o first, disregard a.out.
1797 # It will help us diagnose broken compilers, and finding out an intuition
1799 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1802 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1803 (eval $ac_link_default) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 # Find the output, starting from the most likely. This scheme is
1808 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1811 # Be careful to initialize this variable, since it used to be cached.
1812 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1814 # b.out is created by i960 compilers.
1815 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1817 test -f "$ac_file" || continue
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1822 # This is the source file.
1825 # We found the default executable, but exeext='' is most
1829 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 # FIXME: I believe we export ac_cv_exeext for Libtool,
1831 # but it would be cool to find out if it's true. Does anybody
1832 # maintain Libtool? --akim.
1840 echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: C compiler cannot create executables
1846 See \`config.log' for more details." >&2;}
1847 { (exit 77); exit 77; }; }
1850 ac_exeext=$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_file" >&5
1852 echo "${ECHO_T}$ac_file" >&6
1854 # Check the compiler produces executables we can run. If not, either
1855 # the compiler is broken, or we cross compile.
1856 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1859 # If not cross compiling, check that we can run a simple program.
1860 if test "$cross_compiling" != yes; then
1861 if { ac_try='./$ac_file'
1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1869 if test "$cross_compiling" = maybe; then
1872 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'.
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1882 echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1885 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1886 ac_clean_files=$ac_clean_files_save
1887 # Check the compiler produces executables we can run. If not, either
1888 # the compiler is broken, or we cross compile.
1889 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1890 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1891 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1892 echo "${ECHO_T}$cross_compiling" >&6
1894 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1895 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1897 (eval $ac_link) 2>&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }; then
1901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1902 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1903 # work properly (i.e., refer to `conftest.exe'), while it won't with
1905 for ac_file in conftest.exe conftest conftest.*; do
1906 test -f "$ac_file" || continue
1908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1919 See \`config.log' for more details." >&2;}
1920 { (exit 1); exit 1; }; }
1923 rm -f conftest$ac_cv_exeext
1924 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1925 echo "${ECHO_T}$ac_cv_exeext" >&6
1927 rm -f conftest.$ac_ext
1928 EXEEXT=$ac_cv_exeext
1930 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1931 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1932 if test "${ac_cv_objext+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 cat >conftest.$ac_ext <<_ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1950 rm -f conftest.o conftest.obj
1951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1964 echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1968 See \`config.log' for more details." >&5
1969 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1970 See \`config.log' for more details." >&2;}
1971 { (exit 1); exit 1; }; }
1974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1976 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1977 echo "${ECHO_T}$ac_cv_objext" >&6
1978 OBJEXT=$ac_cv_objext
1980 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1981 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1982 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 cat >conftest.$ac_ext <<_ACEOF
1988 cat confdefs.h >>conftest.$ac_ext
1989 cat >>conftest.$ac_ext <<_ACEOF
1990 /* end confdefs.h. */
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005 (eval $ac_compile) 2>conftest.er1
2007 grep -v '^ *+' conftest.er1 >conftest.err
2009 cat conftest.err >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -z "$ac_c_werror_flag"
2013 || test ! -s conftest.err'
2014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; } &&
2019 { ac_try='test -s conftest.$ac_objext'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2027 echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2036 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2037 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2038 GCC=`test $ac_compiler_gnu = yes && echo yes`
2039 ac_test_CFLAGS=${CFLAGS+set}
2040 ac_save_CFLAGS=$CFLAGS
2042 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2044 if test "${ac_cv_prog_cc_g+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 cat >conftest.$ac_ext <<_ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h. */
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>conftest.er1
2066 grep -v '^ *+' conftest.er1 >conftest.err
2068 cat conftest.err >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); } &&
2071 { ac_try='test -z "$ac_c_werror_flag"
2072 || test ! -s conftest.err'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; } &&
2078 { ac_try='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2095 if test "$ac_test_CFLAGS" = set; then
2096 CFLAGS=$ac_save_CFLAGS
2097 elif test $ac_cv_prog_cc_g = yes; then
2098 if test "$GCC" = yes; then
2104 if test "$GCC" = yes; then
2110 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 ac_cv_prog_cc_stdc=no
2117 cat >conftest.$ac_ext <<_ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2125 #include <sys/types.h>
2126 #include <sys/stat.h>
2127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2128 struct buf { int x; };
2129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2130 static char *e (p, i)
2136 static char *f (char * (*g) (char **, int), char **p, ...)
2141 s = g (p, va_arg (v,int));
2146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2147 function prototypes and stuff, but not '\xHH' hex character constants.
2148 These don't provoke an error unfortunately, instead are silently treated
2149 as 'x'. The following induces an error, until -std1 is added to get
2150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2151 array size at least. It's necessary to write '\x00'==0 to get something
2152 that's true only with -std1. */
2153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX -qlanglvl=ansi
2172 # Ultrix and OSF/1 -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions -Aa -D_HPUX_SOURCE
2175 # SVR4 -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178 CC="$ac_save_CC $ac_arg"
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2183 grep -v '^ *+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 ac_cv_prog_cc_stdc=$ac_arg
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2208 rm -f conftest.err conftest.$ac_objext
2210 rm -f conftest.$ac_ext conftest.$ac_objext
2215 case "x$ac_cv_prog_cc_stdc" in
2217 echo "$as_me:$LINENO: result: none needed" >&5
2218 echo "${ECHO_T}none needed" >&6 ;;
2220 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2222 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 # Some people use a C++ compiler to compile C. Since we use `exit',
2226 # in C++ we need to declare it. In case someone uses the same compiler
2227 # for both compiling C and C++ we need to have the C++ compiler decide
2228 # the declaration of exit, since it's the most demanding environment.
2229 cat >conftest.$ac_ext <<_ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>conftest.er1
2238 grep -v '^ *+' conftest.er1 >conftest.err
2240 cat conftest.err >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -z "$ac_c_werror_flag"
2244 || test ! -s conftest.err'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2256 for ac_declaration in \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1 >conftest.err
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2329 grep -v '^ *+' conftest.er1 >conftest.err
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 if test -n "$ac_declaration"; then
2357 echo '#ifdef __cplusplus' >>confdefs.h
2358 echo $ac_declaration >>confdefs.h
2359 echo '#endif' >>confdefs.h
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2380 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2381 # On Suns, sometimes $CPP names a directory.
2382 if test -n "$CPP" && test -d "$CPP"; then
2385 if test -z "$CPP"; then
2386 if test "${ac_cv_prog_CPP+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 # Double quotes because CPP needs to be expanded
2390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2393 for ac_c_preproc_warn_flag in '' yes
2395 # Use a header file that comes with gcc, so configuring glibc
2396 # with a fresh cross-compiler works.
2397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2398 # <limits.h> exists even on freestanding compilers.
2399 # On the NeXT, cc -E runs the code through the compiler's parser,
2400 # not just through cpp. "Syntax error" is here to catch this case.
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2408 # include <limits.h>
2410 # include <assert.h>
2414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } >/dev/null; then
2422 if test -s conftest.err; then
2423 ac_cpp_err=$ac_c_preproc_warn_flag
2424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431 if test -z "$ac_cpp_err"; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 # Broken: fails on valid input.
2440 rm -f conftest.err conftest.$ac_ext
2442 # OK, works on sane cases. Now check whether non-existent headers
2443 # can be detected and how.
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <ac_nonexistent.h>
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 if test -z "$ac_cpp_err"; then
2470 # Broken: success on invalid input.
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 # Passes both tests.
2480 rm -f conftest.err conftest.$ac_ext
2483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2484 rm -f conftest.err conftest.$ac_ext
2485 if $ac_preproc_ok; then
2497 echo "$as_me:$LINENO: result: $CPP" >&5
2498 echo "${ECHO_T}$CPP" >&6
2500 for ac_c_preproc_warn_flag in '' yes
2502 # Use a header file that comes with gcc, so configuring glibc
2503 # with a fresh cross-compiler works.
2504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2505 # <limits.h> exists even on freestanding compilers.
2506 # On the NeXT, cc -E runs the code through the compiler's parser,
2507 # not just through cpp. "Syntax error" is here to catch this case.
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2515 # include <limits.h>
2517 # include <assert.h>
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } >/dev/null; then
2529 if test -s conftest.err; then
2530 ac_cpp_err=$ac_c_preproc_warn_flag
2531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538 if test -z "$ac_cpp_err"; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 # Broken: fails on valid input.
2547 rm -f conftest.err conftest.$ac_ext
2549 # OK, works on sane cases. Now check whether non-existent headers
2550 # can be detected and how.
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557 #include <ac_nonexistent.h>
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } >/dev/null; then
2567 if test -s conftest.err; then
2568 ac_cpp_err=$ac_c_preproc_warn_flag
2569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 if test -z "$ac_cpp_err"; then
2577 # Broken: success on invalid input.
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 # Passes both tests.
2587 rm -f conftest.err conftest.$ac_ext
2590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2591 rm -f conftest.err conftest.$ac_ext
2592 if $ac_preproc_ok; then
2595 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2598 See \`config.log' for more details." >&2;}
2599 { (exit 1); exit 1; }; }
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2610 if test -f $ac_dir/install-sh; then
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2614 elif test -f $ac_dir/install.sh; then
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2618 elif test -f $ac_dir/shtool; then
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2624 if test -z "$ac_aux_dir"; then
2625 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2626 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2627 { (exit 1); exit 1; }; }
2629 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2630 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2631 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2647 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2648 if test -z "$INSTALL"; then
2649 if test "${ac_cv_path_install+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2659 ./ | .// | /cC/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2664 # OSF1 and SCO ODT 3.0 have their own names for install.
2665 # Don't use installbsd from OSF since it installs stuff as root
2667 for ac_prog in ginstall scoinst install; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2670 if test $ac_prog = install &&
2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # AIX install. It has an incompatible calling convention.
2674 elif test $ac_prog = install &&
2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # program-specific install script used by HP pwplus--don't use.
2679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2691 if test "${ac_cv_path_install+set}" = set; then
2692 INSTALL=$ac_cv_path_install
2694 # As a last resort, use the slow shell script. We don't cache a
2695 # path for INSTALL within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the path is relative.
2698 INSTALL=$ac_install_sh
2701 echo "$as_me:$LINENO: result: $INSTALL" >&5
2702 echo "${ECHO_T}$INSTALL" >&6
2704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705 # It thinks the first close brace ends the variable substitution.
2706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_RANLIB+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$RANLIB"; then
2721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 RANLIB=$ac_cv_prog_RANLIB
2740 if test -n "$RANLIB"; then
2741 echo "$as_me:$LINENO: result: $RANLIB" >&5
2742 echo "${ECHO_T}$RANLIB" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_RANLIB"; then
2750 ac_ct_RANLIB=$RANLIB
2751 # Extract the first word of "ranlib", so it can be a program name with args.
2752 set dummy ranlib; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_RANLIB"; then
2759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_RANLIB="ranlib"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2779 if test -n "$ac_ct_RANLIB"; then
2780 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 RANLIB=$ac_ct_RANLIB
2789 RANLIB="$ac_cv_prog_RANLIB"
2793 for ac_prog in flex lex
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_LEX+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$LEX"; then
2803 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_LEX="$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$LEX"; then
2823 echo "$as_me:$LINENO: result: $LEX" >&5
2824 echo "${ECHO_T}$LEX" >&6
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2830 test -n "$LEX" && break
2832 test -n "$LEX" || LEX=":"
2834 if test -z "$LEXLIB"
2836 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2837 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2838 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 ac_check_lib_save_LIBS=$LIBS
2843 cat >conftest.$ac_ext <<_ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2850 /* Override any gcc2 internal prototype to avoid an error. */
2854 /* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2865 rm -f conftest.$ac_objext conftest$ac_exeext
2866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867 (eval $ac_link) 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -z "$ac_c_werror_flag"
2875 || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_lib_fl_yywrap=yes
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 ac_cv_lib_fl_yywrap=no
2894 rm -f conftest.err conftest.$ac_objext \
2895 conftest$ac_exeext conftest.$ac_ext
2896 LIBS=$ac_check_lib_save_LIBS
2898 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2899 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2900 if test $ac_cv_lib_fl_yywrap = yes; then
2903 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2904 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2905 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 ac_check_lib_save_LIBS=$LIBS
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2932 rm -f conftest.$ac_objext conftest$ac_exeext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2934 (eval $ac_link) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest$ac_exeext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_cv_lib_l_yywrap=yes
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_cv_lib_l_yywrap=no
2961 rm -f conftest.err conftest.$ac_objext \
2962 conftest$ac_exeext conftest.$ac_ext
2963 LIBS=$ac_check_lib_save_LIBS
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2966 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2967 if test $ac_cv_lib_l_yywrap = yes; then
2975 if test "x$LEX" != "x:"; then
2976 echo "$as_me:$LINENO: checking lex output file root" >&5
2977 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2978 if test "${ac_cv_prog_lex_root+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 # The minimal lex program is just a single line: %%. But some broken lexes
2982 # (Solaris, I think it was) want two %% lines, so accommodate them.
2983 cat >conftest.l <<_ACEOF
2987 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2988 (eval $LEX conftest.l) 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 if test -f lex.yy.c; then
2993 ac_cv_prog_lex_root=lex.yy
2994 elif test -f lexyy.c; then
2995 ac_cv_prog_lex_root=lexyy
2997 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2998 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2999 { (exit 1); exit 1; }; }
3002 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3003 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3005 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3007 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3008 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3009 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 # POSIX says lex can declare yytext either as a pointer or an array; the
3013 # default is implementation-dependent. Figure out which it is, since
3014 # not all implementations provide the %pointer and %array declarations.
3015 ac_cv_prog_lex_yytext_pointer=no
3016 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3018 LIBS="$LIBS $LEXLIB"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 `cat $LEX_OUTPUT_ROOT.c`
3022 rm -f conftest.$ac_objext conftest$ac_exeext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024 (eval $ac_link) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest$ac_exeext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_lex_yytext_pointer=yes
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 rm -f conftest.err conftest.$ac_objext \
3051 conftest$ac_exeext conftest.$ac_ext
3053 rm -f "${LEX_OUTPUT_ROOT}.c"
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3057 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3058 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3060 cat >>confdefs.h <<\_ACEOF
3061 #define YYTEXT_POINTER 1
3067 for ac_prog in 'bison -y' byacc
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073 if test "${ac_cv_prog_YACC+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 if test -n "$YACC"; then
3077 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_YACC="$ac_prog"
3087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 YACC=$ac_cv_prog_YACC
3096 if test -n "$YACC"; then
3097 echo "$as_me:$LINENO: result: $YACC" >&5
3098 echo "${ECHO_T}$YACC" >&6
3100 echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3104 test -n "$YACC" && break
3106 test -n "$YACC" || YACC="yacc"
3108 # Extract the first word of "autoconf", so it can be a program name with args.
3109 set dummy autoconf; 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_AUTOCONF+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$AUTOCONF"; then
3116 ac_cv_prog_AUTOCONF="$AUTOCONF" # 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_AUTOCONF="autoconf"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3135 AUTOCONF=$ac_cv_prog_AUTOCONF
3136 if test -n "$AUTOCONF"; then
3137 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3138 echo "${ECHO_T}$AUTOCONF" >&6
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3144 # Extract the first word of "strip", so it can be a program name with args.
3145 set dummy strip; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_STRIP+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test -n "$STRIP"; then
3152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_STRIP="strip"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3171 STRIP=$ac_cv_prog_STRIP
3172 if test -n "$STRIP"; then
3173 echo "$as_me:$LINENO: result: $STRIP" >&5
3174 echo "${ECHO_T}$STRIP" >&6
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3180 # Extract the first word of "as", so it can be a program name with args.
3181 set dummy as; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_AS+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$AS"; then
3188 ac_cv_prog_AS="$AS" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3208 if test -n "$AS"; then
3209 echo "$as_me:$LINENO: result: $AS" >&5
3210 echo "${ECHO_T}$AS" >&6
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3216 # Extract the first word of "cp", so it can be a program name with args.
3217 set dummy cp; ac_word=$2
3218 echo "$as_me:$LINENO: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_prog_CP+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if test -n "$CP"; then
3224 ac_cv_prog_CP="$CP" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3244 if test -n "$CP"; then
3245 echo "$as_me:$LINENO: result: $CP" >&5
3246 echo "${ECHO_T}$CP" >&6
3248 echo "$as_me:$LINENO: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3255 if test "$YACC" = ":"; then
3256 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3257 echo "$as_me: error: Cannot find required program bison." >&2;}
3258 { (exit 1); exit 1; }; }
3261 if test "$LEX" = ":"; then
3262 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3263 echo "$as_me: error: Cannot find required program lex." >&2;}
3264 { (exit 1); exit 1; }; }
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 # Checking for functions
3277 # ===========================================================================
3279 for ac_func in strerror
3281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3282 echo "$as_me:$LINENO: checking for $ac_func" >&5
3283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3284 if eval "test \"\${$as_ac_var+set}\" = set"; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3295 #define $ac_func innocuous_$ac_func
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func (); below.
3299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 <limits.h> exists even on freestanding compilers. */
3303 # include <limits.h>
3305 # include <assert.h>
3310 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3318 /* The GNU C library defines this for functions which it implements
3319 to always fail with ENOSYS. Some functions are actually named
3320 something starting with __ and the normal name is an alias. */
3321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 char (*f) () = $ac_func;
3333 return f != $ac_func;
3338 rm -f conftest.$ac_objext conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340 (eval $ac_link) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1 >conftest.err
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 eval "$as_ac_var=yes"
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 eval "$as_ac_var=no"
3367 rm -f conftest.err conftest.$ac_objext \
3368 conftest$ac_exeext conftest.$ac_ext
3370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3372 if test `eval echo '${'$as_ac_var'}'` = yes; then
3373 cat >>confdefs.h <<_ACEOF
3374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3384 for ac_func in vsnprintf snprintf vsprintf mkstemp
3386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3387 echo "$as_me:$LINENO: checking for $ac_func" >&5
3388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3389 if eval "test \"\${$as_ac_var+set}\" = set"; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3400 #define $ac_func innocuous_$ac_func
3402 /* System header to define __stub macros and hopefully few prototypes,
3403 which can conflict with char $ac_func (); below.
3404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 <limits.h> exists even on freestanding compilers. */
3408 # include <limits.h>
3410 # include <assert.h>
3415 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3429 char (*f) () = $ac_func;
3438 return f != $ac_func;
3443 rm -f conftest.$ac_objext conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest$ac_exeext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 eval "$as_ac_var=yes"
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 eval "$as_ac_var=no"
3472 rm -f conftest.err conftest.$ac_objext \
3473 conftest$ac_exeext conftest.$ac_ext
3475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3477 if test `eval echo '${'$as_ac_var'}'` = yes; then
3478 cat >>confdefs.h <<_ACEOF
3479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3488 # ===========================================================================
3490 # adl_DD_COPT macro checks if the compiler specified as the 1st parameter
3491 # supports option specified as the 2nd parameter
3492 # For example: DD_CPORT(CXX, fPIC)
3496 # This macro expands DIR and assigns it to RET.
3497 # If DIR is NONE, then it's replaced by DEFAULT.
3499 # Based on AC_DEFINE_DIR
3503 # adl_EXPAND(prefix, "/usr/local", expanded_prefix)
3507 # adl_NORMALIZE_PATH
3509 # - empty paths are changed to '.'
3510 # - trailing slashes are removed
3511 # - repeated slashes are squeezed except a leading doubled slash '//'
3512 # (which might indicate a networked disk on some OS).
3515 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
3516 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
3517 # are turned into backslashes, otherwise they are all turned into slashes.
3519 # This makes processing of DOS filenames quite easier, because you can turn a
3520 # filename to the Unix notation, make your processing, and turn it back to
3521 # original notation.
3526 # adl_COMPUTE_RELATIVE_PATH
3528 # PATH_LIST is a space-separated list of colon-separated triplets of the form
3529 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
3530 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
3531 # absolute filenames for this macro to success.
3537 ## The following helper macros are too fragile to be used out
3538 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
3539 ## paths are normalized), that's why I'm keeping them in the same file.
3540 ## Still, some of them maybe worth to reuse.
3558 # Checking characteristics of compilers and other programs
3559 # ===========================================================================
3560 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
3561 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
3562 if test "${sdcc_cv_MM+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 echo "#include <stdio.h>" >_test_.c
3567 $CPP -v -MM _test_.c 1>&5 2>&5
3568 if test "$?" = "0"; then
3575 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
3576 echo "${ECHO_T}$sdcc_cv_MM" >&6
3580 # This is the first time when CFLAGS are set/modified!!
3582 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
3583 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
3584 if test "${sdcc_cv_CCggdb+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 $CC -v -ggdb -c _test_.c 1>&5 2>&5
3592 if test "$?" = "0"; then
3593 sdcc_cv_CCggdb="yes"
3597 rm -f _test_.* a.out
3599 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
3600 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
3602 if test "$sdcc_cv_CCggdb" = "yes"; then
3603 CFLAGS="-ggdb ${CFLAGS}"
3607 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
3608 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
3609 if test "${sdcc_cv_CCpipe+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 $CC -v -pipe -c _test_.c 1>&5 2>&5
3617 if test "$?" = "0"; then
3618 sdcc_cv_CCpipe="yes"
3622 rm -f _test_.* a.out
3624 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
3625 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
3627 if test "$sdcc_cv_CCpipe" = "yes"; then
3628 CFLAGS="-pipe $CFLAGS"
3632 # Checks for typedefs, structures, and compiler characteristics.
3633 # ===========================================================================
3634 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3635 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3636 if test "${ac_cv_type_signal+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <sys/types.h>
3651 extern "C" void (*signal (int, void (*)(int)))(int);
3653 void (*signal ()) ();
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -z "$ac_c_werror_flag"
3674 || test ! -s conftest.err'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_cv_type_signal=void
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 ac_cv_type_signal=int
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3696 echo "${ECHO_T}$ac_cv_type_signal" >&6
3698 cat >>confdefs.h <<_ACEOF
3699 #define RETSIGTYPE $ac_cv_type_signal
3705 echo "$as_me:$LINENO: checking for egrep" >&5
3706 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3707 if test "${ac_cv_prog_egrep+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3711 then ac_cv_prog_egrep='grep -E'
3712 else ac_cv_prog_egrep='egrep'
3715 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3716 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3717 EGREP=$ac_cv_prog_egrep
3720 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3721 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3722 if test "${ac_cv_header_stdc+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_cv_header_stdc=yes
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ac_cv_header_stdc=no
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 if test $ac_cv_header_stdc = yes; then
3776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3787 $EGREP "memchr" >/dev/null 2>&1; then
3790 ac_cv_header_stdc=no
3796 if test $ac_cv_header_stdc = yes; then
3797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then
3811 ac_cv_header_stdc=no
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 #if ((' ' & 0x0FF) == 0x020)
3830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3833 # define ISLOWER(c) \
3834 (('a' <= (c) && (c) <= 'i') \
3835 || ('j' <= (c) && (c) <= 'r') \
3836 || ('s' <= (c) && (c) <= 'z'))
3837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3845 for (i = 0; i < 256; i++)
3846 if (XOR (islower (i), ISLOWER (i))
3847 || toupper (i) != TOUPPER (i))
3852 rm -f conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3865 echo "$as_me: program exited with status $ac_status" >&5
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3877 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3878 if test $ac_cv_header_stdc = yes; then
3880 cat >>confdefs.h <<\_ACEOF
3881 #define STDC_HEADERS 1
3886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3897 inttypes.h stdint.h unistd.h
3899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3900 echo "$as_me:$LINENO: checking for $ac_header" >&5
3901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 $ac_includes_default
3913 #include <$ac_header>
3915 rm -f conftest.$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917 (eval $ac_compile) 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try='test -z "$ac_c_werror_flag"
3925 || test ! -s conftest.err'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 eval "$as_ac_Header=yes"
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 eval "$as_ac_Header=no"
3944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3958 echo "$as_me:$LINENO: checking for char" >&5
3959 echo $ECHO_N "checking for char... $ECHO_C" >&6
3960 if test "${ac_cv_type_char+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 $ac_includes_default
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4012 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4013 echo "${ECHO_T}$ac_cv_type_char" >&6
4015 echo "$as_me:$LINENO: checking size of char" >&5
4016 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4017 if test "${ac_cv_sizeof_char+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if test "$ac_cv_type_char" = yes; then
4021 # The cast to unsigned long works around a bug in the HP C Compiler
4022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4024 # This bug is HP SR number 8606223364.
4025 if test "$cross_compiling" = yes; then
4026 # Depending upon the size, compute the lo and hi bounds.
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4033 $ac_includes_default
4037 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4078 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_hi=$ac_mid; break
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_lo=`expr $ac_mid + 1`
4113 if test $ac_lo -le $ac_mid; then
4117 ac_mid=`expr 2 '*' $ac_mid + 1`
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4135 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4142 rm -f conftest.$ac_objext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 $ac_includes_default
4176 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4183 rm -f conftest.$ac_objext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag"
4193 || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_lo=$ac_mid; break
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_hi=`expr '(' $ac_mid ')' - 1`
4211 if test $ac_mid -le $ac_hi; then
4215 ac_mid=`expr 2 '*' $ac_mid`
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 # Binary search between lo and hi bounds.
4229 while test "x$ac_lo" != "x$ac_hi"; do
4230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4241 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_lo=`expr '(' $ac_mid ')' + 1`
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4280 ?*) ac_cv_sizeof_char=$ac_lo;;
4281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4282 See \`config.log' for more details." >&5
4283 echo "$as_me: error: cannot compute sizeof (char), 77
4284 See \`config.log' for more details." >&2;}
4285 { (exit 1); exit 1; }; } ;;
4288 if test "$cross_compiling" = yes; then
4289 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4290 See \`config.log' for more details." >&5
4291 echo "$as_me: error: cannot run test program while cross compiling
4292 See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 long longval () { return (long) (sizeof (char)); }
4303 unsigned long ulongval () { return (long) (sizeof (char)); }
4310 FILE *f = fopen ("conftest.val", "w");
4313 if (((long) (sizeof (char))) < 0)
4315 long i = longval ();
4316 if (i != ((long) (sizeof (char))))
4318 fprintf (f, "%ld\n", i);
4322 unsigned long i = ulongval ();
4323 if (i != ((long) (sizeof (char))))
4325 fprintf (f, "%lu\n", i);
4327 exit (ferror (f) || fclose (f) != 0);
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_sizeof_char=`cat conftest.val`
4346 echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4352 See \`config.log' for more details." >&5
4353 echo "$as_me: error: cannot compute sizeof (char), 77
4354 See \`config.log' for more details." >&2;}
4355 { (exit 1); exit 1; }; }
4357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4366 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4367 cat >>confdefs.h <<_ACEOF
4368 #define SIZEOF_CHAR $ac_cv_sizeof_char
4372 echo "$as_me:$LINENO: checking for short" >&5
4373 echo $ECHO_N "checking for short... $ECHO_C" >&6
4374 if test "${ac_cv_type_short+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 $ac_includes_default
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag"
4405 || test ! -s conftest.err'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_type_short=yes
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4427 echo "${ECHO_T}$ac_cv_type_short" >&6
4429 echo "$as_me:$LINENO: checking size of short" >&5
4430 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4431 if test "${ac_cv_sizeof_short+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test "$ac_cv_type_short" = yes; then
4435 # The cast to unsigned long works around a bug in the HP C Compiler
4436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4438 # This bug is HP SR number 8606223364.
4439 if test "$cross_compiling" = yes; then
4440 # Depending upon the size, compute the lo and hi bounds.
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 $ac_includes_default
4451 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 $ac_includes_default
4492 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -z "$ac_c_werror_flag"
4509 || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_hi=$ac_mid; break
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_lo=`expr $ac_mid + 1`
4527 if test $ac_lo -le $ac_mid; then
4531 ac_mid=`expr 2 '*' $ac_mid + 1`
4533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4549 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 $ac_includes_default
4590 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_lo=$ac_mid; break
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_hi=`expr '(' $ac_mid ')' - 1`
4625 if test $ac_mid -le $ac_hi; then
4629 ac_mid=`expr 2 '*' $ac_mid`
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 # Binary search between lo and hi bounds.
4643 while test "x$ac_lo" != "x$ac_hi"; do
4644 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4655 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 ac_lo=`expr '(' $ac_mid ')' + 1`
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ?*) ac_cv_sizeof_short=$ac_lo;;
4695 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute sizeof (short), 77
4698 See \`config.log' for more details." >&2;}
4699 { (exit 1); exit 1; }; } ;;
4702 if test "$cross_compiling" = yes; then
4703 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4704 See \`config.log' for more details." >&5
4705 echo "$as_me: error: cannot run test program while cross compiling
4706 See \`config.log' for more details." >&2;}
4707 { (exit 1); exit 1; }; }
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 $ac_includes_default
4716 long longval () { return (long) (sizeof (short)); }
4717 unsigned long ulongval () { return (long) (sizeof (short)); }
4724 FILE *f = fopen ("conftest.val", "w");
4727 if (((long) (sizeof (short))) < 0)
4729 long i = longval ();
4730 if (i != ((long) (sizeof (short))))
4732 fprintf (f, "%ld\n", i);
4736 unsigned long i = ulongval ();
4737 if (i != ((long) (sizeof (short))))
4739 fprintf (f, "%lu\n", i);
4741 exit (ferror (f) || fclose (f) != 0);
4747 rm -f conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_sizeof_short=`cat conftest.val`
4760 echo "$as_me: program exited with status $ac_status" >&5
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: cannot compute sizeof (short), 77
4768 See \`config.log' for more details." >&2;}
4769 { (exit 1); exit 1; }; }
4771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 ac_cv_sizeof_short=0
4779 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4780 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4781 cat >>confdefs.h <<_ACEOF
4782 #define SIZEOF_SHORT $ac_cv_sizeof_short
4786 echo "$as_me:$LINENO: checking for int" >&5
4787 echo $ECHO_N "checking for int... $ECHO_C" >&6
4788 if test "${ac_cv_type_int+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4841 echo "${ECHO_T}$ac_cv_type_int" >&6
4843 echo "$as_me:$LINENO: checking size of int" >&5
4844 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4845 if test "${ac_cv_sizeof_int+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if test "$ac_cv_type_int" = yes; then
4849 # The cast to unsigned long works around a bug in the HP C Compiler
4850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4852 # This bug is HP SR number 8606223364.
4853 if test "$cross_compiling" = yes; then
4854 # Depending upon the size, compute the lo and hi bounds.
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 $ac_includes_default
4865 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest.$ac_objext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 $ac_includes_default
4906 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag"
4923 || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 ac_hi=$ac_mid; break
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 ac_lo=`expr $ac_mid + 1`
4941 if test $ac_lo -le $ac_mid; then
4945 ac_mid=`expr 2 '*' $ac_mid + 1`
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 $ac_includes_default
4963 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_lo=$ac_mid; break
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 ac_hi=`expr '(' $ac_mid ')' - 1`
5039 if test $ac_mid -le $ac_hi; then
5043 ac_mid=`expr 2 '*' $ac_mid`
5045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 # Binary search between lo and hi bounds.
5057 while test "x$ac_lo" != "x$ac_hi"; do
5058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5069 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_lo=`expr '(' $ac_mid ')' + 1`
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ?*) ac_cv_sizeof_int=$ac_lo;;
5109 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5110 See \`config.log' for more details." >&5
5111 echo "$as_me: error: cannot compute sizeof (int), 77
5112 See \`config.log' for more details." >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 if test "$cross_compiling" = yes; then
5117 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot run test program while cross compiling
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5130 long longval () { return (long) (sizeof (int)); }
5131 unsigned long ulongval () { return (long) (sizeof (int)); }
5138 FILE *f = fopen ("conftest.val", "w");
5141 if (((long) (sizeof (int))) < 0)
5143 long i = longval ();
5144 if (i != ((long) (sizeof (int))))
5146 fprintf (f, "%ld\n", i);
5150 unsigned long i = ulongval ();
5151 if (i != ((long) (sizeof (int))))
5153 fprintf (f, "%lu\n", i);
5155 exit (ferror (f) || fclose (f) != 0);
5161 rm -f conftest$ac_exeext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163 (eval $ac_link) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_sizeof_int=`cat conftest.val`
5174 echo "$as_me: program exited with status $ac_status" >&5
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5179 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: cannot compute sizeof (int), 77
5182 See \`config.log' for more details." >&2;}
5183 { (exit 1); exit 1; }; }
5185 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5193 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5194 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5195 cat >>confdefs.h <<_ACEOF
5196 #define SIZEOF_INT $ac_cv_sizeof_int
5200 echo "$as_me:$LINENO: checking for long" >&5
5201 echo $ECHO_N "checking for long... $ECHO_C" >&6
5202 if test "${ac_cv_type_long+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 $ac_includes_default
5223 rm -f conftest.$ac_objext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5225 (eval $ac_compile) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1 >conftest.err
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest.$ac_objext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5254 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5255 echo "${ECHO_T}$ac_cv_type_long" >&6
5257 echo "$as_me:$LINENO: checking size of long" >&5
5258 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5259 if test "${ac_cv_sizeof_long+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 if test "$ac_cv_type_long" = yes; then
5263 # The cast to unsigned long works around a bug in the HP C Compiler
5264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5266 # This bug is HP SR number 8606223364.
5267 if test "$cross_compiling" = yes; then
5268 # Depending upon the size, compute the lo and hi bounds.
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5279 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 $ac_includes_default
5320 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5327 rm -f conftest.$ac_objext
5328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329 (eval $ac_compile) 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_hi=$ac_mid; break
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_lo=`expr $ac_mid + 1`
5355 if test $ac_lo -le $ac_mid; then
5359 ac_mid=`expr 2 '*' $ac_mid + 1`
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5377 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag"
5394 || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5429 grep -v '^ *+' conftest.er1 >conftest.err
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_lo=$ac_mid; break
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_hi=`expr '(' $ac_mid ')' - 1`
5453 if test $ac_mid -le $ac_hi; then
5457 ac_mid=`expr 2 '*' $ac_mid`
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 # Binary search between lo and hi bounds.
5471 while test "x$ac_lo" != "x$ac_hi"; do
5472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5483 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -z "$ac_c_werror_flag"
5500 || test ! -s conftest.err'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 ac_lo=`expr '(' $ac_mid ')' + 1`
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5522 ?*) ac_cv_sizeof_long=$ac_lo;;
5523 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5524 See \`config.log' for more details." >&5
5525 echo "$as_me: error: cannot compute sizeof (long), 77
5526 See \`config.log' for more details." >&2;}
5527 { (exit 1); exit 1; }; } ;;
5530 if test "$cross_compiling" = yes; then
5531 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5532 See \`config.log' for more details." >&5
5533 echo "$as_me: error: cannot run test program while cross compiling
5534 See \`config.log' for more details." >&2;}
5535 { (exit 1); exit 1; }; }
5537 cat >conftest.$ac_ext <<_ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 $ac_includes_default
5544 long longval () { return (long) (sizeof (long)); }
5545 unsigned long ulongval () { return (long) (sizeof (long)); }
5552 FILE *f = fopen ("conftest.val", "w");
5555 if (((long) (sizeof (long))) < 0)
5557 long i = longval ();
5558 if (i != ((long) (sizeof (long))))
5560 fprintf (f, "%ld\n", i);
5564 unsigned long i = ulongval ();
5565 if (i != ((long) (sizeof (long))))
5567 fprintf (f, "%lu\n", i);
5569 exit (ferror (f) || fclose (f) != 0);
5575 rm -f conftest$ac_exeext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5586 ac_cv_sizeof_long=`cat conftest.val`
5588 echo "$as_me: program exited with status $ac_status" >&5
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5594 See \`config.log' for more details." >&5
5595 echo "$as_me: error: cannot compute sizeof (long), 77
5596 See \`config.log' for more details." >&2;}
5597 { (exit 1); exit 1; }; }
5599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5608 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5609 cat >>confdefs.h <<_ACEOF
5610 #define SIZEOF_LONG $ac_cv_sizeof_long
5615 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5616 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5617 if test "${ac_cv_c_char_unsigned+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5630 static int test_array [1 - 2 * !(((char) -1) < 0)];
5637 rm -f conftest.$ac_objext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_c_werror_flag"
5647 || test ! -s conftest.err'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest.$ac_objext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_c_char_unsigned=no
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_cv_c_char_unsigned=yes
5666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5669 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5670 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672 #define __CHAR_UNSIGNED__ 1
5680 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5684 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5688 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5692 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5699 echo "$as_me:$LINENO: checking type name for byte" >&5
5700 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5701 TYPE_CHAR=`type_name 1`
5702 if test "$ac_cv_c_char_unsigned" = "yes"; then
5703 TYPE_BYTE="signed $TYPE_CHAR"
5705 TYPE_BYTE=$TYPE_CHAR
5707 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5708 echo "${ECHO_T}$TYPE_BYTE" >&6
5709 echo "$as_me:$LINENO: checking type name for word" >&5
5710 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5711 TYPE_WORD=`type_name 2`
5712 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5713 echo "${ECHO_T}$TYPE_WORD" >&6
5714 echo "$as_me:$LINENO: checking type name for dword" >&5
5715 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5716 TYPE_DWORD=`type_name 4`
5717 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5718 echo "${ECHO_T}$TYPE_DWORD" >&6
5720 cat >>confdefs.h <<_ACEOF
5721 #define TYPE_BYTE $TYPE_BYTE
5724 cat >>confdefs.h <<_ACEOF
5725 #define TYPE_WORD $TYPE_WORD
5728 cat >>confdefs.h <<_ACEOF
5729 #define TYPE_DWORD $TYPE_DWORD
5733 cat >>confdefs.h <<_ACEOF
5734 #define TYPE_UBYTE unsigned $TYPE_CHAR
5737 cat >>confdefs.h <<_ACEOF
5738 #define TYPE_UWORD unsigned $TYPE_WORD
5741 cat >>confdefs.h <<_ACEOF
5742 #define TYPE_UDWORD unsigned $TYPE_DWORD
5746 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5747 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5748 if test "${ac_cv_c_bigendian+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 # See if sys/param.h defines the BYTE_ORDER macro.
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 #include <sys/param.h>
5764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest.$ac_objext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 # It does; now see whether it defined to BIG_ENDIAN or not.
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 #include <sys/param.h>
5807 #if BYTE_ORDER != BIG_ENDIAN
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_cv_c_bigendian=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_cv_c_bigendian=no
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 # It does not; compile a test program.
5850 if test "$cross_compiling" = yes; then
5851 # try to guess the endianness by grepping values into an object file
5852 ac_cv_c_bigendian=unknown
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5860 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5861 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5862 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5863 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5864 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5868 _ascii (); _ebcdic ();
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5896 ac_cv_c_bigendian=yes
5898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5899 if test "$ac_cv_c_bigendian" = unknown; then
5900 ac_cv_c_bigendian=no
5902 # finding both strings is unlikely to happen, but who knows?
5903 ac_cv_c_bigendian=unknown
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5922 /* Are we little or big endian? From Harbison&Steele. */
5926 char c[sizeof (long)];
5929 exit (u.c[sizeof (long) - 1] == 1);
5932 rm -f conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_c_bigendian=no
5945 echo "$as_me: program exited with status $ac_status" >&5
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5950 ac_cv_c_bigendian=yes
5952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5958 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5959 case $ac_cv_c_bigendian in
5962 cat >>confdefs.h <<\_ACEOF
5963 #define WORDS_BIGENDIAN 1
5969 { { echo "$as_me:$LINENO: error: unknown endianness
5970 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5971 echo "$as_me: error: unknown endianness
5972 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5973 { (exit 1); exit 1; }; } ;;
5977 # Set standard installation paths
5978 # ===========================================================================
5980 # In the Makefiles we need paths with '/' as directory separator, even if
5981 # crosscompiling for Win32.
5982 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5983 # The variables in the Makefiles are replaced by AC_SUBST()
5985 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5987 # The macros are expanded for the header.
5988 # The variables in the header are replaced by AC_*DEFINE*()
5989 # sdccconf_h_dir_separator contains a backslash.
5991 if test "x${sdccconf_h_dir_separator}" = "x"; then
5992 sdccconf_h_dir_separator="/"
5998 # include_dir_suffix:
5999 # *nix default: "sdcc/include"
6002 if test "${include_dir_suffix}" = ""; then
6003 include_dir_suffix="sdcc/include"
6008 # *nix default: "sdcc/lib"
6010 if test "${lib_dir_suffix}" = ""; then
6011 lib_dir_suffix="sdcc/lib"
6016 # *nix default: "${datadir}/sdcc/doc"
6018 if test "${docdir}" = ""; then
6019 docdir="\${datadir}"/sdcc/doc
6028 cat >>confdefs.h <<_ACEOF
6029 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
6032 cat >>confdefs.h <<_ACEOF
6033 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
6038 # default: "NONE", ${ac_default_prefix}: "/usr/local"
6040 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6043 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
6044 ac_expand=`eval echo $ac_expand`
6045 expanded_prefix=`eval echo $ac_expand`
6048 ac_ndu=$expanded_prefix
6051 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6054 case $sdccconf_h_dir_separator in
6056 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6057 s,^[\\/],\\\\\\\\,'` ;;
6059 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6061 cat >>confdefs.h <<_ACEOF
6062 #define PREFIX "${ac_ndu}"
6068 # default: "${prefix}"
6070 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6072 ac_expand=$exec_prefix
6073 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
6074 ac_expand=`eval echo $ac_expand`
6075 expanded_exec_prefix=`eval echo $ac_expand`
6078 ac_ndu=$expanded_exec_prefix
6081 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6084 case $sdccconf_h_dir_separator in
6086 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6087 s,^[\\/],\\\\\\\\,'` ;;
6089 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6091 cat >>confdefs.h <<_ACEOF
6092 #define EXEC_PREFIX "${ac_ndu}"
6098 # default: "${exec_prefix}/bin"
6100 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6103 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6104 ac_expand=`eval echo $ac_expand`
6105 expanded_bindir=`eval echo $ac_expand`
6108 ac_ndu=$expanded_bindir
6111 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6114 case $sdccconf_h_dir_separator in
6116 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6117 s,^[\\/],\\\\\\\\,'` ;;
6119 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6121 cat >>confdefs.h <<_ACEOF
6122 #define BINDIR "${ac_ndu}"
6128 # default: "${prefix}/share"
6130 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6133 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
6134 ac_expand=`eval echo $ac_expand`
6135 expanded_datadir=`eval echo $ac_expand`
6138 ac_ndu=$expanded_datadir
6141 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
6144 case $sdccconf_h_dir_separator in
6146 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6147 s,^[\\/],\\\\\\\\,'` ;;
6149 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6151 cat >>confdefs.h <<_ACEOF
6152 #define DATADIR "${ac_ndu}"
6157 # include/lib suffix
6158 norm_inc_dir_suffix=${include_dir_suffix}
6159 case ":$norm_inc_dir_suffix:" in
6160 ::) norm_inc_dir_suffix='.' ;;
6161 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6164 case $sdccconf_h_dir_separator in
6166 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6167 s,^[\\/],\\\\\\\\,'` ;;
6169 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6171 cat >>confdefs.h <<_ACEOF
6172 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
6175 norm_lib_dir_suffix=${lib_dir_suffix}
6176 case ":$norm_lib_dir_suffix:" in
6177 ::) norm_lib_dir_suffix='.' ;;
6178 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
6181 case $sdccconf_h_dir_separator in
6183 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6184 s,^[\\/],\\\\\\\\,'` ;;
6186 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6188 cat >>confdefs.h <<_ACEOF
6189 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
6194 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
6195 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6196 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6197 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6198 _lcl_receval="$_lcl_from"
6199 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6200 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6202 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6203 _lcl_receval_old="$_lcl_receval"
6204 eval _lcl_receval="\"$_lcl_receval\""
6206 echo "$_lcl_receval")`
6207 _lcl_receval="$_lcl_to"
6208 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6209 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6211 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6212 _lcl_receval_old="$_lcl_receval"
6213 eval _lcl_receval="\"$_lcl_receval\""
6215 echo "$_lcl_receval")`
6216 _lcl_notation="$_lcl_from$_lcl_to"
6217 case ":$_lcl_from:" in
6218 ::) _lcl_from='.' ;;
6219 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6224 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6225 s,^[\\/],\\\\\\\\,'` ;;
6227 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6229 case ":$_lcl_to:" in
6231 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6236 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6237 s,^[\\/],\\\\\\\\,'` ;;
6239 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6241 _lcl_common_prefix=''
6242 _lcl_second_prefix_match=''
6243 while test "$_lcl_second_prefix_match" != 0; do
6244 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6245 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6246 if test "$_lcl_second_prefix_match" != 0; then
6247 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6248 _lcl_common_prefix="$_lcl_first_prefix"
6250 _lcl_second_prefix_match=0
6254 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6257 while test "$_lcl_tmp" != ''; do
6258 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6259 if test "$_lcl_first_suffix" != ''; then
6260 _lcl_first_suffix="$_lcl_tmp"
6261 _lcl_first_rel="../$_lcl_first_rel"
6264 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6265 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6266 case ":$_lcl_result_tmp:" in
6267 ::) _lcl_result_tmp='.' ;;
6268 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6271 case "$_lcl_notation" in
6273 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6274 s,^[\\/],\\\\\\\\,'` ;;
6276 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6278 eval $_lcl_result_var='$_lcl_result_tmp'
6280 case ":$bin2data_dir:" in
6281 ::) bin2data_dir='.' ;;
6282 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6285 case $sdccconf_h_dir_separator in
6287 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6288 s,^[\\/],\\\\\\\\,'` ;;
6290 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6292 cat >>confdefs.h <<_ACEOF
6293 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6297 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6298 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6299 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6300 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6301 _lcl_receval="$_lcl_from"
6302 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6303 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6305 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6306 _lcl_receval_old="$_lcl_receval"
6307 eval _lcl_receval="\"$_lcl_receval\""
6309 echo "$_lcl_receval")`
6310 _lcl_receval="$_lcl_to"
6311 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6314 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6315 _lcl_receval_old="$_lcl_receval"
6316 eval _lcl_receval="\"$_lcl_receval\""
6318 echo "$_lcl_receval")`
6319 _lcl_notation="$_lcl_from$_lcl_to"
6320 case ":$_lcl_from:" in
6321 ::) _lcl_from='.' ;;
6322 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6327 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6328 s,^[\\/],\\\\\\\\,'` ;;
6330 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6332 case ":$_lcl_to:" in
6334 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6339 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6340 s,^[\\/],\\\\\\\\,'` ;;
6342 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6344 _lcl_common_prefix=''
6345 _lcl_second_prefix_match=''
6346 while test "$_lcl_second_prefix_match" != 0; do
6347 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6348 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6349 if test "$_lcl_second_prefix_match" != 0; then
6350 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6351 _lcl_common_prefix="$_lcl_first_prefix"
6353 _lcl_second_prefix_match=0
6357 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6360 while test "$_lcl_tmp" != ''; do
6361 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6362 if test "$_lcl_first_suffix" != ''; then
6363 _lcl_first_suffix="$_lcl_tmp"
6364 _lcl_first_rel="../$_lcl_first_rel"
6367 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6368 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6369 case ":$_lcl_result_tmp:" in
6370 ::) _lcl_result_tmp='.' ;;
6371 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6374 case "$_lcl_notation" in
6376 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6377 s,^[\\/],\\\\\\\\,'` ;;
6379 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6381 eval $_lcl_result_var='$_lcl_result_tmp'
6383 case ":$prefix2bin_dir:" in
6384 ::) prefix2bin_dir='.' ;;
6385 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6388 case $sdccconf_h_dir_separator in
6390 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6391 s,^[\\/],\\\\\\\\,'` ;;
6393 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6395 cat >>confdefs.h <<_ACEOF
6396 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6400 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6401 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6402 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6403 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6404 _lcl_receval="$_lcl_from"
6405 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6406 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6408 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6409 _lcl_receval_old="$_lcl_receval"
6410 eval _lcl_receval="\"$_lcl_receval\""
6412 echo "$_lcl_receval")`
6413 _lcl_receval="$_lcl_to"
6414 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6415 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6417 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6418 _lcl_receval_old="$_lcl_receval"
6419 eval _lcl_receval="\"$_lcl_receval\""
6421 echo "$_lcl_receval")`
6422 _lcl_notation="$_lcl_from$_lcl_to"
6423 case ":$_lcl_from:" in
6424 ::) _lcl_from='.' ;;
6425 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6430 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6431 s,^[\\/],\\\\\\\\,'` ;;
6433 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6435 case ":$_lcl_to:" in
6437 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6442 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6443 s,^[\\/],\\\\\\\\,'` ;;
6445 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6447 _lcl_common_prefix=''
6448 _lcl_second_prefix_match=''
6449 while test "$_lcl_second_prefix_match" != 0; do
6450 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6451 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6452 if test "$_lcl_second_prefix_match" != 0; then
6453 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6454 _lcl_common_prefix="$_lcl_first_prefix"
6456 _lcl_second_prefix_match=0
6460 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6463 while test "$_lcl_tmp" != ''; do
6464 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6465 if test "$_lcl_first_suffix" != ''; then
6466 _lcl_first_suffix="$_lcl_tmp"
6467 _lcl_first_rel="../$_lcl_first_rel"
6470 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6471 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6472 case ":$_lcl_result_tmp:" in
6473 ::) _lcl_result_tmp='.' ;;
6474 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6477 case "$_lcl_notation" in
6479 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6480 s,^[\\/],\\\\\\\\,'` ;;
6482 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6484 eval $_lcl_result_var='$_lcl_result_tmp'
6486 case ":$prefix2data_dir:" in
6487 ::) prefix2data_dir='.' ;;
6488 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6491 case $sdccconf_h_dir_separator in
6493 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
6494 s,^[\\/],\\\\\\\\,'` ;;
6496 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6498 if test "${prefix2data_dir}" = "."; then
6499 # small optimization for Mingw32; otherwise Borut will complain ;-)
6500 cat >>confdefs.h <<_ACEOF
6501 #define PREFIX2DATA_DIR ""
6505 cat >>confdefs.h <<_ACEOF
6506 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6512 cat >>confdefs.h <<_ACEOF
6513 #define STD_LIB "libsdcc"
6516 cat >>confdefs.h <<_ACEOF
6517 #define STD_INT_LIB "libint"
6520 cat >>confdefs.h <<_ACEOF
6521 #define STD_LONG_LIB "liblong"
6524 cat >>confdefs.h <<_ACEOF
6525 #define STD_FP_LIB "libfloat"
6528 cat >>confdefs.h <<_ACEOF
6529 #define STD_DS390_LIB "libds390"
6532 cat >>confdefs.h <<_ACEOF
6533 #define STD_DS400_LIB "libds400"
6536 cat >>confdefs.h <<_ACEOF
6537 #define STD_XA51_LIB "libxa51"
6541 # SDCC runtime environment variables
6542 sdcc_dir_name="SDCC_HOME"
6543 cat >>confdefs.h <<_ACEOF
6544 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6548 sdcc_include_name="SDCC_INCLUDE"
6549 cat >>confdefs.h <<_ACEOF
6550 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6554 sdcc_lib_name="SDCC_LIB"
6555 cat >>confdefs.h <<_ACEOF
6556 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6560 # Port selection helper
6561 # ===========================================================================
6562 # macro AC_DO_ENABLER()
6563 # $1 used to access enable_$1, e.g. enable-doc
6564 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. DOC
6568 # macro AC_DO_DISABLER()
6569 # $1 used to access disable_$1, e.g. ucsim
6570 # $2 OPT_DISABLE_$2, normally uppercase of $1, e.g. UCSIM
6574 # macro AC_DO_PORT($1, $2, $3, $4)
6575 # $1 used to access enable_$2_port, e.g. gbz80
6576 # $2 port name in ports.all and ports.build, e.g. z80
6577 # $3 OPT_DISABLE_$3, normally uppercase of $2, e.g. GBZ80
6581 # Now handle the port selection
6582 # ===========================================================================
6583 rm -f ports.all ports.build
6585 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6586 if test "${enable_mcs51_port+set}" = set; then
6587 enableval="$enable_mcs51_port"
6591 if test "$enable_mcs51_port" = "no"; then
6594 enable_mcs51_port="yes"
6598 cat >>confdefs.h <<_ACEOF
6599 #define OPT_DISABLE_MCS51 $OPT_DISABLE_MCS51
6604 echo mcs51 >>ports.all
6605 if test $OPT_DISABLE_MCS51 = 0; then
6606 echo mcs51 >>ports.build
6610 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6611 if test "${enable_gbz80_port+set}" = set; then
6612 enableval="$enable_gbz80_port"
6616 if test "$enable_gbz80_port" = "no"; then
6619 enable_gbz80_port="yes"
6623 cat >>confdefs.h <<_ACEOF
6624 #define OPT_DISABLE_GBZ80 $OPT_DISABLE_GBZ80
6629 echo z80 >>ports.all
6630 if test $OPT_DISABLE_GBZ80 = 0; then
6631 echo z80 >>ports.build
6635 # Check whether --enable-z80-port or --disable-z80-port was given.
6636 if test "${enable_z80_port+set}" = set; then
6637 enableval="$enable_z80_port"
6641 if test "$enable_z80_port" = "no"; then
6644 enable_z80_port="yes"
6648 cat >>confdefs.h <<_ACEOF
6649 #define OPT_DISABLE_Z80 $OPT_DISABLE_Z80
6654 echo z80 >>ports.all
6655 if test $OPT_DISABLE_Z80 = 0; then
6656 echo z80 >>ports.build
6660 # Check whether --enable-avr-port or --disable-avr-port was given.
6661 if test "${enable_avr_port+set}" = set; then
6662 enableval="$enable_avr_port"
6666 if test "$enable_avr_port" = "no"; then
6669 enable_avr_port="yes"
6673 cat >>confdefs.h <<_ACEOF
6674 #define OPT_DISABLE_AVR $OPT_DISABLE_AVR
6679 echo avr >>ports.all
6680 if test $OPT_DISABLE_AVR = 0; then
6681 echo avr >>ports.build
6685 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6686 if test "${enable_ds390_port+set}" = set; then
6687 enableval="$enable_ds390_port"
6691 if test "$enable_ds390_port" = "no"; then
6694 enable_ds390_port="yes"
6698 cat >>confdefs.h <<_ACEOF
6699 #define OPT_DISABLE_DS390 $OPT_DISABLE_DS390
6704 echo ds390 >>ports.all
6705 if test $OPT_DISABLE_DS390 = 0; then
6706 echo ds390 >>ports.build
6709 cat >>confdefs.h <<_ACEOF
6710 #define OPT_DISABLE_TININative $OPT_DISABLE_DS390
6714 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6715 if test "${enable_ds400_port+set}" = set; then
6716 enableval="$enable_ds400_port"
6720 if test "$enable_ds400_port" = "no"; then
6723 enable_ds400_port="yes"
6727 cat >>confdefs.h <<_ACEOF
6728 #define OPT_DISABLE_DS400 $OPT_DISABLE_DS400
6733 echo ds400 >>ports.all
6734 if test $OPT_DISABLE_DS400 = 0; then
6735 echo ds400 >>ports.build
6739 # Check whether --enable-pic-port or --disable-pic-port was given.
6740 if test "${enable_pic_port+set}" = set; then
6741 enableval="$enable_pic_port"
6745 if test "$enable_pic_port" = "no"; then
6748 enable_pic_port="yes"
6752 cat >>confdefs.h <<_ACEOF
6753 #define OPT_DISABLE_PIC $OPT_DISABLE_PIC
6758 echo pic >>ports.all
6759 if test $OPT_DISABLE_PIC = 0; then
6760 echo pic >>ports.build
6764 # Check whether --enable-pic16-port or --disable-pic16-port was given.
6765 if test "${enable_pic16_port+set}" = set; then
6766 enableval="$enable_pic16_port"
6770 if test "$enable_pic16_port" = "no"; then
6773 enable_pic16_port="yes"
6777 cat >>confdefs.h <<_ACEOF
6778 #define OPT_DISABLE_PIC16 $OPT_DISABLE_PIC16
6783 echo pic16 >>ports.all
6784 if test $OPT_DISABLE_PIC16 = 0; then
6785 echo pic16 >>ports.build
6789 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6790 if test "${enable_xa51_port+set}" = set; then
6791 enableval="$enable_xa51_port"
6795 if test "$enable_xa51_port" = "no"; then
6798 enable_xa51_port="yes"
6802 cat >>confdefs.h <<_ACEOF
6803 #define OPT_DISABLE_XA51 $OPT_DISABLE_XA51
6808 echo xa51 >>ports.all
6809 if test $OPT_DISABLE_XA51 = 0; then
6810 echo xa51 >>ports.build
6814 # Check whether --enable-hc08-port or --disable-hc08-port was given.
6815 if test "${enable_hc08_port+set}" = set; then
6816 enableval="$enable_hc08_port"
6820 if test "$enable_hc08_port" = "no"; then
6823 enable_hc08_port="yes"
6827 cat >>confdefs.h <<_ACEOF
6828 #define OPT_DISABLE_HC08 $OPT_DISABLE_HC08
6833 echo hc08 >>ports.all
6834 if test $OPT_DISABLE_HC08 = 0; then
6835 echo hc08 >>ports.build
6840 # Check whether --enable-ucsim or --disable-ucsim was given.
6841 if test "${enable_ucsim+set}" = set; then
6842 enableval="$enable_ucsim"
6846 arg1=`echo ucsim | sed s/-/_/`
6848 if test "`eval echo \\$enable_$arg1`" = "no"; then
6854 cat >>confdefs.h <<_ACEOF
6855 #define OPT_DISABLE_UCSIM $OPT_DISABLE_UCSIM
6861 # Check whether --enable-device-lib or --disable-device-lib was given.
6862 if test "${enable_device_lib+set}" = set; then
6863 enableval="$enable_device_lib"
6867 arg1=`echo device-lib | sed s/-/_/`
6869 if test "`eval echo \\$enable_$arg1`" = "no"; then
6870 OPT_DISABLE_DEVICE_LIB=1
6872 OPT_DISABLE_DEVICE_LIB=0
6875 cat >>confdefs.h <<_ACEOF
6876 #define OPT_DISABLE_DEVICE_LIB $OPT_DISABLE_DEVICE_LIB
6882 # Check whether --enable-packihx or --disable-packihx was given.
6883 if test "${enable_packihx+set}" = set; then
6884 enableval="$enable_packihx"
6888 arg1=`echo packihx | sed s/-/_/`
6890 if test "`eval echo \\$enable_$arg1`" = "no"; then
6891 OPT_DISABLE_PACKIHX=1
6893 OPT_DISABLE_PACKIHX=0
6896 cat >>confdefs.h <<_ACEOF
6897 #define OPT_DISABLE_PACKIHX $OPT_DISABLE_PACKIHX
6903 # Check whether --enable-sdcpp or --disable-sdcpp was given.
6904 if test "${enable_sdcpp+set}" = set; then
6905 enableval="$enable_sdcpp"
6909 arg1=`echo sdcpp | sed s/-/_/`
6911 if test "`eval echo \\$enable_$arg1`" = "no"; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define OPT_DISABLE_SDCPP $OPT_DISABLE_SDCPP
6924 # Check whether --enable-sdcdb or --disable-sdcdb was given.
6925 if test "${enable_sdcdb+set}" = set; then
6926 enableval="$enable_sdcdb"
6930 arg1=`echo sdcdb | sed s/-/_/`
6932 if test "`eval echo \\$enable_$arg1`" = "no"; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define OPT_DISABLE_SDCDB $OPT_DISABLE_SDCDB
6946 # Check whether --enable-doc or --disable-doc was given.
6947 if test "${enable_doc+set}" = set; then
6948 enableval="$enable_doc"
6952 if test "$enable_doc" = "yes"; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define OPT_ENABLE_DOC $OPT_ENABLE_DOC
6964 if test $OPT_ENABLE_DOC = 1; then
6965 # Extract the first word of "lyx", so it can be a program name with args.
6966 set dummy lyx; ac_word=$2
6967 echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969 if test "${ac_cv_prog_LYX+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 if test -n "$LYX"; then
6973 ac_cv_prog_LYX="$LYX" # Let the user override the test.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_LYX="lyx"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
6993 if test -n "$LYX"; then
6994 echo "$as_me:$LINENO: result: $LYX" >&5
6995 echo "${ECHO_T}$LYX" >&6
6997 echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
7001 # Extract the first word of "latex2html", so it can be a program name with args.
7002 set dummy latex2html; ac_word=$2
7003 echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 if test -n "$LATEX2HTML"; then
7009 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_LATEX2HTML="latex2html"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
7028 LATEX2HTML=$ac_cv_prog_LATEX2HTML
7029 if test -n "$LATEX2HTML"; then
7030 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
7031 echo "${ECHO_T}$LATEX2HTML" >&6
7033 echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7037 # Extract the first word of "pdflatex", so it can be a program name with args.
7038 set dummy pdflatex; ac_word=$2
7039 echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7041 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 if test -n "$PDFLATEX"; then
7045 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_PDFLATEX="pdflatex"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
7064 PDFLATEX=$ac_cv_prog_PDFLATEX
7065 if test -n "$PDFLATEX"; then
7066 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
7067 echo "${ECHO_T}$PDFLATEX" >&6
7069 echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7073 # Extract the first word of "pdfopt", so it can be a program name with args.
7074 set dummy pdfopt; ac_word=$2
7075 echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7077 if test "${ac_cv_prog_PDFOPT+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 if test -n "$PDFOPT"; then
7081 ac_cv_prog_PDFOPT="$PDFOPT" # Let the user override the test.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_PDFOPT="pdfopt"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 test -z "$ac_cv_prog_PDFOPT" && ac_cv_prog_PDFOPT=":"
7100 PDFOPT=$ac_cv_prog_PDFOPT
7101 if test -n "$PDFOPT"; then
7102 echo "$as_me:$LINENO: result: $PDFOPT" >&5
7103 echo "${ECHO_T}$PDFOPT" >&6
7105 echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6
7109 # Extract the first word of "makeindex", so it can be a program name with args.
7110 set dummy makeindex; ac_word=$2
7111 echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7113 if test "${ac_cv_prog_MAKEINDEX+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 if test -n "$MAKEINDEX"; then
7117 ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_MAKEINDEX="makeindex"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 test -z "$ac_cv_prog_MAKEINDEX" && ac_cv_prog_MAKEINDEX=":"
7136 MAKEINDEX=$ac_cv_prog_MAKEINDEX
7137 if test -n "$MAKEINDEX"; then
7138 echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
7139 echo "${ECHO_T}$MAKEINDEX" >&6
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7146 if test "$LYX" = ":"; then
7147 { { echo "$as_me:$LINENO: error: Cannot find required program lyx." >&5
7148 echo "$as_me: error: Cannot find required program lyx." >&2;}
7149 { (exit 1); exit 1; }; }
7152 if test "$LATEX2HTML" = ":"; then
7153 { { echo "$as_me:$LINENO: error: Cannot find required program latex2html." >&5
7154 echo "$as_me: error: Cannot find required program latex2html." >&2;}
7155 { (exit 1); exit 1; }; }
7158 if test "$PDFLATEX" = ":"; then
7159 { { echo "$as_me:$LINENO: error: Cannot find required program pdflatex." >&5
7160 echo "$as_me: error: Cannot find required program pdflatex." >&2;}
7161 { (exit 1); exit 1; }; }
7164 if test "$PDFOPT" = ":"; then
7165 { { echo "$as_me:$LINENO: error: Cannot find required program pdfopt." >&5
7166 echo "$as_me: error: Cannot find required program pdfopt." >&2;}
7167 { (exit 1); exit 1; }; }
7170 if test "$MAKEINDEX" = ":"; then
7171 { { echo "$as_me:$LINENO: error: Cannot find required program makeindex." >&5
7172 echo "$as_me: error: Cannot find required program makeindex." >&2;}
7173 { (exit 1); exit 1; }; }
7179 # Check whether --enable-libgc or --disable-libgc was given.
7180 if test "${enable_libgc+set}" = set; then
7181 enableval="$enable_libgc"
7185 if test "$enable_libgc" = "yes"; then
7191 cat >>confdefs.h <<_ACEOF
7192 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
7197 if test $OPT_ENABLE_LIBGC = 1; then
7199 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
7200 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
7201 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 ac_check_lib_save_LIBS=$LIBS
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7213 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7228 rm -f conftest.$ac_objext conftest$ac_exeext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_lib_gc_GC_malloc=yes
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_lib_gc_GC_malloc=no
7257 rm -f conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 LIBS=$ac_check_lib_save_LIBS
7261 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
7262 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
7263 if test $ac_cv_lib_gc_GC_malloc = yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_LIBGC 1
7272 if test $ac_cv_lib_gc_GC_malloc = no; then
7273 { { echo "$as_me:$LINENO: error: Cannot find library libgc with Bohem memory allocator." >&5
7274 echo "$as_me: error: Cannot find library libgc with Bohem memory allocator." >&2;}
7275 { (exit 1); exit 1; }; }
7280 uniq ports.all ports
7282 uniq ports.build ports
7283 mv ports ports.build
7285 # Generating output files
7286 # ===========================================================================
7287 test $OPT_DISABLE_SDCPP = 0 &&
7289 subdirs="$subdirs support/cpp2"
7291 test $OPT_DISABLE_PACKIHX = 0 &&
7293 subdirs="$subdirs support/packihx"
7295 test $OPT_DISABLE_UCSIM = 0 &&
7297 subdirs="$subdirs sim/ucsim"
7299 test $OPT_DISABLE_SDCDB = 0 &&
7301 subdirs="$subdirs debugger/mcs51"
7303 ac_config_files="$ac_config_files doc/Makefile"
7306 test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile"
7309 if test $OPT_DISABLE_DS390 = 0; then
7310 ac_config_files="$ac_config_files src/ds390/Makefile"
7312 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds390/Makefile"
7316 if test $OPT_DISABLE_DS400 = 0; then
7317 ac_config_files="$ac_config_files src/ds400/Makefile"
7319 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/ds400/Makefile"
7323 if test $OPT_DISABLE_HC08 = 0; then
7324 ac_config_files="$ac_config_files src/hc08/Makefile as/hc08/Makefile as/link/hc08/Makefile"
7326 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/hc08/Makefile"
7330 if test $OPT_DISABLE_MCS51 = 0; then
7331 ac_config_files="$ac_config_files src/mcs51/Makefile as/mcs51/Makefile as/link/mcs51/Makefile"
7333 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/mcs51/Makefile device/lib/small/Makefile device/lib/medium/Makefile device/lib/large/Makefile"
7337 if test $OPT_DISABLE_PIC = 0; then
7338 ac_config_files="$ac_config_files src/pic/Makefile"
7340 test $OPT_DISABLE_DEVICE_LIB = 0 &&
7342 subdirs="$subdirs device/lib/pic"
7345 if test $OPT_DISABLE_PIC16 = 0; then
7346 ac_config_files="$ac_config_files src/pic16/Makefile"
7348 test $OPT_DISABLE_DEVICE_LIB = 0 &&
7350 subdirs="$subdirs device/lib/pic16"
7354 test $OPT_DISABLE_XA51 = 0 && ac_config_files="$ac_config_files src/xa51/Makefile"
7357 if test $OPT_DISABLE_Z80 = 0; then
7358 ac_config_files="$ac_config_files src/z80/Makefile as/Makefile as/z80/Makefile as/link/Makefile as/link/z80/Makefile"
7360 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/z80/Makefile device/lib/gbz80/Makefile"
7364 test $OPT_DISABLE_DEVICE_LIB = 0 && ac_config_files="$ac_config_files device/lib/Makefile"
7367 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile device/include/Makefile support/librarian/Makefile support/makebin/Makefile support/regression/Makefile support/valdiag/Makefile Makefile Makefile.common:Makefile.common.in"
7369 cat >confcache <<\_ACEOF
7370 # This file is a shell script that caches the results of configure
7371 # tests run on this system so they can be shared between configure
7372 # scripts and configure runs, see configure's option --config-cache.
7373 # It is not useful on other systems. If it contains results you don't
7374 # want to keep, you may remove or edit it.
7376 # config.status only pays attention to the cache file if you give it
7377 # the --recheck option to rerun configure.
7379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7385 # The following way of writing the cache mishandles newlines in values,
7386 # but we know of no workaround that is simple, portable, and efficient.
7387 # So, don't put newlines in cache variables' values.
7388 # Ultrix sh set writes to stderr and can't be redirected directly,
7389 # and sets the high bit in the cache file unless we assign to the vars.
7392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7394 # `set' does not quote correctly, so add quotes (double-quote
7395 # substitution turns \\\\ into \\, and sed turns \\ into \).
7398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7401 # `set' quotes correctly as required by POSIX, so do not add quotes.
7403 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7412 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7414 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7415 if test -w $cache_file; then
7416 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7417 cat confcache >$cache_file
7419 echo "not updating unwritable cache $cache_file"
7424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7425 # Let make expand exec_prefix.
7426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7428 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7429 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7430 # trailing colons and then remove the whole line if VPATH becomes empty
7431 # (actually we leave an empty line to preserve line numbers).
7432 if test "x$srcdir" = x.; then
7433 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7434 s/:*\$(srcdir):*/:/;
7435 s/:*\${srcdir}:*/:/;
7437 s/^\([^=]*=[ ]*\):*/\1/;
7443 DEFS=-DHAVE_CONFIG_H
7447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7448 # 1. Remove the extension, and $U if already installed.
7449 ac_i=`echo "$ac_i" |
7450 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7452 # will be set to the directory where LIBOBJS objects are built.
7453 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7454 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7458 LTLIBOBJS=$ac_ltlibobjs
7462 : ${CONFIG_STATUS=./config.status}
7463 ac_clean_files_save=$ac_clean_files
7464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7467 cat >$CONFIG_STATUS <<_ACEOF
7469 # Generated by $as_me.
7470 # Run this file to recreate the current configuration.
7471 # Compiler output produced by configure, useful for debugging
7472 # configure, is in config.log if it exists.
7477 SHELL=\${CONFIG_SHELL-$SHELL}
7480 cat >>$CONFIG_STATUS <<\_ACEOF
7481 ## --------------------- ##
7482 ## M4sh Initialization. ##
7483 ## --------------------- ##
7485 # Be Bourne compatible
7486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7489 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7490 # is contrary to our usage. Disable this feature.
7491 alias -g '${1+"$@"}'='"$@"'
7492 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7495 DUALCASE=1; export DUALCASE # for MKS sh
7497 # Support unset when possible.
7498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7505 # Work around bugs in pre-3.0 UWIN ksh.
7506 $as_unset ENV MAIL MAILPATH
7513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7515 LC_TELEPHONE LC_TIME
7517 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7518 eval $as_var=C; export $as_var
7524 # Required to use basename.
7525 if expr a : '\(a\)' >/dev/null 2>&1; then
7531 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7532 as_basename=basename
7538 # Name of the executable.
7539 as_me=`$as_basename "$0" ||
7540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7541 X"$0" : 'X\(//\)$' \| \
7542 X"$0" : 'X\(/\)$' \| \
7543 . : '\(.\)' 2>/dev/null ||
7545 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7546 /^X\/\(\/\/\)$/{ s//\1/; q; }
7547 /^X\/\(\/\).*/{ s//\1/; q; }
7551 # PATH needs CR, and LINENO needs CR and PATH.
7552 # Avoid depending upon Character Ranges.
7553 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7556 as_cr_digits='0123456789'
7557 as_cr_alnum=$as_cr_Letters$as_cr_digits
7559 # The user is always right.
7560 if test "${PATH_SEPARATOR+set}" != set; then
7561 echo "#! /bin/sh" >conf$$.sh
7562 echo "exit 0" >>conf$$.sh
7564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7576 test "x$as_lineno_1" != "x$as_lineno_2" &&
7577 test "x$as_lineno_3" = "x$as_lineno_2" || {
7578 # Find who we are. Look in the path if we contain no path at all
7581 *[\\/]* ) as_myself=$0 ;;
7582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7592 # We did not find ourselves, most probably we were run as `sh COMMAND'
7593 # in which case we are not to be found in the path.
7594 if test "x$as_myself" = x; then
7597 if test ! -f "$as_myself"; then
7598 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7599 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7600 { (exit 1); exit 1; }; }
7602 case $CONFIG_SHELL in
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7608 test -z "$as_dir" && as_dir=.
7609 for as_base in sh bash ksh sh5; do
7612 if ("$as_dir/$as_base" -c '
7615 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7616 test "x$as_lineno_1" != "x$as_lineno_2" &&
7617 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7618 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7619 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7620 CONFIG_SHELL=$as_dir/$as_base
7622 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7631 # uniformly replaced by the line number. The first 'sed' inserts a
7632 # line-number line before each line; the second 'sed' does the real
7633 # work. The second script uses 'N' to pair each line-number line
7634 # with the numbered line, and appends trailing '-' during
7635 # substitution so that $LINENO is not a special case at line end.
7636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7637 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7638 sed '=' <$as_myself |
7643 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7646 s,^['$as_cr_digits']*\n,,
7648 chmod +x $as_me.lineno ||
7649 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7650 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7651 { (exit 1); exit 1; }; }
7653 # Don't try to exec as it changes $[0], causing all sort of problems
7654 # (the dirname of $[0] is not the place where we might find the
7655 # original and so on. Autoconf is especially sensible to this).
7657 # Exit status is that of the last command.
7662 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7663 *c*,-n*) ECHO_N= ECHO_C='
7665 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7666 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7669 if expr a : '\(a\)' >/dev/null 2>&1; then
7675 rm -f conf$$ conf$$.exe conf$$.file
7677 if ln -s conf$$.file conf$$ 2>/dev/null; then
7678 # We could just check for DJGPP; but this test a) works b) is more generic
7679 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7680 if test -f conf$$.exe; then
7681 # Don't use ln at all; we don't have any links
7686 elif ln conf$$.file conf$$ 2>/dev/null; then
7691 rm -f conf$$ conf$$.exe conf$$.file
7693 if mkdir -p . 2>/dev/null; then
7696 test -d ./-p && rmdir ./-p
7700 as_executable_p="test -f"
7702 # Sed expression to map a string onto a valid CPP name.
7703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7705 # Sed expression to map a string onto a valid variable name.
7706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7710 # We need space, tab and new line, in precisely that order.
7720 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7721 # report actual input values of CONFIG_FILES etc. instead of their
7722 # values after options handling. Logging --version etc. is OK.
7726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7727 ## Running $as_me. ##
7732 This file was extended by $as_me, which was
7733 generated by GNU Autoconf 2.59. Invocation command line was
7735 CONFIG_FILES = $CONFIG_FILES
7736 CONFIG_HEADERS = $CONFIG_HEADERS
7737 CONFIG_LINKS = $CONFIG_LINKS
7738 CONFIG_COMMANDS = $CONFIG_COMMANDS
7742 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7746 # Files that config.status was made for.
7747 if test -n "$ac_config_files"; then
7748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7751 if test -n "$ac_config_headers"; then
7752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7755 if test -n "$ac_config_links"; then
7756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7759 if test -n "$ac_config_commands"; then
7760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7763 cat >>$CONFIG_STATUS <<\_ACEOF
7766 \`$as_me' instantiates files from templates according to the
7767 current configuration.
7769 Usage: $0 [OPTIONS] [FILE]...
7771 -h, --help print this help, then exit
7772 -V, --version print version number, then exit
7773 -q, --quiet do not print progress messages
7774 -d, --debug don't remove temporary files
7775 --recheck update $as_me by reconfiguring in the same conditions
7776 --file=FILE[:TEMPLATE]
7777 instantiate the configuration file FILE
7778 --header=FILE[:TEMPLATE]
7779 instantiate the configuration header FILE
7781 Configuration files:
7784 Configuration headers:
7787 Report bugs to <bug-autoconf@gnu.org>."
7790 cat >>$CONFIG_STATUS <<_ACEOF
7793 configured by $0, generated by GNU Autoconf 2.59,
7794 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7796 Copyright (C) 2003 Free Software Foundation, Inc.
7797 This config.status script is free software; the Free Software Foundation
7798 gives unlimited permission to copy, distribute and modify it."
7803 cat >>$CONFIG_STATUS <<\_ACEOF
7804 # If no file are specified by the user, then we need to provide default
7805 # value. By we need to know if files were specified by the user.
7811 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7812 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7820 *) # This is not an option, so the user has probably given explicit
7823 ac_need_defaults=false;;
7827 # Handling of the options.
7829 cat >>$CONFIG_STATUS <<\_ACEOF
7830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7832 --version | --vers* | -V )
7833 echo "$ac_cs_version"; exit 0 ;;
7835 # Conflict between --help and --header
7836 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7837 Try \`$0 --help' for more information." >&5
7838 echo "$as_me: error: ambiguous option: $1
7839 Try \`$0 --help' for more information." >&2;}
7840 { (exit 1); exit 1; }; };;
7841 --help | --hel | -h )
7842 echo "$ac_cs_usage"; exit 0 ;;
7843 --debug | --d* | -d )
7845 --file | --fil | --fi | --f )
7847 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7848 ac_need_defaults=false;;
7849 --header | --heade | --head | --hea )
7851 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7852 ac_need_defaults=false;;
7853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7854 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7858 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7859 Try \`$0 --help' for more information." >&5
7860 echo "$as_me: error: unrecognized option: $1
7861 Try \`$0 --help' for more information." >&2;}
7862 { (exit 1); exit 1; }; } ;;
7864 *) ac_config_targets="$ac_config_targets $1" ;;
7870 ac_configure_extra_args=
7872 if $ac_cs_silent; then
7874 ac_configure_extra_args="$ac_configure_extra_args --silent"
7878 cat >>$CONFIG_STATUS <<_ACEOF
7879 if \$ac_cs_recheck; then
7880 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7881 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7890 cat >>$CONFIG_STATUS <<\_ACEOF
7891 for ac_config_target in $ac_config_targets
7893 case "$ac_config_target" in
7894 # Handling of arguments.
7895 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7896 "src/avr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/avr/Makefile" ;;
7897 "src/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds390/Makefile" ;;
7898 "device/lib/ds390/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds390/Makefile" ;;
7899 "src/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ds400/Makefile" ;;
7900 "device/lib/ds400/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/ds400/Makefile" ;;
7901 "src/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
7902 "as/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/hc08/Makefile" ;;
7903 "as/link/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/hc08/Makefile" ;;
7904 "device/lib/hc08/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
7905 "src/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
7906 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7907 "as/link/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/mcs51/Makefile" ;;
7908 "device/lib/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
7909 "device/lib/small/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/small/Makefile" ;;
7910 "device/lib/medium/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/medium/Makefile" ;;
7911 "device/lib/large/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/large/Makefile" ;;
7912 "src/pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic/Makefile" ;;
7913 "src/pic16/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pic16/Makefile" ;;
7914 "src/xa51/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xa51/Makefile" ;;
7915 "src/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/z80/Makefile" ;;
7916 "as/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/Makefile" ;;
7917 "as/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/z80/Makefile" ;;
7918 "as/link/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/Makefile" ;;
7919 "as/link/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/link/z80/Makefile" ;;
7920 "device/lib/z80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/z80/Makefile" ;;
7921 "device/lib/gbz80/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/gbz80/Makefile" ;;
7922 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7923 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7924 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7925 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7926 "support/librarian/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/librarian/Makefile" ;;
7927 "support/makebin/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/makebin/Makefile" ;;
7928 "support/regression/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/regression/Makefile" ;;
7929 "support/valdiag/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/valdiag/Makefile" ;;
7930 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7931 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7932 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7935 { (exit 1); exit 1; }; };;
7939 # If the user did not use the arguments to specify the items to instantiate,
7940 # then the envvar interface is used. Set only those that are not.
7941 # We use the long form for the default assignment because of an extremely
7942 # bizarre bug on SunOS 4.1.3.
7943 if $ac_need_defaults; then
7944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7948 # Have a temporary directory for convenience. Make it in the build tree
7949 # simply because there is no reason to put it here, and in addition,
7950 # creating and moving files from /tmp can sometimes cause problems.
7951 # Create a temporary directory, and hook for its removal unless debugging.
7954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7955 trap '{ (exit 1); exit 1; }' 1 2 13 15
7958 # Create a (secure) tmp directory for tmp files.
7961 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7962 test -n "$tmp" && test -d "$tmp"
7965 tmp=./confstat$$-$RANDOM
7966 (umask 077 && mkdir $tmp)
7969 echo "$me: cannot create a temporary directory in ." >&2
7970 { (exit 1); exit 1; }
7975 cat >>$CONFIG_STATUS <<_ACEOF
7978 # CONFIG_FILES section.
7981 # No need to generate the scripts if there are no CONFIG_FILES.
7982 # This happens for instance when ./config.status config.h
7983 if test -n "\$CONFIG_FILES"; then
7984 # Protect against being on the right side of a sed subst in config.status.
7985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7987 s,@SHELL@,$SHELL,;t t
7988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7994 s,@exec_prefix@,$exec_prefix,;t t
7995 s,@prefix@,$prefix,;t t
7996 s,@program_transform_name@,$program_transform_name,;t t
7997 s,@bindir@,$bindir,;t t
7998 s,@sbindir@,$sbindir,;t t
7999 s,@libexecdir@,$libexecdir,;t t
8000 s,@datadir@,$datadir,;t t
8001 s,@sysconfdir@,$sysconfdir,;t t
8002 s,@sharedstatedir@,$sharedstatedir,;t t
8003 s,@localstatedir@,$localstatedir,;t t
8004 s,@libdir@,$libdir,;t t
8005 s,@includedir@,$includedir,;t t
8006 s,@oldincludedir@,$oldincludedir,;t t
8007 s,@infodir@,$infodir,;t t
8008 s,@mandir@,$mandir,;t t
8009 s,@build_alias@,$build_alias,;t t
8010 s,@host_alias@,$host_alias,;t t
8011 s,@target_alias@,$target_alias,;t t
8013 s,@ECHO_C@,$ECHO_C,;t t
8014 s,@ECHO_N@,$ECHO_N,;t t
8015 s,@ECHO_T@,$ECHO_T,;t t
8018 s,@VERSION@,$VERSION,;t t
8019 s,@VERSIONHI@,$VERSIONHI,;t t
8020 s,@VERSIONLO@,$VERSIONLO,;t t
8021 s,@VERSIONP@,$VERSIONP,;t t
8023 s,@CFLAGS@,$CFLAGS,;t t
8024 s,@LDFLAGS@,$LDFLAGS,;t t
8025 s,@CPPFLAGS@,$CPPFLAGS,;t t
8026 s,@ac_ct_CC@,$ac_ct_CC,;t t
8027 s,@EXEEXT@,$EXEEXT,;t t
8028 s,@OBJEXT@,$OBJEXT,;t t
8030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8033 s,@RANLIB@,$RANLIB,;t t
8034 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8036 s,@LEXLIB@,$LEXLIB,;t t
8037 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8039 s,@AUTOCONF@,$AUTOCONF,;t t
8040 s,@STRIP@,$STRIP,;t t
8043 s,@M_OR_MM@,$M_OR_MM,;t t
8044 s,@EGREP@,$EGREP,;t t
8045 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
8046 s,@include_dir_suffix@,$include_dir_suffix,;t t
8047 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
8048 s,@docdir@,$docdir,;t t
8049 s,@OPT_DISABLE_MCS51@,$OPT_DISABLE_MCS51,;t t
8050 s,@OPT_DISABLE_GBZ80@,$OPT_DISABLE_GBZ80,;t t
8051 s,@OPT_DISABLE_Z80@,$OPT_DISABLE_Z80,;t t
8052 s,@OPT_DISABLE_AVR@,$OPT_DISABLE_AVR,;t t
8053 s,@OPT_DISABLE_DS390@,$OPT_DISABLE_DS390,;t t
8054 s,@OPT_DISABLE_DS400@,$OPT_DISABLE_DS400,;t t
8055 s,@OPT_DISABLE_PIC@,$OPT_DISABLE_PIC,;t t
8056 s,@OPT_DISABLE_PIC16@,$OPT_DISABLE_PIC16,;t t
8057 s,@OPT_DISABLE_XA51@,$OPT_DISABLE_XA51,;t t
8058 s,@OPT_DISABLE_HC08@,$OPT_DISABLE_HC08,;t t
8059 s,@OPT_DISABLE_UCSIM@,$OPT_DISABLE_UCSIM,;t t
8060 s,@OPT_DISABLE_DEVICE_LIB@,$OPT_DISABLE_DEVICE_LIB,;t t
8061 s,@OPT_DISABLE_PACKIHX@,$OPT_DISABLE_PACKIHX,;t t
8062 s,@OPT_DISABLE_SDCPP@,$OPT_DISABLE_SDCPP,;t t
8063 s,@OPT_DISABLE_SDCDB@,$OPT_DISABLE_SDCDB,;t t
8064 s,@OPT_ENABLE_DOC@,$OPT_ENABLE_DOC,;t t
8066 s,@LATEX2HTML@,$LATEX2HTML,;t t
8067 s,@PDFLATEX@,$PDFLATEX,;t t
8068 s,@PDFOPT@,$PDFOPT,;t t
8069 s,@MAKEINDEX@,$MAKEINDEX,;t t
8070 s,@OPT_ENABLE_LIBGC@,$OPT_ENABLE_LIBGC,;t t
8071 s,@subdirs@,$subdirs,;t t
8072 s,@LIBOBJS@,$LIBOBJS,;t t
8073 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8079 # Split the substitutions into bite-sized pieces for seds with
8080 # small command number limits, like on Digital OSF/1 and HP-UX.
8082 ac_sed_frag=1 # Number of current file.
8083 ac_beg=1 # First line for current file.
8084 ac_end=$ac_max_sed_lines # Line after last line for current file.
8087 while $ac_more_lines; do
8088 if test $ac_beg -gt 1; then
8089 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8091 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8093 if test ! -s $tmp/subs.frag; then
8096 # The purpose of the label and of the branching condition is to
8097 # speed up the sed processing (if there are no `@' at all, there
8098 # is no need to browse any of the substitutions).
8099 # These are the two extra sed commands mentioned above.
8101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8102 if test -z "$ac_sed_cmds"; then
8103 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8105 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8107 ac_sed_frag=`expr $ac_sed_frag + 1`
8109 ac_end=`expr $ac_end + $ac_max_sed_lines`
8112 if test -z "$ac_sed_cmds"; then
8115 fi # test -n "$CONFIG_FILES"
8118 cat >>$CONFIG_STATUS <<\_ACEOF
8119 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8120 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8122 - | *:- | *:-:* ) # input from stdin
8124 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8126 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8128 * ) ac_file_in=$ac_file.in ;;
8131 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8132 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8134 X"$ac_file" : 'X\(//\)[^/]' \| \
8135 X"$ac_file" : 'X\(//\)$' \| \
8136 X"$ac_file" : 'X\(/\)' \| \
8137 . : '\(.\)' 2>/dev/null ||
8139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8141 /^X\(\/\/\)$/{ s//\1/; q; }
8142 /^X\(\/\).*/{ s//\1/; q; }
8144 { if $as_mkdir_p; then
8149 while test ! -d "$as_dir"; do
8150 as_dirs="$as_dir $as_dirs"
8151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8153 X"$as_dir" : 'X\(//\)[^/]' \| \
8154 X"$as_dir" : 'X\(//\)$' \| \
8155 X"$as_dir" : 'X\(/\)' \| \
8156 . : '\(.\)' 2>/dev/null ||
8158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8160 /^X\(\/\/\)$/{ s//\1/; q; }
8161 /^X\(\/\).*/{ s//\1/; q; }
8164 test ! -n "$as_dirs" || mkdir $as_dirs
8165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8167 { (exit 1); exit 1; }; }; }
8171 if test "$ac_dir" != .; then
8172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8173 # A "../" for each directory in $ac_dir_suffix.
8174 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8176 ac_dir_suffix= ac_top_builddir=
8180 .) # No --srcdir option. We are building in place.
8182 if test -z "$ac_top_builddir"; then
8185 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8187 [\\/]* | ?:[\\/]* ) # Absolute path.
8188 ac_srcdir=$srcdir$ac_dir_suffix;
8189 ac_top_srcdir=$srcdir ;;
8191 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8192 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8195 # Do not use `cd foo && pwd` to compute absolute paths, because
8196 # the directories may not exist.
8198 .) ac_abs_builddir="$ac_dir";;
8201 .) ac_abs_builddir=`pwd`;;
8202 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8203 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8206 case $ac_abs_builddir in
8207 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8209 case ${ac_top_builddir}. in
8210 .) ac_abs_top_builddir=$ac_abs_builddir;;
8211 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8212 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8215 case $ac_abs_builddir in
8216 .) ac_abs_srcdir=$ac_srcdir;;
8219 .) ac_abs_srcdir=$ac_abs_builddir;;
8220 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8221 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8224 case $ac_abs_builddir in
8225 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8227 case $ac_top_srcdir in
8228 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8229 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8230 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8236 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8237 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8240 if test x"$ac_file" != x-; then
8241 { echo "$as_me:$LINENO: creating $ac_file" >&5
8242 echo "$as_me: creating $ac_file" >&6;}
8245 # Let's still pretend it is `configure' which instantiates (i.e., don't
8246 # use $as_me), people would be surprised to read:
8247 # /* config.h. Generated by config.status. */
8248 if test x"$ac_file" = x-; then
8251 configure_input="$ac_file. "
8253 configure_input=$configure_input"Generated from `echo $ac_file_in |
8254 sed 's,.*/,,'` by configure."
8256 # First look for the input files in the build tree, otherwise in the
8258 ac_file_inputs=`IFS=:
8259 for f in $ac_file_in; do
8261 -) echo $tmp/stdin ;;
8263 # Absolute (can't be DOS-style, as IFS=:)
8264 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8265 echo "$as_me: error: cannot find input file: $f" >&2;}
8266 { (exit 1); exit 1; }; }
8269 if test -f "$f"; then
8272 elif test -f "$srcdir/$f"; then
8277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8278 echo "$as_me: error: cannot find input file: $f" >&2;}
8279 { (exit 1); exit 1; }; }
8282 done` || { (exit 1); exit 1; }
8284 cat >>$CONFIG_STATUS <<_ACEOF
8288 cat >>$CONFIG_STATUS <<\_ACEOF
8290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8291 s,@configure_input@,$configure_input,;t t
8292 s,@srcdir@,$ac_srcdir,;t t
8293 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8294 s,@top_srcdir@,$ac_top_srcdir,;t t
8295 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8296 s,@builddir@,$ac_builddir,;t t
8297 s,@abs_builddir@,$ac_abs_builddir,;t t
8298 s,@top_builddir@,$ac_top_builddir,;t t
8299 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8300 s,@INSTALL@,$ac_INSTALL,;t t
8301 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8303 if test x"$ac_file" != x-; then
8304 mv $tmp/out $ac_file
8312 cat >>$CONFIG_STATUS <<\_ACEOF
8315 # CONFIG_HEADER section.
8318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8321 # ac_d sets the value in "#define NAME VALUE" lines.
8322 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8323 ac_dB='[ ].*$,\1#\2'
8326 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8327 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8328 ac_uB='$,\1#\2define\3'
8332 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8335 - | *:- | *:-:* ) # input from stdin
8337 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8339 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8341 * ) ac_file_in=$ac_file.in ;;
8344 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8345 echo "$as_me: creating $ac_file" >&6;}
8347 # First look for the input files in the build tree, otherwise in the
8349 ac_file_inputs=`IFS=:
8350 for f in $ac_file_in; do
8352 -) echo $tmp/stdin ;;
8354 # Absolute (can't be DOS-style, as IFS=:)
8355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8356 echo "$as_me: error: cannot find input file: $f" >&2;}
8357 { (exit 1); exit 1; }; }
8358 # Do quote $f, to prevent DOS paths from being IFS'd.
8361 if test -f "$f"; then
8364 elif test -f "$srcdir/$f"; then
8369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8370 echo "$as_me: error: cannot find input file: $f" >&2;}
8371 { (exit 1); exit 1; }; }
8374 done` || { (exit 1); exit 1; }
8375 # Remove the trailing spaces.
8376 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8380 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8381 # `conftest.undefs', that substitutes the proper values into
8382 # config.h.in to produce config.h. The first handles `#define'
8383 # templates, and the second `#undef' templates.
8384 # And first: Protect against being on the right side of a sed subst in
8385 # config.status. Protect against being in an unquoted here document
8387 rm -f conftest.defines conftest.undefs
8388 # Using a here document instead of a string reduces the quoting nightmare.
8389 # Putting comments in sed scripts is not portable.
8391 # `end' is used to avoid that the second main sed command (meant for
8392 # 0-ary CPP macros) applies to n-ary macro definitions.
8393 # See the Autoconf documentation for `clear'.
8394 cat >confdef2sed.sed <<\_ACEOF
8399 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8401 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8404 # If some macros were called several times there might be several times
8405 # the same #defines, which is useless. Nevertheless, we may not want to
8406 # sort them, since we want the *last* AC-DEFINE to be honored.
8407 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8408 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8409 rm -f confdef2sed.sed
8411 # This sed command replaces #undef with comments. This is necessary, for
8412 # example, in the case of _POSIX_SOURCE, which is predefined and required
8413 # on some systems where configure will not decide to define it.
8414 cat >>conftest.undefs <<\_ACEOF
8415 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8418 # Break up conftest.defines because some shells have a limit on the size
8419 # of here documents, and old seds have small limits too (100 cmds).
8420 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8421 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8422 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8423 echo ' :' >>$CONFIG_STATUS
8425 while grep . conftest.defines >/dev/null
8427 # Write a limited-size here document to $tmp/defines.sed.
8428 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8429 # Speed up: don't consider the non `#define' lines.
8430 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8431 # Work around the forget-to-reset-the-flag bug.
8432 echo 't clr' >>$CONFIG_STATUS
8433 echo ': clr' >>$CONFIG_STATUS
8434 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8436 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8440 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8441 rm -f conftest.defines
8442 mv conftest.tail conftest.defines
8444 rm -f conftest.defines
8445 echo ' fi # grep' >>$CONFIG_STATUS
8446 echo >>$CONFIG_STATUS
8448 # Break up conftest.undefs because some shells have a limit on the size
8449 # of here documents, and old seds have small limits too (100 cmds).
8450 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8452 while grep . conftest.undefs >/dev/null
8454 # Write a limited-size here document to $tmp/undefs.sed.
8455 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8456 # Speed up: don't consider the non `#undef'
8457 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8458 # Work around the forget-to-reset-the-flag bug.
8459 echo 't clr' >>$CONFIG_STATUS
8460 echo ': clr' >>$CONFIG_STATUS
8461 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8463 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8467 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8468 rm -f conftest.undefs
8469 mv conftest.tail conftest.undefs
8471 rm -f conftest.undefs
8473 cat >>$CONFIG_STATUS <<\_ACEOF
8474 # Let's still pretend it is `configure' which instantiates (i.e., don't
8475 # use $as_me), people would be surprised to read:
8476 # /* config.h. Generated by config.status. */
8477 if test x"$ac_file" = x-; then
8478 echo "/* Generated by configure. */" >$tmp/config.h
8480 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8482 cat $tmp/in >>$tmp/config.h
8484 if test x"$ac_file" != x-; then
8485 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8486 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8487 echo "$as_me: $ac_file is unchanged" >&6;}
8489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8491 X"$ac_file" : 'X\(//\)[^/]' \| \
8492 X"$ac_file" : 'X\(//\)$' \| \
8493 X"$ac_file" : 'X\(/\)' \| \
8494 . : '\(.\)' 2>/dev/null ||
8496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8498 /^X\(\/\/\)$/{ s//\1/; q; }
8499 /^X\(\/\).*/{ s//\1/; q; }
8501 { if $as_mkdir_p; then
8506 while test ! -d "$as_dir"; do
8507 as_dirs="$as_dir $as_dirs"
8508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8510 X"$as_dir" : 'X\(//\)[^/]' \| \
8511 X"$as_dir" : 'X\(//\)$' \| \
8512 X"$as_dir" : 'X\(/\)' \| \
8513 . : '\(.\)' 2>/dev/null ||
8515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8517 /^X\(\/\/\)$/{ s//\1/; q; }
8518 /^X\(\/\).*/{ s//\1/; q; }
8521 test ! -n "$as_dirs" || mkdir $as_dirs
8522 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8524 { (exit 1); exit 1; }; }; }
8527 mv $tmp/config.h $ac_file
8536 cat >>$CONFIG_STATUS <<\_ACEOF
8538 { (exit 0); exit 0; }
8540 chmod +x $CONFIG_STATUS
8541 ac_clean_files=$ac_clean_files_save
8544 # configure is writing to config.log, and then calls config.status.
8545 # config.status does its own redirection, appending to config.log.
8546 # Unfortunately, on DOS this fails, as config.log is still kept open
8547 # by configure, so config.status won't be able to write to it; its
8548 # output is simply discarded. So we exec the FD to /dev/null,
8549 # effectively closing config.log, so it can be properly (re)opened and
8550 # appended to by config.status. When coming back to configure, we
8551 # need to make the FD available again.
8552 if test "$no_create" != yes; then
8554 ac_config_status_args=
8555 test "$silent" = yes &&
8556 ac_config_status_args="$ac_config_status_args --quiet"
8558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8561 # would make configure fail if this is the last instruction.
8562 $ac_cs_success || { (exit 1); exit 1; }
8566 # CONFIG_SUBDIRS section.
8568 if test "$no_recursion" != yes; then
8570 # Remove --cache-file and --srcdir arguments so they do not pile up.
8571 ac_sub_configure_args=
8573 for ac_arg in $ac_configure_args; do
8574 if test -n "$ac_prev"; then
8579 -cache-file | --cache-file | --cache-fil | --cache-fi \
8580 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8581 ac_prev=cache_file ;;
8582 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8583 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8586 --config-cache | -C)
8588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8592 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8594 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8596 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8600 # Always prepend --prefix to ensure using the same prefix
8601 # in subdir configurations.
8602 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8605 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8607 # Do not complain, so a configure script can configure whichever
8608 # parts of a large source tree are present.
8609 test -d $srcdir/$ac_dir || continue
8611 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8612 echo "$as_me: configuring in $ac_dir" >&6;}
8613 { if $as_mkdir_p; then
8618 while test ! -d "$as_dir"; do
8619 as_dirs="$as_dir $as_dirs"
8620 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8622 X"$as_dir" : 'X\(//\)[^/]' \| \
8623 X"$as_dir" : 'X\(//\)$' \| \
8624 X"$as_dir" : 'X\(/\)' \| \
8625 . : '\(.\)' 2>/dev/null ||
8627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8629 /^X\(\/\/\)$/{ s//\1/; q; }
8630 /^X\(\/\).*/{ s//\1/; q; }
8633 test ! -n "$as_dirs" || mkdir $as_dirs
8634 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8636 { (exit 1); exit 1; }; }; }
8640 if test "$ac_dir" != .; then
8641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8642 # A "../" for each directory in $ac_dir_suffix.
8643 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8645 ac_dir_suffix= ac_top_builddir=
8649 .) # No --srcdir option. We are building in place.
8651 if test -z "$ac_top_builddir"; then
8654 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8656 [\\/]* | ?:[\\/]* ) # Absolute path.
8657 ac_srcdir=$srcdir$ac_dir_suffix;
8658 ac_top_srcdir=$srcdir ;;
8660 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8661 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8664 # Do not use `cd foo && pwd` to compute absolute paths, because
8665 # the directories may not exist.
8667 .) ac_abs_builddir="$ac_dir";;
8670 .) ac_abs_builddir=`pwd`;;
8671 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8672 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8675 case $ac_abs_builddir in
8676 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8678 case ${ac_top_builddir}. in
8679 .) ac_abs_top_builddir=$ac_abs_builddir;;
8680 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8681 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8684 case $ac_abs_builddir in
8685 .) ac_abs_srcdir=$ac_srcdir;;
8688 .) ac_abs_srcdir=$ac_abs_builddir;;
8689 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8690 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8693 case $ac_abs_builddir in
8694 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8696 case $ac_top_srcdir in
8697 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8698 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8699 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8706 # Check for guested configure; otherwise get Cygnus style configure.
8707 if test -f $ac_srcdir/configure.gnu; then
8708 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8709 elif test -f $ac_srcdir/configure; then
8710 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8711 elif test -f $ac_srcdir/configure.in; then
8712 ac_sub_configure=$ac_configure
8714 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8715 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8719 # The recursion is here.
8720 if test -n "$ac_sub_configure"; then
8721 # Make the cache file name correct relative to the subdirectory.
8723 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8725 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8728 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8729 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8730 # The eval makes quoting arguments work.
8731 eval $ac_sub_configure $ac_sub_configure_args \
8732 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8733 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8734 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8735 { (exit 1); exit 1; }; }
8743 # I found no better place
8746 # Prepare result message
8747 # ======================
8749 # In the C-header we need \\ as dir-separator, but in the message only \
8750 dirch=${sdccconf_h_dir_separator}
8751 test ${dirch} = '\\' && dirch='\'
8753 # calc friendly strings
8755 binPath=`echo "/${prefix2bin_dir}" | sed 's,/\./,/,g'`
8756 case ":$binPath:" in
8758 :*[\\/]:) binPath=`echo "$binPath" | sed 's,[\\/]*$,,'` ;;
8763 *\\*) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8764 s,^[\\/],\\\\\\\\,'` ;;
8766 *) binPath=`echo "$binPath" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8768 binPath=`echo "$binPath" | sed 's,\\\\\\\\,\\\\,g'`
8771 incPath1=`echo "/${prefix2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8772 case ":$incPath1:" in
8774 :*[\\/]:) incPath1=`echo "$incPath1" | sed 's,[\\/]*$,,'` ;;
8779 *\\*) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8780 s,^[\\/],\\\\\\\\,'` ;;
8782 *) incPath1=`echo "$incPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8784 incPath1=`echo "$incPath1" | sed 's,\\\\\\\\,\\\\,g'`
8787 incPath2=`echo "/${bin2data_dir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8788 case ":$incPath2:" in
8790 :*[\\/]:) incPath2=`echo "$incPath2" | sed 's,[\\/]*$,,'` ;;
8795 *\\*) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8796 s,^[\\/],\\\\\\\\,'` ;;
8798 *) incPath2=`echo "$incPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8800 incPath2=`echo "$incPath2" | sed 's,\\\\\\\\,\\\\,g'`
8803 incPath3=`echo "${expanded_datadir}/${norm_inc_dir_suffix}" | sed 's,/\./,/,g'`
8804 case ":$incPath3:" in
8806 :*[\\/]:) incPath3=`echo "$incPath3" | sed 's,[\\/]*$,,'` ;;
8811 *\\*) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8812 s,^[\\/],\\\\\\\\,'` ;;
8814 *) incPath3=`echo "$incPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8816 incPath3=`echo "$incPath3" | sed 's,\\\\\\\\,\\\\,g'`
8819 libPath1=`echo "/${prefix2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8820 case ":$libPath1:" in
8822 :*[\\/]:) libPath1=`echo "$libPath1" | sed 's,[\\/]*$,,'` ;;
8827 *\\*) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8828 s,^[\\/],\\\\\\\\,'` ;;
8830 *) libPath1=`echo "$libPath1" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8832 libPath1=`echo "$libPath1" | sed 's,\\\\\\\\,\\\\,g'`
8835 libPath2=`echo "/${bin2data_dir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8836 case ":$libPath2:" in
8838 :*[\\/]:) libPath2=`echo "$libPath2" | sed 's,[\\/]*$,,'` ;;
8843 *\\*) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8844 s,^[\\/],\\\\\\\\,'` ;;
8846 *) libPath2=`echo "$libPath2" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8848 libPath2=`echo "$libPath2" | sed 's,\\\\\\\\,\\\\,g'`
8851 libPath3=`echo "${expanded_datadir}/${norm_lib_dir_suffix}" | sed 's,/\./,/,g'`
8852 case ":$libPath3:" in
8854 :*[\\/]:) libPath3=`echo "$libPath3" | sed 's,[\\/]*$,,'` ;;
8859 *\\*) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g
8860 s,^[\\/],\\\\\\\\,'` ;;
8862 *) libPath3=`echo "$libPath3" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
8864 libPath3=`echo "$libPath3" | sed 's,\\\\\\\\,\\\\,g'`
8867 echo "$as_me:$LINENO: result:
8868 sdcc ${VERSION} is now configured for
8870 Build: ${build_alias}
8872 Source directory: ${srcdir}
8877 avr ${enable_avr_port}
8878 ds390 ${enable_ds390_port}
8879 ds400 ${enable_ds400_port}
8880 gbz80 ${enable_gbz80_port}
8881 hc08 ${enable_hc08_port}
8882 pic ${enable_pic_port}
8883 pic16 ${enable_pic16_port}
8884 xa51 ${enable_xa51_port}
8885 z80 ${enable_z80_port}
8887 Disable packihx: ${OPT_DISABLE_PACKIHX}
8888 Disable ucsim: ${OPT_DISABLE_UCSIM}
8889 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
8890 Disable sdcpp: ${OPT_DISABLE_SDCPP}
8891 Disable sdcdb: ${OPT_DISABLE_SDCDB}
8892 Enable documentation: ${OPT_ENABLE_DOC}
8893 Enable libgc: ${OPT_ENABLE_LIBGC}
8896 binary files: ${exec_prefix}
8897 include files: ${datadir}/${include_dir_suffix}
8898 library files: ${datadir}/${lib_dir_suffix}
8899 documentation: ${docdir}
8904 Search paths (incomplete, see manual for all search paths):
8905 binary files: \$SDCC_HOME${binPath}
8906 include files: ${incPath1}
8907 path(argv[0])${incPath2}
8909 library files: \$SDCC_HOME${libPath1}${dirch}<model>
8910 path(argv[0])${libPath2}${dirch}<model>
8911 ${libPath3}${dirch}<model>
8914 sdcc ${VERSION} is now configured for
8916 Build: ${build_alias}
8918 Source directory: ${srcdir}
8923 avr ${enable_avr_port}
8924 ds390 ${enable_ds390_port}
8925 ds400 ${enable_ds400_port}
8926 gbz80 ${enable_gbz80_port}
8927 hc08 ${enable_hc08_port}
8928 pic ${enable_pic_port}
8929 pic16 ${enable_pic16_port}
8930 xa51 ${enable_xa51_port}
8931 z80 ${enable_z80_port}
8933 Disable packihx: ${OPT_DISABLE_PACKIHX}
8934 Disable ucsim: ${OPT_DISABLE_UCSIM}
8935 Disable device lib: ${OPT_DISABLE_DEVICE_LIB}
8936 Disable sdcpp: ${OPT_DISABLE_SDCPP}
8937 Disable sdcdb: ${OPT_DISABLE_SDCDB}
8938 Enable documentation: ${OPT_ENABLE_DOC}
8939 Enable libgc: ${OPT_ENABLE_LIBGC}
8942 binary files: ${exec_prefix}
8943 include files: ${datadir}/${include_dir_suffix}
8944 library files: ${datadir}/${lib_dir_suffix}
8945 documentation: ${docdir}
8950 Search paths (incomplete, see manual for all search paths):
8951 binary files: \$SDCC_HOME${binPath}
8952 include files: ${incPath1}
8953 path(argv[0])${incPath2}
8955 library files: \$SDCC_HOME${libPath1}${dirch}<model>
8956 path(argv[0])${libPath2}${dirch}<model>
8957 ${libPath3}${dirch}<model>
8959 # End of configure/configure.in