2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="Makefile"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subdirs_all="$ac_subdirs_all support/cpp2"
309 ac_subdirs_all="$ac_subdirs_all packihx"
310 ac_subdirs_all="$ac_subdirs_all sim/ucsim"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS AWK VERSION VERSIONHI VERSIONLO VERSIONP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC AUTOCONF STRIP AS CP LYX LATEX LATEX2HTML PDFLATEX DVIPDF EGREP M_OR_MM sdccconf_h_dir_separator include_dir_suffix lib_dir_suffix docdir OPT_ENABLE_UCSIM OPT_ENABLE_DEVICE_LIB_BUILD OPT_ENABLE_PACKIHX subdirs LIBOBJS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780 ac_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
781 ac_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
782 ac_cv_env_sdccconf_h_dir_separator_set=${sdccconf_h_dir_separator+set}
783 ac_cv_env_sdccconf_h_dir_separator_value=$sdccconf_h_dir_separator
784 ac_env_include_dir_suffix_set=${include_dir_suffix+set}
785 ac_env_include_dir_suffix_value=$include_dir_suffix
786 ac_cv_env_include_dir_suffix_set=${include_dir_suffix+set}
787 ac_cv_env_include_dir_suffix_value=$include_dir_suffix
788 ac_env_lib_dir_suffix_set=${lib_dir_suffix+set}
789 ac_env_lib_dir_suffix_value=$lib_dir_suffix
790 ac_cv_env_lib_dir_suffix_set=${lib_dir_suffix+set}
791 ac_cv_env_lib_dir_suffix_value=$lib_dir_suffix
792 ac_env_docdir_set=${docdir+set}
793 ac_env_docdir_value=$docdir
794 ac_cv_env_docdir_set=${docdir+set}
795 ac_cv_env_docdir_value=$docdir
798 # Report the --help message.
800 if test "$ac_init_help" = "long"; then
801 # Omit some internal or obsolete options to make the list less imposing.
802 # This message is too long to be a string in the A/UX 3.1 sh.
804 \`configure' configures this package to adapt to many kinds of systems.
806 Usage: $0 [OPTION]... [VAR=VALUE]...
808 To assign environment variables (e.g., CC, CFLAGS...), specify them as
809 VAR=VALUE. See below for descriptions of some of the useful variables.
811 Defaults for the options are specified in brackets.
814 -h, --help display this help and exit
815 --help=short display options specific to this package
816 --help=recursive display the short help of all the included packages
817 -V, --version display version information and exit
818 -q, --quiet, --silent do not print \`checking...' messages
819 --cache-file=FILE cache test results in FILE [disabled]
820 -C, --config-cache alias for \`--cache-file=config.cache'
821 -n, --no-create do not create output files
822 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827 Installation directories:
828 --prefix=PREFIX install architecture-independent files in PREFIX
830 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
833 By default, \`make install' will install all the files in
834 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836 for instance \`--prefix=\$HOME'.
838 For better control, use the options below.
840 Fine tuning of the installation directories:
841 --bindir=DIR user executables [EPREFIX/bin]
842 --sbindir=DIR system admin executables [EPREFIX/sbin]
843 --libexecdir=DIR program executables [EPREFIX/libexec]
844 --datadir=DIR read-only architecture-independent data [PREFIX/share]
845 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848 --libdir=DIR object code libraries [EPREFIX/lib]
849 --includedir=DIR C header files [PREFIX/include]
850 --oldincludedir=DIR C header files for non-gcc [/usr/include]
851 --infodir=DIR info documentation [PREFIX/info]
852 --mandir=DIR man documentation [PREFIX/man]
858 --program-prefix=PREFIX prepend PREFIX to installed program names
859 --program-suffix=SUFFIX append SUFFIX to installed program names
860 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
864 if test -n "$ac_init_help"; then
869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
871 --disable-mcs51-port Excludes the Intel mcs51 port
872 --disable-gbz80-port Excludes the Gameboy gbz80 port
873 --disable-z80-port Excludes the z80 port
874 --disable-avr-port Excludes the AVR port
875 --disable-ds390-port Excludes the DS390 port
876 --disable-ds400-port Excludes the DS400 port
877 --disable-pic-port Excludes the PIC port
878 --disable-pic16-port Excludes the PIC16 port
879 --disable-xa51-port Excludes the XA51 port
880 --disable-ucsim Disables configuring and building of ucsim
881 --disable-device-lib-build
882 Disables automatically building device libraries
883 --disable-packihx Disables building packihx
884 --enable-libgc Use the Bohem memory allocator. Lower runtime
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CXX C++ compiler command
895 CXXFLAGS C++ compiler flags
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 ;;
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.54. Invocation command line was
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n ) continue ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051 # Get rid of the leading space.
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1071 # The following way of writing the cache mishandles newlines in values,
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -n "$ac_subst_files"; then
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -s confdefs.h; then
1123 sed "/^$/d" confdefs.h | sort
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1206 # Check that the precious variables saved in the cache have kept the same
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1285 for ac_prog in gawk mawk nawk awk
1287 # Extract the first word of "$ac_prog", so it can be a program name with args.
1288 set dummy $ac_prog; ac_word=$2
1289 echo "$as_me:$LINENO: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_AWK+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 if test -n "$AWK"; then
1295 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1301 test -z "$as_dir" && as_dir=.
1302 for ac_exec_ext in '' $ac_executable_extensions; do
1303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1304 ac_cv_prog_AWK="$ac_prog"
1305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1314 if test -n "$AWK"; then
1315 echo "$as_me:$LINENO: result: $AWK" >&5
1316 echo "${ECHO_T}$AWK" >&6
1318 echo "$as_me:$LINENO: result: no" >&5
1319 echo "${ECHO_T}no" >&6
1322 test -n "$AWK" && break
1326 echo "$as_me:$LINENO: checking version of the package" >&5
1327 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1328 if test -f .version; then
1329 VERSION=`cat .version`
1330 elif test -f ../.version; then
1331 VERSION=`cat ../.version`
1335 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1336 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1337 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1339 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1340 echo "${ECHO_T}${VERSION}" >&6
1345 cat >>confdefs.h <<_ACEOF
1346 #define SDCC_VERSION_LO ${VERSIONLO}
1349 cat >>confdefs.h <<_ACEOF
1350 #define SDCC_VERSION_HI ${VERSIONHI}
1353 cat >>confdefs.h <<_ACEOF
1354 #define SDCC_VERSION_P ${VERSIONP}
1357 cat >>confdefs.h <<_ACEOF
1358 #define SDCC_VERSION_STR "${VERSION}"
1361 test "$program_prefix" != NONE &&
1362 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1363 # Use a double $ so make ignores it.
1364 test "$program_suffix" != NONE &&
1365 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1366 # Double any \ or $. echo might interpret backslashes.
1367 # By default was `s,x,x', remove it if useless.
1368 cat <<\_ACEOF >conftest.sed
1369 s/[\\$]/&&/g;s/;s,x,x,$//
1371 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1374 sdcc_cv_version=$VERSION
1375 sdcc_cv_versionhi=$VERSIONHI
1376 sdcc_cv_versionlo=$VERSIONLO
1377 sdcc_cv_versionp=$VERSIONP
1381 # ===========================================================================
1383 ac_cpp='$CPP $CPPFLAGS'
1384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387 if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1390 echo "$as_me:$LINENO: checking for $ac_word" >&5
1391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392 if test "${ac_cv_prog_CC+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 test -z "$as_dir" && as_dir=.
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415 if test -n "$CC"; then
1416 echo "$as_me:$LINENO: result: $CC" >&5
1417 echo "${ECHO_T}$CC" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1424 if test -z "$ac_cv_prog_CC"; then
1426 # Extract the first word of "gcc", so it can be a program name with args.
1427 set dummy gcc; ac_word=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$ac_ct_CC"; then
1434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 test -z "$as_dir" && as_dir=.
1441 for ac_exec_ext in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_ac_ct_CC="gcc"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1466 if test -z "$CC"; then
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}cc; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_CC="${ac_tool_prefix}cc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test -n "$CC"; then
1496 echo "$as_me:$LINENO: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1504 if test -z "$ac_cv_prog_CC"; then
1506 # Extract the first word of "cc", so it can be a program name with args.
1507 set dummy cc; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_CC="cc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1533 if test -n "$ac_ct_CC"; then
1534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1535 echo "${ECHO_T}$ac_ct_CC" >&6
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1547 if test -z "$CC"; then
1548 # Extract the first word of "cc", so it can be a program name with args.
1549 set dummy cc; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1567 ac_prog_rejected=yes
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 if test $ac_prog_rejected = yes; then
1578 # We found a bogon in the path, so make sure we never use it.
1579 set dummy $ac_cv_prog_CC
1581 if test $# != 0; then
1582 # We chose a different compiler from the bogus one.
1583 # However, it has the same basename, so the bogon will be chosen
1584 # first if we set CC to just the basename; use the full file name.
1586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1592 if test -n "$CC"; then
1593 echo "$as_me:$LINENO: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1601 if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1640 test -n "$CC" && break
1643 if test -z "$CC"; then
1647 # Extract the first word of "$ac_prog", so it can be a program name with args.
1648 set dummy $ac_prog; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="$ac_prog"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 test -n "$ac_ct_CC" && break
1691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1692 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1693 { (exit 1); exit 1; }; }
1695 # Provide some information about the compiler.
1696 echo "$as_me:$LINENO:" \
1697 "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line $LINENO "configure"
1717 #include "confdefs.h"
1727 ac_clean_files_save=$ac_clean_files
1728 ac_clean_files="$ac_clean_files a.out a.exe"
1729 # Try to create an executable without -o first, disregard a.out.
1730 # It will help us diagnose broken compilers, and finding out an intuition
1732 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1733 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1734 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1735 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1736 (eval $ac_link_default) 2>&5
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 # Find the output, starting from the most likely. This scheme is
1741 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # Be careful to initialize this variable, since it used to be cached.
1745 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1747 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1748 test -f "$ac_file" || continue
1750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1751 a.out ) # We found the default executable, but exeext='' is most
1754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1762 echo "$as_me: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1765 check \`config.log' for details." >&5
1766 echo "$as_me: error: C compiler cannot create executables
1767 check \`config.log' for details." >&2;}
1768 { (exit 77); exit 77; }; }
1771 ac_exeext=$ac_cv_exeext
1772 echo "$as_me:$LINENO: result: $ac_file" >&5
1773 echo "${ECHO_T}$ac_file" >&6
1775 # Check the compiler produces executables we can run. If not, either
1776 # the compiler is broken, or we cross compile.
1777 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1778 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1779 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1780 # If not cross compiling, check that we can run a simple program.
1781 if test "$cross_compiling" != yes; then
1782 if { ac_try='./$ac_file'
1783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; }; then
1790 if test "$cross_compiling" = maybe; then
1793 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'." >&5
1795 echo "$as_me: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&2;}
1797 { (exit 1); exit 1; }; }
1801 echo "$as_me:$LINENO: result: yes" >&5
1802 echo "${ECHO_T}yes" >&6
1804 rm -f a.out a.exe conftest$ac_cv_exeext
1805 ac_clean_files=$ac_clean_files_save
1806 # Check the compiler produces executables we can run. If not, either
1807 # the compiler is broken, or we cross compile.
1808 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1809 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1810 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1811 echo "${ECHO_T}$cross_compiling" >&6
1813 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1814 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1816 (eval $ac_link) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1822 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 for ac_file in conftest.exe conftest conftest.*; do
1825 test -f "$ac_file" || continue
1827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1847 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line $LINENO "configure"
1854 #include "confdefs.h"
1864 rm -f conftest.o conftest.obj
1865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1881 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1882 { (exit 1); exit 1; }; }
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1891 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.$ac_ext <<_ACEOF
1897 #line $LINENO "configure"
1898 #include "confdefs.h"
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -s conftest.$ac_objext'
1918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1929 rm -f conftest.$ac_objext conftest.$ac_ext
1930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1933 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1934 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935 GCC=`test $ac_compiler_gnu = yes && echo yes`
1936 ac_test_CFLAGS=${CFLAGS+set}
1937 ac_save_CFLAGS=$CFLAGS
1939 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1940 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941 if test "${ac_cv_prog_cc_g+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #line $LINENO "configure"
1946 #include "confdefs.h"
1956 rm -f conftest.$ac_objext
1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1958 (eval $ac_compile) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); } &&
1962 { ac_try='test -s conftest.$ac_objext'
1963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; }; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1974 rm -f conftest.$ac_objext conftest.$ac_ext
1976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1977 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1978 if test "$ac_test_CFLAGS" = set; then
1979 CFLAGS=$ac_save_CFLAGS
1980 elif test $ac_cv_prog_cc_g = yes; then
1981 if test "$GCC" = yes; then
1987 if test "$GCC" = yes; then
1993 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1994 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1995 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 ac_cv_prog_cc_stdc=no
2000 cat >conftest.$ac_ext <<_ACEOF
2001 #line $LINENO "configure"
2002 #include "confdefs.h"
2005 #include <sys/types.h>
2006 #include <sys/stat.h>
2007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2008 struct buf { int x; };
2009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2010 static char *e (p, i)
2016 static char *f (char * (*g) (char **, int), char **p, ...)
2021 s = g (p, va_arg (v,int));
2025 int test (int i, double x);
2026 struct s1 {int (*f) (int a);};
2027 struct s2 {int (*f) (double a);};
2028 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2034 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2039 # Don't try gcc -ansi; that turns off useful extensions and
2040 # breaks some systems' header files.
2041 # AIX -qlanglvl=ansi
2042 # Ultrix and OSF/1 -std1
2043 # HP-UX 10.20 and later -Ae
2044 # HP-UX older versions -Aa -D_HPUX_SOURCE
2045 # SVR4 -Xc -D__EXTENSIONS__
2046 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2048 CC="$ac_save_CC $ac_arg"
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -s conftest.$ac_objext'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 ac_cv_prog_cc_stdc=$ac_arg
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 rm -f conftest.$ac_objext
2069 rm -f conftest.$ac_ext conftest.$ac_objext
2074 case "x$ac_cv_prog_cc_stdc" in
2076 echo "$as_me:$LINENO: result: none needed" >&5
2077 echo "${ECHO_T}none needed" >&6 ;;
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2081 CC="$CC $ac_cv_prog_cc_stdc" ;;
2084 # Some people use a C++ compiler to compile C. Since we use `exit',
2085 # in C++ we need to declare it. In case someone uses the same compiler
2086 # for both compiling C and C++ we need to have the C++ compiler decide
2087 # the declaration of exit, since it's the most demanding environment.
2088 cat >conftest.$ac_ext <<_ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 for ac_declaration in \
2107 '#include <stdlib.h>' \
2108 'extern "C" void std::exit (int) throw (); using std::exit;' \
2109 'extern "C" void std::exit (int); using std::exit;' \
2110 'extern "C" void exit (int) throw ();' \
2111 'extern "C" void exit (int);' \
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 #include "confdefs.h"
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try='test -s conftest.$ac_objext'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2141 echo "$as_me: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2145 rm -f conftest.$ac_objext conftest.$ac_ext
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #line $LINENO "configure"
2148 #include "confdefs.h"
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2175 rm -f conftest.$ac_objext conftest.$ac_ext
2178 if test -n "$ac_declaration"; then
2179 echo '#ifdef __cplusplus' >>confdefs.h
2180 echo $ac_declaration >>confdefs.h
2181 echo '#endif' >>confdefs.h
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2188 rm -f conftest.$ac_objext conftest.$ac_ext
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 ac_cpp='$CXXCPP $CPPFLAGS'
2197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CXX+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$CXX"; then
2211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$CXX"; then
2231 echo "$as_me:$LINENO: result: $CXX" >&5
2232 echo "${ECHO_T}$CXX" >&6
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2238 test -n "$CXX" && break
2241 if test -z "$CXX"; then
2243 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2245 # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$ac_ct_CXX"; then
2253 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262 ac_cv_prog_ac_ct_CXX="$ac_prog"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2272 if test -n "$ac_ct_CXX"; then
2273 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2274 echo "${ECHO_T}$ac_ct_CXX" >&6
2276 echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2280 test -n "$ac_ct_CXX" && break
2282 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2288 # Provide some information about the compiler.
2289 echo "$as_me:$LINENO:" \
2290 "checking for C++ compiler version" >&5
2291 ac_compiler=`set X $ac_compile; echo $2`
2292 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2293 (eval $ac_compiler --version </dev/null >&5) 2>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }
2297 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2298 (eval $ac_compiler -v </dev/null >&5) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2303 (eval $ac_compiler -V </dev/null >&5) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2308 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2309 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2310 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.$ac_ext <<_ACEOF
2314 #line $LINENO "configure"
2315 #include "confdefs.h"
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2350 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2351 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2352 GXX=`test $ac_compiler_gnu = yes && echo yes`
2353 ac_test_CXXFLAGS=${CXXFLAGS+set}
2354 ac_save_CXXFLAGS=$CXXFLAGS
2356 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2357 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2358 if test "${ac_cv_prog_cxx_g+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line $LINENO "configure"
2363 #include "confdefs.h"
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2385 ac_cv_prog_cxx_g=yes
2387 echo "$as_me: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2391 rm -f conftest.$ac_objext conftest.$ac_ext
2393 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2395 if test "$ac_test_CXXFLAGS" = set; then
2396 CXXFLAGS=$ac_save_CXXFLAGS
2397 elif test $ac_cv_prog_cxx_g = yes; then
2398 if test "$GXX" = yes; then
2404 if test "$GXX" = yes; then
2410 for ac_declaration in \
2412 '#include <stdlib.h>' \
2413 'extern "C" void std::exit (int) throw (); using std::exit;' \
2414 'extern "C" void std::exit (int); using std::exit;' \
2415 'extern "C" void exit (int) throw ();' \
2416 'extern "C" void exit (int);' \
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line $LINENO "configure"
2421 #include "confdefs.h"
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2450 rm -f conftest.$ac_objext conftest.$ac_ext
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 rm -f conftest.$ac_objext conftest.$ac_ext
2483 if test -n "$ac_declaration"; then
2484 echo '#ifdef __cplusplus' >>confdefs.h
2485 echo $ac_declaration >>confdefs.h
2486 echo '#endif' >>confdefs.h
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2501 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2502 # On Suns, sometimes $CPP names a directory.
2503 if test -n "$CPP" && test -d "$CPP"; then
2506 if test -z "$CPP"; then
2507 if test "${ac_cv_prog_CPP+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 # Double quotes because CPP needs to be expanded
2511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2514 for ac_c_preproc_warn_flag in '' yes
2516 # Use a header file that comes with gcc, so configuring glibc
2517 # with a fresh cross-compiler works.
2518 # On the NeXT, cc -E runs the code through the compiler's parser,
2519 # not just through cpp. "Syntax error" is here to catch this case.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2542 if test -z "$ac_cpp_err"; then
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Broken: fails on valid input.
2550 rm -f conftest.err conftest.$ac_ext
2552 # OK, works on sane cases. Now check whether non-existent headers
2553 # can be detected and how.
2554 cat >conftest.$ac_ext <<_ACEOF
2555 #line $LINENO "configure"
2556 #include "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
2575 if test -z "$ac_cpp_err"; then
2576 # Broken: success on invalid input.
2579 echo "$as_me: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 # Passes both tests.
2585 rm -f conftest.err conftest.$ac_ext
2588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2589 rm -f conftest.err conftest.$ac_ext
2590 if $ac_preproc_ok; then
2602 echo "$as_me:$LINENO: result: $CPP" >&5
2603 echo "${ECHO_T}$CPP" >&6
2605 for ac_c_preproc_warn_flag in '' yes
2607 # Use a header file that comes with gcc, so configuring glibc
2608 # with a fresh cross-compiler works.
2609 # On the NeXT, cc -E runs the code through the compiler's parser,
2610 # not just through cpp. "Syntax error" is here to catch this case.
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 #include "confdefs.h"
2617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } >/dev/null; then
2625 if test -s conftest.err; then
2626 ac_cpp_err=$ac_c_preproc_warn_flag
2633 if test -z "$ac_cpp_err"; then
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 # Broken: fails on valid input.
2641 rm -f conftest.err conftest.$ac_ext
2643 # OK, works on sane cases. Now check whether non-existent headers
2644 # can be detected and how.
2645 cat >conftest.$ac_ext <<_ACEOF
2646 #line $LINENO "configure"
2647 #include "confdefs.h"
2648 #include <ac_nonexistent.h>
2650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2653 grep -v '^ *+' conftest.er1 >conftest.err
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } >/dev/null; then
2658 if test -s conftest.err; then
2659 ac_cpp_err=$ac_c_preproc_warn_flag
2666 if test -z "$ac_cpp_err"; then
2667 # Broken: success on invalid input.
2670 echo "$as_me: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 # Passes both tests.
2676 rm -f conftest.err conftest.$ac_ext
2679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2680 rm -f conftest.err conftest.$ac_ext
2681 if $ac_preproc_ok; then
2684 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2685 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2686 { (exit 1); exit 1; }; }
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2697 if test -f $ac_dir/install-sh; then
2699 ac_install_sh="$ac_aux_dir/install-sh -c"
2701 elif test -f $ac_dir/install.sh; then
2703 ac_install_sh="$ac_aux_dir/install.sh -c"
2705 elif test -f $ac_dir/shtool; then
2707 ac_install_sh="$ac_aux_dir/shtool install -c"
2711 if test -z "$ac_aux_dir"; then
2712 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2713 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2714 { (exit 1); exit 1; }; }
2716 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2717 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2718 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2720 # Find a good install program. We prefer a C program (faster),
2721 # so one script is as good as another. But avoid the broken or
2722 # incompatible versions:
2723 # SysV /etc/install, /usr/sbin/install
2724 # SunOS /usr/etc/install
2725 # IRIX /sbin/install
2727 # AmigaOS /C/install, which installs bootblocks on floppy discs
2728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2731 # ./install, which can be erroneously created by make from ./install.sh.
2732 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2733 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2734 if test -z "$INSTALL"; then
2735 if test "${ac_cv_path_install+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 # Account for people who put trailing slashes in PATH elements.
2745 ./ | .// | /cC/* | \
2746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2749 # OSF1 and SCO ODT 3.0 have their own names for install.
2750 # Don't use installbsd from OSF since it installs stuff as root
2752 for ac_prog in ginstall scoinst install; do
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2755 if test $ac_prog = install &&
2756 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757 # AIX install. It has an incompatible calling convention.
2759 elif test $ac_prog = install &&
2760 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2761 # program-specific install script used by HP pwplus--don't use.
2764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2776 if test "${ac_cv_path_install+set}" = set; then
2777 INSTALL=$ac_cv_path_install
2779 # As a last resort, use the slow shell script. We don't cache a
2780 # path for INSTALL within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the path is relative.
2783 INSTALL=$ac_install_sh
2786 echo "$as_me:$LINENO: result: $INSTALL" >&5
2787 echo "${ECHO_T}$INSTALL" >&6
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_RANLIB+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 if test -n "$RANLIB"; then
2806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 RANLIB=$ac_cv_prog_RANLIB
2825 if test -n "$RANLIB"; then
2826 echo "$as_me:$LINENO: result: $RANLIB" >&5
2827 echo "${ECHO_T}$RANLIB" >&6
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2834 if test -z "$ac_cv_prog_RANLIB"; then
2835 ac_ct_RANLIB=$RANLIB
2836 # Extract the first word of "ranlib", so it can be a program name with args.
2837 set dummy ranlib; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$ac_ct_RANLIB"; then
2844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_RANLIB="ranlib"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2864 if test -n "$ac_ct_RANLIB"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 RANLIB=$ac_ct_RANLIB
2874 RANLIB="$ac_cv_prog_RANLIB"
2878 for ac_prog in flex lex
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_LEX+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$LEX"; then
2888 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_LEX="$ac_prog"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$LEX"; then
2908 echo "$as_me:$LINENO: result: $LEX" >&5
2909 echo "${ECHO_T}$LEX" >&6
2911 echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2915 test -n "$LEX" && break
2917 test -n "$LEX" || LEX=":"
2919 if test -z "$LEXLIB"
2921 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2922 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2923 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 ac_check_lib_save_LIBS=$LIBS
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 #include "confdefs.h"
2932 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2947 rm -f conftest.$ac_objext conftest$ac_exeext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949 (eval $ac_link) 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest$ac_exeext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_cv_lib_fl_yywrap=yes
2961 echo "$as_me: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 ac_cv_lib_fl_yywrap=no
2965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2966 LIBS=$ac_check_lib_save_LIBS
2968 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2969 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2970 if test $ac_cv_lib_fl_yywrap = yes; then
2973 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2974 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2975 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 ac_check_lib_save_LIBS=$LIBS
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2982 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2999 rm -f conftest.$ac_objext conftest$ac_exeext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001 (eval $ac_link) 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest$ac_exeext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 ac_cv_lib_l_yywrap=yes
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_lib_l_yywrap=no
3017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3018 LIBS=$ac_check_lib_save_LIBS
3020 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3021 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3022 if test $ac_cv_lib_l_yywrap = yes; then
3030 if test "x$LEX" != "x:"; then
3031 echo "$as_me:$LINENO: checking lex output file root" >&5
3032 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3033 if test "${ac_cv_prog_lex_root+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 # The minimal lex program is just a single line: %%. But some broken lexes
3037 # (Solaris, I think it was) want two %% lines, so accommodate them.
3038 cat >conftest.l <<_ACEOF
3042 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3043 (eval $LEX conftest.l) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 if test -f lex.yy.c; then
3048 ac_cv_prog_lex_root=lex.yy
3049 elif test -f lexyy.c; then
3050 ac_cv_prog_lex_root=lexyy
3052 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3053 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3054 { (exit 1); exit 1; }; }
3057 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3058 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3060 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3062 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3063 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3064 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 # POSIX says lex can declare yytext either as a pointer or an array; the
3068 # default is implementation-dependent. Figure out which it is, since
3069 # not all implementations provide the %pointer and %array declarations.
3070 ac_cv_prog_lex_yytext_pointer=no
3071 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3073 LIBS="$LIBS $LEXLIB"
3074 cat >conftest.$ac_ext <<_ACEOF
3075 `cat $LEX_OUTPUT_ROOT.c`
3077 rm -f conftest.$ac_objext conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079 (eval $ac_link) 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest$ac_exeext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_prog_lex_yytext_pointer=yes
3091 echo "$as_me: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3096 rm -f "${LEX_OUTPUT_ROOT}.c"
3099 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3100 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3101 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3103 cat >>confdefs.h <<\_ACEOF
3104 #define YYTEXT_POINTER 1
3110 for ac_prog in 'bison -y' byacc
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116 if test "${ac_cv_prog_YACC+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 if test -n "$YACC"; then
3120 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_YACC="$ac_prog"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 YACC=$ac_cv_prog_YACC
3139 if test -n "$YACC"; then
3140 echo "$as_me:$LINENO: result: $YACC" >&5
3141 echo "${ECHO_T}$YACC" >&6
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3147 test -n "$YACC" && break
3149 test -n "$YACC" || YACC="yacc"
3151 # Extract the first word of "autoconf", so it can be a program name with args.
3152 set dummy autoconf; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$AUTOCONF"; then
3159 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_AUTOCONF="autoconf"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3178 AUTOCONF=$ac_cv_prog_AUTOCONF
3179 if test -n "$AUTOCONF"; then
3180 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3181 echo "${ECHO_T}$AUTOCONF" >&6
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 # Extract the first word of "strip", so it can be a program name with args.
3188 set dummy strip; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_STRIP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$STRIP"; then
3195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_STRIP="strip"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3214 STRIP=$ac_cv_prog_STRIP
3215 if test -n "$STRIP"; then
3216 echo "$as_me:$LINENO: result: $STRIP" >&5
3217 echo "${ECHO_T}$STRIP" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 # Extract the first word of "as", so it can be a program name with args.
3224 set dummy as; ac_word=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_AS+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -n "$AS"; then
3231 ac_cv_prog_AS="$AS" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3251 if test -n "$AS"; then
3252 echo "$as_me:$LINENO: result: $AS" >&5
3253 echo "${ECHO_T}$AS" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 # Extract the first word of "cp", so it can be a program name with args.
3260 set dummy cp; ac_word=$2
3261 echo "$as_me:$LINENO: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263 if test "${ac_cv_prog_CP+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 if test -n "$CP"; then
3267 ac_cv_prog_CP="$CP" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3287 if test -n "$CP"; then
3288 echo "$as_me:$LINENO: result: $CP" >&5
3289 echo "${ECHO_T}$CP" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3296 # Extract the first word of "lyx", so it can be a program name with args.
3297 set dummy lyx; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_LYX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if test -n "$LYX"; then
3304 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_LYX="lyx"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3324 if test -n "$LYX"; then
3325 echo "$as_me:$LINENO: result: $LYX" >&5
3326 echo "${ECHO_T}$LYX" >&6
3328 echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3332 # Extract the first word of "latex", so it can be a program name with args.
3333 set dummy latex; ac_word=$2
3334 echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336 if test "${ac_cv_prog_LATEX+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if test -n "$LATEX"; then
3340 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_LATEX="latex"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3359 LATEX=$ac_cv_prog_LATEX
3360 if test -n "$LATEX"; then
3361 echo "$as_me:$LINENO: result: $LATEX" >&5
3362 echo "${ECHO_T}$LATEX" >&6
3364 echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3368 # Extract the first word of "latex2html", so it can be a program name with args.
3369 set dummy latex2html; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$LATEX2HTML"; then
3376 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_LATEX2HTML="latex2html"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3395 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3396 if test -n "$LATEX2HTML"; then
3397 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3398 echo "${ECHO_T}$LATEX2HTML" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 # Extract the first word of "pdflatex", so it can be a program name with args.
3405 set dummy pdflatex; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 if test -n "$PDFLATEX"; then
3412 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_PDFLATEX="pdflatex"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3431 PDFLATEX=$ac_cv_prog_PDFLATEX
3432 if test -n "$PDFLATEX"; then
3433 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3434 echo "${ECHO_T}$PDFLATEX" >&6
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3440 # Extract the first word of "dvipdf", so it can be a program name with args.
3441 set dummy dvipdf; ac_word=$2
3442 echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3444 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -n "$DVIPDF"; then
3448 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_DVIPDF="dvipdf"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3467 DVIPDF=$ac_cv_prog_DVIPDF
3468 if test -n "$DVIPDF"; then
3469 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3470 echo "${ECHO_T}$DVIPDF" >&6
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3479 if test "$YACC" = ":"; then
3480 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3481 echo "$as_me: error: Cannot find required program bison." >&2;}
3482 { (exit 1); exit 1; }; }
3485 if test "$LEX" = ":"; then
3486 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3487 echo "$as_me: error: Cannot find required program lex." >&2;}
3488 { (exit 1); exit 1; }; }
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 # Checking for header files.
3501 # ===========================================================================
3503 echo "$as_me:$LINENO: checking for egrep" >&5
3504 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3505 if test "${ac_cv_prog_egrep+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3509 then ac_cv_prog_egrep='grep -E'
3510 else ac_cv_prog_egrep='egrep'
3513 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3514 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3515 EGREP=$ac_cv_prog_egrep
3518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3520 if test "${ac_cv_header_stdc+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3524 #line $LINENO "configure"
3525 #include "confdefs.h"
3532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null; then
3540 if test -s conftest.err; then
3541 ac_cpp_err=$ac_c_preproc_warn_flag
3548 if test -z "$ac_cpp_err"; then
3549 ac_cv_header_stdc=yes
3551 echo "$as_me: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 ac_cv_header_stdc=no
3555 rm -f conftest.err conftest.$ac_ext
3557 if test $ac_cv_header_stdc = yes; then
3558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 #include "confdefs.h"
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "memchr" >/dev/null 2>&1; then
3569 ac_cv_header_stdc=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3577 cat >conftest.$ac_ext <<_ACEOF
3578 #line $LINENO "configure"
3579 #include "confdefs.h"
3583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "free" >/dev/null 2>&1; then
3587 ac_cv_header_stdc=no
3593 if test $ac_cv_header_stdc = yes; then
3594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3595 if test "$cross_compiling" = yes; then
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3600 #include "confdefs.h"
3602 #if ((' ' & 0x0FF) == 0x020)
3603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3606 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3607 || ('j' <= (c) && (c) <= 'r') \
3608 || ('s' <= (c) && (c) <= 'z'))
3609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3617 for (i = 0; i < 256; i++)
3618 if (XOR (islower (i), ISLOWER (i))
3619 || toupper (i) != TOUPPER (i))
3624 rm -f conftest$ac_exeext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626 (eval $ac_link) 2>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3637 echo "$as_me: program exited with status $ac_status" >&5
3638 echo "$as_me: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 ac_cv_header_stdc=no
3643 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3649 if test $ac_cv_header_stdc = yes; then
3651 cat >>confdefs.h <<\_ACEOF
3652 #define STDC_HEADERS 1
3657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3668 inttypes.h stdint.h unistd.h
3670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3671 echo "$as_me:$LINENO: checking for $ac_header" >&5
3672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 cat >conftest.$ac_ext <<_ACEOF
3677 #line $LINENO "configure"
3678 #include "confdefs.h"
3679 $ac_includes_default
3681 #include <$ac_header>
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 eval "$as_ac_Header=yes"
3697 echo "$as_me: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 eval "$as_ac_Header=no"
3701 rm -f conftest.$ac_objext conftest.$ac_ext
3703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3706 cat >>confdefs.h <<_ACEOF
3707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3716 for ac_header in sys/socket.h
3718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3720 echo "$as_me:$LINENO: checking for $ac_header" >&5
3721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3728 # Is the header compilable?
3729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3731 cat >conftest.$ac_ext <<_ACEOF
3732 #line $LINENO "configure"
3733 #include "confdefs.h"
3734 $ac_includes_default
3735 #include <$ac_header>
3737 rm -f conftest.$ac_objext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_header_compiler=yes
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 ac_header_compiler=no
3755 rm -f conftest.$ac_objext conftest.$ac_ext
3756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3757 echo "${ECHO_T}$ac_header_compiler" >&6
3759 # Is the header present?
3760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765 #include <$ac_header>
3767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null; then
3775 if test -s conftest.err; then
3776 ac_cpp_err=$ac_c_preproc_warn_flag
3783 if test -z "$ac_cpp_err"; then
3784 ac_header_preproc=yes
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 ac_header_preproc=no
3790 rm -f conftest.err conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3792 echo "${ECHO_T}$ac_header_preproc" >&6
3794 # So? What about this header?
3795 case $ac_header_compiler:$ac_header_preproc in
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3809 echo "$as_me:$LINENO: checking for $ac_header" >&5
3810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 eval "$as_ac_Header=$ac_header_preproc"
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3831 # Checking for functions
3832 # ===========================================================================
3834 for ac_func in strerror
3836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3837 echo "$as_me:$LINENO: checking for $ac_func" >&5
3838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3839 if eval "test \"\${$as_ac_var+set}\" = set"; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3845 /* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char $ac_func (); below. */
3848 /* Override any gcc2 internal prototype to avoid an error. */
3852 /* We use char because int might match the return type of a gcc2
3853 builtin and then its argument prototype would still apply. */
3860 /* The GNU C library defines this for functions which it implements
3861 to always fail with ENOSYS. Some functions are actually named
3862 something starting with __ and the normal name is an alias. */
3863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 eval "$as_ac_var=yes"
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 eval "$as_ac_var=no"
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3895 if test `eval echo '${'$as_ac_var'}'` = yes; then
3896 cat >>confdefs.h <<_ACEOF
3897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3907 for ac_func in vsnprintf snprintf vsprintf mkstemp
3909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3910 echo "$as_me:$LINENO: checking for $ac_func" >&5
3911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3912 if eval "test \"\${$as_ac_var+set}\" = set"; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func (); below. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3933 /* The GNU C library defines this for functions which it implements
3934 to always fail with ENOSYS. Some functions are actually named
3935 something starting with __ and the normal name is an alias. */
3936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 eval "$as_ac_var=yes"
3960 echo "$as_me: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 eval "$as_ac_var=no"
3964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3968 if test `eval echo '${'$as_ac_var'}'` = yes; then
3969 cat >>confdefs.h <<_ACEOF
3970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3979 # ===========================================================================
3981 # DD_COPT macro checks if the compiler specified as the 1st parameter
3982 # supports option specified as the 2nd parameter
3983 # For example: DD_CPORT(CXX, fPIC)
3987 # This macro expands DIR and assigns it to RET.
3988 # If DIR is NONE, then it's replaced by DEFAULT.
3990 # Based on AC_DEFINE_DIR
3994 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
3998 # adl_NORMALIZE_PATH
4000 # - empty paths are changed to '.'
4001 # - trailing slashes are removed
4002 # - repeated slashes are squeezed except a leading doubled slash '//'
4003 # (which might indicate a networked disk on some OS).
4006 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4007 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4008 # are turned into backslashes, otherwise they are all turned into slashes.
4010 # This makes processing of DOS filenames quite easier, because you can turn a
4011 # filename to the Unix notation, make your processing, and turn it back to
4012 # original notation.
4017 # adl_COMPUTE_RELATIVE_PATH
4019 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4020 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4021 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4022 # absolute filenames for this macro to success.
4028 ## The following helper macros are too fragile to be used out
4029 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4030 ## paths are normalized), that's why I'm keeping them in the same file.
4031 ## Still, some of them maybe worth to reuse.
4045 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4050 # Checking characteristics of compilers and other programs
4051 # ===========================================================================
4052 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4053 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4054 if test "${sdcc_cv_MM+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 echo "#include <stdio.h>" >_test_.c
4059 $CPP -v -MM _test_.c 1>&5 2>&5
4060 if test "$?" = "0"; then
4067 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4068 echo "${ECHO_T}$sdcc_cv_MM" >&6
4072 # This is the first time when CFLAGS are set/modified!!
4074 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4075 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4076 if test "${sdcc_cv_CCggdb+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4084 if test "$?" = "0"; then
4085 sdcc_cv_CCggdb="yes"
4089 rm -f _test_.* a.out
4091 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4092 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4094 if test "$sdcc_cv_CCggdb" = "yes"; then
4095 CFLAGS="-ggdb ${CFLAGS}"
4099 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4100 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4101 if test "${sdcc_cv_CCpipe+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 $CC -v -pipe -c _test_.c 1>&5 2>&5
4109 if test "$?" = "0"; then
4110 sdcc_cv_CCpipe="yes"
4114 rm -f _test_.* a.out
4116 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4117 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4119 if test "$sdcc_cv_CCpipe" = "yes"; then
4120 CFLAGS="-pipe $CFLAGS"
4124 # Checks for typedefs, structures, and compiler characteristics.
4125 # ===========================================================================
4126 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4127 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4128 if test "${ac_cv_type_signal+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 #include "confdefs.h"
4134 #include <sys/types.h>
4140 extern "C" void (*signal (int, void (*)(int)))(int);
4142 void (*signal ()) ();
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_type_signal=void
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 ac_cv_type_signal=int
4171 rm -f conftest.$ac_objext conftest.$ac_ext
4173 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4174 echo "${ECHO_T}$ac_cv_type_signal" >&6
4176 cat >>confdefs.h <<_ACEOF
4177 #define RETSIGTYPE $ac_cv_type_signal
4182 echo "$as_me:$LINENO: checking for char" >&5
4183 echo $ECHO_N "checking for char... $ECHO_C" >&6
4184 if test "${ac_cv_type_char+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4189 #include "confdefs.h"
4190 $ac_includes_default
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4216 echo "$as_me: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4220 rm -f conftest.$ac_objext conftest.$ac_ext
4222 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4223 echo "${ECHO_T}$ac_cv_type_char" >&6
4225 echo "$as_me:$LINENO: checking size of char" >&5
4226 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4227 if test "${ac_cv_sizeof_char+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test "$ac_cv_type_char" = yes; then
4231 # The cast to unsigned long works around a bug in the HP C Compiler
4232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4234 # This bug is HP SR number 8606223364.
4235 if test "$cross_compiling" = yes; then
4236 # Depending upon the size, compute the lo and hi bounds.
4237 cat >conftest.$ac_ext <<_ACEOF
4238 #line $LINENO "configure"
4239 #include "confdefs.h"
4240 $ac_includes_default
4244 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 cat >conftest.$ac_ext <<_ACEOF
4266 #line $LINENO "configure"
4267 #include "confdefs.h"
4268 $ac_includes_default
4272 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_hi=$ac_mid; break
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 ac_lo=`expr $ac_mid + 1`
4296 if test $ac_lo -le $ac_mid; then
4300 ac_mid=`expr 2 '*' $ac_mid + 1`
4302 rm -f conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line $LINENO "configure"
4309 #include "confdefs.h"
4310 $ac_includes_default
4314 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4321 rm -f conftest.$ac_objext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4335 cat >conftest.$ac_ext <<_ACEOF
4336 #line $LINENO "configure"
4337 #include "confdefs.h"
4338 $ac_includes_default
4342 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_lo=$ac_mid; break
4363 echo "$as_me: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4365 ac_hi=`expr '(' $ac_mid ')' - 1`
4366 if test $ac_mid -le $ac_hi; then
4370 ac_mid=`expr 2 '*' $ac_mid`
4372 rm -f conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382 # Binary search between lo and hi bounds.
4383 while test "x$ac_lo" != "x$ac_hi"; do
4384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line $LINENO "configure"
4387 #include "confdefs.h"
4388 $ac_includes_default
4392 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4413 echo "$as_me: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 ac_lo=`expr '(' $ac_mid ')' + 1`
4417 rm -f conftest.$ac_objext conftest.$ac_ext
4420 ?*) ac_cv_sizeof_char=$ac_lo;;
4421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4422 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4423 { (exit 1); exit 1; }; } ;;
4426 if test "$cross_compiling" = yes; then
4427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4428 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4429 { (exit 1); exit 1; }; }
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4434 $ac_includes_default
4435 long longval () { return (long) (sizeof (char)); }
4436 unsigned long ulongval () { return (long) (sizeof (char)); }
4443 FILE *f = fopen ("conftest.val", "w");
4446 if (((long) (sizeof (char))) < 0)
4448 long i = longval ();
4449 if (i != ((long) (sizeof (char))))
4451 fprintf (f, "%ld\n", i);
4455 unsigned long i = ulongval ();
4456 if (i != ((long) (sizeof (char))))
4458 fprintf (f, "%lu\n", i);
4460 exit (ferror (f) || fclose (f) != 0);
4466 rm -f conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_sizeof_char=`cat conftest.val`
4479 echo "$as_me: program exited with status $ac_status" >&5
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4484 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4485 { (exit 1); exit 1; }; }
4487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4496 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4497 cat >>confdefs.h <<_ACEOF
4498 #define SIZEOF_CHAR $ac_cv_sizeof_char
4502 echo "$as_me:$LINENO: checking for short" >&5
4503 echo $ECHO_N "checking for short... $ECHO_C" >&6
4504 if test "${ac_cv_type_short+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 #include "confdefs.h"
4510 $ac_includes_default
4522 rm -f conftest.$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_type_short=yes
4536 echo "$as_me: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4540 rm -f conftest.$ac_objext conftest.$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4543 echo "${ECHO_T}$ac_cv_type_short" >&6
4545 echo "$as_me:$LINENO: checking size of short" >&5
4546 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4547 if test "${ac_cv_sizeof_short+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 if test "$ac_cv_type_short" = yes; then
4551 # The cast to unsigned long works around a bug in the HP C Compiler
4552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4554 # This bug is HP SR number 8606223364.
4555 if test "$cross_compiling" = yes; then
4556 # Depending upon the size, compute the lo and hi bounds.
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4559 #include "confdefs.h"
4560 $ac_includes_default
4564 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4587 #include "confdefs.h"
4588 $ac_includes_default
4592 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_hi=$ac_mid; break
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 ac_lo=`expr $ac_mid + 1`
4616 if test $ac_lo -le $ac_mid; then
4620 ac_mid=`expr 2 '*' $ac_mid + 1`
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4625 echo "$as_me: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 #include "confdefs.h"
4630 $ac_includes_default
4634 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4655 cat >conftest.$ac_ext <<_ACEOF
4656 #line $LINENO "configure"
4657 #include "confdefs.h"
4658 $ac_includes_default
4662 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_lo=$ac_mid; break
4683 echo "$as_me: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4685 ac_hi=`expr '(' $ac_mid ')' - 1`
4686 if test $ac_mid -le $ac_hi; then
4690 ac_mid=`expr 2 '*' $ac_mid`
4692 rm -f conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4699 rm -f conftest.$ac_objext conftest.$ac_ext
4701 rm -f conftest.$ac_objext conftest.$ac_ext
4702 # Binary search between lo and hi bounds.
4703 while test "x$ac_lo" != "x$ac_hi"; do
4704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4708 $ac_includes_default
4712 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4733 echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_lo=`expr '(' $ac_mid ')' + 1`
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4740 ?*) ac_cv_sizeof_short=$ac_lo;;
4741 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4742 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4746 if test "$cross_compiling" = yes; then
4747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4748 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4749 { (exit 1); exit 1; }; }
4751 cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4753 #include "confdefs.h"
4754 $ac_includes_default
4755 long longval () { return (long) (sizeof (short)); }
4756 unsigned long ulongval () { return (long) (sizeof (short)); }
4763 FILE *f = fopen ("conftest.val", "w");
4766 if (((long) (sizeof (short))) < 0)
4768 long i = longval ();
4769 if (i != ((long) (sizeof (short))))
4771 fprintf (f, "%ld\n", i);
4775 unsigned long i = ulongval ();
4776 if (i != ((long) (sizeof (short))))
4778 fprintf (f, "%lu\n", i);
4780 exit (ferror (f) || fclose (f) != 0);
4786 rm -f conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_sizeof_short=`cat conftest.val`
4799 echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4804 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4805 { (exit 1); exit 1; }; }
4807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4812 ac_cv_sizeof_short=0
4815 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4816 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4817 cat >>confdefs.h <<_ACEOF
4818 #define SIZEOF_SHORT $ac_cv_sizeof_short
4822 echo "$as_me:$LINENO: checking for int" >&5
4823 echo $ECHO_N "checking for int... $ECHO_C" >&6
4824 if test "${ac_cv_type_int+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line $LINENO "configure"
4829 #include "confdefs.h"
4830 $ac_includes_default
4842 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4856 echo "$as_me: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4860 rm -f conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4863 echo "${ECHO_T}$ac_cv_type_int" >&6
4865 echo "$as_me:$LINENO: checking size of int" >&5
4866 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4867 if test "${ac_cv_sizeof_int+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test "$ac_cv_type_int" = yes; then
4871 # The cast to unsigned long works around a bug in the HP C Compiler
4872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4874 # This bug is HP SR number 8606223364.
4875 if test "$cross_compiling" = yes; then
4876 # Depending upon the size, compute the lo and hi bounds.
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 #include "confdefs.h"
4880 $ac_includes_default
4884 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4905 cat >conftest.$ac_ext <<_ACEOF
4906 #line $LINENO "configure"
4907 #include "confdefs.h"
4908 $ac_includes_default
4912 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4919 rm -f conftest.$ac_objext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_hi=$ac_mid; break
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_lo=`expr $ac_mid + 1`
4936 if test $ac_lo -le $ac_mid; then
4940 ac_mid=`expr 2 '*' $ac_mid + 1`
4942 rm -f conftest.$ac_objext conftest.$ac_ext
4945 echo "$as_me: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 cat >conftest.$ac_ext <<_ACEOF
4948 #line $LINENO "configure"
4949 #include "confdefs.h"
4950 $ac_includes_default
4954 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4975 cat >conftest.$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 #include "confdefs.h"
4978 $ac_includes_default
4982 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_lo=$ac_mid; break
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5005 ac_hi=`expr '(' $ac_mid ')' - 1`
5006 if test $ac_mid -le $ac_hi; then
5010 ac_mid=`expr 2 '*' $ac_mid`
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5015 echo "$as_me: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5019 rm -f conftest.$ac_objext conftest.$ac_ext
5021 rm -f conftest.$ac_objext conftest.$ac_ext
5022 # Binary search between lo and hi bounds.
5023 while test "x$ac_lo" != "x$ac_hi"; do
5024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line $LINENO "configure"
5027 #include "confdefs.h"
5028 $ac_includes_default
5032 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 ac_lo=`expr '(' $ac_mid ')' + 1`
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5060 ?*) ac_cv_sizeof_int=$ac_lo;;
5061 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5062 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5066 if test "$cross_compiling" = yes; then
5067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5068 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5069 { (exit 1); exit 1; }; }
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 #include "confdefs.h"
5074 $ac_includes_default
5075 long longval () { return (long) (sizeof (int)); }
5076 unsigned long ulongval () { return (long) (sizeof (int)); }
5083 FILE *f = fopen ("conftest.val", "w");
5086 if (((long) (sizeof (int))) < 0)
5088 long i = longval ();
5089 if (i != ((long) (sizeof (int))))
5091 fprintf (f, "%ld\n", i);
5095 unsigned long i = ulongval ();
5096 if (i != ((long) (sizeof (int))))
5098 fprintf (f, "%lu\n", i);
5100 exit (ferror (f) || fclose (f) != 0);
5106 rm -f conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_sizeof_int=`cat conftest.val`
5119 echo "$as_me: program exited with status $ac_status" >&5
5120 echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5124 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5125 { (exit 1); exit 1; }; }
5127 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5135 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5136 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5137 cat >>confdefs.h <<_ACEOF
5138 #define SIZEOF_INT $ac_cv_sizeof_int
5142 echo "$as_me:$LINENO: checking for long" >&5
5143 echo $ECHO_N "checking for long... $ECHO_C" >&6
5144 if test "${ac_cv_type_long+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5148 #line $LINENO "configure"
5149 #include "confdefs.h"
5150 $ac_includes_default
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5180 rm -f conftest.$ac_objext conftest.$ac_ext
5182 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5183 echo "${ECHO_T}$ac_cv_type_long" >&6
5185 echo "$as_me:$LINENO: checking size of long" >&5
5186 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5187 if test "${ac_cv_sizeof_long+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 if test "$ac_cv_type_long" = yes; then
5191 # The cast to unsigned long works around a bug in the HP C Compiler
5192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5194 # This bug is HP SR number 8606223364.
5195 if test "$cross_compiling" = yes; then
5196 # Depending upon the size, compute the lo and hi bounds.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 #include "confdefs.h"
5200 $ac_includes_default
5204 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5228 $ac_includes_default
5232 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_hi=$ac_mid; break
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 ac_lo=`expr $ac_mid + 1`
5256 if test $ac_lo -le $ac_mid; then
5260 ac_mid=`expr 2 '*' $ac_mid + 1`
5262 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 #include "confdefs.h"
5270 $ac_includes_default
5274 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 $ac_includes_default
5302 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_lo=$ac_mid; break
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_hi=`expr '(' $ac_mid ')' - 1`
5326 if test $ac_mid -le $ac_hi; then
5330 ac_mid=`expr 2 '*' $ac_mid`
5332 rm -f conftest.$ac_objext conftest.$ac_ext
5335 echo "$as_me: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5339 rm -f conftest.$ac_objext conftest.$ac_ext
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 # Binary search between lo and hi bounds.
5343 while test "x$ac_lo" != "x$ac_hi"; do
5344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line $LINENO "configure"
5347 #include "confdefs.h"
5348 $ac_includes_default
5352 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 ac_lo=`expr '(' $ac_mid ')' + 1`
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5380 ?*) ac_cv_sizeof_long=$ac_lo;;
5381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5382 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5383 { (exit 1); exit 1; }; } ;;
5386 if test "$cross_compiling" = yes; then
5387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5388 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5389 { (exit 1); exit 1; }; }
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 #include "confdefs.h"
5394 $ac_includes_default
5395 long longval () { return (long) (sizeof (long)); }
5396 unsigned long ulongval () { return (long) (sizeof (long)); }
5403 FILE *f = fopen ("conftest.val", "w");
5406 if (((long) (sizeof (long))) < 0)
5408 long i = longval ();
5409 if (i != ((long) (sizeof (long))))
5411 fprintf (f, "%ld\n", i);
5415 unsigned long i = ulongval ();
5416 if (i != ((long) (sizeof (long))))
5418 fprintf (f, "%lu\n", i);
5420 exit (ferror (f) || fclose (f) != 0);
5426 rm -f conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_sizeof_long=`cat conftest.val`
5439 echo "$as_me: program exited with status $ac_status" >&5
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5444 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5445 { (exit 1); exit 1; }; }
5447 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5456 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5457 cat >>confdefs.h <<_ACEOF
5458 #define SIZEOF_LONG $ac_cv_sizeof_long
5465 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5469 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5473 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5477 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5484 echo "$as_me:$LINENO: checking type name for byte" >&5
5485 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5486 TYPE_BYTE=`type_name 1`
5487 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5488 echo "${ECHO_T}$TYPE_BYTE" >&6
5489 echo "$as_me:$LINENO: checking type name for word" >&5
5490 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5491 TYPE_WORD=`type_name 2`
5492 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5493 echo "${ECHO_T}$TYPE_WORD" >&6
5494 echo "$as_me:$LINENO: checking type name for dword" >&5
5495 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5496 TYPE_DWORD=`type_name 4`
5497 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5498 echo "${ECHO_T}$TYPE_DWORD" >&6
5499 cat >>confdefs.h <<_ACEOF
5500 #define TYPE_BYTE $TYPE_BYTE
5503 cat >>confdefs.h <<_ACEOF
5504 #define TYPE_WORD $TYPE_WORD
5507 cat >>confdefs.h <<_ACEOF
5508 #define TYPE_DWORD $TYPE_DWORD
5512 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5513 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5514 if test "${ac_cv_c_bigendian+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 # See if sys/param.h defines the BYTE_ORDER macro.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 #include <sys/types.h>
5522 #include <sys/param.h>
5527 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 # It does; now see whether it defined to BIG_ENDIAN or not.
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 #include "confdefs.h"
5551 #include <sys/types.h>
5552 #include <sys/param.h>
5557 #if BYTE_ORDER != BIG_ENDIAN
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_c_bigendian=yes
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 ac_cv_c_bigendian=no
5583 rm -f conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 # It does not; compile a test program.
5588 if test "$cross_compiling" = yes; then
5589 # try to guess the endianness by grepping values into an object file
5590 ac_cv_c_bigendian=unknown
5591 cat >conftest.$ac_ext <<_ACEOF
5592 #line $LINENO "configure"
5593 #include "confdefs.h"
5594 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5595 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5596 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5597 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5598 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5599 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5603 _ascii (); _ebcdic ();
5608 rm -f conftest.$ac_objext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5621 ac_cv_c_bigendian=yes
5623 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5624 if test "$ac_cv_c_bigendian" = unknown; then
5625 ac_cv_c_bigendian=no
5627 # finding both strings is unlikely to happen, but who knows?
5628 ac_cv_c_bigendian=unknown
5632 echo "$as_me: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5639 #include "confdefs.h"
5643 /* Are we little or big endian? From Harbison&Steele. */
5647 char c[sizeof (long)];
5650 exit (u.c[sizeof (long) - 1] == 1);
5653 rm -f conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_c_bigendian=no
5666 echo "$as_me: program exited with status $ac_status" >&5
5667 echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 ac_cv_c_bigendian=yes
5672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5675 rm -f conftest.$ac_objext conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5678 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5679 case $ac_cv_c_bigendian in
5682 cat >>confdefs.h <<\_ACEOF
5683 #define WORDS_BIGENDIAN 1
5689 { { echo "$as_me:$LINENO: error: unknown endianness
5690 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5691 echo "$as_me: error: unknown endianness
5692 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5693 { (exit 1); exit 1; }; } ;;
5697 # Set standard installation paths
5698 # ===========================================================================
5700 # In the Makefiles we need paths with '/' as directory separator, even if
5701 # crosscompiling for Win32.
5702 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5703 # The variables in the Makefiles are replaced by AC_SUBST()
5705 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5707 # The macros are expanded for the header.
5708 # The variables in the header are replaced by AC_*DEFINE*()
5709 # sdccconf_h_dir_separator contains a backslash.
5711 if test "${sdccconf_h_dir_separator}" = ""; then
5712 sdccconf_h_dir_separator="/"
5718 # include_dir_suffix:
5719 # *nix default: "sdcc/include"
5722 if test "${include_dir_suffix}" = ""; then
5723 include_dir_suffix="sdcc/include"
5728 # *nix default: "sdcc/lib"
5730 if test "${lib_dir_suffix}" = ""; then
5731 lib_dir_suffix="sdcc/lib"
5736 # *nix default: "${datadir}/sdcc/doc"
5738 if test "${docdir}" = ""; then
5739 docdir="\${datadir}"/sdcc/doc
5748 cat >>confdefs.h <<_ACEOF
5749 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5752 cat >>confdefs.h <<_ACEOF
5753 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
5758 # default: "NONE", ${ac_default_prefix}: "/usr/local"
5760 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5763 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
5764 ac_expand=`eval echo $ac_expand`
5765 expanded_prefix=`eval echo $ac_expand`
5768 ac_ndu=$expanded_prefix
5770 # change empty paths to '.'
5772 # strip trailing slashes
5773 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5776 # squeze repeated slashes
5777 case $sdccconf_h_dir_separator in
5778 # if the path contains any backslashes, turn slashes into backslashes
5780 # Bernhard Held 2003-04-06
5781 # This was the original line. It doesn't:
5782 # - convert the first slash
5783 # - replace a slash with a double-backslash
5784 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5785 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5787 # if the path contains slashes, also turn backslashes into slashes
5788 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5790 cat >>confdefs.h <<_ACEOF
5791 #define PREFIX "${ac_ndu}"
5797 # default: "${prefix}"
5799 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5801 ac_expand=$exec_prefix
5802 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
5803 ac_expand=`eval echo $ac_expand`
5804 expanded_exec_prefix=`eval echo $ac_expand`
5807 ac_ndu=$expanded_exec_prefix
5809 # change empty paths to '.'
5811 # strip trailing slashes
5812 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5815 # squeze repeated slashes
5816 case $sdccconf_h_dir_separator in
5817 # if the path contains any backslashes, turn slashes into backslashes
5819 # Bernhard Held 2003-04-06
5820 # This was the original line. It doesn't:
5821 # - convert the first slash
5822 # - replace a slash with a double-backslash
5823 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5824 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5826 # if the path contains slashes, also turn backslashes into slashes
5827 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5829 cat >>confdefs.h <<_ACEOF
5830 #define EXEC_PREFIX "${ac_ndu}"
5836 # default: "${exec_prefix}/bin"
5838 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5841 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5842 ac_expand=`eval echo $ac_expand`
5843 expanded_bindir=`eval echo $ac_expand`
5846 ac_ndu=$expanded_bindir
5848 # change empty paths to '.'
5850 # strip trailing slashes
5851 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5854 # squeze repeated slashes
5855 case $sdccconf_h_dir_separator in
5856 # if the path contains any backslashes, turn slashes into backslashes
5858 # Bernhard Held 2003-04-06
5859 # This was the original line. It doesn't:
5860 # - convert the first slash
5861 # - replace a slash with a double-backslash
5862 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5863 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5865 # if the path contains slashes, also turn backslashes into slashes
5866 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5868 cat >>confdefs.h <<_ACEOF
5869 #define BINDIR "${ac_ndu}"
5875 # default: "${prefix}/share"
5877 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5880 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5881 ac_expand=`eval echo $ac_expand`
5882 expanded_datadir=`eval echo $ac_expand`
5885 ac_ndu=$expanded_datadir
5887 # change empty paths to '.'
5889 # strip trailing slashes
5890 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5893 # squeze repeated slashes
5894 case $sdccconf_h_dir_separator in
5895 # if the path contains any backslashes, turn slashes into backslashes
5897 # Bernhard Held 2003-04-06
5898 # This was the original line. It doesn't:
5899 # - convert the first slash
5900 # - replace a slash with a double-backslash
5901 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5902 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5904 # if the path contains slashes, also turn backslashes into slashes
5905 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5907 cat >>confdefs.h <<_ACEOF
5908 #define DATADIR "${ac_ndu}"
5913 # include/lib suffix
5914 norm_inc_dir_suffix=${include_dir_suffix}
5915 case ":$norm_inc_dir_suffix:" in
5916 # change empty paths to '.'
5917 ::) norm_inc_dir_suffix='.' ;;
5918 # strip trailing slashes
5919 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5922 # squeze repeated slashes
5923 case $sdccconf_h_dir_separator in
5924 # if the path contains any backslashes, turn slashes into backslashes
5926 # Bernhard Held 2003-04-06
5927 # This was the original line. It doesn't:
5928 # - convert the first slash
5929 # - replace a slash with a double-backslash
5930 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5931 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5933 # if the path contains slashes, also turn backslashes into slashes
5934 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5936 cat >>confdefs.h <<_ACEOF
5937 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
5940 norm_lib_dir_suffix=${lib_dir_suffix}
5941 case ":$norm_lib_dir_suffix:" in
5942 # change empty paths to '.'
5943 ::) norm_lib_dir_suffix='.' ;;
5944 # strip trailing slashes
5945 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5948 # squeze repeated slashes
5949 case $sdccconf_h_dir_separator in
5950 # if the path contains any backslashes, turn slashes into backslashes
5952 # Bernhard Held 2003-04-06
5953 # This was the original line. It doesn't:
5954 # - convert the first slash
5955 # - replace a slash with a double-backslash
5956 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5957 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5959 # if the path contains slashes, also turn backslashes into slashes
5960 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5962 cat >>confdefs.h <<_ACEOF
5963 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5968 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
5969 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
5970 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
5971 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
5972 _lcl_receval="$_lcl_from"
5973 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5974 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5976 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5977 _lcl_receval_old="$_lcl_receval"
5978 eval _lcl_receval="\"$_lcl_receval\""
5980 echo "$_lcl_receval")`
5981 _lcl_receval="$_lcl_to"
5982 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5983 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5985 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5986 _lcl_receval_old="$_lcl_receval"
5987 eval _lcl_receval="\"$_lcl_receval\""
5989 echo "$_lcl_receval")`
5990 _lcl_notation="$_lcl_from$_lcl_to"
5991 case ":$_lcl_from:" in
5992 # change empty paths to '.'
5993 ::) _lcl_from='.' ;;
5994 # strip trailing slashes
5995 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
5998 # squeze repeated slashes
6000 # if the path contains any backslashes, turn slashes into backslashes
6002 # Bernhard Held 2003-04-06
6003 # This was the original line. It doesn't:
6004 # - convert the first slash
6005 # - replace a slash with a double-backslash
6006 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6007 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6009 # if the path contains slashes, also turn backslashes into slashes
6010 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6012 case ":$_lcl_to:" in
6013 # change empty paths to '.'
6015 # strip trailing slashes
6016 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6019 # squeze repeated slashes
6021 # if the path contains any backslashes, turn slashes into backslashes
6023 # Bernhard Held 2003-04-06
6024 # This was the original line. It doesn't:
6025 # - convert the first slash
6026 # - replace a slash with a double-backslash
6027 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6028 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6030 # if the path contains slashes, also turn backslashes into slashes
6031 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6033 _lcl_common_prefix=''
6034 _lcl_second_prefix_match=''
6035 while test "$_lcl_second_prefix_match" != 0; do
6036 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6037 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6038 if test "$_lcl_second_prefix_match" != 0; then
6039 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6040 _lcl_common_prefix="$_lcl_first_prefix"
6042 _lcl_second_prefix_match=0
6046 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6049 while test "$_lcl_tmp" != ''; do
6050 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6051 if test "$_lcl_first_suffix" != ''; then
6052 _lcl_first_suffix="$_lcl_tmp"
6053 _lcl_first_rel="../$_lcl_first_rel"
6056 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6057 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6058 case ":$_lcl_result_tmp:" in
6059 # change empty paths to '.'
6060 ::) _lcl_result_tmp='.' ;;
6061 # strip trailing slashes
6062 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6065 # squeze repeated slashes
6066 case "$_lcl_notation" in
6067 # if the path contains any backslashes, turn slashes into backslashes
6069 # Bernhard Held 2003-04-06
6070 # This was the original line. It doesn't:
6071 # - convert the first slash
6072 # - replace a slash with a double-backslash
6073 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6074 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6076 # if the path contains slashes, also turn backslashes into slashes
6077 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6079 eval $_lcl_result_var='$_lcl_result_tmp'
6081 case ":$bin2data_dir:" in
6082 # change empty paths to '.'
6083 ::) bin2data_dir='.' ;;
6084 # strip trailing slashes
6085 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6088 # squeze repeated slashes
6089 case $sdccconf_h_dir_separator in
6090 # if the path contains any backslashes, turn slashes into backslashes
6092 # Bernhard Held 2003-04-06
6093 # This was the original line. It doesn't:
6094 # - convert the first slash
6095 # - replace a slash with a double-backslash
6096 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6097 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6099 # if the path contains slashes, also turn backslashes into slashes
6100 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6102 cat >>confdefs.h <<_ACEOF
6103 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6107 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6108 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6109 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6110 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6111 _lcl_receval="$_lcl_from"
6112 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6113 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6115 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6116 _lcl_receval_old="$_lcl_receval"
6117 eval _lcl_receval="\"$_lcl_receval\""
6119 echo "$_lcl_receval")`
6120 _lcl_receval="$_lcl_to"
6121 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6122 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6124 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6125 _lcl_receval_old="$_lcl_receval"
6126 eval _lcl_receval="\"$_lcl_receval\""
6128 echo "$_lcl_receval")`
6129 _lcl_notation="$_lcl_from$_lcl_to"
6130 case ":$_lcl_from:" in
6131 # change empty paths to '.'
6132 ::) _lcl_from='.' ;;
6133 # strip trailing slashes
6134 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6137 # squeze repeated slashes
6139 # if the path contains any backslashes, turn slashes into backslashes
6141 # Bernhard Held 2003-04-06
6142 # This was the original line. It doesn't:
6143 # - convert the first slash
6144 # - replace a slash with a double-backslash
6145 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6146 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6148 # if the path contains slashes, also turn backslashes into slashes
6149 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6151 case ":$_lcl_to:" in
6152 # change empty paths to '.'
6154 # strip trailing slashes
6155 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6158 # squeze repeated slashes
6160 # if the path contains any backslashes, turn slashes into backslashes
6162 # Bernhard Held 2003-04-06
6163 # This was the original line. It doesn't:
6164 # - convert the first slash
6165 # - replace a slash with a double-backslash
6166 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6167 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6169 # if the path contains slashes, also turn backslashes into slashes
6170 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6172 _lcl_common_prefix=''
6173 _lcl_second_prefix_match=''
6174 while test "$_lcl_second_prefix_match" != 0; do
6175 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6176 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6177 if test "$_lcl_second_prefix_match" != 0; then
6178 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6179 _lcl_common_prefix="$_lcl_first_prefix"
6181 _lcl_second_prefix_match=0
6185 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6188 while test "$_lcl_tmp" != ''; do
6189 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6190 if test "$_lcl_first_suffix" != ''; then
6191 _lcl_first_suffix="$_lcl_tmp"
6192 _lcl_first_rel="../$_lcl_first_rel"
6195 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6196 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6197 case ":$_lcl_result_tmp:" in
6198 # change empty paths to '.'
6199 ::) _lcl_result_tmp='.' ;;
6200 # strip trailing slashes
6201 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6204 # squeze repeated slashes
6205 case "$_lcl_notation" in
6206 # if the path contains any backslashes, turn slashes into backslashes
6208 # Bernhard Held 2003-04-06
6209 # This was the original line. It doesn't:
6210 # - convert the first slash
6211 # - replace a slash with a double-backslash
6212 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6213 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6215 # if the path contains slashes, also turn backslashes into slashes
6216 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6218 eval $_lcl_result_var='$_lcl_result_tmp'
6220 case ":$prefix2bin_dir:" in
6221 # change empty paths to '.'
6222 ::) prefix2bin_dir='.' ;;
6223 # strip trailing slashes
6224 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6227 # squeze repeated slashes
6228 case $sdccconf_h_dir_separator in
6229 # if the path contains any backslashes, turn slashes into backslashes
6231 # Bernhard Held 2003-04-06
6232 # This was the original line. It doesn't:
6233 # - convert the first slash
6234 # - replace a slash with a double-backslash
6235 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6236 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6238 # if the path contains slashes, also turn backslashes into slashes
6239 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6241 cat >>confdefs.h <<_ACEOF
6242 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6246 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6247 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6248 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6249 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6250 _lcl_receval="$_lcl_from"
6251 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6252 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6254 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6255 _lcl_receval_old="$_lcl_receval"
6256 eval _lcl_receval="\"$_lcl_receval\""
6258 echo "$_lcl_receval")`
6259 _lcl_receval="$_lcl_to"
6260 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6261 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6263 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6264 _lcl_receval_old="$_lcl_receval"
6265 eval _lcl_receval="\"$_lcl_receval\""
6267 echo "$_lcl_receval")`
6268 _lcl_notation="$_lcl_from$_lcl_to"
6269 case ":$_lcl_from:" in
6270 # change empty paths to '.'
6271 ::) _lcl_from='.' ;;
6272 # strip trailing slashes
6273 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6276 # squeze repeated slashes
6278 # if the path contains any backslashes, turn slashes into backslashes
6280 # Bernhard Held 2003-04-06
6281 # This was the original line. It doesn't:
6282 # - convert the first slash
6283 # - replace a slash with a double-backslash
6284 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6285 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6287 # if the path contains slashes, also turn backslashes into slashes
6288 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6290 case ":$_lcl_to:" in
6291 # change empty paths to '.'
6293 # strip trailing slashes
6294 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6297 # squeze repeated slashes
6299 # if the path contains any backslashes, turn slashes into backslashes
6301 # Bernhard Held 2003-04-06
6302 # This was the original line. It doesn't:
6303 # - convert the first slash
6304 # - replace a slash with a double-backslash
6305 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6306 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6308 # if the path contains slashes, also turn backslashes into slashes
6309 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6311 _lcl_common_prefix=''
6312 _lcl_second_prefix_match=''
6313 while test "$_lcl_second_prefix_match" != 0; do
6314 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6315 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6316 if test "$_lcl_second_prefix_match" != 0; then
6317 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6318 _lcl_common_prefix="$_lcl_first_prefix"
6320 _lcl_second_prefix_match=0
6324 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6327 while test "$_lcl_tmp" != ''; do
6328 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6329 if test "$_lcl_first_suffix" != ''; then
6330 _lcl_first_suffix="$_lcl_tmp"
6331 _lcl_first_rel="../$_lcl_first_rel"
6334 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6335 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6336 case ":$_lcl_result_tmp:" in
6337 # change empty paths to '.'
6338 ::) _lcl_result_tmp='.' ;;
6339 # strip trailing slashes
6340 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6343 # squeze repeated slashes
6344 case "$_lcl_notation" in
6345 # if the path contains any backslashes, turn slashes into backslashes
6347 # Bernhard Held 2003-04-06
6348 # This was the original line. It doesn't:
6349 # - convert the first slash
6350 # - replace a slash with a double-backslash
6351 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6352 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6354 # if the path contains slashes, also turn backslashes into slashes
6355 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6357 eval $_lcl_result_var='$_lcl_result_tmp'
6359 case ":$prefix2data_dir:" in
6360 # change empty paths to '.'
6361 ::) prefix2data_dir='.' ;;
6362 # strip trailing slashes
6363 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6366 # squeze repeated slashes
6367 case $sdccconf_h_dir_separator in
6368 # if the path contains any backslashes, turn slashes into backslashes
6370 # Bernhard Held 2003-04-06
6371 # This was the original line. It doesn't:
6372 # - convert the first slash
6373 # - replace a slash with a double-backslash
6374 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6375 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6377 # if the path contains slashes, also turn backslashes into slashes
6378 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6380 if test "${prefix2data_dir}" = "."; then
6381 # small optimization for Mingw32; otherwise Borut will complain ;-)
6382 cat >>confdefs.h <<_ACEOF
6383 #define PREFIX2DATA_DIR ""
6387 cat >>confdefs.h <<_ACEOF
6388 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6394 cat >>confdefs.h <<_ACEOF
6395 #define STD_LIB "libsdcc"
6398 cat >>confdefs.h <<_ACEOF
6399 #define STD_INT_LIB "libint"
6402 cat >>confdefs.h <<_ACEOF
6403 #define STD_LONG_LIB "liblong"
6406 cat >>confdefs.h <<_ACEOF
6407 #define STD_FP_LIB "libfloat"
6410 cat >>confdefs.h <<_ACEOF
6411 #define STD_DS390_LIB "libds390"
6414 cat >>confdefs.h <<_ACEOF
6415 #define STD_DS400_LIB "libds400"
6418 cat >>confdefs.h <<_ACEOF
6419 #define STD_XA51_LIB "libxa51"
6423 # SDCC runtime environment variables
6424 sdcc_dir_name="SDCC_HOME"
6425 cat >>confdefs.h <<_ACEOF
6426 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6430 sdcc_include_name="SDCC_INCLUDE"
6431 cat >>confdefs.h <<_ACEOF
6432 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6436 sdcc_lib_name="SDCC_LIB"
6437 cat >>confdefs.h <<_ACEOF
6438 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6442 # Now handle the port selection
6443 # ===========================================================================
6444 rm -f ports.all ports.build
6445 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6446 if test "${enable_mcs51_port+set}" = set; then
6447 enableval="$enable_mcs51_port"
6450 echo mcs51 >>ports.all
6451 if test "$enable_mcs51_port" = "no"; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define OPT_DISABLE_MCS51 1
6457 echo mcs51 >>ports.build
6458 cat >>confdefs.h <<_ACEOF
6459 #define OPT_DISABLE_MCS51 0
6464 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6465 if test "${enable_gbz80_port+set}" = set; then
6466 enableval="$enable_gbz80_port"
6469 echo z80 >>ports.all
6470 if test "$enable_gbz80_port" = "no"; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define OPT_DISABLE_GBZ80 1
6476 echo z80 >>ports.build
6477 cat >>confdefs.h <<_ACEOF
6478 #define OPT_DISABLE_GBZ80 0
6483 # Check whether --enable-z80-port or --disable-z80-port was given.
6484 if test "${enable_z80_port+set}" = set; then
6485 enableval="$enable_z80_port"
6488 echo z80 >>ports.all
6489 if test "$enable_z80_port" = "no"; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define OPT_DISABLE_Z80 1
6495 echo z80 >>ports.build
6496 cat >>confdefs.h <<_ACEOF
6497 #define OPT_DISABLE_Z80 0
6502 # Check whether --enable-avr-port or --disable-avr-port was given.
6503 if test "${enable_avr_port+set}" = set; then
6504 enableval="$enable_avr_port"
6507 echo avr >>ports.all
6508 if test "$enable_avr_port" = "no"; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define OPT_DISABLE_AVR 1
6514 echo avr >>ports.build
6515 cat >>confdefs.h <<_ACEOF
6516 #define OPT_DISABLE_AVR 0
6521 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6522 if test "${enable_ds390_port+set}" = set; then
6523 enableval="$enable_ds390_port"
6526 echo ds390 >>ports.all
6527 if test "$enable_ds390_port" = "no"; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define OPT_DISABLE_DS390 1
6532 cat >>confdefs.h <<_ACEOF
6533 #define OPT_DISABLE_TININative 1
6537 echo ds390 >>ports.build
6538 cat >>confdefs.h <<_ACEOF
6539 #define OPT_DISABLE_DS390 0
6542 cat >>confdefs.h <<_ACEOF
6543 #define OPT_DISABLE_TININative 0
6548 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6549 if test "${enable_ds400_port+set}" = set; then
6550 enableval="$enable_ds400_port"
6553 echo ds400 >>ports.all
6554 if test "$enable_ds400_port" = "no"; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define OPT_DISABLE_DS400 1
6560 echo ds400 >>ports.build
6561 cat >>confdefs.h <<_ACEOF
6562 #define OPT_DISABLE_DS400 0
6567 # Check whether --enable-pic-port or --disable-pic-port was given.
6568 if test "${enable_pic_port+set}" = set; then
6569 enableval="$enable_pic_port"
6572 echo pic >>ports.all
6573 if test "$enable_pic_port" = "no"; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define OPT_DISABLE_PIC 1
6579 echo pic >>ports.build
6580 cat >>confdefs.h <<_ACEOF
6581 #define OPT_DISABLE_PIC 0
6586 # Check whether --enable-pic16-port or --disable-pic16-port was given.
6587 if test "${enable_pic16_port+set}" = set; then
6588 enableval="$enable_pic16_port"
6591 echo pic16 >>ports.all
6592 if test "$enable_pic16_port" = "no"; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define OPT_DISABLE_PIC16 1
6598 echo pic16 >>ports.build
6599 cat >>confdefs.h <<_ACEOF
6600 #define OPT_DISABLE_PIC16 0
6605 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6606 if test "${enable_xa51_port+set}" = set; then
6607 enableval="$enable_xa51_port"
6610 echo xa51 >>ports.all
6611 if test "$enable_xa51_port" = "no"; then
6612 cat >>confdefs.h <<_ACEOF
6613 #define OPT_DISABLE_XA51 1
6617 echo xa51 >>ports.build
6618 cat >>confdefs.h <<_ACEOF
6619 #define OPT_DISABLE_XA51 0
6624 # Check whether --enable-ucsim or --disable-ucsim was given.
6625 if test "${enable_ucsim+set}" = set; then
6626 enableval="$enable_ucsim"
6629 OPT_ENABLE_UCSIM=$enable_ucsim
6632 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
6633 if test "${enable_device_lib_build+set}" = set; then
6634 enableval="$enable_device_lib_build"
6637 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
6640 # Check whether --enable-packihx or --disable-packihx was given.
6641 if test "${enable_packihx+set}" = set; then
6642 enableval="$enable_packihx"
6645 OPT_ENABLE_PACKIHX=$enable_packihx
6648 # Check whether --enable-libgc or --disable-libgc was given.
6649 if test "${enable_libgc+set}" = set; then
6650 enableval="$enable_libgc"
6653 if test "$enable_libgc" = "yes"; then
6655 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
6656 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6657 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_check_lib_save_LIBS=$LIBS
6662 cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6664 #include "confdefs.h"
6666 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6681 rm -f conftest.$ac_objext conftest$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest$ac_exeext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 ac_cv_lib_gc_GC_malloc=yes
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6697 ac_cv_lib_gc_GC_malloc=no
6699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6702 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6703 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6704 if test $ac_cv_lib_gc_GC_malloc = yes; then
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_LIBGC 1
6717 cat >>confdefs.h <<_ACEOF
6718 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6723 uniq ports.all ports
6725 uniq ports.build ports
6726 mv ports ports.build
6728 # Generating output files
6729 # ===========================================================================
6732 subdirs="$subdirs support/cpp2"
6736 subdirs="$subdirs packihx"
6740 subdirs="$subdirs sim/ucsim"
6742 ac_config_files="$ac_config_files main.mk:main_in.mk src/Makefile as/mcs51/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile Makefile.common:Makefile.common.in"
6744 cat >confcache <<\_ACEOF
6745 # This file is a shell script that caches the results of configure
6746 # tests run on this system so they can be shared between configure
6747 # scripts and configure runs, see configure's option --config-cache.
6748 # It is not useful on other systems. If it contains results you don't
6749 # want to keep, you may remove or edit it.
6751 # config.status only pays attention to the cache file if you give it
6752 # the --recheck option to rerun configure.
6754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6760 # The following way of writing the cache mishandles newlines in values,
6761 # but we know of no workaround that is simple, portable, and efficient.
6762 # So, don't put newlines in cache variables' values.
6763 # Ultrix sh set writes to stderr and can't be redirected directly,
6764 # and sets the high bit in the cache file unless we assign to the vars.
6767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6769 # `set' does not quote correctly, so add quotes (double-quote
6770 # substitution turns \\\\ into \\, and sed turns \\ into \).
6773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6776 # `set' quotes correctly as required by POSIX, so do not add quotes.
6778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6787 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6789 if cmp -s $cache_file confcache; then :; else
6790 if test -w $cache_file; then
6791 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6792 cat confcache >$cache_file
6794 echo "not updating unwritable cache $cache_file"
6799 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6800 # Let make expand exec_prefix.
6801 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6805 # trailing colons and then remove the whole line if VPATH becomes empty
6806 # (actually we leave an empty line to preserve line numbers).
6807 if test "x$srcdir" = x.; then
6808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6809 s/:*\$(srcdir):*/:/;
6810 s/:*\${srcdir}:*/:/;
6812 s/^\([^=]*=[ ]*\):*/\1/;
6818 DEFS=-DHAVE_CONFIG_H
6822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6823 # 1. Remove the extension, and $U if already installed.
6824 ac_i=`echo "$ac_i" |
6825 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6827 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6828 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6832 LTLIBOBJS=$ac_ltlibobjs
6836 : ${CONFIG_STATUS=./config.status}
6837 ac_clean_files_save=$ac_clean_files
6838 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6839 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6840 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6841 cat >$CONFIG_STATUS <<_ACEOF
6843 # Generated by $as_me.
6844 # Run this file to recreate the current configuration.
6845 # Compiler output produced by configure, useful for debugging
6846 # configure, is in config.log if it exists.
6849 SHELL=\${CONFIG_SHELL-$SHELL}
6852 cat >>$CONFIG_STATUS <<\_ACEOF
6853 ## --------------------- ##
6854 ## M4sh Initialization. ##
6855 ## --------------------- ##
6857 # Be Bourne compatible
6858 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6861 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6862 # is contrary to our usage. Disable this feature.
6863 alias -g '${1+"$@"}'='"$@"'
6864 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6868 # Support unset when possible.
6869 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6876 # Work around bugs in pre-3.0 UWIN ksh.
6877 $as_unset ENV MAIL MAILPATH
6883 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6885 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6886 eval $as_var=C; export $as_var
6892 # Required to use basename.
6893 if expr a : '\(a\)' >/dev/null 2>&1; then
6899 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6900 as_basename=basename
6906 # Name of the executable.
6907 as_me=`$as_basename "$0" ||
6908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6909 X"$0" : 'X\(//\)$' \| \
6910 X"$0" : 'X\(/\)$' \| \
6911 . : '\(.\)' 2>/dev/null ||
6913 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6914 /^X\/\(\/\/\)$/{ s//\1/; q; }
6915 /^X\/\(\/\).*/{ s//\1/; q; }
6919 # PATH needs CR, and LINENO needs CR and PATH.
6920 # Avoid depending upon Character Ranges.
6921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6924 as_cr_digits='0123456789'
6925 as_cr_alnum=$as_cr_Letters$as_cr_digits
6927 # The user is always right.
6928 if test "${PATH_SEPARATOR+set}" != set; then
6929 echo "#! /bin/sh" >conftest.sh
6930 echo "exit 0" >>conftest.sh
6931 chmod +x conftest.sh
6932 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6943 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6944 test "x$as_lineno_1" != "x$as_lineno_2" &&
6945 test "x$as_lineno_3" = "x$as_lineno_2" || {
6946 # Find who we are. Look in the path if we contain no path at all
6949 *[\\/]* ) as_myself=$0 ;;
6950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6960 # We did not find ourselves, most probably we were run as `sh COMMAND'
6961 # in which case we are not to be found in the path.
6962 if test "x$as_myself" = x; then
6965 if test ! -f "$as_myself"; then
6966 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6967 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6968 { (exit 1); exit 1; }; }
6970 case $CONFIG_SHELL in
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6976 test -z "$as_dir" && as_dir=.
6977 for as_base in sh bash ksh sh5; do
6980 if ("$as_dir/$as_base" -c '
6983 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6984 test "x$as_lineno_1" != "x$as_lineno_2" &&
6985 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6986 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6987 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6988 CONFIG_SHELL=$as_dir/$as_base
6990 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6999 # uniformly replaced by the line number. The first 'sed' inserts a
7000 # line-number line before each line; the second 'sed' does the real
7001 # work. The second script uses 'N' to pair each line-number line
7002 # with the numbered line, and appends trailing '-' during
7003 # substitution so that $LINENO is not a special case at line end.
7004 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7005 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7006 sed '=' <$as_myself |
7011 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7014 s,^['$as_cr_digits']*\n,,
7016 chmod +x $as_me.lineno ||
7017 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7018 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7019 { (exit 1); exit 1; }; }
7021 # Don't try to exec as it changes $[0], causing all sort of problems
7022 # (the dirname of $[0] is not the place where we might find the
7023 # original and so on. Autoconf is especially sensible to this).
7025 # Exit status is that of the last command.
7030 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7031 *c*,-n*) ECHO_N= ECHO_C='
7033 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7034 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7037 if expr a : '\(a\)' >/dev/null 2>&1; then
7043 rm -f conf$$ conf$$.exe conf$$.file
7045 if ln -s conf$$.file conf$$ 2>/dev/null; then
7046 # We could just check for DJGPP; but this test a) works b) is more generic
7047 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7048 if test -f conf$$.exe; then
7049 # Don't use ln at all; we don't have any links
7054 elif ln conf$$.file conf$$ 2>/dev/null; then
7059 rm -f conf$$ conf$$.exe conf$$.file
7061 if mkdir -p . 2>/dev/null; then
7067 as_executable_p="test -f"
7069 # Sed expression to map a string onto a valid CPP name.
7070 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7072 # Sed expression to map a string onto a valid variable name.
7073 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7077 # We need space, tab and new line, in precisely that order.
7087 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7088 # report actual input values of CONFIG_FILES etc. instead of their
7089 # values after options handling. Logging --version etc. is OK.
7093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7094 ## Running $as_me. ##
7099 This file was extended by $as_me, which was
7100 generated by GNU Autoconf 2.54. Invocation command line was
7102 CONFIG_FILES = $CONFIG_FILES
7103 CONFIG_HEADERS = $CONFIG_HEADERS
7104 CONFIG_LINKS = $CONFIG_LINKS
7105 CONFIG_COMMANDS = $CONFIG_COMMANDS
7109 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7113 # Files that config.status was made for.
7114 if test -n "$ac_config_files"; then
7115 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7118 if test -n "$ac_config_headers"; then
7119 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7122 if test -n "$ac_config_links"; then
7123 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7126 if test -n "$ac_config_commands"; then
7127 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7130 cat >>$CONFIG_STATUS <<\_ACEOF
7133 \`$as_me' instantiates files from templates according to the
7134 current configuration.
7136 Usage: $0 [OPTIONS] [FILE]...
7138 -h, --help print this help, then exit
7139 -V, --version print version number, then exit
7140 -d, --debug don't remove temporary files
7141 --recheck update $as_me by reconfiguring in the same conditions
7142 --file=FILE[:TEMPLATE]
7143 instantiate the configuration file FILE
7144 --header=FILE[:TEMPLATE]
7145 instantiate the configuration header FILE
7147 Configuration files:
7150 Configuration headers:
7153 Report bugs to <bug-autoconf@gnu.org>."
7156 cat >>$CONFIG_STATUS <<_ACEOF
7159 configured by $0, generated by GNU Autoconf 2.54,
7160 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7162 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7163 Free Software Foundation, Inc.
7164 This config.status script is free software; the Free Software Foundation
7165 gives unlimited permission to copy, distribute and modify it."
7170 cat >>$CONFIG_STATUS <<\_ACEOF
7171 # If no file are specified by the user, then we need to provide default
7172 # value. By we need to know if files were specified by the user.
7178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7187 *) # This is not an option, so the user has probably given explicit
7190 ac_need_defaults=false;;
7194 # Handling of the options.
7196 cat >>$CONFIG_STATUS <<_ACEOF
7197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7198 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7199 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7201 cat >>$CONFIG_STATUS <<\_ACEOF
7202 --version | --vers* | -V )
7203 echo "$ac_cs_version"; exit 0 ;;
7205 # Conflict between --help and --header
7206 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7207 Try \`$0 --help' for more information." >&5
7208 echo "$as_me: error: ambiguous option: $1
7209 Try \`$0 --help' for more information." >&2;}
7210 { (exit 1); exit 1; }; };;
7211 --help | --hel | -h )
7212 echo "$ac_cs_usage"; exit 0 ;;
7213 --debug | --d* | -d )
7215 --file | --fil | --fi | --f )
7217 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7218 ac_need_defaults=false;;
7219 --header | --heade | --head | --hea )
7221 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7222 ac_need_defaults=false;;
7225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7226 Try \`$0 --help' for more information." >&5
7227 echo "$as_me: error: unrecognized option: $1
7228 Try \`$0 --help' for more information." >&2;}
7229 { (exit 1); exit 1; }; } ;;
7231 *) ac_config_targets="$ac_config_targets $1" ;;
7243 cat >>$CONFIG_STATUS <<\_ACEOF
7244 for ac_config_target in $ac_config_targets
7246 case "$ac_config_target" in
7247 # Handling of arguments.
7248 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7249 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7250 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7251 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7252 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7253 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7254 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7255 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7258 { (exit 1); exit 1; }; };;
7262 # If the user did not use the arguments to specify the items to instantiate,
7263 # then the envvar interface is used. Set only those that are not.
7264 # We use the long form for the default assignment because of an extremely
7265 # bizarre bug on SunOS 4.1.3.
7266 if $ac_need_defaults; then
7267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7271 # Create a temporary directory, and hook for its removal unless debugging.
7274 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7275 trap '{ (exit 1); exit 1; }' 1 2 13 15
7278 # Create a (secure) tmp directory for tmp files.
7281 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7282 test -n "$tmp" && test -d "$tmp"
7285 tmp=$TMPDIR/cs$$-$RANDOM
7286 (umask 077 && mkdir $tmp)
7289 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7290 { (exit 1); exit 1; }
7295 cat >>$CONFIG_STATUS <<_ACEOF
7298 # CONFIG_FILES section.
7301 # No need to generate the scripts if there are no CONFIG_FILES.
7302 # This happens for instance when ./config.status config.h
7303 if test -n "\$CONFIG_FILES"; then
7304 # Protect against being on the right side of a sed subst in config.status.
7305 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7306 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7307 s,@SHELL@,$SHELL,;t t
7308 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7309 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7310 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7311 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7312 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7313 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7314 s,@exec_prefix@,$exec_prefix,;t t
7315 s,@prefix@,$prefix,;t t
7316 s,@program_transform_name@,$program_transform_name,;t t
7317 s,@bindir@,$bindir,;t t
7318 s,@sbindir@,$sbindir,;t t
7319 s,@libexecdir@,$libexecdir,;t t
7320 s,@datadir@,$datadir,;t t
7321 s,@sysconfdir@,$sysconfdir,;t t
7322 s,@sharedstatedir@,$sharedstatedir,;t t
7323 s,@localstatedir@,$localstatedir,;t t
7324 s,@libdir@,$libdir,;t t
7325 s,@includedir@,$includedir,;t t
7326 s,@oldincludedir@,$oldincludedir,;t t
7327 s,@infodir@,$infodir,;t t
7328 s,@mandir@,$mandir,;t t
7329 s,@build_alias@,$build_alias,;t t
7330 s,@host_alias@,$host_alias,;t t
7331 s,@target_alias@,$target_alias,;t t
7333 s,@ECHO_C@,$ECHO_C,;t t
7334 s,@ECHO_N@,$ECHO_N,;t t
7335 s,@ECHO_T@,$ECHO_T,;t t
7338 s,@VERSION@,$VERSION,;t t
7339 s,@VERSIONHI@,$VERSIONHI,;t t
7340 s,@VERSIONLO@,$VERSIONLO,;t t
7341 s,@VERSIONP@,$VERSIONP,;t t
7343 s,@CFLAGS@,$CFLAGS,;t t
7344 s,@LDFLAGS@,$LDFLAGS,;t t
7345 s,@CPPFLAGS@,$CPPFLAGS,;t t
7346 s,@ac_ct_CC@,$ac_ct_CC,;t t
7347 s,@EXEEXT@,$EXEEXT,;t t
7348 s,@OBJEXT@,$OBJEXT,;t t
7350 s,@CXXFLAGS@,$CXXFLAGS,;t t
7351 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7356 s,@RANLIB@,$RANLIB,;t t
7357 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7359 s,@LEXLIB@,$LEXLIB,;t t
7360 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7362 s,@AUTOCONF@,$AUTOCONF,;t t
7363 s,@STRIP@,$STRIP,;t t
7367 s,@LATEX@,$LATEX,;t t
7368 s,@LATEX2HTML@,$LATEX2HTML,;t t
7369 s,@PDFLATEX@,$PDFLATEX,;t t
7370 s,@DVIPDF@,$DVIPDF,;t t
7371 s,@EGREP@,$EGREP,;t t
7372 s,@M_OR_MM@,$M_OR_MM,;t t
7373 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7374 s,@include_dir_suffix@,$include_dir_suffix,;t t
7375 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7376 s,@docdir@,$docdir,;t t
7377 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7378 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7379 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7380 s,@subdirs@,$subdirs,;t t
7381 s,@LIBOBJS@,$LIBOBJS,;t t
7382 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7387 cat >>$CONFIG_STATUS <<\_ACEOF
7388 # Split the substitutions into bite-sized pieces for seds with
7389 # small command number limits, like on Digital OSF/1 and HP-UX.
7391 ac_sed_frag=1 # Number of current file.
7392 ac_beg=1 # First line for current file.
7393 ac_end=$ac_max_sed_lines # Line after last line for current file.
7396 while $ac_more_lines; do
7397 if test $ac_beg -gt 1; then
7398 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7400 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7402 if test ! -s $tmp/subs.frag; then
7405 # The purpose of the label and of the branching condition is to
7406 # speed up the sed processing (if there are no `@' at all, there
7407 # is no need to browse any of the substitutions).
7408 # These are the two extra sed commands mentioned above.
7410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7411 if test -z "$ac_sed_cmds"; then
7412 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7414 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7416 ac_sed_frag=`expr $ac_sed_frag + 1`
7418 ac_end=`expr $ac_end + $ac_max_sed_lines`
7421 if test -z "$ac_sed_cmds"; then
7424 fi # test -n "$CONFIG_FILES"
7427 cat >>$CONFIG_STATUS <<\_ACEOF
7428 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7431 - | *:- | *:-:* ) # input from stdin
7433 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7435 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7437 * ) ac_file_in=$ac_file.in ;;
7440 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7441 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7443 X"$ac_file" : 'X\(//\)[^/]' \| \
7444 X"$ac_file" : 'X\(//\)$' \| \
7445 X"$ac_file" : 'X\(/\)' \| \
7446 . : '\(.\)' 2>/dev/null ||
7448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7450 /^X\(\/\/\)$/{ s//\1/; q; }
7451 /^X\(\/\).*/{ s//\1/; q; }
7453 { if $as_mkdir_p; then
7458 while test ! -d "$as_dir"; do
7459 as_dirs="$as_dir $as_dirs"
7460 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7462 X"$as_dir" : 'X\(//\)[^/]' \| \
7463 X"$as_dir" : 'X\(//\)$' \| \
7464 X"$as_dir" : 'X\(/\)' \| \
7465 . : '\(.\)' 2>/dev/null ||
7467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7469 /^X\(\/\/\)$/{ s//\1/; q; }
7470 /^X\(\/\).*/{ s//\1/; q; }
7473 test ! -n "$as_dirs" || mkdir $as_dirs
7474 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7475 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7476 { (exit 1); exit 1; }; }; }
7480 if test "$ac_dir" != .; then
7481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7482 # A "../" for each directory in $ac_dir_suffix.
7483 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7485 ac_dir_suffix= ac_top_builddir=
7489 .) # No --srcdir option. We are building in place.
7491 if test -z "$ac_top_builddir"; then
7494 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7496 [\\/]* | ?:[\\/]* ) # Absolute path.
7497 ac_srcdir=$srcdir$ac_dir_suffix;
7498 ac_top_srcdir=$srcdir ;;
7500 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7501 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7503 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7505 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7506 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7507 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7508 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7513 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7516 if test x"$ac_file" != x-; then
7517 { echo "$as_me:$LINENO: creating $ac_file" >&5
7518 echo "$as_me: creating $ac_file" >&6;}
7521 # Let's still pretend it is `configure' which instantiates (i.e., don't
7522 # use $as_me), people would be surprised to read:
7523 # /* config.h. Generated by config.status. */
7524 if test x"$ac_file" = x-; then
7527 configure_input="$ac_file. "
7529 configure_input=$configure_input"Generated from `echo $ac_file_in |
7530 sed 's,.*/,,'` by configure."
7532 # First look for the input files in the build tree, otherwise in the
7534 ac_file_inputs=`IFS=:
7535 for f in $ac_file_in; do
7537 -) echo $tmp/stdin ;;
7539 # Absolute (can't be DOS-style, as IFS=:)
7540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7541 echo "$as_me: error: cannot find input file: $f" >&2;}
7542 { (exit 1); exit 1; }; }
7545 if test -f "$f"; then
7548 elif test -f "$srcdir/$f"; then
7553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7554 echo "$as_me: error: cannot find input file: $f" >&2;}
7555 { (exit 1); exit 1; }; }
7558 done` || { (exit 1); exit 1; }
7560 cat >>$CONFIG_STATUS <<_ACEOF
7564 cat >>$CONFIG_STATUS <<\_ACEOF
7566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7567 s,@configure_input@,$configure_input,;t t
7568 s,@srcdir@,$ac_srcdir,;t t
7569 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7570 s,@top_srcdir@,$ac_top_srcdir,;t t
7571 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7572 s,@builddir@,$ac_builddir,;t t
7573 s,@abs_builddir@,$ac_abs_builddir,;t t
7574 s,@top_builddir@,$ac_top_builddir,;t t
7575 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7576 s,@INSTALL@,$ac_INSTALL,;t t
7577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7579 if test x"$ac_file" != x-; then
7580 mv $tmp/out $ac_file
7588 cat >>$CONFIG_STATUS <<\_ACEOF
7591 # CONFIG_HEADER section.
7594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7597 # ac_d sets the value in "#define NAME VALUE" lines.
7598 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7599 ac_dB='[ ].*$,\1#\2'
7602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7603 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7604 ac_uB='$,\1#\2define\3'
7608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7611 - | *:- | *:-:* ) # input from stdin
7613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7617 * ) ac_file_in=$ac_file.in ;;
7620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7621 echo "$as_me: creating $ac_file" >&6;}
7623 # First look for the input files in the build tree, otherwise in the
7625 ac_file_inputs=`IFS=:
7626 for f in $ac_file_in; do
7628 -) echo $tmp/stdin ;;
7630 # Absolute (can't be DOS-style, as IFS=:)
7631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7632 echo "$as_me: error: cannot find input file: $f" >&2;}
7633 { (exit 1); exit 1; }; }
7636 if test -f "$f"; then
7639 elif test -f "$srcdir/$f"; then
7644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7645 echo "$as_me: error: cannot find input file: $f" >&2;}
7646 { (exit 1); exit 1; }; }
7649 done` || { (exit 1); exit 1; }
7650 # Remove the trailing spaces.
7651 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7655 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7656 # `conftest.undefs', that substitutes the proper values into
7657 # config.h.in to produce config.h. The first handles `#define'
7658 # templates, and the second `#undef' templates.
7659 # And first: Protect against being on the right side of a sed subst in
7660 # config.status. Protect against being in an unquoted here document
7662 rm -f conftest.defines conftest.undefs
7663 # Using a here document instead of a string reduces the quoting nightmare.
7664 # Putting comments in sed scripts is not portable.
7666 # `end' is used to avoid that the second main sed command (meant for
7667 # 0-ary CPP macros) applies to n-ary macro definitions.
7668 # See the Autoconf documentation for `clear'.
7669 cat >confdef2sed.sed <<\_ACEOF
7674 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7676 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7679 # If some macros were called several times there might be several times
7680 # the same #defines, which is useless. Nevertheless, we may not want to
7681 # sort them, since we want the *last* AC-DEFINE to be honored.
7682 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7683 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7684 rm -f confdef2sed.sed
7686 # This sed command replaces #undef with comments. This is necessary, for
7687 # example, in the case of _POSIX_SOURCE, which is predefined and required
7688 # on some systems where configure will not decide to define it.
7689 cat >>conftest.undefs <<\_ACEOF
7690 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7693 # Break up conftest.defines because some shells have a limit on the size
7694 # of here documents, and old seds have small limits too (100 cmds).
7695 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7696 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7697 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7698 echo ' :' >>$CONFIG_STATUS
7700 while grep . conftest.defines >/dev/null
7702 # Write a limited-size here document to $tmp/defines.sed.
7703 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7704 # Speed up: don't consider the non `#define' lines.
7705 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7706 # Work around the forget-to-reset-the-flag bug.
7707 echo 't clr' >>$CONFIG_STATUS
7708 echo ': clr' >>$CONFIG_STATUS
7709 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7711 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7715 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7716 rm -f conftest.defines
7717 mv conftest.tail conftest.defines
7719 rm -f conftest.defines
7720 echo ' fi # grep' >>$CONFIG_STATUS
7721 echo >>$CONFIG_STATUS
7723 # Break up conftest.undefs because some shells have a limit on the size
7724 # of here documents, and old seds have small limits too (100 cmds).
7725 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7727 while grep . conftest.undefs >/dev/null
7729 # Write a limited-size here document to $tmp/undefs.sed.
7730 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7731 # Speed up: don't consider the non `#undef'
7732 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7733 # Work around the forget-to-reset-the-flag bug.
7734 echo 't clr' >>$CONFIG_STATUS
7735 echo ': clr' >>$CONFIG_STATUS
7736 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7738 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7742 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7743 rm -f conftest.undefs
7744 mv conftest.tail conftest.undefs
7746 rm -f conftest.undefs
7748 cat >>$CONFIG_STATUS <<\_ACEOF
7749 # Let's still pretend it is `configure' which instantiates (i.e., don't
7750 # use $as_me), people would be surprised to read:
7751 # /* config.h. Generated by config.status. */
7752 if test x"$ac_file" = x-; then
7753 echo "/* Generated by configure. */" >$tmp/config.h
7755 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7757 cat $tmp/in >>$tmp/config.h
7759 if test x"$ac_file" != x-; then
7760 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7761 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7762 echo "$as_me: $ac_file is unchanged" >&6;}
7764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7766 X"$ac_file" : 'X\(//\)[^/]' \| \
7767 X"$ac_file" : 'X\(//\)$' \| \
7768 X"$ac_file" : 'X\(/\)' \| \
7769 . : '\(.\)' 2>/dev/null ||
7771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7773 /^X\(\/\/\)$/{ s//\1/; q; }
7774 /^X\(\/\).*/{ s//\1/; q; }
7776 { if $as_mkdir_p; then
7781 while test ! -d "$as_dir"; do
7782 as_dirs="$as_dir $as_dirs"
7783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7785 X"$as_dir" : 'X\(//\)[^/]' \| \
7786 X"$as_dir" : 'X\(//\)$' \| \
7787 X"$as_dir" : 'X\(/\)' \| \
7788 . : '\(.\)' 2>/dev/null ||
7790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7792 /^X\(\/\/\)$/{ s//\1/; q; }
7793 /^X\(\/\).*/{ s//\1/; q; }
7796 test ! -n "$as_dirs" || mkdir $as_dirs
7797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7799 { (exit 1); exit 1; }; }; }
7802 mv $tmp/config.h $ac_file
7811 cat >>$CONFIG_STATUS <<\_ACEOF
7813 { (exit 0); exit 0; }
7815 chmod +x $CONFIG_STATUS
7816 ac_clean_files=$ac_clean_files_save
7819 # configure is writing to config.log, and then calls config.status.
7820 # config.status does its own redirection, appending to config.log.
7821 # Unfortunately, on DOS this fails, as config.log is still kept open
7822 # by configure, so config.status won't be able to write to it; its
7823 # output is simply discarded. So we exec the FD to /dev/null,
7824 # effectively closing config.log, so it can be properly (re)opened and
7825 # appended to by config.status. When coming back to configure, we
7826 # need to make the FD available again.
7827 if test "$no_create" != yes; then
7830 $SHELL $CONFIG_STATUS || ac_cs_success=false
7832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7833 # would make configure fail if this is the last instruction.
7834 $ac_cs_success || { (exit 1); exit 1; }
7838 # CONFIG_SUBDIRS section.
7840 if test "$no_recursion" != yes; then
7842 # Remove --cache-file and --srcdir arguments so they do not pile up.
7843 ac_sub_configure_args=
7845 for ac_arg in $ac_configure_args; do
7846 if test -n "$ac_prev"; then
7851 -cache-file | --cache-file | --cache-fil | --cache-fi \
7852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7853 ac_prev=cache_file ;;
7854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7858 --config-cache | -C)
7860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7864 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7866 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7868 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7872 # Always prepend --prefix to ensure using the same prefix
7873 # in subdir configurations.
7874 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7877 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7879 # Do not complain, so a configure script can configure whichever
7880 # parts of a large source tree are present.
7881 test -d $srcdir/$ac_dir || continue
7883 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7884 echo "$as_me: configuring in $ac_dir" >&6;}
7885 { if $as_mkdir_p; then
7890 while test ! -d "$as_dir"; do
7891 as_dirs="$as_dir $as_dirs"
7892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7894 X"$as_dir" : 'X\(//\)[^/]' \| \
7895 X"$as_dir" : 'X\(//\)$' \| \
7896 X"$as_dir" : 'X\(/\)' \| \
7897 . : '\(.\)' 2>/dev/null ||
7899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7901 /^X\(\/\/\)$/{ s//\1/; q; }
7902 /^X\(\/\).*/{ s//\1/; q; }
7905 test ! -n "$as_dirs" || mkdir $as_dirs
7906 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7907 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7908 { (exit 1); exit 1; }; }; }
7912 if test "$ac_dir" != .; then
7913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7914 # A "../" for each directory in $ac_dir_suffix.
7915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7917 ac_dir_suffix= ac_top_builddir=
7921 .) # No --srcdir option. We are building in place.
7923 if test -z "$ac_top_builddir"; then
7926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7928 [\\/]* | ?:[\\/]* ) # Absolute path.
7929 ac_srcdir=$srcdir$ac_dir_suffix;
7930 ac_top_srcdir=$srcdir ;;
7932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7945 # Check for guested configure; otherwise get Cygnus style configure.
7946 if test -f $ac_srcdir/configure.gnu; then
7947 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7948 elif test -f $ac_srcdir/configure; then
7949 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7950 elif test -f $ac_srcdir/configure.in; then
7951 ac_sub_configure=$ac_configure
7953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7958 # The recursion is here.
7959 if test -n "$ac_sub_configure"; then
7960 # Make the cache file name correct relative to the subdirectory.
7962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7964 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7967 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7968 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7969 # The eval makes quoting arguments work.
7970 eval $ac_sub_configure $ac_sub_configure_args \
7971 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7973 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7974 { (exit 1); exit 1; }; }
7982 # End of configure/configure.in