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-xa51-port Excludes the XA51 port
879 --disable-ucsim Disables configuring and building of ucsim
880 --disable-device-lib-build
881 Disables automatically building device libraries
882 --disable-packihx Disables building packihx
883 --enable-libgc Use the Bohem memory allocator. Lower runtime
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CXX C++ compiler command
894 CXXFLAGS C++ compiler flags
896 sdccconf_h_dir_separator
897 needed in sdccconf.h: either "/" (default) or "\\"
899 appended to datadir to define SDCC's include directory
901 appended to datadir to define SDCC's library root directory
902 docdir documentation installation directory
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
971 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.54. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Also quote any args containing shell meta-characters.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n ) continue ;;
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1050 # Get rid of the leading space.
1054 # When interrupted or exit'd, cleanup temporary files, and complete
1055 # config.log. We remove comments because anyway the quotes in there
1056 # would cause problems or look ugly.
1057 # WARNING: Be sure not to use single quotes in there, as some shells,
1058 # such as our DU 5.0 friend, will then `close' the trap.
1059 trap 'exit_status=$?
1060 # Save into config.log some information that might help in debugging.
1065 ## ---------------- ##
1066 ## Cache variables. ##
1067 ## ---------------- ##
1070 # The following way of writing the cache mishandles newlines in values,
1073 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1088 ## ----------------- ##
1089 ## Output variables. ##
1090 ## ----------------- ##
1093 for ac_var in $ac_subst_vars
1095 eval ac_val=$`echo $ac_var`
1096 echo "$ac_var='"'"'$ac_val'"'"'"
1100 if test -n "$ac_subst_files"; then
1107 for ac_var in $ac_subst_files
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1115 if test -s confdefs.h; then
1122 sed "/^$/d" confdefs.h | sort
1125 test "$ac_signal" != 0 &&
1126 echo "$as_me: caught signal $ac_signal"
1127 echo "$as_me: exit $exit_status"
1129 rm -f core core.* *.core &&
1130 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 for ac_signal in 1 2 13 15; do
1134 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1139 rm -rf conftest* confdefs.h
1140 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 # Predefined preprocessor variables.
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_NAME "$PACKAGE_NAME"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_STRING "$PACKAGE_STRING"
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170 # Let the site file select an alternate cache file if it wants to.
1171 # Prefer explicitly selected file to automatically selected ones.
1172 if test -z "$CONFIG_SITE"; then
1173 if test "x$prefix" != xNONE; then
1174 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 for ac_site_file in $CONFIG_SITE; do
1180 if test -r "$ac_site_file"; then
1181 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1182 echo "$as_me: loading site script $ac_site_file" >&6;}
1183 sed 's/^/| /' "$ac_site_file" >&5
1188 if test -r "$cache_file"; then
1189 # Some versions of bash will fail to source /dev/null (special
1190 # files actually), so we avoid doing that.
1191 if test -f "$cache_file"; then
1192 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1193 echo "$as_me: loading cache $cache_file" >&6;}
1195 [\\/]* | ?:[\\/]* ) . $cache_file;;
1196 *) . ./$cache_file;;
1200 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1201 echo "$as_me: creating cache $cache_file" >&6;}
1205 # Check that the precious variables saved in the cache have kept the same
1207 ac_cache_corrupted=false
1208 for ac_var in `(set) 2>&1 |
1209 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1211 eval ac_new_set=\$ac_env_${ac_var}_set
1212 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1213 eval ac_new_val="\$ac_env_${ac_var}_value"
1214 case $ac_old_set,$ac_new_set in
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1220 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1221 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1222 ac_cache_corrupted=: ;;
1225 if test "x$ac_old_val" != "x$ac_new_val"; then
1226 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1227 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1228 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1229 echo "$as_me: former value: $ac_old_val" >&2;}
1230 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1231 echo "$as_me: current value: $ac_new_val" >&2;}
1232 ac_cache_corrupted=:
1235 # Pass precious variables to config.status.
1236 if test "$ac_new_set" = set; then
1238 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1240 *) ac_arg=$ac_var=$ac_new_val ;;
1242 case " $ac_configure_args " in
1243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1244 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248 if $ac_cache_corrupted; then
1249 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1250 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1251 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1252 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1253 { (exit 1); exit 1; }; }
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281 ac_config_headers="$ac_config_headers sdccconf.h:sdccconf_in.h"
1284 for ac_prog in gawk mawk nawk awk
1286 # Extract the first word of "$ac_prog", so it can be a program name with args.
1287 set dummy $ac_prog; ac_word=$2
1288 echo "$as_me:$LINENO: checking for $ac_word" >&5
1289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1290 if test "${ac_cv_prog_AWK+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 if test -n "$AWK"; then
1294 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1300 test -z "$as_dir" && as_dir=.
1301 for ac_exec_ext in '' $ac_executable_extensions; do
1302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1303 ac_cv_prog_AWK="$ac_prog"
1304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1313 if test -n "$AWK"; then
1314 echo "$as_me:$LINENO: result: $AWK" >&5
1315 echo "${ECHO_T}$AWK" >&6
1317 echo "$as_me:$LINENO: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1321 test -n "$AWK" && break
1325 echo "$as_me:$LINENO: checking version of the package" >&5
1326 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1327 if test -f .version; then
1328 VERSION=`cat .version`
1329 elif test -f ../.version; then
1330 VERSION=`cat ../.version`
1334 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1335 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1336 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1338 echo "$as_me:$LINENO: result: ${VERSION}" >&5
1339 echo "${ECHO_T}${VERSION}" >&6
1344 cat >>confdefs.h <<_ACEOF
1345 #define SDCC_VERSION_LO ${VERSIONLO}
1348 cat >>confdefs.h <<_ACEOF
1349 #define SDCC_VERSION_HI ${VERSIONHI}
1352 cat >>confdefs.h <<_ACEOF
1353 #define SDCC_VERSION_P ${VERSIONP}
1356 cat >>confdefs.h <<_ACEOF
1357 #define SDCC_VERSION_STR "${VERSION}"
1360 test "$program_prefix" != NONE &&
1361 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1362 # Use a double $ so make ignores it.
1363 test "$program_suffix" != NONE &&
1364 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1365 # Double any \ or $. echo might interpret backslashes.
1366 # By default was `s,x,x', remove it if useless.
1367 cat <<\_ACEOF >conftest.sed
1368 s/[\\$]/&&/g;s/;s,x,x,$//
1370 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1373 sdcc_cv_version=$VERSION
1374 sdcc_cv_versionhi=$VERSIONHI
1375 sdcc_cv_versionlo=$VERSIONLO
1376 sdcc_cv_versionp=$VERSIONP
1380 # ===========================================================================
1382 ac_cpp='$CPP $CPPFLAGS'
1383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1386 if test -n "$ac_tool_prefix"; then
1387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1389 echo "$as_me:$LINENO: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 if test -n "$CC"; then
1395 ac_cv_prog_CC="$CC" # Let the user override the test.
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 if test -n "$CC"; then
1415 echo "$as_me:$LINENO: result: $CC" >&5
1416 echo "${ECHO_T}$CC" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1423 if test -z "$ac_cv_prog_CC"; then
1425 # Extract the first word of "gcc", so it can be a program name with args.
1426 set dummy gcc; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 if test -n "$ac_ct_CC"; then
1433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_prog_ac_ct_CC="gcc"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1465 if test -z "$CC"; then
1466 if test -n "$ac_tool_prefix"; then
1467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1468 set dummy ${ac_tool_prefix}cc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 if test -n "$CC"; then
1475 ac_cv_prog_CC="$CC" # Let the user override the test.
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_CC="${ac_tool_prefix}cc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 if test -n "$CC"; then
1495 echo "$as_me:$LINENO: result: $CC" >&5
1496 echo "${ECHO_T}$CC" >&6
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1503 if test -z "$ac_cv_prog_CC"; then
1505 # Extract the first word of "cc", so it can be a program name with args.
1506 set dummy cc; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 if test -n "$ac_ct_CC"; then
1513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522 ac_cv_prog_ac_ct_CC="cc"
1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532 if test -n "$ac_ct_CC"; then
1533 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1534 echo "${ECHO_T}$ac_ct_CC" >&6
1536 echo "$as_me:$LINENO: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1546 if test -z "$CC"; then
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1566 ac_prog_rejected=yes
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 if test $ac_prog_rejected = yes; then
1577 # We found a bogon in the path, so make sure we never use it.
1578 set dummy $ac_cv_prog_CC
1580 if test $# != 0; then
1581 # We chose a different compiler from the bogus one.
1582 # However, it has the same basename, so the bogon will be chosen
1583 # first if we set CC to just the basename; use the full file name.
1585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1591 if test -n "$CC"; then
1592 echo "$as_me:$LINENO: result: $CC" >&5
1593 echo "${ECHO_T}$CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1600 if test -z "$CC"; then
1601 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1639 test -n "$CC" && break
1642 if test -z "$CC"; then
1646 # Extract the first word of "$ac_prog", so it can be a program name with args.
1647 set dummy $ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$ac_ct_CC" && break
1690 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1691 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1692 { (exit 1); exit 1; }; }
1694 # Provide some information about the compiler.
1695 echo "$as_me:$LINENO:" \
1696 "checking for C compiler version" >&5
1697 ac_compiler=`set X $ac_compile; echo $2`
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1699 (eval $ac_compiler --version </dev/null >&5) 2>&5
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1704 (eval $ac_compiler -v </dev/null >&5) 2>&5
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1709 (eval $ac_compiler -V </dev/null >&5) 2>&5
1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1714 cat >conftest.$ac_ext <<_ACEOF
1715 #line $LINENO "configure"
1716 #include "confdefs.h"
1726 ac_clean_files_save=$ac_clean_files
1727 ac_clean_files="$ac_clean_files a.out a.exe"
1728 # Try to create an executable without -o first, disregard a.out.
1729 # It will help us diagnose broken compilers, and finding out an intuition
1731 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1732 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1733 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1734 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1735 (eval $ac_link_default) 2>&5
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
1739 # Find the output, starting from the most likely. This scheme is
1740 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1743 # Be careful to initialize this variable, since it used to be cached.
1744 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1746 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1747 test -f "$ac_file" || continue
1749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1750 a.out ) # We found the default executable, but exeext='' is most
1753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1763 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1764 check \`config.log' for details." >&5
1765 echo "$as_me: error: C compiler cannot create executables
1766 check \`config.log' for details." >&2;}
1767 { (exit 77); exit 77; }; }
1770 ac_exeext=$ac_cv_exeext
1771 echo "$as_me:$LINENO: result: $ac_file" >&5
1772 echo "${ECHO_T}$ac_file" >&6
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779 # If not cross compiling, check that we can run a simple program.
1780 if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1789 if test "$cross_compiling" = maybe; then
1792 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1793 If you meant to cross compile, use \`--host'." >&5
1794 echo "$as_me: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&2;}
1796 { (exit 1); exit 1; }; }
1800 echo "$as_me:$LINENO: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1803 rm -f a.out a.exe conftest$ac_cv_exeext
1804 ac_clean_files=$ac_clean_files_save
1805 # Check the compiler produces executables we can run. If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1809 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1810 echo "${ECHO_T}$cross_compiling" >&6
1812 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1813 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1815 (eval $ac_link) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1821 # work properly (i.e., refer to `conftest.exe'), while it won't with
1823 for ac_file in conftest.exe conftest conftest.*; do
1824 test -f "$ac_file" || continue
1826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1835 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1847 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line $LINENO "configure"
1853 #include "confdefs.h"
1863 rm -f conftest.o conftest.obj
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1880 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1881 { (exit 1); exit 1; }; }
1884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT=$ac_cv_objext
1890 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 cat >conftest.$ac_ext <<_ACEOF
1896 #line $LINENO "configure"
1897 #include "confdefs.h"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1932 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1933 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1934 GCC=`test $ac_compiler_gnu = yes && echo yes`
1935 ac_test_CFLAGS=${CFLAGS+set}
1936 ac_save_CFLAGS=$CFLAGS
1938 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1939 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1940 if test "${ac_cv_prog_cc_g+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line $LINENO "configure"
1945 #include "confdefs.h"
1955 rm -f conftest.$ac_objext
1956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); } &&
1961 { ac_try='test -s conftest.$ac_objext'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; }; then
1969 echo "$as_me: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1973 rm -f conftest.$ac_objext conftest.$ac_ext
1975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1977 if test "$ac_test_CFLAGS" = set; then
1978 CFLAGS=$ac_save_CFLAGS
1979 elif test $ac_cv_prog_cc_g = yes; then
1980 if test "$GCC" = yes; then
1986 if test "$GCC" = yes; then
1992 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1993 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1994 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 ac_cv_prog_cc_stdc=no
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #line $LINENO "configure"
2001 #include "confdefs.h"
2004 #include <sys/types.h>
2005 #include <sys/stat.h>
2006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2007 struct buf { int x; };
2008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2009 static char *e (p, i)
2015 static char *f (char * (*g) (char **, int), char **p, ...)
2020 s = g (p, va_arg (v,int));
2024 int test (int i, double x);
2025 struct s1 {int (*f) (int a);};
2026 struct s2 {int (*f) (double a);};
2027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2038 # Don't try gcc -ansi; that turns off useful extensions and
2039 # breaks some systems' header files.
2040 # AIX -qlanglvl=ansi
2041 # Ultrix and OSF/1 -std1
2042 # HP-UX 10.20 and later -Ae
2043 # HP-UX older versions -Aa -D_HPUX_SOURCE
2044 # SVR4 -Xc -D__EXTENSIONS__
2045 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2047 CC="$ac_save_CC $ac_arg"
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 ac_cv_prog_cc_stdc=$ac_arg
2063 echo "$as_me: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 rm -f conftest.$ac_objext
2068 rm -f conftest.$ac_ext conftest.$ac_objext
2073 case "x$ac_cv_prog_cc_stdc" in
2075 echo "$as_me:$LINENO: result: none needed" >&5
2076 echo "${ECHO_T}none needed" >&6 ;;
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2080 CC="$CC $ac_cv_prog_cc_stdc" ;;
2083 # Some people use a C++ compiler to compile C. Since we use `exit',
2084 # in C++ we need to declare it. In case someone uses the same compiler
2085 # for both compiling C and C++ we need to have the C++ compiler decide
2086 # the declaration of exit, since it's the most demanding environment.
2087 cat >conftest.$ac_ext <<_ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 for ac_declaration in \
2106 '#include <stdlib.h>' \
2107 'extern "C" void std::exit (int) throw (); using std::exit;' \
2108 'extern "C" void std::exit (int); using std::exit;' \
2109 'extern "C" void exit (int) throw ();' \
2110 'extern "C" void exit (int);' \
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2140 echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line $LINENO "configure"
2147 #include "confdefs.h"
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2171 echo "$as_me: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 rm -f conftest.$ac_objext conftest.$ac_ext
2177 if test -n "$ac_declaration"; then
2178 echo '#ifdef __cplusplus' >>confdefs.h
2179 echo $ac_declaration >>confdefs.h
2180 echo '#endif' >>confdefs.h
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 rm -f conftest.$ac_objext conftest.$ac_ext
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195 ac_cpp='$CXXCPP $CPPFLAGS'
2196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_CXX+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 if test -n "$CXX"; then
2210 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 if test -n "$CXX"; then
2230 echo "$as_me:$LINENO: result: $CXX" >&5
2231 echo "${ECHO_T}$CXX" >&6
2233 echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2237 test -n "$CXX" && break
2240 if test -z "$CXX"; then
2242 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$ac_ct_CXX"; then
2252 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_ac_ct_CXX="$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2271 if test -n "$ac_ct_CXX"; then
2272 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2273 echo "${ECHO_T}$ac_ct_CXX" >&6
2275 echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2279 test -n "$ac_ct_CXX" && break
2281 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2287 # Provide some information about the compiler.
2288 echo "$as_me:$LINENO:" \
2289 "checking for C++ compiler version" >&5
2290 ac_compiler=`set X $ac_compile; echo $2`
2291 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2292 (eval $ac_compiler --version </dev/null >&5) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2297 (eval $ac_compiler -v </dev/null >&5) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }
2301 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2302 (eval $ac_compiler -V </dev/null >&5) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2309 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2313 #line $LINENO "configure"
2314 #include "confdefs.h"
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2349 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2350 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2351 GXX=`test $ac_compiler_gnu = yes && echo yes`
2352 ac_test_CXXFLAGS=${CXXFLAGS+set}
2353 ac_save_CXXFLAGS=$CXXFLAGS
2355 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2356 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cxx_g+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 #include "confdefs.h"
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 ac_cv_prog_cxx_g=yes
2386 echo "$as_me: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2390 rm -f conftest.$ac_objext conftest.$ac_ext
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2393 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2394 if test "$ac_test_CXXFLAGS" = set; then
2395 CXXFLAGS=$ac_save_CXXFLAGS
2396 elif test $ac_cv_prog_cxx_g = yes; then
2397 if test "$GXX" = yes; then
2403 if test "$GXX" = yes; then
2409 for ac_declaration in \
2411 '#include <stdlib.h>' \
2412 'extern "C" void std::exit (int) throw (); using std::exit;' \
2413 'extern "C" void std::exit (int); using std::exit;' \
2414 'extern "C" void exit (int) throw ();' \
2415 'extern "C" void exit (int);' \
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 echo "$as_me: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2479 rm -f conftest.$ac_objext conftest.$ac_ext
2482 if test -n "$ac_declaration"; then
2483 echo '#ifdef __cplusplus' >>confdefs.h
2484 echo $ac_declaration >>confdefs.h
2485 echo '#endif' >>confdefs.h
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2501 # On Suns, sometimes $CPP names a directory.
2502 if test -n "$CPP" && test -d "$CPP"; then
2505 if test -z "$CPP"; then
2506 if test "${ac_cv_prog_CPP+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 # Double quotes because CPP needs to be expanded
2510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2513 for ac_c_preproc_warn_flag in '' yes
2515 # Use a header file that comes with gcc, so configuring glibc
2516 # with a fresh cross-compiler works.
2517 # On the NeXT, cc -E runs the code through the compiler's parser,
2518 # not just through cpp. "Syntax error" is here to catch this case.
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2521 #include "confdefs.h"
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2544 echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 # Broken: fails on valid input.
2549 rm -f conftest.err conftest.$ac_ext
2551 # OK, works on sane cases. Now check whether non-existent headers
2552 # can be detected and how.
2553 cat >conftest.$ac_ext <<_ACEOF
2554 #line $LINENO "configure"
2555 #include "confdefs.h"
2556 #include <ac_nonexistent.h>
2558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } >/dev/null; then
2566 if test -s conftest.err; then
2567 ac_cpp_err=$ac_c_preproc_warn_flag
2574 if test -z "$ac_cpp_err"; then
2575 # Broken: success on invalid input.
2578 echo "$as_me: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 # Passes both tests.
2584 rm -f conftest.err conftest.$ac_ext
2587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2588 rm -f conftest.err conftest.$ac_ext
2589 if $ac_preproc_ok; then
2601 echo "$as_me:$LINENO: result: $CPP" >&5
2602 echo "${ECHO_T}$CPP" >&6
2604 for ac_c_preproc_warn_flag in '' yes
2606 # Use a header file that comes with gcc, so configuring glibc
2607 # with a fresh cross-compiler works.
2608 # On the NeXT, cc -E runs the code through the compiler's parser,
2609 # not just through cpp. "Syntax error" is here to catch this case.
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 #include "confdefs.h"
2616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } >/dev/null; then
2624 if test -s conftest.err; then
2625 ac_cpp_err=$ac_c_preproc_warn_flag
2632 if test -z "$ac_cpp_err"; then
2635 echo "$as_me: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 # Broken: fails on valid input.
2640 rm -f conftest.err conftest.$ac_ext
2642 # OK, works on sane cases. Now check whether non-existent headers
2643 # can be detected and how.
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 #include "confdefs.h"
2647 #include <ac_nonexistent.h>
2649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } >/dev/null; then
2657 if test -s conftest.err; then
2658 ac_cpp_err=$ac_c_preproc_warn_flag
2665 if test -z "$ac_cpp_err"; then
2666 # Broken: success on invalid input.
2669 echo "$as_me: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 # Passes both tests.
2675 rm -f conftest.err conftest.$ac_ext
2678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2679 rm -f conftest.err conftest.$ac_ext
2680 if $ac_preproc_ok; then
2683 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2685 { (exit 1); exit 1; }; }
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2696 if test -f $ac_dir/install-sh; then
2698 ac_install_sh="$ac_aux_dir/install-sh -c"
2700 elif test -f $ac_dir/install.sh; then
2702 ac_install_sh="$ac_aux_dir/install.sh -c"
2704 elif test -f $ac_dir/shtool; then
2706 ac_install_sh="$ac_aux_dir/shtool install -c"
2710 if test -z "$ac_aux_dir"; then
2711 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2712 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2713 { (exit 1); exit 1; }; }
2715 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2716 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2717 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2719 # Find a good install program. We prefer a C program (faster),
2720 # so one script is as good as another. But avoid the broken or
2721 # incompatible versions:
2722 # SysV /etc/install, /usr/sbin/install
2723 # SunOS /usr/etc/install
2724 # IRIX /sbin/install
2726 # AmigaOS /C/install, which installs bootblocks on floppy discs
2727 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2728 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2729 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2730 # ./install, which can be erroneously created by make from ./install.sh.
2731 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2732 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2733 if test -z "$INSTALL"; then
2734 if test "${ac_cv_path_install+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 # Account for people who put trailing slashes in PATH elements.
2744 ./ | .// | /cC/* | \
2745 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2748 # OSF1 and SCO ODT 3.0 have their own names for install.
2749 # Don't use installbsd from OSF since it installs stuff as root
2751 for ac_prog in ginstall scoinst install; do
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2754 if test $ac_prog = install &&
2755 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2756 # AIX install. It has an incompatible calling convention.
2758 elif test $ac_prog = install &&
2759 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760 # program-specific install script used by HP pwplus--don't use.
2763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2775 if test "${ac_cv_path_install+set}" = set; then
2776 INSTALL=$ac_cv_path_install
2778 # As a last resort, use the slow shell script. We don't cache a
2779 # path for INSTALL within a source directory, because that will
2780 # break other packages using the cache if that directory is
2781 # removed, or if the path is relative.
2782 INSTALL=$ac_install_sh
2785 echo "$as_me:$LINENO: result: $INSTALL" >&5
2786 echo "${ECHO_T}$INSTALL" >&6
2788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2789 # It thinks the first close brace ends the variable substitution.
2790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2796 if test -n "$ac_tool_prefix"; then
2797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_RANLIB+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$RANLIB"; then
2805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 RANLIB=$ac_cv_prog_RANLIB
2824 if test -n "$RANLIB"; then
2825 echo "$as_me:$LINENO: result: $RANLIB" >&5
2826 echo "${ECHO_T}$RANLIB" >&6
2828 echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6
2833 if test -z "$ac_cv_prog_RANLIB"; then
2834 ac_ct_RANLIB=$RANLIB
2835 # Extract the first word of "ranlib", so it can be a program name with args.
2836 set dummy ranlib; ac_word=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$ac_ct_RANLIB"; then
2843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_RANLIB="ranlib"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2863 if test -n "$ac_ct_RANLIB"; then
2864 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2865 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2871 RANLIB=$ac_ct_RANLIB
2873 RANLIB="$ac_cv_prog_RANLIB"
2877 for ac_prog in flex lex
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_LEX+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$LEX"; then
2887 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_LEX="$ac_prog"
2897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test -n "$LEX"; then
2907 echo "$as_me:$LINENO: result: $LEX" >&5
2908 echo "${ECHO_T}$LEX" >&6
2910 echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6
2914 test -n "$LEX" && break
2916 test -n "$LEX" || LEX=":"
2918 if test -z "$LEXLIB"
2920 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2921 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2922 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 ac_check_lib_save_LIBS=$LIBS
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2929 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2946 rm -f conftest.$ac_objext conftest$ac_exeext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2948 (eval $ac_link) 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -s conftest$ac_exeext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_cv_lib_fl_yywrap=yes
2960 echo "$as_me: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 ac_cv_lib_fl_yywrap=no
2964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2965 LIBS=$ac_check_lib_save_LIBS
2967 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2968 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2969 if test $ac_cv_lib_fl_yywrap = yes; then
2972 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2973 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2974 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 ac_check_lib_save_LIBS=$LIBS
2979 cat >conftest.$ac_ext <<_ACEOF
2980 #line $LINENO "configure"
2981 #include "confdefs.h"
2983 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2998 rm -f conftest.$ac_objext conftest$ac_exeext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -s conftest$ac_exeext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 ac_cv_lib_l_yywrap=yes
3012 echo "$as_me: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3014 ac_cv_lib_l_yywrap=no
3016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3017 LIBS=$ac_check_lib_save_LIBS
3019 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3020 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3021 if test $ac_cv_lib_l_yywrap = yes; then
3029 if test "x$LEX" != "x:"; then
3030 echo "$as_me:$LINENO: checking lex output file root" >&5
3031 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3032 if test "${ac_cv_prog_lex_root+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 # The minimal lex program is just a single line: %%. But some broken lexes
3036 # (Solaris, I think it was) want two %% lines, so accommodate them.
3037 cat >conftest.l <<_ACEOF
3041 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3042 (eval $LEX conftest.l) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 if test -f lex.yy.c; then
3047 ac_cv_prog_lex_root=lex.yy
3048 elif test -f lexyy.c; then
3049 ac_cv_prog_lex_root=lexyy
3051 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3052 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3053 { (exit 1); exit 1; }; }
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3057 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3059 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3061 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3062 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3063 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 # POSIX says lex can declare yytext either as a pointer or an array; the
3067 # default is implementation-dependent. Figure out which it is, since
3068 # not all implementations provide the %pointer and %array declarations.
3069 ac_cv_prog_lex_yytext_pointer=no
3070 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3072 LIBS="$LIBS $LEXLIB"
3073 cat >conftest.$ac_ext <<_ACEOF
3074 `cat $LEX_OUTPUT_ROOT.c`
3076 rm -f conftest.$ac_objext conftest$ac_exeext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078 (eval $ac_link) 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -s conftest$ac_exeext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_lex_yytext_pointer=yes
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095 rm -f "${LEX_OUTPUT_ROOT}.c"
3098 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3099 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3100 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3102 cat >>confdefs.h <<\_ACEOF
3103 #define YYTEXT_POINTER 1
3109 for ac_prog in 'bison -y' byacc
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115 if test "${ac_cv_prog_YACC+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 if test -n "$YACC"; then
3119 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_YACC="$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 YACC=$ac_cv_prog_YACC
3138 if test -n "$YACC"; then
3139 echo "$as_me:$LINENO: result: $YACC" >&5
3140 echo "${ECHO_T}$YACC" >&6
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3146 test -n "$YACC" && break
3148 test -n "$YACC" || YACC="yacc"
3150 # Extract the first word of "autoconf", so it can be a program name with args.
3151 set dummy autoconf; ac_word=$2
3152 echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 if test -n "$AUTOCONF"; then
3158 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_AUTOCONF="autoconf"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF=":"
3177 AUTOCONF=$ac_cv_prog_AUTOCONF
3178 if test -n "$AUTOCONF"; then
3179 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3180 echo "${ECHO_T}$AUTOCONF" >&6
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3186 # Extract the first word of "strip", so it can be a program name with args.
3187 set dummy strip; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_STRIP+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$STRIP"; then
3194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_STRIP="strip"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3213 STRIP=$ac_cv_prog_STRIP
3214 if test -n "$STRIP"; then
3215 echo "$as_me:$LINENO: result: $STRIP" >&5
3216 echo "${ECHO_T}$STRIP" >&6
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3222 # Extract the first word of "as", so it can be a program name with args.
3223 set dummy as; ac_word=$2
3224 echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_AS+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$AS"; then
3230 ac_cv_prog_AS="$AS" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS=":"
3250 if test -n "$AS"; then
3251 echo "$as_me:$LINENO: result: $AS" >&5
3252 echo "${ECHO_T}$AS" >&6
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3258 # Extract the first word of "cp", so it can be a program name with args.
3259 set dummy cp; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_prog_CP+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 if test -n "$CP"; then
3266 ac_cv_prog_CP="$CP" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=":"
3286 if test -n "$CP"; then
3287 echo "$as_me:$LINENO: result: $CP" >&5
3288 echo "${ECHO_T}$CP" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3295 # Extract the first word of "lyx", so it can be a program name with args.
3296 set dummy lyx; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_prog_LYX+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -n "$LYX"; then
3303 ac_cv_prog_LYX="$LYX" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_LYX="lyx"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 test -z "$ac_cv_prog_LYX" && ac_cv_prog_LYX=":"
3323 if test -n "$LYX"; then
3324 echo "$as_me:$LINENO: result: $LYX" >&5
3325 echo "${ECHO_T}$LYX" >&6
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3331 # Extract the first word of "latex", so it can be a program name with args.
3332 set dummy latex; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_LATEX+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$LATEX"; then
3339 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_LATEX="latex"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX=":"
3358 LATEX=$ac_cv_prog_LATEX
3359 if test -n "$LATEX"; then
3360 echo "$as_me:$LINENO: result: $LATEX" >&5
3361 echo "${ECHO_T}$LATEX" >&6
3363 echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6
3367 # Extract the first word of "latex2html", so it can be a program name with args.
3368 set dummy latex2html; ac_word=$2
3369 echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371 if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if test -n "$LATEX2HTML"; then
3375 ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_LATEX2HTML="latex2html"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 test -z "$ac_cv_prog_LATEX2HTML" && ac_cv_prog_LATEX2HTML=":"
3394 LATEX2HTML=$ac_cv_prog_LATEX2HTML
3395 if test -n "$LATEX2HTML"; then
3396 echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
3397 echo "${ECHO_T}$LATEX2HTML" >&6
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 # Extract the first word of "pdflatex", so it can be a program name with args.
3404 set dummy pdflatex; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$PDFLATEX"; then
3411 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_PDFLATEX="pdflatex"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX=":"
3430 PDFLATEX=$ac_cv_prog_PDFLATEX
3431 if test -n "$PDFLATEX"; then
3432 echo "$as_me:$LINENO: result: $PDFLATEX" >&5
3433 echo "${ECHO_T}$PDFLATEX" >&6
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3439 # Extract the first word of "dvipdf", so it can be a program name with args.
3440 set dummy dvipdf; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_DVIPDF+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$DVIPDF"; then
3447 ac_cv_prog_DVIPDF="$DVIPDF" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_DVIPDF="dvipdf"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 test -z "$ac_cv_prog_DVIPDF" && ac_cv_prog_DVIPDF=":"
3466 DVIPDF=$ac_cv_prog_DVIPDF
3467 if test -n "$DVIPDF"; then
3468 echo "$as_me:$LINENO: result: $DVIPDF" >&5
3469 echo "${ECHO_T}$DVIPDF" >&6
3471 echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3478 if test "$YACC" = ":"; then
3479 { { echo "$as_me:$LINENO: error: Cannot find required program bison." >&5
3480 echo "$as_me: error: Cannot find required program bison." >&2;}
3481 { (exit 1); exit 1; }; }
3484 if test "$LEX" = ":"; then
3485 { { echo "$as_me:$LINENO: error: Cannot find required program lex." >&5
3486 echo "$as_me: error: Cannot find required program lex." >&2;}
3487 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 # Checking for header files.
3500 # ===========================================================================
3502 echo "$as_me:$LINENO: checking for egrep" >&5
3503 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3504 if test "${ac_cv_prog_egrep+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3508 then ac_cv_prog_egrep='grep -E'
3509 else ac_cv_prog_egrep='egrep'
3512 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3513 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3514 EGREP=$ac_cv_prog_egrep
3517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3519 if test "${ac_cv_header_stdc+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3524 #include "confdefs.h"
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3547 if test -z "$ac_cpp_err"; then
3548 ac_cv_header_stdc=yes
3550 echo "$as_me: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552 ac_cv_header_stdc=no
3554 rm -f conftest.err conftest.$ac_ext
3556 if test $ac_cv_header_stdc = yes; then
3557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 #line $LINENO "configure"
3560 #include "confdefs.h"
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 $EGREP "memchr" >/dev/null 2>&1; then
3568 ac_cv_header_stdc=no
3574 if test $ac_cv_header_stdc = yes; then
3575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3577 #line $LINENO "configure"
3578 #include "confdefs.h"
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 $EGREP "free" >/dev/null 2>&1; then
3586 ac_cv_header_stdc=no
3592 if test $ac_cv_header_stdc = yes; then
3593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3594 if test "$cross_compiling" = yes; then
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3601 #if ((' ' & 0x0FF) == 0x020)
3602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3605 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3606 || ('j' <= (c) && (c) <= 'r') \
3607 || ('s' <= (c) && (c) <= 'z'))
3608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3616 for (i = 0; i < 256; i++)
3617 if (XOR (islower (i), ISLOWER (i))
3618 || toupper (i) != TOUPPER (i))
3623 rm -f conftest$ac_exeext
3624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3636 echo "$as_me: program exited with status $ac_status" >&5
3637 echo "$as_me: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 ac_cv_header_stdc=no
3642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3647 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3648 if test $ac_cv_header_stdc = yes; then
3650 cat >>confdefs.h <<\_ACEOF
3651 #define STDC_HEADERS 1
3656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3667 inttypes.h stdint.h unistd.h
3669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3670 echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3678 $ac_includes_default
3680 #include <$ac_header>
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 eval "$as_ac_Header=yes"
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 eval "$as_ac_Header=no"
3700 rm -f conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3705 cat >>confdefs.h <<_ACEOF
3706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3715 for ac_header in sys/socket.h
3717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3719 echo "$as_me:$LINENO: checking for $ac_header" >&5
3720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3727 # Is the header compilable?
3728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line $LINENO "configure"
3732 #include "confdefs.h"
3733 $ac_includes_default
3734 #include <$ac_header>
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_header_compiler=yes
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3752 ac_header_compiler=no
3754 rm -f conftest.$ac_objext conftest.$ac_ext
3755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3756 echo "${ECHO_T}$ac_header_compiler" >&6
3758 # Is the header present?
3759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3762 #line $LINENO "configure"
3763 #include "confdefs.h"
3764 #include <$ac_header>
3766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } >/dev/null; then
3774 if test -s conftest.err; then
3775 ac_cpp_err=$ac_c_preproc_warn_flag
3782 if test -z "$ac_cpp_err"; then
3783 ac_header_preproc=yes
3785 echo "$as_me: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 ac_header_preproc=no
3789 rm -f conftest.err conftest.$ac_ext
3790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3791 echo "${ECHO_T}$ac_header_preproc" >&6
3793 # So? What about this header?
3794 case $ac_header_compiler:$ac_header_preproc in
3796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3808 echo "$as_me:$LINENO: checking for $ac_header" >&5
3809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 eval "$as_ac_Header=$ac_header_preproc"
3815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3820 cat >>confdefs.h <<_ACEOF
3821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830 # Checking for functions
3831 # ===========================================================================
3833 for ac_func in strerror
3835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3836 echo "$as_me:$LINENO: checking for $ac_func" >&5
3837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3838 if eval "test \"\${$as_ac_var+set}\" = set"; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3842 #line $LINENO "configure"
3843 #include "confdefs.h"
3844 /* System header to define __stub macros and hopefully few prototypes,
3845 which can conflict with char $ac_func (); below. */
3847 /* Override any gcc2 internal prototype to avoid an error. */
3851 /* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3859 /* The GNU C library defines this for functions which it implements
3860 to always fail with ENOSYS. Some functions are actually named
3861 something starting with __ and the normal name is an alias. */
3862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3872 rm -f conftest.$ac_objext conftest$ac_exeext
3873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874 (eval $ac_link) 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest$ac_exeext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 eval "$as_ac_var=yes"
3886 echo "$as_me: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 eval "$as_ac_var=no"
3890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3894 if test `eval echo '${'$as_ac_var'}'` = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3906 for ac_func in vsnprintf snprintf vsprintf mkstemp
3908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3909 echo "$as_me:$LINENO: checking for $ac_func" >&5
3910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3911 if eval "test \"\${$as_ac_var+set}\" = set"; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line $LINENO "configure"
3916 #include "confdefs.h"
3917 /* System header to define __stub macros and hopefully few prototypes,
3918 which can conflict with char $ac_func (); below. */
3920 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3932 /* The GNU C library defines this for functions which it implements
3933 to always fail with ENOSYS. Some functions are actually named
3934 something starting with __ and the normal name is an alias. */
3935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947 (eval $ac_link) 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -s conftest$ac_exeext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 eval "$as_ac_var=yes"
3959 echo "$as_me: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 eval "$as_ac_var=no"
3963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3967 if test `eval echo '${'$as_ac_var'}'` = yes; then
3968 cat >>confdefs.h <<_ACEOF
3969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3978 # ===========================================================================
3980 # DD_COPT macro checks if the compiler specified as the 1st parameter
3981 # supports option specified as the 2nd parameter
3982 # For example: DD_CPORT(CXX, fPIC)
3986 # This macro expands DIR and assigns it to RET.
3987 # If DIR is NONE, then it's replaced by DEFAULT.
3989 # Based on AC_DEFINE_DIR
3993 # AC_EXPAND(prefix, "/usr/local", expanded_prefix)
3997 # adl_NORMALIZE_PATH
3999 # - empty paths are changed to '.'
4000 # - trailing slashes are removed
4001 # - repeated slashes are squeezed except a leading doubled slash '//'
4002 # (which might indicate a networked disk on some OS).
4005 # REFERENCE_STRING is used to turn '/' into '\' and vice-versa: if
4006 # REFERENCE_STRING contains some backslashes, all slashes and backslashes
4007 # are turned into backslashes, otherwise they are all turned into slashes.
4009 # This makes processing of DOS filenames quite easier, because you can turn a
4010 # filename to the Unix notation, make your processing, and turn it back to
4011 # original notation.
4016 # adl_COMPUTE_RELATIVE_PATH
4018 # PATH_LIST is a space-separated list of colon-separated triplets of the form
4019 # 'FROM:TO:RESULT'. This function iterates over these triplets and set $RESULT
4020 # to the relative path from $FROM to $TO. Note that $FROM and $TO needs to be
4021 # absolute filenames for this macro to success.
4027 ## The following helper macros are too fragile to be used out
4028 ## of adl_COMPUTE_RELATIVE_PATHS (mainly because they assume that
4029 ## paths are normalized), that's why I'm keeping them in the same file.
4030 ## Still, some of them maybe worth to reuse.
4044 # AC_NORMALIZE_DEFINE_UNQUOTED(var, DEFINE, REFERENCE_STRING)
4049 # Checking characteristics of compilers and other programs
4050 # ===========================================================================
4051 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
4052 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
4053 if test "${sdcc_cv_MM+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 echo "#include <stdio.h>" >_test_.c
4058 $CPP -v -MM _test_.c 1>&5 2>&5
4059 if test "$?" = "0"; then
4066 echo "$as_me:$LINENO: result: $sdcc_cv_MM" >&5
4067 echo "${ECHO_T}$sdcc_cv_MM" >&6
4071 # This is the first time when CFLAGS are set/modified!!
4073 echo "$as_me:$LINENO: checking whether $CC accepts -ggdb" >&5
4074 echo $ECHO_N "checking whether $CC accepts -ggdb... $ECHO_C" >&6
4075 if test "${sdcc_cv_CCggdb+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 $CC -v -ggdb -c _test_.c 1>&5 2>&5
4083 if test "$?" = "0"; then
4084 sdcc_cv_CCggdb="yes"
4088 rm -f _test_.* a.out
4090 echo "$as_me:$LINENO: result: $sdcc_cv_CCggdb" >&5
4091 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
4093 if test "$sdcc_cv_CCggdb" = "yes"; then
4094 CFLAGS="-ggdb ${CFLAGS}"
4098 echo "$as_me:$LINENO: checking whether $CC accepts -pipe" >&5
4099 echo $ECHO_N "checking whether $CC accepts -pipe... $ECHO_C" >&6
4100 if test "${sdcc_cv_CCpipe+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 $CC -v -pipe -c _test_.c 1>&5 2>&5
4108 if test "$?" = "0"; then
4109 sdcc_cv_CCpipe="yes"
4113 rm -f _test_.* a.out
4115 echo "$as_me:$LINENO: result: $sdcc_cv_CCpipe" >&5
4116 echo "${ECHO_T}$sdcc_cv_CCpipe" >&6
4118 if test "$sdcc_cv_CCpipe" = "yes"; then
4119 CFLAGS="-pipe $CFLAGS"
4123 # Checks for typedefs, structures, and compiler characteristics.
4124 # ===========================================================================
4125 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4126 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4127 if test "${ac_cv_type_signal+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 cat >conftest.$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4139 extern "C" void (*signal (int, void (*)(int)))(int);
4141 void (*signal ()) ();
4152 rm -f conftest.$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_type_signal=void
4166 echo "$as_me: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 ac_cv_type_signal=int
4170 rm -f conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4173 echo "${ECHO_T}$ac_cv_type_signal" >&6
4175 cat >>confdefs.h <<_ACEOF
4176 #define RETSIGTYPE $ac_cv_type_signal
4181 echo "$as_me:$LINENO: checking for char" >&5
4182 echo $ECHO_N "checking for char... $ECHO_C" >&6
4183 if test "${ac_cv_type_char+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4189 $ac_includes_default
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4215 echo "$as_me: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4219 rm -f conftest.$ac_objext conftest.$ac_ext
4221 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4222 echo "${ECHO_T}$ac_cv_type_char" >&6
4224 echo "$as_me:$LINENO: checking size of char" >&5
4225 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4226 if test "${ac_cv_sizeof_char+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test "$ac_cv_type_char" = yes; then
4230 # The cast to unsigned long works around a bug in the HP C Compiler
4231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4233 # This bug is HP SR number 8606223364.
4234 if test "$cross_compiling" = yes; then
4235 # Depending upon the size, compute the lo and hi bounds.
4236 cat >conftest.$ac_ext <<_ACEOF
4237 #line $LINENO "configure"
4238 #include "confdefs.h"
4239 $ac_includes_default
4243 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 #include "confdefs.h"
4267 $ac_includes_default
4271 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_hi=$ac_mid; break
4292 echo "$as_me: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 ac_lo=`expr $ac_mid + 1`
4295 if test $ac_lo -le $ac_mid; then
4299 ac_mid=`expr 2 '*' $ac_mid + 1`
4301 rm -f conftest.$ac_objext conftest.$ac_ext
4304 echo "$as_me: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line $LINENO "configure"
4308 #include "confdefs.h"
4309 $ac_includes_default
4313 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4334 cat >conftest.$ac_ext <<_ACEOF
4335 #line $LINENO "configure"
4336 #include "confdefs.h"
4337 $ac_includes_default
4341 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_lo=$ac_mid; break
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 ac_hi=`expr '(' $ac_mid ')' - 1`
4365 if test $ac_mid -le $ac_hi; then
4369 ac_mid=`expr 2 '*' $ac_mid`
4371 rm -f conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4378 rm -f conftest.$ac_objext conftest.$ac_ext
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4381 # Binary search between lo and hi bounds.
4382 while test "x$ac_lo" != "x$ac_hi"; do
4383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4386 #include "confdefs.h"
4387 $ac_includes_default
4391 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 ac_lo=`expr '(' $ac_mid ')' + 1`
4416 rm -f conftest.$ac_objext conftest.$ac_ext
4419 ?*) ac_cv_sizeof_char=$ac_lo;;
4420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4421 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4422 { (exit 1); exit 1; }; } ;;
4425 if test "$cross_compiling" = yes; then
4426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4427 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4428 { (exit 1); exit 1; }; }
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4433 $ac_includes_default
4434 long longval () { return (long) (sizeof (char)); }
4435 unsigned long ulongval () { return (long) (sizeof (char)); }
4442 FILE *f = fopen ("conftest.val", "w");
4445 if (((long) (sizeof (char))) < 0)
4447 long i = longval ();
4448 if (i != ((long) (sizeof (char))))
4450 fprintf (f, "%ld\n", i);
4454 unsigned long i = ulongval ();
4455 if (i != ((long) (sizeof (char))))
4457 fprintf (f, "%lu\n", i);
4459 exit (ferror (f) || fclose (f) != 0);
4465 rm -f conftest$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_sizeof_char=`cat conftest.val`
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
4483 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
4484 { (exit 1); exit 1; }; }
4486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4495 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4496 cat >>confdefs.h <<_ACEOF
4497 #define SIZEOF_CHAR $ac_cv_sizeof_char
4501 echo "$as_me:$LINENO: checking for short" >&5
4502 echo $ECHO_N "checking for short... $ECHO_C" >&6
4503 if test "${ac_cv_type_short+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4509 $ac_includes_default
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_type_short=yes
4535 echo "$as_me: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4539 rm -f conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4542 echo "${ECHO_T}$ac_cv_type_short" >&6
4544 echo "$as_me:$LINENO: checking size of short" >&5
4545 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4546 if test "${ac_cv_sizeof_short+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 if test "$ac_cv_type_short" = yes; then
4550 # The cast to unsigned long works around a bug in the HP C Compiler
4551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4553 # This bug is HP SR number 8606223364.
4554 if test "$cross_compiling" = yes; then
4555 # Depending upon the size, compute the lo and hi bounds.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 #include "confdefs.h"
4559 $ac_includes_default
4563 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4584 cat >conftest.$ac_ext <<_ACEOF
4585 #line $LINENO "configure"
4586 #include "confdefs.h"
4587 $ac_includes_default
4591 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_hi=$ac_mid; break
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_lo=`expr $ac_mid + 1`
4615 if test $ac_lo -le $ac_mid; then
4619 ac_mid=`expr 2 '*' $ac_mid + 1`
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4624 echo "$as_me: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 cat >conftest.$ac_ext <<_ACEOF
4627 #line $LINENO "configure"
4628 #include "confdefs.h"
4629 $ac_includes_default
4633 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -s conftest.$ac_objext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4657 $ac_includes_default
4661 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 ac_lo=$ac_mid; break
4682 echo "$as_me: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 ac_hi=`expr '(' $ac_mid ')' - 1`
4685 if test $ac_mid -le $ac_hi; then
4689 ac_mid=`expr 2 '*' $ac_mid`
4691 rm -f conftest.$ac_objext conftest.$ac_ext
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4700 rm -f conftest.$ac_objext conftest.$ac_ext
4701 # Binary search between lo and hi bounds.
4702 while test "x$ac_lo" != "x$ac_hi"; do
4703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4707 $ac_includes_default
4711 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 ac_lo=`expr '(' $ac_mid ')' + 1`
4736 rm -f conftest.$ac_objext conftest.$ac_ext
4739 ?*) ac_cv_sizeof_short=$ac_lo;;
4740 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4741 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4742 { (exit 1); exit 1; }; } ;;
4745 if test "$cross_compiling" = yes; then
4746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4747 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4748 { (exit 1); exit 1; }; }
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4752 #include "confdefs.h"
4753 $ac_includes_default
4754 long longval () { return (long) (sizeof (short)); }
4755 unsigned long ulongval () { return (long) (sizeof (short)); }
4762 FILE *f = fopen ("conftest.val", "w");
4765 if (((long) (sizeof (short))) < 0)
4767 long i = longval ();
4768 if (i != ((long) (sizeof (short))))
4770 fprintf (f, "%ld\n", i);
4774 unsigned long i = ulongval ();
4775 if (i != ((long) (sizeof (short))))
4777 fprintf (f, "%lu\n", i);
4779 exit (ferror (f) || fclose (f) != 0);
4785 rm -f conftest$ac_exeext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4787 (eval $ac_link) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_sizeof_short=`cat conftest.val`
4798 echo "$as_me: program exited with status $ac_status" >&5
4799 echo "$as_me: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4803 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4804 { (exit 1); exit 1; }; }
4806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811 ac_cv_sizeof_short=0
4814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4815 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4816 cat >>confdefs.h <<_ACEOF
4817 #define SIZEOF_SHORT $ac_cv_sizeof_short
4821 echo "$as_me:$LINENO: checking for int" >&5
4822 echo $ECHO_N "checking for int... $ECHO_C" >&6
4823 if test "${ac_cv_type_int+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 cat >conftest.$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 #include "confdefs.h"
4829 $ac_includes_default
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4859 rm -f conftest.$ac_objext conftest.$ac_ext
4861 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4862 echo "${ECHO_T}$ac_cv_type_int" >&6
4864 echo "$as_me:$LINENO: checking size of int" >&5
4865 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4866 if test "${ac_cv_sizeof_int+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test "$ac_cv_type_int" = yes; then
4870 # The cast to unsigned long works around a bug in the HP C Compiler
4871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4873 # This bug is HP SR number 8606223364.
4874 if test "$cross_compiling" = yes; then
4875 # Depending upon the size, compute the lo and hi bounds.
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line $LINENO "configure"
4878 #include "confdefs.h"
4879 $ac_includes_default
4883 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4904 cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 #include "confdefs.h"
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_hi=$ac_mid; break
4932 echo "$as_me: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 ac_lo=`expr $ac_mid + 1`
4935 if test $ac_lo -le $ac_mid; then
4939 ac_mid=`expr 2 '*' $ac_mid + 1`
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4944 echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 #include "confdefs.h"
4949 $ac_includes_default
4953 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 cat >conftest.$ac_ext <<_ACEOF
4975 #line $LINENO "configure"
4976 #include "confdefs.h"
4977 $ac_includes_default
4981 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_lo=$ac_mid; break
5002 echo "$as_me: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5004 ac_hi=`expr '(' $ac_mid ')' - 1`
5005 if test $ac_mid -le $ac_hi; then
5009 ac_mid=`expr 2 '*' $ac_mid`
5011 rm -f conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5018 rm -f conftest.$ac_objext conftest.$ac_ext
5020 rm -f conftest.$ac_objext conftest.$ac_ext
5021 # Binary search between lo and hi bounds.
5022 while test "x$ac_lo" != "x$ac_hi"; do
5023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line $LINENO "configure"
5026 #include "confdefs.h"
5027 $ac_includes_default
5031 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5052 echo "$as_me: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 ac_lo=`expr '(' $ac_mid ')' + 1`
5056 rm -f conftest.$ac_objext conftest.$ac_ext
5059 ?*) ac_cv_sizeof_int=$ac_lo;;
5060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5061 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5062 { (exit 1); exit 1; }; } ;;
5065 if test "$cross_compiling" = yes; then
5066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5067 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5068 { (exit 1); exit 1; }; }
5070 cat >conftest.$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 #include "confdefs.h"
5073 $ac_includes_default
5074 long longval () { return (long) (sizeof (int)); }
5075 unsigned long ulongval () { return (long) (sizeof (int)); }
5082 FILE *f = fopen ("conftest.val", "w");
5085 if (((long) (sizeof (int))) < 0)
5087 long i = longval ();
5088 if (i != ((long) (sizeof (int))))
5090 fprintf (f, "%ld\n", i);
5094 unsigned long i = ulongval ();
5095 if (i != ((long) (sizeof (int))))
5097 fprintf (f, "%lu\n", i);
5099 exit (ferror (f) || fclose (f) != 0);
5105 rm -f conftest$ac_exeext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_sizeof_int=`cat conftest.val`
5118 echo "$as_me: program exited with status $ac_status" >&5
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5123 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5124 { (exit 1); exit 1; }; }
5126 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_INT $ac_cv_sizeof_int
5141 echo "$as_me:$LINENO: checking for long" >&5
5142 echo $ECHO_N "checking for long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5149 $ac_includes_default
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5175 echo "$as_me: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5179 rm -f conftest.$ac_objext conftest.$ac_ext
5181 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5182 echo "${ECHO_T}$ac_cv_type_long" >&6
5184 echo "$as_me:$LINENO: checking size of long" >&5
5185 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5186 if test "${ac_cv_sizeof_long+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test "$ac_cv_type_long" = yes; then
5190 # The cast to unsigned long works around a bug in the HP C Compiler
5191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5193 # This bug is HP SR number 8606223364.
5194 if test "$cross_compiling" = yes; then
5195 # Depending upon the size, compute the lo and hi bounds.
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 #include "confdefs.h"
5199 $ac_includes_default
5203 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5210 rm -f conftest.$ac_objext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212 (eval $ac_compile) 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 #include "confdefs.h"
5227 $ac_includes_default
5231 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_hi=$ac_mid; break
5252 echo "$as_me: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 ac_lo=`expr $ac_mid + 1`
5255 if test $ac_lo -le $ac_mid; then
5259 ac_mid=`expr 2 '*' $ac_mid + 1`
5261 rm -f conftest.$ac_objext conftest.$ac_ext
5264 echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 $ac_includes_default
5273 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5297 $ac_includes_default
5301 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_lo=$ac_mid; break
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_hi=`expr '(' $ac_mid ')' - 1`
5325 if test $ac_mid -le $ac_hi; then
5329 ac_mid=`expr 2 '*' $ac_mid`
5331 rm -f conftest.$ac_objext conftest.$ac_ext
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5338 rm -f conftest.$ac_objext conftest.$ac_ext
5340 rm -f conftest.$ac_objext conftest.$ac_ext
5341 # Binary search between lo and hi bounds.
5342 while test "x$ac_lo" != "x$ac_hi"; do
5343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5344 cat >conftest.$ac_ext <<_ACEOF
5345 #line $LINENO "configure"
5346 #include "confdefs.h"
5347 $ac_includes_default
5351 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 ac_lo=`expr '(' $ac_mid ')' + 1`
5376 rm -f conftest.$ac_objext conftest.$ac_ext
5379 ?*) ac_cv_sizeof_long=$ac_lo;;
5380 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5381 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5382 { (exit 1); exit 1; }; } ;;
5385 if test "$cross_compiling" = yes; then
5386 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5387 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5388 { (exit 1); exit 1; }; }
5390 cat >conftest.$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5392 #include "confdefs.h"
5393 $ac_includes_default
5394 long longval () { return (long) (sizeof (long)); }
5395 unsigned long ulongval () { return (long) (sizeof (long)); }
5402 FILE *f = fopen ("conftest.val", "w");
5405 if (((long) (sizeof (long))) < 0)
5407 long i = longval ();
5408 if (i != ((long) (sizeof (long))))
5410 fprintf (f, "%ld\n", i);
5414 unsigned long i = ulongval ();
5415 if (i != ((long) (sizeof (long))))
5417 fprintf (f, "%lu\n", i);
5419 exit (ferror (f) || fclose (f) != 0);
5425 rm -f conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427 (eval $ac_link) 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_sizeof_long=`cat conftest.val`
5438 echo "$as_me: program exited with status $ac_status" >&5
5439 echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5443 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5444 { (exit 1); exit 1; }; }
5446 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5455 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5456 cat >>confdefs.h <<_ACEOF
5457 #define SIZEOF_LONG $ac_cv_sizeof_long
5464 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
5468 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
5472 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
5476 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
5483 echo "$as_me:$LINENO: checking type name for byte" >&5
5484 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
5485 TYPE_BYTE=`type_name 1`
5486 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
5487 echo "${ECHO_T}$TYPE_BYTE" >&6
5488 echo "$as_me:$LINENO: checking type name for word" >&5
5489 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
5490 TYPE_WORD=`type_name 2`
5491 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
5492 echo "${ECHO_T}$TYPE_WORD" >&6
5493 echo "$as_me:$LINENO: checking type name for dword" >&5
5494 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
5495 TYPE_DWORD=`type_name 4`
5496 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
5497 echo "${ECHO_T}$TYPE_DWORD" >&6
5498 cat >>confdefs.h <<_ACEOF
5499 #define TYPE_BYTE $TYPE_BYTE
5502 cat >>confdefs.h <<_ACEOF
5503 #define TYPE_WORD $TYPE_WORD
5506 cat >>confdefs.h <<_ACEOF
5507 #define TYPE_DWORD $TYPE_DWORD
5511 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5513 if test "${ac_cv_c_bigendian+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 # See if sys/param.h defines the BYTE_ORDER macro.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520 #include <sys/types.h>
5521 #include <sys/param.h>
5526 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5534 rm -f conftest.$ac_objext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 # It does; now see whether it defined to BIG_ENDIAN or not.
5547 cat >conftest.$ac_ext <<_ACEOF
5548 #line $LINENO "configure"
5549 #include "confdefs.h"
5550 #include <sys/types.h>
5551 #include <sys/param.h>
5556 #if BYTE_ORDER != BIG_ENDIAN
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_c_bigendian=yes
5578 echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5580 ac_cv_c_bigendian=no
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5584 echo "$as_me: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 # It does not; compile a test program.
5587 if test "$cross_compiling" = yes; then
5588 # try to guess the endianness by grepping values into an object file
5589 ac_cv_c_bigendian=unknown
5590 cat >conftest.$ac_ext <<_ACEOF
5591 #line $LINENO "configure"
5592 #include "confdefs.h"
5593 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5594 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5595 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5596 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5597 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5598 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5602 _ascii (); _ebcdic ();
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5620 ac_cv_c_bigendian=yes
5622 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5623 if test "$ac_cv_c_bigendian" = unknown; then
5624 ac_cv_c_bigendian=no
5626 # finding both strings is unlikely to happen, but who knows?
5627 ac_cv_c_bigendian=unknown
5631 echo "$as_me: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 rm -f conftest.$ac_objext conftest.$ac_ext
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line $LINENO "configure"
5638 #include "confdefs.h"
5642 /* Are we little or big endian? From Harbison&Steele. */
5646 char c[sizeof (long)];
5649 exit (u.c[sizeof (long) - 1] == 1);
5652 rm -f conftest$ac_exeext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654 (eval $ac_link) 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_c_bigendian=no
5665 echo "$as_me: program exited with status $ac_status" >&5
5666 echo "$as_me: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 ac_cv_c_bigendian=yes
5671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5674 rm -f conftest.$ac_objext conftest.$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5677 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5678 case $ac_cv_c_bigendian in
5681 cat >>confdefs.h <<\_ACEOF
5682 #define WORDS_BIGENDIAN 1
5688 { { echo "$as_me:$LINENO: error: unknown endianness
5689 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5690 echo "$as_me: error: unknown endianness
5691 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5692 { (exit 1); exit 1; }; } ;;
5696 # Set standard installation paths
5697 # ===========================================================================
5699 # In the Makefiles we need paths with '/' as directory separator, even if
5700 # crosscompiling for Win32.
5701 # And we want to preserve the macros (e.g. ${prefix}) in the Makefiles.
5702 # The variables in the Makefiles are replaced by AC_SUBST()
5704 # In sdccconf.h the '/' in paths can be replaced by "\\" (normalized), if
5706 # The macros are expanded for the header.
5707 # The variables in the header are replaced by AC_*DEFINE*()
5708 # sdccconf_h_dir_separator contains a backslash.
5710 if test "${sdccconf_h_dir_separator}" = ""; then
5711 sdccconf_h_dir_separator="/"
5717 # include_dir_suffix:
5718 # *nix default: "sdcc/include"
5721 if test "${include_dir_suffix}" = ""; then
5722 include_dir_suffix="sdcc/include"
5727 # *nix default: "sdcc/lib"
5729 if test "${lib_dir_suffix}" = ""; then
5730 lib_dir_suffix="sdcc/lib"
5735 # *nix default: "${datadir}/sdcc/doc"
5737 if test "${docdir}" = ""; then
5738 docdir="\${datadir}"/sdcc/doc
5747 cat >>confdefs.h <<_ACEOF
5748 #define DIR_SEPARATOR_STRING "${sdccconf_h_dir_separator}"
5751 cat >>confdefs.h <<_ACEOF
5752 #define DIR_SEPARATOR_CHAR '${sdccconf_h_dir_separator}'
5757 # default: "NONE", ${ac_default_prefix}: "/usr/local"
5759 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5762 test "x$ac_expand" = xNONE && ac_expand="$ac_default_prefix"
5763 ac_expand=`eval echo $ac_expand`
5764 expanded_prefix=`eval echo $ac_expand`
5767 ac_ndu=$expanded_prefix
5769 # change empty paths to '.'
5771 # strip trailing slashes
5772 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5775 # squeze repeated slashes
5776 case $sdccconf_h_dir_separator in
5777 # if the path contains any backslashes, turn slashes into backslashes
5779 # Bernhard Held 2003-04-06
5780 # This was the original line. It doesn't:
5781 # - convert the first slash
5782 # - replace a slash with a double-backslash
5783 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5784 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5786 # if the path contains slashes, also turn backslashes into slashes
5787 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5789 cat >>confdefs.h <<_ACEOF
5790 #define PREFIX "${ac_ndu}"
5796 # default: "${prefix}"
5798 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5800 ac_expand=$exec_prefix
5801 test "x$ac_expand" = xNONE && ac_expand="$expanded_prefix"
5802 ac_expand=`eval echo $ac_expand`
5803 expanded_exec_prefix=`eval echo $ac_expand`
5806 ac_ndu=$expanded_exec_prefix
5808 # change empty paths to '.'
5810 # strip trailing slashes
5811 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5814 # squeze repeated slashes
5815 case $sdccconf_h_dir_separator in
5816 # if the path contains any backslashes, turn slashes into backslashes
5818 # Bernhard Held 2003-04-06
5819 # This was the original line. It doesn't:
5820 # - convert the first slash
5821 # - replace a slash with a double-backslash
5822 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5823 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5825 # if the path contains slashes, also turn backslashes into slashes
5826 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5828 cat >>confdefs.h <<_ACEOF
5829 #define EXEC_PREFIX "${ac_ndu}"
5835 # default: "${exec_prefix}/bin"
5837 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5838 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5840 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5841 ac_expand=`eval echo $ac_expand`
5842 expanded_bindir=`eval echo $ac_expand`
5845 ac_ndu=$expanded_bindir
5847 # change empty paths to '.'
5849 # strip trailing slashes
5850 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5853 # squeze repeated slashes
5854 case $sdccconf_h_dir_separator in
5855 # if the path contains any backslashes, turn slashes into backslashes
5857 # Bernhard Held 2003-04-06
5858 # This was the original line. It doesn't:
5859 # - convert the first slash
5860 # - replace a slash with a double-backslash
5861 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5862 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5864 # if the path contains slashes, also turn backslashes into slashes
5865 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5867 cat >>confdefs.h <<_ACEOF
5868 #define BINDIR "${ac_ndu}"
5874 # default: "${prefix}/share"
5876 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5879 test "x$ac_expand" = xNONE && ac_expand="$"NONE""
5880 ac_expand=`eval echo $ac_expand`
5881 expanded_datadir=`eval echo $ac_expand`
5884 ac_ndu=$expanded_datadir
5886 # change empty paths to '.'
5888 # strip trailing slashes
5889 :*[\\/]:) ac_ndu=`echo "$ac_ndu" | sed 's,[\\/]*$,,'` ;;
5892 # squeze repeated slashes
5893 case $sdccconf_h_dir_separator in
5894 # if the path contains any backslashes, turn slashes into backslashes
5896 # Bernhard Held 2003-04-06
5897 # This was the original line. It doesn't:
5898 # - convert the first slash
5899 # - replace a slash with a double-backslash
5900 # *\\*) ac_ndu=`echo "[$]ac_ndu" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5901 *\\*) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5903 # if the path contains slashes, also turn backslashes into slashes
5904 *) ac_ndu=`echo "$ac_ndu" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5906 cat >>confdefs.h <<_ACEOF
5907 #define DATADIR "${ac_ndu}"
5912 # include/lib suffix
5913 norm_inc_dir_suffix=${include_dir_suffix}
5914 case ":$norm_inc_dir_suffix:" in
5915 # change empty paths to '.'
5916 ::) norm_inc_dir_suffix='.' ;;
5917 # strip trailing slashes
5918 :*[\\/]:) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5921 # squeze repeated slashes
5922 case $sdccconf_h_dir_separator in
5923 # if the path contains any backslashes, turn slashes into backslashes
5925 # Bernhard Held 2003-04-06
5926 # This was the original line. It doesn't:
5927 # - convert the first slash
5928 # - replace a slash with a double-backslash
5929 # *\\*) norm_inc_dir_suffix=`echo "[$]norm_inc_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5930 *\\*) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5932 # if the path contains slashes, also turn backslashes into slashes
5933 *) norm_inc_dir_suffix=`echo "$norm_inc_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5935 cat >>confdefs.h <<_ACEOF
5936 #define INCLUDE_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_inc_dir_suffix}"
5939 norm_lib_dir_suffix=${lib_dir_suffix}
5940 case ":$norm_lib_dir_suffix:" in
5941 # change empty paths to '.'
5942 ::) norm_lib_dir_suffix='.' ;;
5943 # strip trailing slashes
5944 :*[\\/]:) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,[\\/]*$,,'` ;;
5947 # squeze repeated slashes
5948 case $sdccconf_h_dir_separator in
5949 # if the path contains any backslashes, turn slashes into backslashes
5951 # Bernhard Held 2003-04-06
5952 # This was the original line. It doesn't:
5953 # - convert the first slash
5954 # - replace a slash with a double-backslash
5955 # *\\*) norm_lib_dir_suffix=`echo "[$]norm_lib_dir_suffix" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
5956 *\\*) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
5958 # if the path contains slashes, also turn backslashes into slashes
5959 *) norm_lib_dir_suffix=`echo "$norm_lib_dir_suffix" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
5961 cat >>confdefs.h <<_ACEOF
5962 #define LIB_DIR_SUFFIX DIR_SEPARATOR_STRING "${norm_lib_dir_suffix}"
5967 for _lcl_i in expanded_bindir:expanded_datadir:bin2data_dir; do
5968 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
5969 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
5970 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
5971 _lcl_receval="$_lcl_from"
5972 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5973 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5975 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5976 _lcl_receval_old="$_lcl_receval"
5977 eval _lcl_receval="\"$_lcl_receval\""
5979 echo "$_lcl_receval")`
5980 _lcl_receval="$_lcl_to"
5981 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5982 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
5984 while test "$_lcl_receval_old" != "$_lcl_receval"; do
5985 _lcl_receval_old="$_lcl_receval"
5986 eval _lcl_receval="\"$_lcl_receval\""
5988 echo "$_lcl_receval")`
5989 _lcl_notation="$_lcl_from$_lcl_to"
5990 case ":$_lcl_from:" in
5991 # change empty paths to '.'
5992 ::) _lcl_from='.' ;;
5993 # strip trailing slashes
5994 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
5997 # squeze repeated slashes
5999 # if the path contains any backslashes, turn slashes into backslashes
6001 # Bernhard Held 2003-04-06
6002 # This was the original line. It doesn't:
6003 # - convert the first slash
6004 # - replace a slash with a double-backslash
6005 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6006 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6008 # if the path contains slashes, also turn backslashes into slashes
6009 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6011 case ":$_lcl_to:" in
6012 # change empty paths to '.'
6014 # strip trailing slashes
6015 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6018 # squeze repeated slashes
6020 # if the path contains any backslashes, turn slashes into backslashes
6022 # Bernhard Held 2003-04-06
6023 # This was the original line. It doesn't:
6024 # - convert the first slash
6025 # - replace a slash with a double-backslash
6026 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6027 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6029 # if the path contains slashes, also turn backslashes into slashes
6030 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6032 _lcl_common_prefix=''
6033 _lcl_second_prefix_match=''
6034 while test "$_lcl_second_prefix_match" != 0; do
6035 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6036 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6037 if test "$_lcl_second_prefix_match" != 0; then
6038 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6039 _lcl_common_prefix="$_lcl_first_prefix"
6041 _lcl_second_prefix_match=0
6045 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6048 while test "$_lcl_tmp" != ''; do
6049 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6050 if test "$_lcl_first_suffix" != ''; then
6051 _lcl_first_suffix="$_lcl_tmp"
6052 _lcl_first_rel="../$_lcl_first_rel"
6055 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6056 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6057 case ":$_lcl_result_tmp:" in
6058 # change empty paths to '.'
6059 ::) _lcl_result_tmp='.' ;;
6060 # strip trailing slashes
6061 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6064 # squeze repeated slashes
6065 case "$_lcl_notation" in
6066 # if the path contains any backslashes, turn slashes into backslashes
6068 # Bernhard Held 2003-04-06
6069 # This was the original line. It doesn't:
6070 # - convert the first slash
6071 # - replace a slash with a double-backslash
6072 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6073 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6075 # if the path contains slashes, also turn backslashes into slashes
6076 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6078 eval $_lcl_result_var='$_lcl_result_tmp'
6080 case ":$bin2data_dir:" in
6081 # change empty paths to '.'
6082 ::) bin2data_dir='.' ;;
6083 # strip trailing slashes
6084 :*[\\/]:) bin2data_dir=`echo "$bin2data_dir" | sed 's,[\\/]*$,,'` ;;
6087 # squeze repeated slashes
6088 case $sdccconf_h_dir_separator in
6089 # if the path contains any backslashes, turn slashes into backslashes
6091 # Bernhard Held 2003-04-06
6092 # This was the original line. It doesn't:
6093 # - convert the first slash
6094 # - replace a slash with a double-backslash
6095 # *\\*) bin2data_dir=`echo "[$]bin2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6096 *\\*) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6098 # if the path contains slashes, also turn backslashes into slashes
6099 *) bin2data_dir=`echo "$bin2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6101 cat >>confdefs.h <<_ACEOF
6102 #define BIN2DATA_DIR DIR_SEPARATOR_STRING "${bin2data_dir}"
6106 for _lcl_i in expanded_prefix:expanded_bindir:prefix2bin_dir; do
6107 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6108 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6109 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6110 _lcl_receval="$_lcl_from"
6111 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6112 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6114 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6115 _lcl_receval_old="$_lcl_receval"
6116 eval _lcl_receval="\"$_lcl_receval\""
6118 echo "$_lcl_receval")`
6119 _lcl_receval="$_lcl_to"
6120 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6121 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6123 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6124 _lcl_receval_old="$_lcl_receval"
6125 eval _lcl_receval="\"$_lcl_receval\""
6127 echo "$_lcl_receval")`
6128 _lcl_notation="$_lcl_from$_lcl_to"
6129 case ":$_lcl_from:" in
6130 # change empty paths to '.'
6131 ::) _lcl_from='.' ;;
6132 # strip trailing slashes
6133 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6136 # squeze repeated slashes
6138 # if the path contains any backslashes, turn slashes into backslashes
6140 # Bernhard Held 2003-04-06
6141 # This was the original line. It doesn't:
6142 # - convert the first slash
6143 # - replace a slash with a double-backslash
6144 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6145 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6147 # if the path contains slashes, also turn backslashes into slashes
6148 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6150 case ":$_lcl_to:" in
6151 # change empty paths to '.'
6153 # strip trailing slashes
6154 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6157 # squeze repeated slashes
6159 # if the path contains any backslashes, turn slashes into backslashes
6161 # Bernhard Held 2003-04-06
6162 # This was the original line. It doesn't:
6163 # - convert the first slash
6164 # - replace a slash with a double-backslash
6165 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6166 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6168 # if the path contains slashes, also turn backslashes into slashes
6169 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6171 _lcl_common_prefix=''
6172 _lcl_second_prefix_match=''
6173 while test "$_lcl_second_prefix_match" != 0; do
6174 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6175 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6176 if test "$_lcl_second_prefix_match" != 0; then
6177 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6178 _lcl_common_prefix="$_lcl_first_prefix"
6180 _lcl_second_prefix_match=0
6184 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6187 while test "$_lcl_tmp" != ''; do
6188 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6189 if test "$_lcl_first_suffix" != ''; then
6190 _lcl_first_suffix="$_lcl_tmp"
6191 _lcl_first_rel="../$_lcl_first_rel"
6194 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6195 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6196 case ":$_lcl_result_tmp:" in
6197 # change empty paths to '.'
6198 ::) _lcl_result_tmp='.' ;;
6199 # strip trailing slashes
6200 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6203 # squeze repeated slashes
6204 case "$_lcl_notation" in
6205 # if the path contains any backslashes, turn slashes into backslashes
6207 # Bernhard Held 2003-04-06
6208 # This was the original line. It doesn't:
6209 # - convert the first slash
6210 # - replace a slash with a double-backslash
6211 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6212 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6214 # if the path contains slashes, also turn backslashes into slashes
6215 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6217 eval $_lcl_result_var='$_lcl_result_tmp'
6219 case ":$prefix2bin_dir:" in
6220 # change empty paths to '.'
6221 ::) prefix2bin_dir='.' ;;
6222 # strip trailing slashes
6223 :*[\\/]:) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,[\\/]*$,,'` ;;
6226 # squeze repeated slashes
6227 case $sdccconf_h_dir_separator in
6228 # if the path contains any backslashes, turn slashes into backslashes
6230 # Bernhard Held 2003-04-06
6231 # This was the original line. It doesn't:
6232 # - convert the first slash
6233 # - replace a slash with a double-backslash
6234 # *\\*) prefix2bin_dir=`echo "[$]prefix2bin_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6235 *\\*) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6237 # if the path contains slashes, also turn backslashes into slashes
6238 *) prefix2bin_dir=`echo "$prefix2bin_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6240 cat >>confdefs.h <<_ACEOF
6241 #define PREFIX2BIN_DIR DIR_SEPARATOR_STRING "${prefix2bin_dir}"
6245 for _lcl_i in expanded_prefix:expanded_datadir:prefix2data_dir; do
6246 _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
6247 _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
6248 _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
6249 _lcl_receval="$_lcl_from"
6250 _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6251 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6253 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6254 _lcl_receval_old="$_lcl_receval"
6255 eval _lcl_receval="\"$_lcl_receval\""
6257 echo "$_lcl_receval")`
6258 _lcl_receval="$_lcl_to"
6259 _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6260 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
6262 while test "$_lcl_receval_old" != "$_lcl_receval"; do
6263 _lcl_receval_old="$_lcl_receval"
6264 eval _lcl_receval="\"$_lcl_receval\""
6266 echo "$_lcl_receval")`
6267 _lcl_notation="$_lcl_from$_lcl_to"
6268 case ":$_lcl_from:" in
6269 # change empty paths to '.'
6270 ::) _lcl_from='.' ;;
6271 # strip trailing slashes
6272 :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
6275 # squeze repeated slashes
6277 # if the path contains any backslashes, turn slashes into backslashes
6279 # Bernhard Held 2003-04-06
6280 # This was the original line. It doesn't:
6281 # - convert the first slash
6282 # - replace a slash with a double-backslash
6283 # *\\*) _lcl_from=`echo "[$]_lcl_from" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6284 *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6286 # if the path contains slashes, also turn backslashes into slashes
6287 *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6289 case ":$_lcl_to:" in
6290 # change empty paths to '.'
6292 # strip trailing slashes
6293 :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
6296 # squeze repeated slashes
6298 # if the path contains any backslashes, turn slashes into backslashes
6300 # Bernhard Held 2003-04-06
6301 # This was the original line. It doesn't:
6302 # - convert the first slash
6303 # - replace a slash with a double-backslash
6304 # *\\*) _lcl_to=`echo "[$]_lcl_to" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6305 *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6307 # if the path contains slashes, also turn backslashes into slashes
6308 *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6310 _lcl_common_prefix=''
6311 _lcl_second_prefix_match=''
6312 while test "$_lcl_second_prefix_match" != 0; do
6313 _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
6314 _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
6315 if test "$_lcl_second_prefix_match" != 0; then
6316 if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
6317 _lcl_common_prefix="$_lcl_first_prefix"
6319 _lcl_second_prefix_match=0
6323 _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
6326 while test "$_lcl_tmp" != ''; do
6327 _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
6328 if test "$_lcl_first_suffix" != ''; then
6329 _lcl_first_suffix="$_lcl_tmp"
6330 _lcl_first_rel="../$_lcl_first_rel"
6333 _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
6334 _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
6335 case ":$_lcl_result_tmp:" in
6336 # change empty paths to '.'
6337 ::) _lcl_result_tmp='.' ;;
6338 # strip trailing slashes
6339 :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
6342 # squeze repeated slashes
6343 case "$_lcl_notation" in
6344 # if the path contains any backslashes, turn slashes into backslashes
6346 # Bernhard Held 2003-04-06
6347 # This was the original line. It doesn't:
6348 # - convert the first slash
6349 # - replace a slash with a double-backslash
6350 # *\\*) _lcl_result_tmp=`echo "[$]_lcl_result_tmp" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6351 *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6353 # if the path contains slashes, also turn backslashes into slashes
6354 *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6356 eval $_lcl_result_var='$_lcl_result_tmp'
6358 case ":$prefix2data_dir:" in
6359 # change empty paths to '.'
6360 ::) prefix2data_dir='.' ;;
6361 # strip trailing slashes
6362 :*[\\/]:) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,[\\/]*$,,'` ;;
6365 # squeze repeated slashes
6366 case $sdccconf_h_dir_separator in
6367 # if the path contains any backslashes, turn slashes into backslashes
6369 # Bernhard Held 2003-04-06
6370 # This was the original line. It doesn't:
6371 # - convert the first slash
6372 # - replace a slash with a double-backslash
6373 # *\\*) prefix2data_dir=`echo "[$]prefix2data_dir" | sed 's,\(.\)[[\\/]][[\\/]]*,\1\\\\,g'` ;;
6374 *\\*) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\\\\\,g' | sed 's,^[\\/],\\\\\\\\,'` ;;
6376 # if the path contains slashes, also turn backslashes into slashes
6377 *) prefix2data_dir=`echo "$prefix2data_dir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
6379 if test "${prefix2data_dir}" = "."; then
6380 # small optimization for Mingw32; otherwise Borut will complain ;-)
6381 cat >>confdefs.h <<_ACEOF
6382 #define PREFIX2DATA_DIR ""
6386 cat >>confdefs.h <<_ACEOF
6387 #define PREFIX2DATA_DIR DIR_SEPARATOR_STRING "${prefix2data_dir}"
6393 cat >>confdefs.h <<_ACEOF
6394 #define STD_LIB "libsdcc"
6397 cat >>confdefs.h <<_ACEOF
6398 #define STD_INT_LIB "libint"
6401 cat >>confdefs.h <<_ACEOF
6402 #define STD_LONG_LIB "liblong"
6405 cat >>confdefs.h <<_ACEOF
6406 #define STD_FP_LIB "libfloat"
6409 cat >>confdefs.h <<_ACEOF
6410 #define STD_DS390_LIB "libds390"
6413 cat >>confdefs.h <<_ACEOF
6414 #define STD_DS400_LIB "libds400"
6417 cat >>confdefs.h <<_ACEOF
6418 #define STD_XA51_LIB "libxa51"
6422 # SDCC runtime environment variables
6423 sdcc_dir_name="SDCC_HOME"
6424 cat >>confdefs.h <<_ACEOF
6425 #define SDCC_DIR_NAME "${sdcc_dir_name}"
6429 sdcc_include_name="SDCC_INCLUDE"
6430 cat >>confdefs.h <<_ACEOF
6431 #define SDCC_INCLUDE_NAME "${sdcc_include_name}"
6435 sdcc_lib_name="SDCC_LIB"
6436 cat >>confdefs.h <<_ACEOF
6437 #define SDCC_LIB_NAME "${sdcc_lib_name}"
6441 # Now handle the port selection
6442 # ===========================================================================
6443 rm -f ports.all ports.build
6444 # Check whether --enable-mcs51-port or --disable-mcs51-port was given.
6445 if test "${enable_mcs51_port+set}" = set; then
6446 enableval="$enable_mcs51_port"
6449 echo mcs51 >>ports.all
6450 if test "$enable_mcs51_port" = "no"; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define OPT_DISABLE_MCS51 1
6456 echo mcs51 >>ports.build
6457 cat >>confdefs.h <<_ACEOF
6458 #define OPT_DISABLE_MCS51 0
6463 # Check whether --enable-gbz80-port or --disable-gbz80-port was given.
6464 if test "${enable_gbz80_port+set}" = set; then
6465 enableval="$enable_gbz80_port"
6468 echo z80 >>ports.all
6469 if test "$enable_gbz80_port" = "no"; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define OPT_DISABLE_GBZ80 1
6475 echo z80 >>ports.build
6476 cat >>confdefs.h <<_ACEOF
6477 #define OPT_DISABLE_GBZ80 0
6482 # Check whether --enable-z80-port or --disable-z80-port was given.
6483 if test "${enable_z80_port+set}" = set; then
6484 enableval="$enable_z80_port"
6487 echo z80 >>ports.all
6488 if test "$enable_z80_port" = "no"; then
6489 cat >>confdefs.h <<_ACEOF
6490 #define OPT_DISABLE_Z80 1
6494 echo z80 >>ports.build
6495 cat >>confdefs.h <<_ACEOF
6496 #define OPT_DISABLE_Z80 0
6501 # Check whether --enable-avr-port or --disable-avr-port was given.
6502 if test "${enable_avr_port+set}" = set; then
6503 enableval="$enable_avr_port"
6506 echo avr >>ports.all
6507 if test "$enable_avr_port" = "no"; then
6508 cat >>confdefs.h <<_ACEOF
6509 #define OPT_DISABLE_AVR 1
6513 echo avr >>ports.build
6514 cat >>confdefs.h <<_ACEOF
6515 #define OPT_DISABLE_AVR 0
6520 # Check whether --enable-ds390-port or --disable-ds390-port was given.
6521 if test "${enable_ds390_port+set}" = set; then
6522 enableval="$enable_ds390_port"
6525 echo ds390 >>ports.all
6526 if test "$enable_ds390_port" = "no"; then
6527 cat >>confdefs.h <<_ACEOF
6528 #define OPT_DISABLE_DS390 1
6531 cat >>confdefs.h <<_ACEOF
6532 #define OPT_DISABLE_TININative 1
6536 echo ds390 >>ports.build
6537 cat >>confdefs.h <<_ACEOF
6538 #define OPT_DISABLE_DS390 0
6541 cat >>confdefs.h <<_ACEOF
6542 #define OPT_DISABLE_TININative 0
6547 # Check whether --enable-ds400-port or --disable-ds400-port was given.
6548 if test "${enable_ds400_port+set}" = set; then
6549 enableval="$enable_ds400_port"
6552 echo ds400 >>ports.all
6553 if test "$enable_ds400_port" = "no"; then
6554 cat >>confdefs.h <<_ACEOF
6555 #define OPT_DISABLE_DS300 1
6559 echo ds400 >>ports.build
6560 cat >>confdefs.h <<_ACEOF
6561 #define OPT_DISABLE_DS400 0
6566 # Check whether --enable-pic-port or --disable-pic-port was given.
6567 if test "${enable_pic_port+set}" = set; then
6568 enableval="$enable_pic_port"
6571 echo pic >>ports.all
6572 if test "$enable_pic_port" = "no"; then
6573 cat >>confdefs.h <<_ACEOF
6574 #define OPT_DISABLE_PIC 1
6578 echo pic >>ports.build
6579 cat >>confdefs.h <<_ACEOF
6580 #define OPT_DISABLE_PIC 0
6585 # Check whether --enable-xa51-port or --disable-xa51-port was given.
6586 if test "${enable_xa51_port+set}" = set; then
6587 enableval="$enable_xa51_port"
6590 echo xa51 >>ports.all
6591 if test "$enable_xa51_port" = "no"; then
6592 cat >>confdefs.h <<_ACEOF
6593 #define OPT_DISABLE_XA51 1
6597 echo xa51 >>ports.build
6598 cat >>confdefs.h <<_ACEOF
6599 #define OPT_DISABLE_XA51 0
6604 # Check whether --enable-ucsim or --disable-ucsim was given.
6605 if test "${enable_ucsim+set}" = set; then
6606 enableval="$enable_ucsim"
6609 OPT_ENABLE_UCSIM=$enable_ucsim
6612 # Check whether --enable-device-lib-build or --disable-device-lib-build was given.
6613 if test "${enable_device_lib_build+set}" = set; then
6614 enableval="$enable_device_lib_build"
6617 OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build
6620 # Check whether --enable-packihx or --disable-packihx was given.
6621 if test "${enable_packihx+set}" = set; then
6622 enableval="$enable_packihx"
6625 OPT_ENABLE_PACKIHX=$enable_packihx
6628 # Check whether --enable-libgc or --disable-libgc was given.
6629 if test "${enable_libgc+set}" = set; then
6630 enableval="$enable_libgc"
6633 if test "$enable_libgc" = "yes"; then
6635 echo "$as_me:$LINENO: checking for GC_malloc in -lgc" >&5
6636 echo $ECHO_N "checking for GC_malloc in -lgc... $ECHO_C" >&6
6637 if test "${ac_cv_lib_gc_GC_malloc+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS=$LIBS
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_lib_gc_GC_malloc=yes
6675 echo "$as_me: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6677 ac_cv_lib_gc_GC_malloc=no
6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_check_lib_save_LIBS
6682 echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_malloc" >&5
6683 echo "${ECHO_T}$ac_cv_lib_gc_GC_malloc" >&6
6684 if test $ac_cv_lib_gc_GC_malloc = yes; then
6685 cat >>confdefs.h <<_ACEOF
6686 #define HAVE_LIBGC 1
6697 cat >>confdefs.h <<_ACEOF
6698 #define OPT_ENABLE_LIBGC $OPT_ENABLE_LIBGC
6703 uniq ports.all ports
6705 uniq ports.build ports
6706 mv ports ports.build
6708 # Generating output files
6709 # ===========================================================================
6712 subdirs="$subdirs support/cpp2"
6716 subdirs="$subdirs packihx"
6720 subdirs="$subdirs sim/ucsim"
6722 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"
6724 cat >confcache <<\_ACEOF
6725 # This file is a shell script that caches the results of configure
6726 # tests run on this system so they can be shared between configure
6727 # scripts and configure runs, see configure's option --config-cache.
6728 # It is not useful on other systems. If it contains results you don't
6729 # want to keep, you may remove or edit it.
6731 # config.status only pays attention to the cache file if you give it
6732 # the --recheck option to rerun configure.
6734 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6735 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6740 # The following way of writing the cache mishandles newlines in values,
6741 # but we know of no workaround that is simple, portable, and efficient.
6742 # So, don't put newlines in cache variables' values.
6743 # Ultrix sh set writes to stderr and can't be redirected directly,
6744 # and sets the high bit in the cache file unless we assign to the vars.
6747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6749 # `set' does not quote correctly, so add quotes (double-quote
6750 # substitution turns \\\\ into \\, and sed turns \\ into \).
6753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6756 # `set' quotes correctly as required by POSIX, so do not add quotes.
6758 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6767 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6769 if cmp -s $cache_file confcache; then :; else
6770 if test -w $cache_file; then
6771 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6772 cat confcache >$cache_file
6774 echo "not updating unwritable cache $cache_file"
6779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6780 # Let make expand exec_prefix.
6781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6783 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6784 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6785 # trailing colons and then remove the whole line if VPATH becomes empty
6786 # (actually we leave an empty line to preserve line numbers).
6787 if test "x$srcdir" = x.; then
6788 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6789 s/:*\$(srcdir):*/:/;
6790 s/:*\${srcdir}:*/:/;
6792 s/^\([^=]*=[ ]*\):*/\1/;
6798 DEFS=-DHAVE_CONFIG_H
6802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6803 # 1. Remove the extension, and $U if already installed.
6804 ac_i=`echo "$ac_i" |
6805 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6807 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6808 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6812 LTLIBOBJS=$ac_ltlibobjs
6816 : ${CONFIG_STATUS=./config.status}
6817 ac_clean_files_save=$ac_clean_files
6818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6819 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6820 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6821 cat >$CONFIG_STATUS <<_ACEOF
6823 # Generated by $as_me.
6824 # Run this file to recreate the current configuration.
6825 # Compiler output produced by configure, useful for debugging
6826 # configure, is in config.log if it exists.
6829 SHELL=\${CONFIG_SHELL-$SHELL}
6832 cat >>$CONFIG_STATUS <<\_ACEOF
6833 ## --------------------- ##
6834 ## M4sh Initialization. ##
6835 ## --------------------- ##
6837 # Be Bourne compatible
6838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6841 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6842 # is contrary to our usage. Disable this feature.
6843 alias -g '${1+"$@"}'='"$@"'
6844 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6848 # Support unset when possible.
6849 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6856 # Work around bugs in pre-3.0 UWIN ksh.
6857 $as_unset ENV MAIL MAILPATH
6863 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6865 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6866 eval $as_var=C; export $as_var
6872 # Required to use basename.
6873 if expr a : '\(a\)' >/dev/null 2>&1; then
6879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6880 as_basename=basename
6886 # Name of the executable.
6887 as_me=`$as_basename "$0" ||
6888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6889 X"$0" : 'X\(//\)$' \| \
6890 X"$0" : 'X\(/\)$' \| \
6891 . : '\(.\)' 2>/dev/null ||
6893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6894 /^X\/\(\/\/\)$/{ s//\1/; q; }
6895 /^X\/\(\/\).*/{ s//\1/; q; }
6899 # PATH needs CR, and LINENO needs CR and PATH.
6900 # Avoid depending upon Character Ranges.
6901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6904 as_cr_digits='0123456789'
6905 as_cr_alnum=$as_cr_Letters$as_cr_digits
6907 # The user is always right.
6908 if test "${PATH_SEPARATOR+set}" != set; then
6909 echo "#! /bin/sh" >conftest.sh
6910 echo "exit 0" >>conftest.sh
6911 chmod +x conftest.sh
6912 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6924 test "x$as_lineno_1" != "x$as_lineno_2" &&
6925 test "x$as_lineno_3" = "x$as_lineno_2" || {
6926 # Find who we are. Look in the path if we contain no path at all
6929 *[\\/]* ) as_myself=$0 ;;
6930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6940 # We did not find ourselves, most probably we were run as `sh COMMAND'
6941 # in which case we are not to be found in the path.
6942 if test "x$as_myself" = x; then
6945 if test ! -f "$as_myself"; then
6946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6948 { (exit 1); exit 1; }; }
6950 case $CONFIG_SHELL in
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6956 test -z "$as_dir" && as_dir=.
6957 for as_base in sh bash ksh sh5; do
6960 if ("$as_dir/$as_base" -c '
6963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6964 test "x$as_lineno_1" != "x$as_lineno_2" &&
6965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6968 CONFIG_SHELL=$as_dir/$as_base
6970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6979 # uniformly replaced by the line number. The first 'sed' inserts a
6980 # line-number line before each line; the second 'sed' does the real
6981 # work. The second script uses 'N' to pair each line-number line
6982 # with the numbered line, and appends trailing '-' during
6983 # substitution so that $LINENO is not a special case at line end.
6984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6986 sed '=' <$as_myself |
6991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6994 s,^['$as_cr_digits']*\n,,
6996 chmod +x $as_me.lineno ||
6997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6999 { (exit 1); exit 1; }; }
7001 # Don't try to exec as it changes $[0], causing all sort of problems
7002 # (the dirname of $[0] is not the place where we might find the
7003 # original and so on. Autoconf is especially sensible to this).
7005 # Exit status is that of the last command.
7010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7011 *c*,-n*) ECHO_N= ECHO_C='
7013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7017 if expr a : '\(a\)' >/dev/null 2>&1; then
7023 rm -f conf$$ conf$$.exe conf$$.file
7025 if ln -s conf$$.file conf$$ 2>/dev/null; then
7026 # We could just check for DJGPP; but this test a) works b) is more generic
7027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7028 if test -f conf$$.exe; then
7029 # Don't use ln at all; we don't have any links
7034 elif ln conf$$.file conf$$ 2>/dev/null; then
7039 rm -f conf$$ conf$$.exe conf$$.file
7041 if mkdir -p . 2>/dev/null; then
7047 as_executable_p="test -f"
7049 # Sed expression to map a string onto a valid CPP name.
7050 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7052 # Sed expression to map a string onto a valid variable name.
7053 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7057 # We need space, tab and new line, in precisely that order.
7067 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7068 # report actual input values of CONFIG_FILES etc. instead of their
7069 # values after options handling. Logging --version etc. is OK.
7073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7074 ## Running $as_me. ##
7079 This file was extended by $as_me, which was
7080 generated by GNU Autoconf 2.54. Invocation command line was
7082 CONFIG_FILES = $CONFIG_FILES
7083 CONFIG_HEADERS = $CONFIG_HEADERS
7084 CONFIG_LINKS = $CONFIG_LINKS
7085 CONFIG_COMMANDS = $CONFIG_COMMANDS
7089 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7093 # Files that config.status was made for.
7094 if test -n "$ac_config_files"; then
7095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7098 if test -n "$ac_config_headers"; then
7099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7102 if test -n "$ac_config_links"; then
7103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7106 if test -n "$ac_config_commands"; then
7107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7110 cat >>$CONFIG_STATUS <<\_ACEOF
7113 \`$as_me' instantiates files from templates according to the
7114 current configuration.
7116 Usage: $0 [OPTIONS] [FILE]...
7118 -h, --help print this help, then exit
7119 -V, --version print version number, then exit
7120 -d, --debug don't remove temporary files
7121 --recheck update $as_me by reconfiguring in the same conditions
7122 --file=FILE[:TEMPLATE]
7123 instantiate the configuration file FILE
7124 --header=FILE[:TEMPLATE]
7125 instantiate the configuration header FILE
7127 Configuration files:
7130 Configuration headers:
7133 Report bugs to <bug-autoconf@gnu.org>."
7136 cat >>$CONFIG_STATUS <<_ACEOF
7139 configured by $0, generated by GNU Autoconf 2.54,
7140 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7142 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7143 Free Software Foundation, Inc.
7144 This config.status script is free software; the Free Software Foundation
7145 gives unlimited permission to copy, distribute and modify it."
7150 cat >>$CONFIG_STATUS <<\_ACEOF
7151 # If no file are specified by the user, then we need to provide default
7152 # value. By we need to know if files were specified by the user.
7158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7167 *) # This is not an option, so the user has probably given explicit
7170 ac_need_defaults=false;;
7174 # Handling of the options.
7176 cat >>$CONFIG_STATUS <<_ACEOF
7177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7178 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7179 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7181 cat >>$CONFIG_STATUS <<\_ACEOF
7182 --version | --vers* | -V )
7183 echo "$ac_cs_version"; exit 0 ;;
7185 # Conflict between --help and --header
7186 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7187 Try \`$0 --help' for more information." >&5
7188 echo "$as_me: error: ambiguous option: $1
7189 Try \`$0 --help' for more information." >&2;}
7190 { (exit 1); exit 1; }; };;
7191 --help | --hel | -h )
7192 echo "$ac_cs_usage"; exit 0 ;;
7193 --debug | --d* | -d )
7195 --file | --fil | --fi | --f )
7197 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7198 ac_need_defaults=false;;
7199 --header | --heade | --head | --hea )
7201 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7202 ac_need_defaults=false;;
7205 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7206 Try \`$0 --help' for more information." >&5
7207 echo "$as_me: error: unrecognized option: $1
7208 Try \`$0 --help' for more information." >&2;}
7209 { (exit 1); exit 1; }; } ;;
7211 *) ac_config_targets="$ac_config_targets $1" ;;
7223 cat >>$CONFIG_STATUS <<\_ACEOF
7224 for ac_config_target in $ac_config_targets
7226 case "$ac_config_target" in
7227 # Handling of arguments.
7228 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
7229 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7230 "as/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES as/mcs51/Makefile" ;;
7231 "device/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/include/Makefile" ;;
7232 "device/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES device/lib/Makefile" ;;
7233 "debugger/mcs51/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/mcs51/Makefile" ;;
7234 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common:Makefile.common.in" ;;
7235 "sdccconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sdccconf.h:sdccconf_in.h" ;;
7236 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7237 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7238 { (exit 1); exit 1; }; };;
7242 # If the user did not use the arguments to specify the items to instantiate,
7243 # then the envvar interface is used. Set only those that are not.
7244 # We use the long form for the default assignment because of an extremely
7245 # bizarre bug on SunOS 4.1.3.
7246 if $ac_need_defaults; then
7247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7251 # Create a temporary directory, and hook for its removal unless debugging.
7254 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7255 trap '{ (exit 1); exit 1; }' 1 2 13 15
7258 # Create a (secure) tmp directory for tmp files.
7261 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7262 test -n "$tmp" && test -d "$tmp"
7265 tmp=$TMPDIR/cs$$-$RANDOM
7266 (umask 077 && mkdir $tmp)
7269 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7270 { (exit 1); exit 1; }
7275 cat >>$CONFIG_STATUS <<_ACEOF
7278 # CONFIG_FILES section.
7281 # No need to generate the scripts if there are no CONFIG_FILES.
7282 # This happens for instance when ./config.status config.h
7283 if test -n "\$CONFIG_FILES"; then
7284 # Protect against being on the right side of a sed subst in config.status.
7285 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7286 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7287 s,@SHELL@,$SHELL,;t t
7288 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7289 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7290 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7291 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7292 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7293 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7294 s,@exec_prefix@,$exec_prefix,;t t
7295 s,@prefix@,$prefix,;t t
7296 s,@program_transform_name@,$program_transform_name,;t t
7297 s,@bindir@,$bindir,;t t
7298 s,@sbindir@,$sbindir,;t t
7299 s,@libexecdir@,$libexecdir,;t t
7300 s,@datadir@,$datadir,;t t
7301 s,@sysconfdir@,$sysconfdir,;t t
7302 s,@sharedstatedir@,$sharedstatedir,;t t
7303 s,@localstatedir@,$localstatedir,;t t
7304 s,@libdir@,$libdir,;t t
7305 s,@includedir@,$includedir,;t t
7306 s,@oldincludedir@,$oldincludedir,;t t
7307 s,@infodir@,$infodir,;t t
7308 s,@mandir@,$mandir,;t t
7309 s,@build_alias@,$build_alias,;t t
7310 s,@host_alias@,$host_alias,;t t
7311 s,@target_alias@,$target_alias,;t t
7313 s,@ECHO_C@,$ECHO_C,;t t
7314 s,@ECHO_N@,$ECHO_N,;t t
7315 s,@ECHO_T@,$ECHO_T,;t t
7318 s,@VERSION@,$VERSION,;t t
7319 s,@VERSIONHI@,$VERSIONHI,;t t
7320 s,@VERSIONLO@,$VERSIONLO,;t t
7321 s,@VERSIONP@,$VERSIONP,;t t
7323 s,@CFLAGS@,$CFLAGS,;t t
7324 s,@LDFLAGS@,$LDFLAGS,;t t
7325 s,@CPPFLAGS@,$CPPFLAGS,;t t
7326 s,@ac_ct_CC@,$ac_ct_CC,;t t
7327 s,@EXEEXT@,$EXEEXT,;t t
7328 s,@OBJEXT@,$OBJEXT,;t t
7330 s,@CXXFLAGS@,$CXXFLAGS,;t t
7331 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7333 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7334 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7335 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7336 s,@RANLIB@,$RANLIB,;t t
7337 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7339 s,@LEXLIB@,$LEXLIB,;t t
7340 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7342 s,@AUTOCONF@,$AUTOCONF,;t t
7343 s,@STRIP@,$STRIP,;t t
7347 s,@LATEX@,$LATEX,;t t
7348 s,@LATEX2HTML@,$LATEX2HTML,;t t
7349 s,@PDFLATEX@,$PDFLATEX,;t t
7350 s,@DVIPDF@,$DVIPDF,;t t
7351 s,@EGREP@,$EGREP,;t t
7352 s,@M_OR_MM@,$M_OR_MM,;t t
7353 s,@sdccconf_h_dir_separator@,$sdccconf_h_dir_separator,;t t
7354 s,@include_dir_suffix@,$include_dir_suffix,;t t
7355 s,@lib_dir_suffix@,$lib_dir_suffix,;t t
7356 s,@docdir@,$docdir,;t t
7357 s,@OPT_ENABLE_UCSIM@,$OPT_ENABLE_UCSIM,;t t
7358 s,@OPT_ENABLE_DEVICE_LIB_BUILD@,$OPT_ENABLE_DEVICE_LIB_BUILD,;t t
7359 s,@OPT_ENABLE_PACKIHX@,$OPT_ENABLE_PACKIHX,;t t
7360 s,@subdirs@,$subdirs,;t t
7361 s,@LIBOBJS@,$LIBOBJS,;t t
7362 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7367 cat >>$CONFIG_STATUS <<\_ACEOF
7368 # Split the substitutions into bite-sized pieces for seds with
7369 # small command number limits, like on Digital OSF/1 and HP-UX.
7371 ac_sed_frag=1 # Number of current file.
7372 ac_beg=1 # First line for current file.
7373 ac_end=$ac_max_sed_lines # Line after last line for current file.
7376 while $ac_more_lines; do
7377 if test $ac_beg -gt 1; then
7378 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7380 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7382 if test ! -s $tmp/subs.frag; then
7385 # The purpose of the label and of the branching condition is to
7386 # speed up the sed processing (if there are no `@' at all, there
7387 # is no need to browse any of the substitutions).
7388 # These are the two extra sed commands mentioned above.
7390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7391 if test -z "$ac_sed_cmds"; then
7392 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7394 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7396 ac_sed_frag=`expr $ac_sed_frag + 1`
7398 ac_end=`expr $ac_end + $ac_max_sed_lines`
7401 if test -z "$ac_sed_cmds"; then
7404 fi # test -n "$CONFIG_FILES"
7407 cat >>$CONFIG_STATUS <<\_ACEOF
7408 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7411 - | *:- | *:-:* ) # input from stdin
7413 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7414 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7415 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7417 * ) ac_file_in=$ac_file.in ;;
7420 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7421 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7423 X"$ac_file" : 'X\(//\)[^/]' \| \
7424 X"$ac_file" : 'X\(//\)$' \| \
7425 X"$ac_file" : 'X\(/\)' \| \
7426 . : '\(.\)' 2>/dev/null ||
7428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7430 /^X\(\/\/\)$/{ s//\1/; q; }
7431 /^X\(\/\).*/{ s//\1/; q; }
7433 { if $as_mkdir_p; then
7438 while test ! -d "$as_dir"; do
7439 as_dirs="$as_dir $as_dirs"
7440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7442 X"$as_dir" : 'X\(//\)[^/]' \| \
7443 X"$as_dir" : 'X\(//\)$' \| \
7444 X"$as_dir" : 'X\(/\)' \| \
7445 . : '\(.\)' 2>/dev/null ||
7447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7449 /^X\(\/\/\)$/{ s//\1/; q; }
7450 /^X\(\/\).*/{ s//\1/; q; }
7453 test ! -n "$as_dirs" || mkdir $as_dirs
7454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7456 { (exit 1); exit 1; }; }; }
7460 if test "$ac_dir" != .; then
7461 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7462 # A "../" for each directory in $ac_dir_suffix.
7463 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7465 ac_dir_suffix= ac_top_builddir=
7469 .) # No --srcdir option. We are building in place.
7471 if test -z "$ac_top_builddir"; then
7474 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7476 [\\/]* | ?:[\\/]* ) # Absolute path.
7477 ac_srcdir=$srcdir$ac_dir_suffix;
7478 ac_top_srcdir=$srcdir ;;
7480 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7481 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7483 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7485 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7486 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7487 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7488 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7493 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7496 if test x"$ac_file" != x-; then
7497 { echo "$as_me:$LINENO: creating $ac_file" >&5
7498 echo "$as_me: creating $ac_file" >&6;}
7501 # Let's still pretend it is `configure' which instantiates (i.e., don't
7502 # use $as_me), people would be surprised to read:
7503 # /* config.h. Generated by config.status. */
7504 if test x"$ac_file" = x-; then
7507 configure_input="$ac_file. "
7509 configure_input=$configure_input"Generated from `echo $ac_file_in |
7510 sed 's,.*/,,'` by configure."
7512 # First look for the input files in the build tree, otherwise in the
7514 ac_file_inputs=`IFS=:
7515 for f in $ac_file_in; do
7517 -) echo $tmp/stdin ;;
7519 # Absolute (can't be DOS-style, as IFS=:)
7520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7521 echo "$as_me: error: cannot find input file: $f" >&2;}
7522 { (exit 1); exit 1; }; }
7525 if test -f "$f"; then
7528 elif test -f "$srcdir/$f"; then
7533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7534 echo "$as_me: error: cannot find input file: $f" >&2;}
7535 { (exit 1); exit 1; }; }
7538 done` || { (exit 1); exit 1; }
7540 cat >>$CONFIG_STATUS <<_ACEOF
7544 cat >>$CONFIG_STATUS <<\_ACEOF
7546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7547 s,@configure_input@,$configure_input,;t t
7548 s,@srcdir@,$ac_srcdir,;t t
7549 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7550 s,@top_srcdir@,$ac_top_srcdir,;t t
7551 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7552 s,@builddir@,$ac_builddir,;t t
7553 s,@abs_builddir@,$ac_abs_builddir,;t t
7554 s,@top_builddir@,$ac_top_builddir,;t t
7555 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7556 s,@INSTALL@,$ac_INSTALL,;t t
7557 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7559 if test x"$ac_file" != x-; then
7560 mv $tmp/out $ac_file
7568 cat >>$CONFIG_STATUS <<\_ACEOF
7571 # CONFIG_HEADER section.
7574 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7575 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7577 # ac_d sets the value in "#define NAME VALUE" lines.
7578 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7579 ac_dB='[ ].*$,\1#\2'
7582 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7583 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7584 ac_uB='$,\1#\2define\3'
7588 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7591 - | *:- | *:-:* ) # input from stdin
7593 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7595 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7597 * ) ac_file_in=$ac_file.in ;;
7600 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7601 echo "$as_me: creating $ac_file" >&6;}
7603 # First look for the input files in the build tree, otherwise in the
7605 ac_file_inputs=`IFS=:
7606 for f in $ac_file_in; do
7608 -) echo $tmp/stdin ;;
7610 # Absolute (can't be DOS-style, as IFS=:)
7611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7612 echo "$as_me: error: cannot find input file: $f" >&2;}
7613 { (exit 1); exit 1; }; }
7616 if test -f "$f"; then
7619 elif test -f "$srcdir/$f"; then
7624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7625 echo "$as_me: error: cannot find input file: $f" >&2;}
7626 { (exit 1); exit 1; }; }
7629 done` || { (exit 1); exit 1; }
7630 # Remove the trailing spaces.
7631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7636 # `conftest.undefs', that substitutes the proper values into
7637 # config.h.in to produce config.h. The first handles `#define'
7638 # templates, and the second `#undef' templates.
7639 # And first: Protect against being on the right side of a sed subst in
7640 # config.status. Protect against being in an unquoted here document
7642 rm -f conftest.defines conftest.undefs
7643 # Using a here document instead of a string reduces the quoting nightmare.
7644 # Putting comments in sed scripts is not portable.
7646 # `end' is used to avoid that the second main sed command (meant for
7647 # 0-ary CPP macros) applies to n-ary macro definitions.
7648 # See the Autoconf documentation for `clear'.
7649 cat >confdef2sed.sed <<\_ACEOF
7654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7659 # If some macros were called several times there might be several times
7660 # the same #defines, which is useless. Nevertheless, we may not want to
7661 # sort them, since we want the *last* AC-DEFINE to be honored.
7662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7664 rm -f confdef2sed.sed
7666 # This sed command replaces #undef with comments. This is necessary, for
7667 # example, in the case of _POSIX_SOURCE, which is predefined and required
7668 # on some systems where configure will not decide to define it.
7669 cat >>conftest.undefs <<\_ACEOF
7670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7673 # Break up conftest.defines because some shells have a limit on the size
7674 # of here documents, and old seds have small limits too (100 cmds).
7675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7678 echo ' :' >>$CONFIG_STATUS
7680 while grep . conftest.defines >/dev/null
7682 # Write a limited-size here document to $tmp/defines.sed.
7683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7684 # Speed up: don't consider the non `#define' lines.
7685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7686 # Work around the forget-to-reset-the-flag bug.
7687 echo 't clr' >>$CONFIG_STATUS
7688 echo ': clr' >>$CONFIG_STATUS
7689 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7695 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7696 rm -f conftest.defines
7697 mv conftest.tail conftest.defines
7699 rm -f conftest.defines
7700 echo ' fi # grep' >>$CONFIG_STATUS
7701 echo >>$CONFIG_STATUS
7703 # Break up conftest.undefs because some shells have a limit on the size
7704 # of here documents, and old seds have small limits too (100 cmds).
7705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7707 while grep . conftest.undefs >/dev/null
7709 # Write a limited-size here document to $tmp/undefs.sed.
7710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7711 # Speed up: don't consider the non `#undef'
7712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7713 # Work around the forget-to-reset-the-flag bug.
7714 echo 't clr' >>$CONFIG_STATUS
7715 echo ': clr' >>$CONFIG_STATUS
7716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7723 rm -f conftest.undefs
7724 mv conftest.tail conftest.undefs
7726 rm -f conftest.undefs
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7729 # Let's still pretend it is `configure' which instantiates (i.e., don't
7730 # use $as_me), people would be surprised to read:
7731 # /* config.h. Generated by config.status. */
7732 if test x"$ac_file" = x-; then
7733 echo "/* Generated by configure. */" >$tmp/config.h
7735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7737 cat $tmp/in >>$tmp/config.h
7739 if test x"$ac_file" != x-; then
7740 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7742 echo "$as_me: $ac_file is unchanged" >&6;}
7744 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7746 X"$ac_file" : 'X\(//\)[^/]' \| \
7747 X"$ac_file" : 'X\(//\)$' \| \
7748 X"$ac_file" : 'X\(/\)' \| \
7749 . : '\(.\)' 2>/dev/null ||
7751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7753 /^X\(\/\/\)$/{ s//\1/; q; }
7754 /^X\(\/\).*/{ s//\1/; q; }
7756 { if $as_mkdir_p; then
7761 while test ! -d "$as_dir"; do
7762 as_dirs="$as_dir $as_dirs"
7763 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7765 X"$as_dir" : 'X\(//\)[^/]' \| \
7766 X"$as_dir" : 'X\(//\)$' \| \
7767 X"$as_dir" : 'X\(/\)' \| \
7768 . : '\(.\)' 2>/dev/null ||
7770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7772 /^X\(\/\/\)$/{ s//\1/; q; }
7773 /^X\(\/\).*/{ s//\1/; q; }
7776 test ! -n "$as_dirs" || mkdir $as_dirs
7777 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7779 { (exit 1); exit 1; }; }; }
7782 mv $tmp/config.h $ac_file
7791 cat >>$CONFIG_STATUS <<\_ACEOF
7793 { (exit 0); exit 0; }
7795 chmod +x $CONFIG_STATUS
7796 ac_clean_files=$ac_clean_files_save
7799 # configure is writing to config.log, and then calls config.status.
7800 # config.status does its own redirection, appending to config.log.
7801 # Unfortunately, on DOS this fails, as config.log is still kept open
7802 # by configure, so config.status won't be able to write to it; its
7803 # output is simply discarded. So we exec the FD to /dev/null,
7804 # effectively closing config.log, so it can be properly (re)opened and
7805 # appended to by config.status. When coming back to configure, we
7806 # need to make the FD available again.
7807 if test "$no_create" != yes; then
7810 $SHELL $CONFIG_STATUS || ac_cs_success=false
7812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7813 # would make configure fail if this is the last instruction.
7814 $ac_cs_success || { (exit 1); exit 1; }
7818 # CONFIG_SUBDIRS section.
7820 if test "$no_recursion" != yes; then
7822 # Remove --cache-file and --srcdir arguments so they do not pile up.
7823 ac_sub_configure_args=
7825 for ac_arg in $ac_configure_args; do
7826 if test -n "$ac_prev"; then
7831 -cache-file | --cache-file | --cache-fil | --cache-fi \
7832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7833 ac_prev=cache_file ;;
7834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7838 --config-cache | -C)
7840 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7842 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7844 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7846 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7848 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7852 # Always prepend --prefix to ensure using the same prefix
7853 # in subdir configurations.
7854 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7857 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7859 # Do not complain, so a configure script can configure whichever
7860 # parts of a large source tree are present.
7861 test -d $srcdir/$ac_dir || continue
7863 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7864 echo "$as_me: configuring in $ac_dir" >&6;}
7865 { if $as_mkdir_p; then
7870 while test ! -d "$as_dir"; do
7871 as_dirs="$as_dir $as_dirs"
7872 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7874 X"$as_dir" : 'X\(//\)[^/]' \| \
7875 X"$as_dir" : 'X\(//\)$' \| \
7876 X"$as_dir" : 'X\(/\)' \| \
7877 . : '\(.\)' 2>/dev/null ||
7879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7881 /^X\(\/\/\)$/{ s//\1/; q; }
7882 /^X\(\/\).*/{ s//\1/; q; }
7885 test ! -n "$as_dirs" || mkdir $as_dirs
7886 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7887 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7888 { (exit 1); exit 1; }; }; }
7892 if test "$ac_dir" != .; then
7893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7894 # A "../" for each directory in $ac_dir_suffix.
7895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7897 ac_dir_suffix= ac_top_builddir=
7901 .) # No --srcdir option. We are building in place.
7903 if test -z "$ac_top_builddir"; then
7906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7908 [\\/]* | ?:[\\/]* ) # Absolute path.
7909 ac_srcdir=$srcdir$ac_dir_suffix;
7910 ac_top_srcdir=$srcdir ;;
7912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7918 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7925 # Check for guested configure; otherwise get Cygnus style configure.
7926 if test -f $ac_srcdir/configure.gnu; then
7927 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7928 elif test -f $ac_srcdir/configure; then
7929 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7930 elif test -f $ac_srcdir/configure.in; then
7931 ac_sub_configure=$ac_configure
7933 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7934 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7938 # The recursion is here.
7939 if test -n "$ac_sub_configure"; then
7940 # Make the cache file name correct relative to the subdirectory.
7942 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7944 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7947 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7948 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7949 # The eval makes quoting arguments work.
7950 eval $ac_sub_configure $ac_sub_configure_args \
7951 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7952 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7953 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7954 { (exit 1); exit 1; }; }
7962 # End of configure/configure.in